Let $a ,b$ be non-zero integers such that $\frac{a^2 + \sqrt{2}}{a} = \frac{b^2 + \sqrt{2}}{b}$. Prove that $a=b$.
My proof:
- Assume that $a \neq b$. Then, $a - b \neq 0$, implying that one can divide by $a-b$.
- The given expression simplifies like so
$$ a^2b +b\sqrt2=ab^2+a\sqrt2 \\ ab(a-b) = \sqrt2(a-b) \\ ab = \sqrt2 $$
In the third step here, we have divided by $a-b$.
- The conclusion $ab = \sqrt2$ is absurd. The product of two non-zero integers cannot be $\sqrt2$.
$\implies$ the initial assumption is false. $a = b \text{ QED.}$
I think something is wrong with my proof.
- Have I taken into account during the assumption that $a$ and $b$ are integers?