<s>[INST] What is $\int \frac{ \sqrt{(a^2 - x^2)}}{x^2}$? I tried the following trig substitution:
$x = a\sin \theta$
$$ \int \frac{ \sqrt{(a^2 - x^2)}}{x^2} = \int \frac{\sqrt{a^2 - a^2 \sin^2 \theta}}{a^2 \sin^2 \theta} = \int \frac{a \cos \theta}{a^2 \sin^2}$$
Setting  $u = \sin x$ yields:
$$\frac{1}{a} * \int u^{-2} = - \frac{1}{a \sin \theta}$$
However my textbook states that the answer should really be:
$$ -\frac{\sqrt{a^2 - x^2}+x\tan^{-1}(\frac{x}{\sqrt{a^2-x^2}})}{x}$$
Where did I mess up?
 [/INST] You forgot to substitute dx. dx = acosθdθ
</s>