We prove the existence of a factorization by induction on the degree of \(f(x)\text{.}\) If \(f(x)\) has degree \(0\text{,}\) then it is equal to \(c\) for some \(c \in F\text{.}\) Now suppose that the degree of \(f(x)\) is greater than \(0\text{.}\) If \(f(x)\) is irreducible, then let \(c\) be the leading coefficient of \(f(x)\) and \(p_1(x) = f(x)/c\) is a monic, irreducible polynomial such that \(f(x) = c p_1(x)\text{.}\) If \(f(x)\) is not irreducible, then \(f(x) = g(x) h(x)\) for some polynomials \(g(x)\) and \(h(x)\) of smaller degree. By induction, both \(g(x)\) and \(h(x)\) can be written as the product of a constant an irreducible, monic polynomials, and so \(f(x)\) can as well.
We now want to prove uniqueness of the factorization. Suppose we have two factorizations
\begin{equation*}
c p_1(x) \cdots p_n(x) = d q_1(x) \cdots q_m(x).
\end{equation*}
Because the \(p_i(x)\) and the \(q_j(x)\) are monic, the leading coefficient on the left is \(c\) and on the right it is \(d\text{.}\) Therefore, \(c = d\text{.}\)
To show the equality of the irreducible factors, up to reordering, we use induction on
\(n\text{.}\) If
\(n=0\text{,}\) then
\(f(x)\) is a constant and so
\(m\) must be
\(0\text{.}\) Now suppose that
\(n > 0\text{.}\) By Lemma
5.13,
\(p_1(x)\) divides one of
\(q_1(x), \ldots, q_m(x)\text{.}\) By reordering, we can assume that
\(p_1(x)\) divides
\(q_1(x)\text{,}\) and since
\(q_1(x)\) is irreducible and both
\(p_1(x)\) and
\(q_1(x)\) are monic, then
\(p_1(x) = q_1(x)\text{.}\) Cancelling these factors, we have that
\(p_2(x) \cdots p_n(x) = q_2(x) \cdots q_m(x)\text{,}\) and by the inductive hypothesis
\(n-1 = m-1\text{,}\) and these factors are the same up to reordering, which completes the proof.