I tried using a substitution $x=\frac{a}{b}\sec \theta $ to solve
$$\int{\frac{\sqrt{{{b}^{2}}{{x}^{2}}-{{a}^{2}}}}{{{x}^{2}}}dx}$$
Obviously, $dx=\frac{a}{b}\sec \theta \tan \theta d\theta $. In other words,
$\begin{align} \int{\frac{\sqrt{{{b}^{2}}{{x}^{2}}-{{a}^{2}}}}{{{x}^{2}}}dx} &=\int{\frac{\sqrt{{{b}^{2}}{{\left( \frac{a}{b}\sec \theta \right)}^{2}}-{{a}^{2}}}}{{{\left( \frac{a}{b}\sec \theta \right)}^{2}}}\left( \frac{a}{b}\sec \theta \tan \theta \right)d\theta } \\ &=\int{\frac{\sqrt{{{\sec }^{2}}\theta -1}}{\frac{1}{b}\sec \theta }\left( \tan \theta \right)d\theta } \\ & =b\int{\frac{{{\tan }^{2}}\theta }{\sec \theta }d\theta } \\ &=b\int{\frac{{{\sec }^{2}}\theta -1}{\sec \theta }d\theta } \\ \end{align}$
But I feel there’s something wrong with my solution. Perhaps there’s a more effective/better way to solve it?
Hint
Use one integration by parts $$\int{\frac{\sqrt{{{b}^{2}}{{x}^{2}}-{{a}^{2}}}}{{{x}^{2}}}dx}=-\frac{\sqrt{b^2 x^2-a^2}}{x}+\int \frac{b^2}{\sqrt{b^2 x^2-a^2}}\,dx$$