
\[\sqrt{z^{2}}=\begin{cases}z,&\Re z\geq 0,\\
-z,&\Re z\leq 0.\end{cases}\]