Overview
I am attempting to replicate a proof Hardy provided in his book - A Course of Pure Mathematics, yet am having trouble with one of the steps. I was wondering if someone can explain how he made a step in the proof.
Statement
If $M$ and $N$ are integers which have no common factor, and neither of which is a perfect square, $\sqrt{M}$ and $\sqrt{N}$ are dissimilar surds.
His Proof up to the Point of Confusion
Suppose that $\sqrt{M}$ and $\sqrt{N}$ are similar surds. Then we can instead write them as: $\sqrt{M}=\dfrac{p}{q} \sqrt{\dfrac{t}{u}}$ and $\sqrt{N}=\dfrac{r}{s} \sqrt{\dfrac{t}{u}}$
Then $\sqrt{MN}$ is evidently rational, and therefore (from a previous example) integral.
The example he is referring to
An algebraic equation,
$x^n+p_1 x^{n-1} +p_2 x^{n-2}+...+p_n=0$
with integral coefficients, cannot have a rational but non-integral root.
My Question
How was Hardy able to determine that $\sqrt{MN}$ was integral from that example he was referring to?