Why in these types of questions(the image) I need to multiply the dominator by itself and by the nominator. and why I can't just multiply it just by itself.

Why in these types of questionsthe image I need to multiply the dominator by itself and by the nominator and why I cant just multiply it just by itself class=