I was going through the book of Gallian, Contemporary Abstract Algebra, and got the following result:
The polynomial $f(x) = 2x^2 + 4$ is irreducible over $\mathbb{Q}$ but reducible over $\mathbb{Z}$, since $2x^2 + 4 = 2(x^2 + 2)$ and neither $2$ nor $x^2 + 2$ is a unit in $\mathbb{Z}[x]$.
I am not getting how the polynomial is reducible over $\mathbb Z$. Can anyone explain this point? Thanks for the help.