Is $f(X)=X^4-22X^2+1\in\mathbb{Q}[X]$ irreducible?
The solution proved that it is irreducible. However, it says that if $f$ factors in $\mathbb Z[X]$, then either it can be factored to a quadratic or has a linear factor. And that the only possible linear factors are $X + 1$ and $X - 1$. I can't see how these linear factors were found.
Any idea is appreciated.
The reason we are able to restrict it to $x+1$ and $x-1$ is the rational root theorem which says, among other things, that if a monic integer polynomial has rational roots, then its roots are integers and they divide the constant term. Since the constant term is $1$, the only possible rational roots the polynomial could have are $\pm 1$, which gives those possible linear factors.