Calculus · real student question

Evaluate the integral from 0 to infinity of arctan(x) divided by cosh(x), with respect to x.

Question

Evaluate

I=0arctanxcoshxdxI=\int_0^{\infty}\frac{\arctan x}{\cosh x}\,dx

Step-by-step solution

  1. Confirm the integral converges before working on it. As xx\to\infty, arctanxπ2\arctan x\to\tfrac{\pi}{2} while sechx2ex\operatorname{sech}x\sim 2e^{-x}, so the integrand decays exponentially. Near 00 it behaves like xx. The integral is therefore finite - and bounded above by π20sechxdx=π242.467\tfrac{\pi}{2}\int_0^{\infty}\operatorname{sech}x\,dx=\tfrac{\pi^2}{4}\approx2.467.

  2. Expand 1/coshx1/\cosh x as an alternating exponential series. For x>0x>0,

    1coshx=2ex1+e2x=2n=0(1)ne(2n+1)x\frac{1}{\cosh x}=\frac{2e^{-x}}{1+e^{-2x}}=2\sum_{n=0}^{\infty}(-1)^n e^{-(2n+1)x}

    This works because e2x<1e^{-2x}<1 on the whole range, so the geometric series converges everywhere the integral lives.

  3. Integrate term by term. Swapping sum and integral gives

    I=2n=0(1)n0e(2n+1)xarctanxdxI=2\sum_{n=0}^{\infty}(-1)^n\int_0^{\infty}e^{-(2n+1)x}\arctan x\,dx

  4. Reduce each Laplace-type piece by parts. With u=arctanxu=\arctan x and dv=eaxdxdv=e^{-ax}dx the boundary term vanishes at both ends, leaving

    0eaxarctanxdx=1a0eax1+x2dx\int_0^{\infty}e^{-ax}\arctan x\,dx=\frac{1}{a}\int_0^{\infty}\frac{e^{-ax}}{1+x^{2}}\,dx

    so

    I=2n=0(1)n2n+10e(2n+1)x1+x2dxI=2\sum_{n=0}^{\infty}\frac{(-1)^n}{2n+1}\int_0^{\infty}\frac{e^{-(2n+1)x}}{1+x^{2}}\,dx

  5. Accept that there is no elementary closed form. The inner integral is an auxiliary cosine-and-sine-integral combination, not an elementary function, so the series above is the honest exact answer. A decimal value has to be produced numerically.

  6. Evaluate numerically by two independent routes. Gauss-Legendre quadrature on [0,80][0,80] split into seven panels gives

    I1.0986875I\approx 1.0986875

    Summing the series above to 400400 terms gives 1.09868591.0986859, agreeing to six digits ✓. Both sit safely under the bound π2/4=2.467\pi^2/4=2.467 from step 1. (Note II is close to, but not equal to, ln3=1.0986123\ln 3=1.0986123.)

Answer

I=0arctanxcoshxdx1.0986875I=\int_0^{\infty}\frac{\arctan x}{\cosh x}\,dx\approx 1.0986875

Need to solve a different problem like this? Open the solver →