Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

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

The integral does not diverge.

Choose $u = e^x$ so $\mathrm dx = \frac{\mathrm du}{e^x}$ so $\int_0^{\infty}(\frac{e^x}{e^{2x}+1})\mathrm dx$ becomes $\int_1^{\infty}( \frac{\mathrm du}{u^2 +1})$ but it diverges.

What is the fallacy here? I clearly made some mistake in changing the base but I cannot spot it.

share|cite|improve this question
In your second link, you integrated with respect to $x$. This works fine. – Dylan Moreland Aug 22 '11 at 16:05
By the way, it's the integral that doesn't diverge. There's no equation in sight. – Hans Lundmark Aug 22 '11 at 18:37
up vote 10 down vote accepted

The fallacy is the claim that $\int_1^{\infty}\frac{du}{u^2+1}$ diverges.

$$\begin{align*} \int_1^{\infty}\frac{du}{u^2+1} &= \lim_{t\to\infty}\int_1^t\frac{du}{u^2+1}\\ &= \lim_{t\to\infty}\left(\arctan(u)\Bigm|_{1}^{t}\right)\\ &= \lim_{t\to\infty}\left(\arctan(t) - \arctan(1)\right)\\ &= \lim_{t\to\infty}\left(\arctan(t) - \frac{\pi}{4}\right)\\ &= \frac{\pi}{2} - \frac{\pi}{4} = \frac{\pi}{4}. \end{align*}$$

The second fallacy is believing that Wolframalpha is never wrong (even if you put in the wrong input).

share|cite|improve this answer
I upvoted because of the last sentence... :D – J. M. Aug 23 '11 at 5:37

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.