$a(x-a)^2+b(x-b)^2=0$ has one solution; $a, b$ are not $0$. Prove $|a|=|b|$
simplifying the equation I got:
$$(a+b)x^2-2(a^2+b^2)x+(a^3+b^3)=0$$
solving for the Discriminant $D=0$, I got: $$a(a^2b-2ab^2+b^3)=0$$ and since $a$ cannot equal $0$, I got: $$a=b \implies |a|=|b|$$ In the same way I also got: $$b=a$$
But I don't need the absolute values of $a, b$ because I got $a=b$ (which means $|a|=|b|$ is not needed) and checking in the equation $a$ cannot equal $-b$ because then the equation will have infinitely many solutions instead of just one as specified in the task.
Now, because I need to prove that $|a|=|b|$ and not that $a=b$, I think that I am missing something. So, am I missing something or is my solution correct?