I am struggling to find the general antiderivative of the following function $f$:
$$f(x)=\frac{(x+2)^2}{\sqrt{1-\frac{1}{x^2}}}$$
I am trying to find the improper integral from $1$ to $2$. I’m aware that the function is undefined at $1$ and I know the method to carry out. I am just unsure on finding the general antiderivative of $f$.
I tried substitution of $1/x$ but I was unable to proceed further.
Can anyone help – I’ve spent a few days on this problem and don’t seem to be getting anywhere. Thanks.
The function is only defined for $x<-1$ or $x>1$.
Let's to the latter case, where the function can be rewritten as $$ \frac{x(x+2)^2}{\sqrt{x^2-1}} $$ Here a substitution $x=\cosh t$ (with $t>0$) seems good, because then $dx=\sinh t\,dt$ and $\sqrt{\cosh^2t-1}=\sinh t$, so the integral becomes $$ \int\cosh t(\cosh t+2)^2\,dt $$ which is essentially elementary: \begin{align} &\int \cosh^3t\,dt=\int(\sinh^2t+1)\cosh t\,dt=\frac{\sinh^3t}{3}+\sinh t \\[6px] &\int 4\cosh^2t\,dt=\int 4\frac{\cosh2t+1}{2}\,dt=\sinh2t+2t \\[6px] &\int 4\cosh t\,dt=4\sinh t \end{align}
For $x<-1$, it is similar.