52
$\begingroup$

We had our final exam yesterday and one of the questions was to find out the value of: $$\int_{0}^{\infty} \frac {\ln x}{1+x^2} \mathrm{d}x $$ Interestingly enough, using the substitution $x=\frac{1}{t}$ we get - $$-\int_{0}^{1} \frac {\ln x}{1+x^2} \mathrm{d}x = \int_{1}^{\infty} \frac {\ln x}{1+x^2} \mathrm{d}x $$and therefore $\int_{0}^{\infty} \frac {\ln x}{1+x^2} \mathrm{d}x = 0 $

I was curious to know about the theory behind this interesting (surprising even!) example.

Thank you.

$\endgroup$
6
  • $\begingroup$ Thanks. What is antisymmetric? $\endgroup$ Commented Jul 13, 2012 at 13:37
  • 4
    $\begingroup$ i.e. an odd function $\endgroup$
    – anon
    Commented Jul 13, 2012 at 13:38
  • $\begingroup$ Ah, OK. I wasn't familiar with "antisymmetric"... $\endgroup$ Commented Jul 13, 2012 at 13:40
  • $\begingroup$ @J.M. - OK sir. $\endgroup$ Commented Jul 13, 2012 at 14:50
  • $\begingroup$ You should make that substitution, certainly. But you should also show the integral converges. $\endgroup$
    – GEdgar
    Commented Dec 8, 2012 at 18:07

9 Answers 9

30
$\begingroup$

When I see an $1 + x^2$ in the denominator it's tempting to let $\theta = \arctan(x)$ and $d\theta = {1 \over 1 + x^2} dx$. When you do that here the integral becomes $$\int_0^{\pi \over 2} \ln(\tan(\theta))\,d\theta$$ $$= \int_0^{\pi \over 2} \ln(\sin(\theta))\,d\theta - \int_0^{\pi \over 2} \ln(\cos(\theta))\,d\theta$$ The two terms cancel because $\cos(\theta) = \sin({\pi \over 2} - \theta)$.

Also, if you do enough of these, you learn that doing the change of variables from $x$ to ${1 \over x}$ converts a ${dx \over 1 + x^2}$ into $-{dx \over 1 + x^2}$, so it becomes one of the "tricks of the trade" for integrals with $1 + x^2$ in the denominator. An example: show this trick can be used to show that the following integral is independent of $r$: $$\int_0^{\infty} {dx \over (1 + x^2)(1 + x^r)}$$

$\endgroup$
4
  • 11
    $\begingroup$ $\int_0^{\infty} {dx \over (1 + x^2)(1 + x^r)}=\int_0^1 {dx \over (1 + x^2)(1 + x^r)}+\int_1^{\infty} {dx \over (1 + x^2)(1 + x^r)}=\int_1^{\infty} {t^r \over (1 + t^2)(1 + t^r)}dt+\int_1^{\infty} {dx \over (1 + x^2)(1 + x^r)}=\int_1^{\infty} {dt \over (1 + t^2)}$. very nice indeed! $\endgroup$ Commented Jul 14, 2012 at 18:40
  • $\begingroup$ For future reference for dummies like me; in the above comment, x was substituted for $\frac{1}{t}$ in the first term of the second expression going to the next step. $\endgroup$
    – harry
    Commented Apr 6, 2021 at 3:01
  • $\begingroup$ We don't know if the two improper integrals $\int_0^{\pi \over 2} \ln(\sin(\theta))\,d\theta$ and $ \int_0^{\pi \over 2} \ln(\cos(\theta))\,d\theta$ exist. We only know that for $\alpha,\beta$ with $0<\alpha<\beta<\frac{\pi}{2}$ the two Riemann-integrals $\int_{\alpha}^{\beta} \ln(\sin(\theta))\,d\theta$ and $ \int_{\alpha}^{\beta} \ln(\cos(\theta))\,d\theta$ exist. If we now let $\alpha\to0$ and $\beta\to \frac{\pi}{2}$ we don't know what happens. So applying substitution rule to the limits is not well defined. Maybe you can provide a few more details on this concern, thanks in advance :) $\endgroup$
    – Philipp
    Commented Jan 6, 2022 at 16:39
  • $\begingroup$ @Philipp Since $\sin \theta \sim \theta$ as $\theta \rightarrow 0^+$, the improper integral of $\ln (\sin \theta)$ exists just as the improper integral of $\ln (\theta)$ does. A similar thing holds for the cosine integral since $\cos \theta = \sin({\pi \over 2} - \theta)$. In general if the absolute value of the original integrand integrates to something finite, the same will be true after a variable change. $\endgroup$
    – Zarrax
    Commented Jan 8, 2022 at 23:32
