This is LaTeX code:

[latex]
\sqrt{\left(\sqrt{x_1^2+y_1^2}\right)^2+z_1^2}=\sqrt{x_1^2+y_1^2+z_1^2}.
[/latex]