Let $f(x)=a_0+\dots +a_n x^n \in \mathbb{Z}[x]$. Let $p$ be a prime with $p \nmid a_n$.
We define $\overline{f}(x)=\overline{a_0}+\dots +\overline{a_n} x^n \in \mathbb{Z}_p[x]$
How can I show that if $\overline{f}(x)$ is irreducible in $\mathbb{Z}_p[x]$ then $f(x)$ is irreducible in $\mathbb{Z}[x]$ and therefore also in $\mathbb{Q}[x]$ ?
Could you give me some hints?
If you factorize $f=gh$ in $\Bbb Z[x]$, then $\bar f=\bar g\bar h$ in $\Bbb Z_p[x]$.