What you have posted are equalities. Are you asking how the right hand side is got from the left hand side?

If you go to the Latex subforum you will learn how to post mathematical equations and symbols, including radical signs: http://www.mathhelpforum.com/math-help/latex-help/