In my math book it says that it is practical to know the following primitive, a is any real number. $$\int \frac 1 {\sqrt{x^2 + a}} \, dx = \ln |x + \sqrt{x^2 + a}|+ C$$
There is no more explanation about this, so i was wondering if someone could explain this to me.
What im trying to do is following.
$$\int \frac 1 {\sqrt{x^2 + a}} \, dx = \int (x^2 + a)^{-1/2} \, dx = \frac{(x^2 + a)^{1/2}} x + C$$
In the last step i use the power formula for the derivative and the inner derivative which give me $2x$. I cant see were im doing it wrong.