I discovered this relation while playing around with $\int\frac{\mathrm dx}{\sqrt{x^2+1}}$.
Method 1:
This is a standard integral, so it can be directly written as: $$\int\frac{\mathrm dx}{\sqrt{x^2+1}}=\sinh^{-1}x+C$$
Method 2:
The integrand can be rewritten in the form $\frac1{\sqrt{1-t^2}}$ if $t=\pm ix\left(i=\sqrt{-1}\right)$. For simplicity, I took $t=ix$. Here, I have made the assumption that the domain of the function $\sin^{-1}x$ can be extended to $\mathbb C$:
$$-i\int\frac{\mathrm d(ix)}{\sqrt{1-(ix)^2}}=-i\sin^{-1}ix+C$$
So, $\sinh^{-1}x$ and $-i\sin^{-1}ix$ differ by a constant: $$\sinh^{-1}x=-i\sin^{-1}ix+C$$
To find $C$, I put $x=0$ in the above equation: $$0=0+C$$ $$\therefore \sinh^{-1}x=-i\sin^{-1}ix$$
But since this did not seem like a rigorous proof of the formula, I tried to use the relation $\sinh x=-i\sin{ix}$ to prove it:
$$\text{Let }y=\sinh^{-1}x\implies x=\sinh y \text{ as} \sinh x \text{ is a bijective function }\forall x\in \mathbb R$$ $$\implies x=-i\sin iy$$ $$\implies ix=\sin iy$$ $$\implies \sin^{-1}ix=\sin^{-1}\sin iy$$
This is where I got stuck. I had no clue how to evaluate $\sin^{-1}\sin x$ for imaginary values of $x$. I know how to do it for real $x$, but I am not familiar with working with inverse trigonometric functions when their domain is extended to $\mathbb C$. Can someone suggest me how to proceed forward? Or is there any other way to prove this?
I tried to look up my query on this site, but could not find any relevant post. If someone does find such a post, kindly share it by commenting before downvoting without any explanation. I was able to find these links on Quora, but both of them implicitly used $\sin^{-1}\sin ix=ix, x\in\mathbb R$.