# Evaluating the integral $\int \sqrt{1 + \frac{1}{x^2}} dx$

$$\int \sqrt{1 + \frac{1}{x^2}} dx$$

This is from the problem calculating the arc length of $y=\log{x}$.

I tried $x = \sinh{t}$ or $\frac{1}{x} = \tan{t}$ but all failed.

• Actually, $\frac{1}{x}=\tan t$ or, equivalently, $x=\cot t$ will work fine and, as Travis points out, so will $x=\sinh t$. – user84413 Feb 20 '16 at 0:30

## 3 Answers

Hint (For $x > 0$) we can rewrite this as $$\int \frac{\sqrt{1 + x^2}}{x} dx.$$ The radical expression $\sqrt{1 + x^2}$ suggests using the substitution $x = \tan \theta$, $dx = \sec^2 \theta \,d\theta$ or the substitution $x = \sinh t$, $dx = \cosh t \,dt$

• Why did this post receive a "down vote?" The answer is solid. +1 – Mark Viola Feb 20 '16 at 0:17
• Thx :D. I will try again. Maybe I made a little mistake from my calculation. – cncritic Feb 20 '16 at 0:18
• @cncritic Cheers, if you run into more trouble, drop another comment here with some details of your attempt and I (or someone else) can give you another hint. – Travis Feb 20 '16 at 0:21

If we wish, we can avoid trigonometric or hyperbolic function substitution. For we want $$\int \frac{x\sqrt{x^2+1}}{x^2}\,dx.$$ Let $u^2=x^2+1$. Then $u\,du=x\,dx$, and our integral becomes $$\int \frac{u^2}{u^2-1}\,du.$$ Note that $\frac{u^2}{u^2-1}=1+\frac{1}{u^2-1}$, and use partial fractions.

Let $x=\sinh t$, then $dx=\cosh t \, dt$

\begin{align*} \int \frac{\sqrt{1+x^{2}}}{x} \,dx &= \int \frac{\cosh t}{\sinh t} \cosh t \, dt \\ &= \int \frac{1+\sinh^{2} t}{\sinh t} \, dt \\ &= \int (\sinh t+\operatorname{csch} t) \, dt \\ &= \cosh t+\int \frac{dt}{2\sinh \frac{t}{2} \cosh \frac{t}{2}} \\ &= \cosh t+\int \frac{\operatorname{sech}^{2} \frac{t}{2} \, dt} {2\tanh \frac{t}{2}} \\ &= \cosh t+\int \frac{d(\tanh \frac{t}{2})} {\tanh \frac{t}{2}} \\ &= \cosh t+\ln \left| \tanh \frac{t}{2} \right|+C \\ &= \cosh t+\ln \left| \frac{\cosh x-1}{\sinh x} \right|+C \\ &= \sqrt{1+x^{2}}+\ln \left| \frac{\sqrt{1+x^{2}}-1}{x} \right|+C \end{align*}