In Understanding Real Analysis, exercise 1.4.5 asks us to prove that between any two real numbers a and b there is at least one irrational number. The hint says to do this by considering a-sqrt(2) and b-sqrt(2). I believe I have proven it, but not using the hint. How can I prove it using the hint?
My proof: If a and b were both rational then $a+(\sqrt{2}/2)(b-a)$ is an irrational number between a and b
If a were rational and b were irrational, or a were irrational and b were rational, then $(a+b)/2$ would be an irrational number between a and b
If a and b were both irrational, then choose q between 1 and b/a. q*a would be an irrational number between a and b.
Is my proof correct and also how can I prove it using the hint?