Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to solve this integral:

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

First I thought it was easy, so I tried integration by parts with $g(x)=x$ and $g'(x)=1$:

$$\int{ \frac{x^2}{(1+x^2)^{\frac{3}{2}} }}\,\mathrm dx $$

But I've made it even more complicated than before, and if I want to solve it again by parts I'll have $g(x)= \frac{x^3}{3}$ , and I will never end integrating.

How should I solve it?


Trying this way: $x= tg(t)$, then I get:

$$ \int{ \frac{1+tg^2(t)}{ \sqrt{1+ tg^2(t)} } dt}= \int{ \sqrt{ 1 + tg^2(t) } dt } $$

But it doesn't remind me anything, I still can't solve it.

share|cite|improve this question
Just put $x=\sinh t=\frac{e^t-e^{-t}}{2}$ – whatever Jul 4 '13 at 19:29
Please, try to make the title of your question more informative. E.g., Why does $a\le b$ imply $a+c\le b+c$? is much more useful for other users than A question about inequality. From How can I ask a good question?: Make your title as descriptive as possible. In many cases one can actually phrase the title as the question, at least in such a way so as to be comprehensible to an expert reader. – Lord_Farin Jul 4 '13 at 19:56
up vote 8 down vote accepted

your integral can be solved by $x=\sinh t$ and $dx=\cosh t\, dt$ which gives $$\int \frac{\cosh t}{\cosh t} \, dt = \int 1\, dt=t=\sinh^{-1} x = \ln (x+\sqrt{x^2+1})+C,$$ since $\sqrt{1+x^2}=\sqrt{1+\sinh^2 t}=\cosh t$.

share|cite|improve this answer

When you see $1+x^2$ you should without hesitation think "Let $x=\tan\theta$."

If you're comfortable hyperbolic trig functions, then metacompactness's suggestion is better. :)

share|cite|improve this answer
Weierstrass substitution (wikipedia) – The Chaz 2.0 Jul 4 '13 at 19:48
@TheChaz2.0: Say what? The rational parametrization of the circle turns a rational function of $\sin$ and $\cos$ into a rational function of $t$. Why muddy the story with that? This is a poor beginning calculus student!!! – Ted Shifrin Jul 4 '13 at 19:55
@julien: I am frequently of the opinion that many responders are here to show off and do not think about actual teaching. We can't give a beginning student learning calculus a solution using perverse sheaves, even if it's impressive to a pro. Very frustrating. I feel sorry for franklin.vp's students when he launches into a teaching career. – Ted Shifrin Jul 4 '13 at 20:08
@TedShifrin I tried this way, but I'm stuck at another integral, again with radix and I don't know how to solve it (see the edit please). The problem is that I don't know a standard criteria for solving them, I neither can rely on my intuition, is there a standard way to solve them? – Ramy Al Zuhouri Jul 4 '13 at 20:40
You need to do enough integrals that experience helps. Note that $\sqrt{1+\tan^2\theta}=\sec\theta$, and this should be on a list of trigonometric integrals that you know or find in your text. In the end, a certain amount of memorization is probably helpful. – Ted Shifrin Jul 4 '13 at 20:48

If you are in a mood for miracles, let $w=x+\sqrt{1+x^2}$. Then $$dw= \left(1+\frac{x}{\sqrt{1+x^2}}\right)\,dx=w \frac{dx}{\sqrt{1+x^2}},$$ and we end up needing to find $\displaystyle\int \frac{dw}{w}$.

share|cite|improve this answer
This is cute and not hard to guess once one has experience and knows the answer, but I would not give this to a beginning calculus student. – Ted Shifrin Jul 4 '13 at 19:59
It is a sort of a joke answer, though no more a joke (since equivalent) to the standard first-year calculus miracle integration of $\sec$. I certainly would not give that as an answer in the absence of the other answers. – André Nicolas Jul 4 '13 at 20:02
Yes, @André, I know you well enough. I'm just frustrated by the general tone of the answers and remarks here. I think I'm going to quit answering elementary questions for beginning students. – Ted Shifrin Jul 4 '13 at 20:09
That's nice, but you could quote your source! – 1015 Jul 4 '13 at 20:12
@TedShifrin: if you stop answering elementary questions, who will improve the tone of the answers? It seems like leaving the sheep to the wolves. – robjohn Oct 20 '14 at 17:18

This one of the remarkable derivative of the usual hyperbolic function $\mathrm{arsinh}$ and this is the complete list.

share|cite|improve this answer

Just to complete the OP's second suggested solution, by the change of variables $x=\tan{\theta}$ we get:

$$\int \frac{dx}{\sqrt{1+x^2}}=\int{\sqrt{1+\tan^2\theta}d\theta}=\int \sqrt{\frac{\sin^2 \theta + \cos^2\theta}{cos^2 \theta}}d\theta=\int \frac{d\theta}{\cos\theta}=\int \sec\theta \ d\theta$$

Now this is a well known integral; to take it, notice that $\frac{d}{d\theta}\left(\tan\theta + \sec \theta \right)=\sec \theta \left(\tan\theta + \sec \theta \right)$. So we will write the integral as:

$$\int \sec \theta \ d\theta = \int \frac{\sec \theta \left(\tan\theta + \sec \theta \right)}{\left(\tan\theta + \sec \theta \right)}d\theta=\ln \left(\sec \theta + \tan\theta \right)$$

Now we have to change back the variables:

$$\int \frac{dx}{\sqrt{1+x^2}}=\ln \left(\sec \left(\tan^{-1}{x} \right) + \tan\left( \tan^{-1}{x} \right) \right)=\ln \left(\sqrt{1+x^2} + x \right)$$

For the last equation, you may want to draw a right-triangle.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.