Considering the assertion: The polynomial $x^3 - 3x + 1$ has no rational roots, the following is a proof by contradiction:
Let a root of $x^3 - 3x + 1$ be written in the form of $\frac{p}{q}$ where $p$ and $q$ are coprime.
Thus $\frac{p^3}{q^3}$ - $\frac{3p}{q} + 1 = 0$
$\frac{p^3}{q^3}$ - $\frac{3p}{q} = -1$
By multiplying both sides by $q^3$ we have
$p^3 -3q^2p = -q^3$
$p^3 + q^3 = 3q^2p$
The above equation only holds true if both p and q are even, which I have obtained by trying all 4 cases.
Case 1
p = odd, q = even.
$odd + even \neq 3*odd*even^2 \neq even$
Case 1 is false.
Case 2
p = even, q = odd.
$even + odd \neq 3*even*odd^2 \neq even$
Case 2 is false.
Case 3
p = odd, q = odd.
$odd + odd \neq 3*odd*odd^2 \neq odd$
Case 3 is false.
Case 4
p = even, q = even.
$even + even = 3*even*even^2 = even$
Case 4 is true.
Now we arrive at the contradiction of the initial condition that $p$ and $q$ are coprime. Thus the polynomial $x^3 - 3x + 1$ has no rational roots.
The question is, what is the proper way to present such a proof? It seems like writing out all the cases and treating the words odd and even as pseudo variables is a very crude and improper and unofficial way of presenting a proof.
I'm looking for some kind of algebraic presentation that proves $p$ and $q = 2k$ for some $k \in \mathbb Z $
Update
Ok maybe I wasn't very clear in stating what I'm asking for. I'm looking for an algebraic way of proving that $p^3 + q^3 = 3q^2p$ ONLY holds true when both $p$ and $q$ are even numbers, very much unlike the makeshift proof I did above by listing out all 4 cases and checking them one by one.
Gauß'lemma, hence the possibiliites are only $\pm1$, none of which is a root. – Bernard Jun 29 '16 at 16:14