My teacher solved the following problem:
Find out if the polynomial $F(X) = X^3+3X+2$ is irreducible or reducible over $\mathbb{Q}[X]$.
His proof was the following one: The root of the polynomial are of form $\frac{a}{b}$.
$F\left(\frac{a}{b}\right) = \left(\frac{a}{b}\right)^3 + 3\left(\frac{a}{b}\right) + 2 = 0 $ | ( we multiply by $b^3$)
$a^3 +3ab^2 +2b^3 = 0 $
$a^3+b^2(3a+2b) = 0 $
From here he deduced that $b\mid a^3$ and that $a \mid 2$. How did he find this out? Why is this true? From this he further stated that $b=\pm1$ and $a=\pm2$.
Can someone help me out with the deduction that $b \mid a^3$ and $a\mid 2$?