Gauss's Lemma on Irreducible Polynomials

Theorem
Let $\Z$ be the ring of integers.

Let $\Z \left[{X}\right]$ be the ring of polynomials over $\Z$.

Let $h \in \Z \left[{X}\right]$ be a polynomial.


 * $(1):\quad$ $h$ is irreducible in $\Q \left[{X}\right]$ and primitive
 * $(2):\quad$ $h$ is irreducible in $\Z \left[{X}\right]$.

1 implies 2
Suppose first that $h$ is not irreducible in $\Z \left[{X}\right]$.

Let $\displaystyle h = a_0 + a_1 X + \cdots + a_n X^n$.

If $\deg h = 0$, then the content of $h$ is
 * $\operatorname{cont}\left({h}\right) = \gcd \left\{a_0\right\} = \left|{a_0}\right|$.

Since $h$ is primitive by hypothesis, we have $h = \pm 1$.

Now by Units of Ring of Polynomial Forms over Field, the units of $\Q \left[{X}\right]$ are the units of $\Q$.

Thus $h$ is a unit of $\Q \left[{X}\right]$.

Therefore $h$ is not irreducible.

If $\deg h \ge 1$, then by Units of Ring of Polynomial Forms over Integral Domain, the units of $\Z \left[X\right]$ are the units of $\Z$.

Therefore $h$ is not a unit of $\Z \left[X\right]$.

Thus since $h$ is reducible, there is a non-trivial factorization $h = f g$ in $\Z \left[{X}\right]$, with $f$ and $g$ both not units.

If $\deg f = 0$, that is, $f \in \Z$, then $f$ divides each coefficient of $h$.

Since $h$ is primitive, this means that $f$ divides $\operatorname{cont}\left(h\right) = 1$.

But the divisors of $1$ are $\pm 1$, so $f = \pm 1$.

But then $f$ is a unit in $\Z \left[{X}\right]$, a contradiction.

Therefore $\deg f \ge 1$, so $f$ is a non-unit in $\Q \left[{X}\right]$.

Similarly, $g$ is a non-unit in $\Q \left[{X}\right]$.

Therefore $h = fg$ is a non-trivial factorization in $\Q \left[{X}\right]$.

2 implies 1
Suppose now that $h$ is not irreducible in $\Q \left[{X}\right]$.

That is, $h$ has a non-trivial factorization in $\Q \left[{X}\right]$.

Since the units of $\Q \left[{X}\right]$ are the units of $\Q$, this means that $h = f g$, with $f$ and $g$ both of positive degree.

Let $c_f$ and $c_g$ be the contents of $f$ and $g$ respectively.

Define $\tilde f = c_f^{-1} f$ and $\tilde g = c_g^{-1} g$.

By Content of Scalar Multiple, it follows that $\operatorname{cont} \left({\tilde f}\right) = \operatorname{cont} \left({\tilde g}\right) = 1$.

Moreover by Polynomial has Integer Coefficients iff Content is Integer we have $\tilde f, \tilde g \in \Z \left[{X}\right]$.

Now we have:
 * $\tilde f \tilde g = \dfrac {f g} {c_f c_g} = \dfrac h {c_f c_g}$

Taking the content, and using Content of Scalar Multiple we have:
 * $\operatorname{cont} \left({\tilde f \tilde g}\right) = \dfrac 1 {c_f c_g}\operatorname{cont} \left({h}\right)$

By Gauss's Lemma on Primitive Polynomials we know that $\operatorname{cont} \left({\tilde f \tilde g}\right) = 1$.

Moreover, by Irreducible Integer Polynomial is Primitive, $\operatorname{cont} \left({h}\right) = 1$.

Therefore we must have $c_f c_g = 1$.

Thus we have a factorization in $\Z \left[{X}\right]$:
 * $\tilde f \tilde g = h$

This is a non-trivial factorization of $h$, since $f$ and $g$ have positive degree.

Thus $h$ is not irreducible in $\Z \left[{X}\right]$.