I am reading complex analysis by Gamelin and I am having trouble understanding the square root function.
The principal branch of $\sqrt{z}$ ( $f_1(z)$ ) is defined as $|z|^{\frac 1 2} e^{\frac{i \operatorname{Arg}(z)}{2}}$ for $z \in \mathbb{C} - (-\infty,0]$ and $f_2(z)$ is defined as $-f_1(z)$ where $\operatorname{Arg}(z) \in (-\pi , \pi]$
By this definition, what is $\sqrt{-r} $ where $r$ is a non negative real number? Of course the answer is $i\sqrt{r}$ but the definition of square root functions doesn't apply here
What is $i$ then? $i:=\sqrt{-1}$ but how? We didn't define the square root function for negatives but we still use $i$ to define complex numbers. Shouldn't the definition of square root function taught before defining $i$?
and defining $i^2=-1$ without define $i$ as either $\pm \sqrt{-1}$ is also very strange because we want extended function to be continuous and choosing $\pm \sqrt{-1}$ will make this impossible although $i$ must be one of the two (after defining the square root of negatives).
Why do we even care so much about continuity? (I am sure there is an answer is the rest of the book but I am still a beginner), all of this confusion will disappear if we just made $i:= \sqrt{-1}$, we seem all to agree to use $i:= \sqrt{-1}$ in solving problems involving complex numbers,even wolfram alpha uses that and every high school math book and some engineering math books (I know the last know types of books lacks rigorousness in general but what I am saying is is seems normal to just define $i$ that way ), so why all of that confusion?
I asked some of my graduate friends and all of them told me the they just define $i:=\sqrt{-1}$ without any of these complications.
Now I am more confused, do we define $i:=\sqrt{-1}$ or not? If we do what did I get wrong from the definition of principal root?
If $r$ is a non-negative real number, then $-r\notin\Bbb C\setminus(-\infty,0]$, and therefore $f$ is undefined at $-r$.