21
$\begingroup$

I'm not exactly sure what kind of theory behind the integral you're looking for, but to me the points that pop out are that $dx/x=d(\log x)$ and $1+x^2=(1/x+x)x$ so that we have

$$\frac{\log x}{1+x^2}dx=\frac{u\, du}{e^{-u}+e^u} $$

after the change of variables $u=\log x$. As $x$ ranges over $(0,\infty)$, $u$ ranges over $\Bbb R$, and the integrand in the right-hand side, $u/(e^{-u}+e^u)$, is an antisymmetric aka odd function of $u$. Integrals of odd functions on intervals that are symmetric about the origin are always zero.

$\endgroup$
1
  • 2
    $\begingroup$ With improper integrals this is not completely true: we would have $\int_{-\infty}^\infty x dx = 0$, but that integral does not converge. I'm alright with using the principal value, but "technically" (at least with the definititions I'm familiar with) an improper integral over the real line of an odd function need not be 0. $\endgroup$
    – Andy
    Commented Jan 30, 2013 at 10:06
14
$\begingroup$

In hindsight, one can extract a general principle from this example. Let $f(x)$ be a say continuous function. Suppose also that $$\frac{1}{x}f\left(\frac{1}{x}\right)=-xf(x)$$ for all relevant $x$. Then for any $b\ne 0$, $$\int_{1/b}^b f(x)\,dx=0.\tag{$1$}$$

Under the same conditions, if the improper integral converges, we have $$\int_0^\infty f(x)\,dx=0.$$

The proof of either result is the same as the proof by anon in the particular case $f(x)=\frac{\log x}{1+x^2}$. For $(1)$, break up the integral into two parts, $1/b$ to $1$ and $1$ to $b$. For the integral between $1/b$ and $1$, make the change of variable $u=1/x$.

