I was dealing with this equation today
$ x - k = \sqrt{x^2 + y^2} + \sqrt{(x-a)^2 + y^2}$
Where $a$ and $k$ are constants. I wanted to get rid of the square roots, so I squared the equation. Then I realised that squaring the above equation creates a set of extraneous solutions, so, my question is, is there a way that I can get rid of the extraneous solutions in this equation ? How do I do that ?
Thank you in advance.