Why does this approach to integration not work? If there is an integral $1/\sqrt{a^2-x^2}$, the answer is $\arcsin(x/a)$. But if the integral is $1/\sqrt{x^2-a^2}$ then it is $\log(x+\sqrt{x^2-a^2})$.
My question is, why can't we take $i=\sqrt{-1}$ and integrate as in the first case to get the answer as $-i \arcsin(x/a)$?