I am attempting to solve the following integral, in which I am not sure, how to proceed:
$\int\frac{1}{u^2-2}du$
I have tried the following, but I am not sure if it is correct:
$y = u^2-2$
$dy = 2u*du$
$du = \frac{dy}{2u}$
Therefore:
$\int\frac{1}{u^2-1}du = \int\frac{1}{y}*\frac{dy}{2u} = \int\frac{1}{y}*\frac{1}{2u}dy = \int\frac{1}{y2u}dy$
Solving for u:
$u^2 = y+2$
$u = \sqrt{y + 2}$
Substituting $u$ for $\sqrt{y + 2}$:
$\int\frac{1}{y2u}dy = \int\frac{1}{y2(\sqrt{y + 2})}dy$
I am not sure, where to go from here. The only thing I can remember is to use the logarithm rule where:
$\int\frac{1}{y2(\sqrt{y + 2})}dy = ln|{y2(\sqrt{y + 2})}| + C$
Would that be correct?
$$\int\frac{1}{u^2-2}du=\frac{1}{2\sqrt2}\int\left(\frac{1}{u-\sqrt2}-\frac{1}{u+\sqrt2}\right)du=\frac{1}{2\sqrt2}\ln\left|\frac{u-\sqrt2}{u+\sqrt2}\right|+C$$