I have been scratching my head about this problem all day. If one takes the derivative of $\cos^{-1}\frac{x}{a}$, it is quite straightforward to show that the result is $\frac{-1}{\sqrt{a^2 - x^2}}$. However, when I compute the integral of this result using substitution, I obtain the following:
\begin{align}I = \int \frac{-\text{d} x}{\sqrt{a^2 - x^2}} &= \int \frac{-\text{d} x}{a\sqrt{1 - \frac{x^2}{a^2}}} \end{align} and then setting $\sin u = \frac{x}{a}$, \begin{align} \text{d} (\sin u ) &= \cos u \, \text{d} u = \frac{1}{a}\text{d} x; \\ \Rightarrow I &= \int \frac{-\cos u }{\sqrt{1 - \sin^2 u}}\text{d} u \\ &= \int \frac{-\cos u}{\sqrt{\cos^2 u}}\text{d} u \\ &= \int -\text{d} u = -u. \end{align}
Finally we have \begin{align} \sin u &= \frac{x}{a}, \\ \Rightarrow -u & = I = - \sin^{-1}\frac{x}{a}. \end{align}
Anybody have any insight on this? Would be greatly appreciated. I can't see where I'm going wrong or how these could be equivalent values, the only inkling I have is that the inverse trig ratios are not true functions, but I'm not even sure that this is relevant.