Remark: If a trick or idea solves a concrete problem, one can reverse engineer and identify the problems for which essentially the same idea works. In this case, the reverse engineering does not seem to produce something of general interest. Instead, one should just draw the general lesson: Symmetry is your friend. Exploit it. (That rewording of Polya didn't come out sounding quite right.)

$\endgroup$
7
$\begingroup$

It is sufficient to consider $x={e}^{t}$. Then $dx={e}^{t}\,dt$. we have:

$$\int_{0}^{\infty}\frac{\ln x}{1+x^{2}}dx=\int_{-\infty}^{\infty}\frac{t{e}^{t}}{1+{e}^{2t}}dt=0$$

Recall that the function $\frac{t\mathrm{e}^{t}}{1+e^{2t}}$ is odd.

$\endgroup$
4
$\begingroup$

At the risk of stating the obvious, I would suggest examining the curve of ${\ln x}\over{(1+x^2)}$:

enter image description here

The geometrical interpretation is that the area below the $x$-axis down to the curve from 0 to 1 is equal to the area above the $x$-axis up to the curve from 1 to infinity.

$\endgroup$
3
$\begingroup$

$\newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle} \newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace} \newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack} \newcommand{\ceil}[1]{\,\left\lceil\, #1 \,\right\rceil\,} \newcommand{\dd}{{\rm d}} \newcommand{\ds}[1]{\displaystyle{#1}} \newcommand{\expo}[1]{\,{\rm e}^{#1}\,} \newcommand{\fermi}{\,{\rm f}} \newcommand{\floor}[1]{\,\left\lfloor #1 \right\rfloor\,} \newcommand{\half}{{1 \over 2}} \newcommand{\ic}{{\rm i}} \newcommand{\iff}{\Longleftrightarrow} \newcommand{\imp}{\Longrightarrow} \newcommand{\pars}[1]{\left(\, #1 \,\right)} \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\pp}{{\cal P}} \newcommand{\root}[2][]{\,\sqrt[#1]{\vphantom{\large A}\,#2\,}\,} \newcommand{\sech}{\,{\rm sech}} \newcommand{\sgn}{\,{\rm sgn}} \newcommand{\totald}[3][]{\frac{{\rm d}^{#1} #2}{{\rm d} #3^{#1}}} \newcommand{\verts}[1]{\left\vert\, #1 \,\right\vert}$ $\ds{}$ \begin{align} I&\equiv\color{#c00000}{\int_{0}^{\infty}{\ln\pars{x} \over 1 + x^{2}}\,\dd x} =\int_{\infty}^{0}{\ln\pars{1/x} \over 1/x^{2} + 1}\,\pars{-\,{\dd x \over x^{2}}} =-\color{#c00000}{\int_{0}^{\infty}{\ln\pars{x} \over 1 + x^{2}}\,\dd x} =-I\ \imp 2I = 0 \\[3mm]&\imp I = 0\quad\imp\quad \color{#66f}{\large\int_{0}^{\infty}{\ln\pars{x} \over 1 + x^{2}}\,\dd x = 0} \end{align}

$\endgroup$
2
  • $\begingroup$ Does this differ from the method mentioned in the question? $\endgroup$
    – robjohn
    Commented Aug 16, 2014 at 11:44
  • $\begingroup$ @robjohn They are equivalent but this one doesn't split $\left(0,\infty\right)$. Thanks. $\endgroup$ Commented Aug 16, 2014 at 21:14
1
$\begingroup$

Note that the function ln(x) is negative on the interval $(0, 1)$, so the whole integrand is negative on the interval $(0,1)$. While $ln(x)$ is positive on the interval $(1, \infty)$, so the whole integrand is positive on the interval $(1,\infty)$. By splitting the integral on the above two intervals and evaluating the two integrals, we find the value of the integral on the interval $(0,1)$ equals -catalan ( $\sim 0.915965594$. ) and value of the integral on the interval $(1,\infty )$ equals catalan. So the value of the whole integral is $0$.

$\endgroup$
1
$\begingroup$

More generally lets consider $$I=\int_0^{\infty}\frac{\ln x}{a^2+x^2}\ dx$$

Let $x=a\tan\theta\implies dx=a\sec^2\theta\ d\theta$ $$I=\int_0^{\pi/2}\frac{\ln (a\tan\theta)}{a^2+a^2\tan^2\theta}\ a\sec^2\theta \ d\theta$$ $$=\int_0^{\pi/2}\frac{\ln (a) +\ln(\tan\theta)}{a}\ d\theta$$ $$=\frac{\ln (a)}{a}\int_0^{\pi/2}\ d\theta+\frac 1a\int_0^{\pi/2}\ln(\tan\theta)\ d\theta$$ $$=\frac{\ln (a)}{a}\frac{\pi}{2}+\frac 1a\left(\int_0^{\pi/2}\ln \sin\theta\ d\theta-\int_0^{\pi/2}\ln \cos\theta\ d\theta\right)$$ $$=\frac{\pi\ln (a)}{2a}+\frac 1a\left(\int_0^{\pi/2}\ln \sin\theta\ d\theta-\int_0^{\pi/2}\ln \cos\left(\frac{\pi}{2}-\theta\right)\ d\theta\right)$$ $$=\frac{\pi\ln (a)}{2a}+\frac 1a\left(\int_0^{\pi/2}\ln \sin\theta\ d\theta-\int_0^{\pi/2}\ln \sin\theta\ d\theta\right)$$ $$=\frac{\pi\ln (a)}{2a}$$ Now, for given integral setting $a=1$ in above general formula, we get $$\int_0^{\infty}\frac{\ln x}{1+x^2}\ dx=\frac{\pi \ln(1)}{2(1)}=0$$

$\endgroup$
-1
$\begingroup$

You demonstrated yourself why the result is 0 (by making the change $u = \frac{1}{x}$).

I think you can view this it as the same as this integral: $\displaystyle\int_{-\infty}^{\infty}x dx = \displaystyle\lim_{X\rightarrow +\infty} \int_{-X}^X xdx=0 $.

Note that I am not sure that $\int_{-\infty}^{\infty}x dx$ is actually defined, but this also applies to your integral $\displaystyle\int_0^{\infty}\displaystyle\frac{\ln x}{1+x^2}dx$.

$\endgroup$
3
  • 1
    $\begingroup$ $\int_{-\infty}^{\infty}x dx$ is divergent, but can be evaluated in the sense of the Cauchy principal value as $0$. $\endgroup$ Commented Jul 13, 2012 at 17:02
  • $\begingroup$ @J.M. Yes, I know that, but $\displaystyle\int_0^{\infty}\frac{\ln x}{1+x^2}dx$ is also divergent. $\endgroup$
    – S4M
    Commented Jul 13, 2012 at 17:06
  • 8
    $\begingroup$ I don't see how the OP's integral is divergent. $\endgroup$
    – anon
    Commented Jul 13, 2012 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .