Use integration by subsitution to show that $$ \int \frac{1}{\sqrt{x^2 + a^2}}\, dx = \sinh^{-1} \left( \frac{x}{a} \right) +C $$
I’m at a loss to know what substitution to use for this integration. I tried using $u = \sqrt{x^2+a^2}$, but I just got $\ln(u)$ and got stuck from there.
I’m new to hyperbolic trig so any pointers are much appreciated as I’m used to being given what value to use for the substitution.
Hint: sub $$x=a\tan(\theta)\to dx=a\sec^2\theta d\theta$$ and use $$\tan^2\theta+1=\sec^2\theta$$