In this question, it is said that the domain of analyticity of the function $f(z)=\sqrt{z^2-1}$ over the branch $(0,2\pi)$ is $\mathbb{C} \setminus ((-\infty,-1) \cup (1,\infty))$.
My question: I would like to know how to show this affirmation.
My attempt: We have $f(z)=\sqrt{z^2-1}=e^{\frac{1}{2}\ln(z^2-1)}$, where $ln(z)$ is analytic in $\mathbb{C} \setminus [0,\infty)$. Let $z=x+iy$. So, $f(z)$ it is not analytic if $z^2-1=a$ for $a \in \mathbb{R}$ and $a\geq 0$ and we have the following system:
$$ \begin{split} x^2-y^2-1=a \hbox{ and } xy=0. \end{split} $$ But I don't know how to complete the proof.
Given that the function is a root of a polynomial, it does not have any singularities, but it does have branch cuts. Since it is specified that $\arg(z^2-1)\in(0,2\pi)$, this means that points lying on $\mathbf R^+$ are discontinuous, that is, those points satisfying $\mathfrak{Re}\{z^2-1\}>0$ and $\mathfrak{Im}\{z^2-1\}=0$.
We know $z^2-1=(x+iy)^2-1=x^2-y^2-1+2ixy$, therefore: $$ \left\{ \begin{aligned} &x^2-y^2-1>0\\ &2xy=0 \end{aligned} \right. $$ If $x=0$, we clearly have a contradiction: $y^2+1<0$. Thus, the correct branch would be $y=0\wedge|x|>1$.
Finally, we can conclude $f(z)$ is analytic at $\mathbb C \setminus \{(-\infty,-1)\cup(1,\infty)\} $.