To demonstrate it in this way you must know (or assume) that $\sqrt2\
otin \Bbb Q$. So actually you didn't demonstrate anything. The point of the proposition is to show that you can't write $\sqrt2$ as $\frac pq$ where $p,q \in \Bbb Z$.
If you need the usual demonstration I can write it, but I think it's the one written in your book.