[Math] Proof: Is there a line in the xy plane that goes through only rational coordinates

irrational-numbersproof-verificationproof-writingrational numbers

Question: Is there a line in the XY plane that has all rational coordinates. Prove your answer.

Idea: There is most certainly not. I believe it can be shown that between any 2 rational points that there is at least one irrational coordinate. Therefore, there can not be a line that contains only rational points. The issue is that I am not sure how to show this. Any ideas? I am also open to any other ideas of how to do this. Thanks.

Note: this is for an intro to proofs study guide. So, I would prefer not to use advanced theorems.

Best Answer

Two proofs.

First one based on cardinality. A line has the cardinality of the continuum like $\mathbb R$, while $\mathbb Q$ is countable.

Second one. A line has an equation $ax+by+c=0$ with $(a,b) \neq (0,0)$. If $a \neq 0$ then $(-\frac{b \pi +c}{a},\pi)$ belongs to the line and the second coordinate of that point is not rational. While if $a=0$, $(\pi,-\frac{c}{b})$ belongs to the line (thanks to immibis comment).