I am asked to prove the radius of the curvature of the curve $$y^2(a-x)=x^2(a+x)$$ at origin is $4\sqrt{2}a$.

I tried it like this, but $\textbf{I can't get 2 in the answer}$. I check it many times and I broke my head since I can't find where it went wrong. I won't even know whether there is a $\textbf{typo in my book}$ . Please help me to find where it went wrong and correct answer for this question.

The RHS of your equation (2) after implicit differentiation should have $+y^2$ instead of $-y^2.$ Also, $y'$ (even in your current formula) is defined at $x=0.$ After all the simplification, you should get $a\sqrt{2}$ as the radius of curvature.