I know that the square root of complex number is a multivalued function, and by definition: $\sqrt{z}=w\iff w^2=z$ i.e. the square root of z are the solutions of complex equation $w^2=z$.
Problem
I would like to evaluate the argument(s) of
$$w=\sqrt{1+i}$$
using the properties of the principal value of $\arg(\cdot)\in (-\pi, \pi]$.
By definition $$w=\sqrt{1+i}\implies w^2=1+i$$ so $\arg(w^2)=\arg(1+i)$. It's easy to show that $\arg(1+i)=\frac{\pi}{4}$ hence $$\arg(w^2)=\arg(1+i)\iff \arg(w^2)=\frac{\pi}{4}$$
Now I use the property $\arg(w^n)=n\arg(w)$ so the equation becomes $$2\arg(w)=\frac{\pi}{4}\implies \arg(w)=\frac{\pi}{8}.$$ The problem here is that $\frac{\pi}{8}$ is the argument of only one square root of $\sqrt{1+i}$. I lost the argument of the other one... but where?