I'm working on the following problem from the Texas A&M Fall 2013 graduate level qualifying exam:
Define $\Omega:=\mathbb{C}\setminus [-i,i]$, that is, the complex plane with a slit along the imaginary axis from $-i$ to $i$. Suppose that $f\in H(\Omega)$ is such that $(f(z))^2=z^2+1$ for every $z\in \Omega$. Prove that $f$ is odd, namely, $f(z)=-f(-z)$ for all $z\in\Omega$.
I started by defining $g:\Omega\to\mathbb C$ by $g(z)=f(z)+f(-z)$; clearly, it suffices to show that $g\equiv 0$ on $\Omega$. By a simple computation, one can see that $[g(z)]^2=2f(z)g(z)$. I then tried to prove the claim by contradiction - supposing that there is some $c\in \Omega$ such that $g(z)\neq 0$, but things started to get messy, and I figured I was on the wrong track.
Edit: changed brackets to parentheses.
For $z = it$ with $t > 1$ this implies $f(it)^2 = 1-t^2$ and therefore $f(it) = \pm i \sqrt{t^2-1}$. By continuity therefore either $f(it) = i \sqrt{t^2-1}$ or $f(it) = -i\sqrt{t^2-1}$ for all such $t$. Now use analytic continuation into all of $\Omega$.