It is important to note that
TheoremΒ 2.16.2 only gives us a
partial or
nondefinitive test for irreducibility. That is, with the setup of the theorem, if
\(\overline{f}\) does not factor as a product as a polynomial of smaller degree, then
\(f\) is irreducible. However, there is no useful converse to this statement. For example, it is not true that if
\(\overline{f}\) is reducible in
\(R/P[x]\) for all prime ideals then
\(f\) is reducible in
\(R[x]\text{;}\) nor is this true if we look at
\(\overline{f}\in R/I[x]\) for all nontrivial ideals (prime or otherwise).
Indeed you will show in homework the the polynomial
\(f(x)=x^4+1\in \Z[x]\) is irreducible, and yet
\(\overline{f}\) is reducible in
\(\Z/p\Z[x]\) for all prime integers
\(p\text{.}\) By the way, in this case it is not true that
\(f\) is reducible modulo all nonzero integers
\(n\text{:}\) indeed, you can show that
\(x^4+1\) is irreducible in
\(\Z/4\Z\) in a straightforward manner.
Similarly, it is possible (but more difficult) to show that
\(f(x)=x^4-72x^2+4\) is irreducible modulo
\(n\) for
all nonzero integers
\(n\text{,}\) and yet
\(f\) is irreducible in
\(\Z[x]\text{.}\)