Hello,
I am new to algebra and would really appreciate some analysis of the logic of the following equation. I am working through a textbook on fundamentals of mathematics and we start with the original equation:

To remove the square root and simplify the equation we square each side of the equation and the resulting formula is:
Upto that part I am fine. Next, the text book says that we should cancel x in the numerator and denominator on the left hand side only. I understand why we are only doing it on the left hand side - i.e. we are cancelling down to the simplest expression. However, I don't quite understand how we end up with the following equation after cancelling out i.e.:

Kind Regards,

Raheel