Not principal ideal. It's a well known fact, that $\mathbb{Z}[x]$ is not a PID, for example consider the following ideal \begin{align} I = \left(x, x + 2\right) = \{a(x)(x+2) + b(x)x| a(x), b(x) \in \mathbb{Z}[x]\} \end{align} It's not difficult to prove that this ideal isn't principal.
Principal ideal. Also, let's look at the following ideal: \begin{align} J = \left(x^2 - 4, x^2 - x - 2\right) = \{a(x)(x^2 - 4) + b(x)(x^2 - x - 2)| a(x), b(x) \in \mathbb{Z}[x]\} \end{align} I have also proven that this ideal is principal, it is generated by greatest common divisor of polynomials $x^2 - 4$ and $x^2 - x - 2$, namely $J = \left(x-2\right)$
Main confusing ideal. Now let's consider the following ideal \begin{align} V = \left( f_1(x), \ldots f_n(x) \right ), ~~~~~~~ \text{where}~~f_1(x), \ldots f_n(x) \in \mathbb{Z}[x] \end{align} I claim, that this ideal is principal and it's generated by the greatest common divisor of all $f_j(x)$. My proof is the following. Consider the greatest common divisor by $g(x)$. Obviously, that $V \subset \left( g(x) \right)$. Let's proof other inclusion. Consider arbitrary element $ \hat{h}(x) = h(x) g(x) \in \left( g(x) \right)$ Since $g(x)$ is greatest common divisor, $g(x)$ can be written as a linear combination of $f_j(x)$: \begin{align} g(x) = \sum_{j=1}^{j=n} \alpha_j(x) f_j(x) \end{align} Значит: \begin{align} \hat{h}(x) = h (x) g(x) = h(x) \sum_{j=1}^{j=n} \alpha_j(x) f_j(x) = \sum_{j=1}^{j=n} \hat{\alpha_j}(x) f_j(x) ~~~~~~~\text{where}~~~~ \hat{\alpha_j}(x) = h(x) \alpha_j(x) \end{align} So $V$ is principal. Using this proof, if we take $n = 2$ and $f_1(x) = x$ and $f_2(x) = x + 2$ we conclude that $\left(x, x+2\right) = \left( \gcd(x, x+2) \right) = \left(1\right) = \mathbb{Z}[x]$, what is obviusly falce, since $\left(x, x+2\right)$ is firstly proper, and secondly it's not principal. What am i doing wrong? Note that my question isn't answered in linked question, because it's rather obvious fact which i prove by myself that $\left( x, x + 2 \right)$ is not a principal ideal, i am interested in where is the mistake in computations that $\left( f_1, f_2, \ldots, f_n \right)$ is principal, since this computations MUST be wrong, but i don't know where.