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?
$x = a\sin \theta \implies \color{blue}{ dx = a\cos \theta \,d\theta}$
$$ \int \frac{ \sqrt{(a^2 - x^2)}}{x^2}\,\color{blue}{dx} = \int \frac{\sqrt{a^2 - a^2 \sin^2 \theta}}{a^2 \sin^2 \theta}\,\color{blue}{(a \cos \theta\,d\theta)} = \int \frac{a^2 \cos^2 \theta\, d\theta }{a^2 \sin^2 \theta} = \int \frac {\cos^2 \theta}{\sin^2 \theta}\; d\theta = \int \cot^2 \theta \,d\theta $$
Or $$=\int \frac{a^2 (1 -\sin^2 \theta)\, d\theta }{a^2 \sin^2 \theta} = \int \frac {1-\sin^2 \theta}{\sin^2 \theta}\; d\theta.$$
$$ = \int \frac 1{\sin^2 \theta} \, d\theta - \int \,d\theta$$
$$ = \left(\int \csc^2 \,d\theta\right) - \theta + c$$
$$= -\cot\theta - \theta + C$$
and recall that, since $x = a\sin \theta,$ then $\sin \theta = \frac xa$ and so $\theta = \sin^{-1}\left( \frac xa\right)$
That gives us $$= -\sin^{-1}\left(\frac xa\right) - \cot\left( \sin^{-1}\left(\frac xa\right)\right)+C\tag{1}$$
Now using that $$\cot \left(\sin^{-1}\frac xa\right) = \frac{\sqrt{1 - \left(\frac {x^2}{a^2}\right)}}{\frac xa},$$
we get that the integral is equal to $$- \frac{ a\sqrt{1 -\left(\frac xa\right)^2} + x \sin^{-1}\left(\frac xa\right)}{x}+C$$
And under appropriate restricted values for x and a, this is equivalent to
$$-\left(\frac{\sqrt{a^2 - x^2} + x \tan^{-1}\left(\frac x{\sqrt{a^2 - x^2}}\right)}{x}\right)+C\tag{form you seek}$$
Note that the result we obtain at $(1)$ is perfectly correct, as well.