I was trying to prove that $x^4+3x^3+3x^2-5$ is irreducible over $\mathbb{Q}$ but I have troubles understanding the solution. The solution reads:
Consider the polynomial mod 2: $x^4+3x^3+3x^2-5 \equiv x^4+x^3+x^2+1 = (x+1)(x^3+x+1)$. Hence if $x^4+3x^3+3x^2-5$ was reducible over $\mathbb{Q}$, it must be a product of a linear polynomial and a cubic polynomial. But it is easy to check that $x^4+3x^3+3x^2-5$ have no rational root by rational root theorem and hence it has no linear factors and the result follows.
I do not understand the statement "if $x^4+3x^3+3x^2-5$ was reducible over $\mathbb{Q}$, it must be a product of a linear polynomial and a cubic polynomial".
For example, let $f(x)=(x^2+1)(x^2+2)$ is reducible over $\mathbb{Q}$, and $f(x) \equiv (x+1)^2x^2 \equiv (x+1)(x^3+x^2)\pmod{2}$. Yet $f$ still has no linear factor. Am I missing something here?
Thanks.