I'm trying to construct a polynomial $f(x)$ such that $f(x)$ is reducible over $\mathbb{Z}$ and $\mathbb{R}$ but irreducible in $\mathbb{Q}$.
So far I've constructed a polynomial $f(x) = x^2 + 2x + 2$, which I just want to know how to check if it is reducible or irreducible over $\mathbb{R}$ and $\mathbb{Z}$. Also I would like some advice on how to construct a polynomial that would satisfy the conditions given if such a polynomial exists.
I wonder if there is anything more basic than $2 x^2 - 4$.