Find a holomorphic function on $\mathbb{C}$ \ $( (-\infty,-1]\cup [1,\infty) ) $ such that $f(0)=i$ and $(f(z))^2=z^2-1$.
I really don't have idea how to start it. The first thing I tried to do is consider $f(z)=(z^2-1)^{1/2}$ and choose good branch to satisfy the conditions, but it didn't work to me.