Background: This is Brown, Churchill, Complex Variables ch 4,sec42, prob 9
My attempt: $$\int_{-2}^{2}(\sqrt{4-y^2}-iy)\overset{\frac{dz}{dy}}{\overbrace{\left (\frac{-y}{\sqrt{4-y^2}}+i\right )}}dy$$
$$\int_{-2}^{2}i\left (\frac{y^2}{\sqrt{4-y^2}}+\sqrt{4-y^2} \right ) dy
$$
$$\int_{-2}^{2}i\left (\frac{4}{\sqrt{4-y^2}}\right )dy\tag{1}$$
$$\int_{-2}^{2}\left (\frac{-4}{\sqrt{y^2-4}}\right )dy$$
$$-4\cosh^{-1}(y/2)|_{-2}^2$$
Now aside from arccos having a branch cut along the real axis $(-\infty,1)$ making it undefined, what did I do wrong if anything. (Noting at line 1 integrating as $\left[ 4i\sin^{-1}(y/2)\right ]_{-2}^{2}$ gives $4\pi i$. I've tried using the definition to see if the answers are interchangeable along some branch cut.
$$-\cosh^{-1}(z)=-\ln(z+(z^2-1)^{1/2})$$ $$=-\ln(z+|z^2-1|^{1/2}e^{i/2\arg(z^2-1)})=-\ln(z+|z^2-1|^{1/2}e^{i/2[\arg(1-z^2)+\pi]})$$ $$=-\ln(z+i|1-z^2|^{1/2}e^{i/2\arg(1-z^2)})=-\ln(z+i(1-z^2)^{1/2})$$
Which is starting to look like $\sin^{-1}(z)=-i\ln[iz+(1-z^2)^{1/2}]$ I may be one reciprocal and power of i away if someone can help me.
On a related note, how could I convert an answer when integrating $$\frac{d}{dz}\cos^{-1}(z)=\frac{-1}{(1-z^2)^{1/2}}$$ $$\frac{d}{dz}\sin^{-1}(z)=\frac{1}{(1-z^2)^{1/2}}$$
What shows $-1\cdot\cos^{-1}(z)=i\ln[z+i(1-z^2)^{1/2}]=\sin^{-1}=-i\ln[iz+(1-z^2)^{1/2}]$? I'm interested in a link or calculation.