Calculus · real student question

Evaluate the improper integral of x times e^(-x^2) dx from x = 0 to infinity.

Question

Evaluate

0xex2dx\int_0^{\infty}x\,e^{-x^2}dx

Step-by-step solution

  1. Rewrite the improper integral as a limit. An infinite upper limit is defined by a limit of proper integrals, and that definition is what makes the convergence question meaningful:

    0xex2dx=limb0bxex2dx\int_0^{\infty}x\,e^{-x^2}dx=\lim_{b\to\infty}\int_0^{b}x\,e^{-x^2}dx

  2. Substitute u=x2u=x^2. The factor xx in front is exactly what the substitution needs — this is why xex2x\,e^{-x^2} is elementary while ex2e^{-x^2} alone is not:

    u=x2,du=2xdx,xdx=du2u=x^2,\qquad du=2x\,dx,\qquad x\,dx=\frac{du}{2}

    The limits transform as well: x=0u=0x=0\Rightarrow u=0 and x=bu=b2x=b\Rightarrow u=b^2.

  3. Integrate in uu.

    0bxex2dx=120b2eudu=12[eu]0b2=12(1eb2)\int_0^{b}x\,e^{-x^2}dx=\frac12\int_0^{b^2}e^{-u}du=\frac12\left[-e^{-u}\right]_0^{b^2}=\frac12\left(1-e^{-b^2}\right)

  4. Take the limit. As bb\to\infty, b2b^2\to\infty and eb20e^{-b^2}\to 0:

    0xex2dx=limb12(1eb2)=12\int_0^{\infty}x\,e^{-x^2}dx=\lim_{b\to\infty}\frac12\left(1-e^{-b^2}\right)=\frac12

    The integral converges, and the decay is extremely fast: at b=3b=3 the remaining tail contributes only 12e96×105\tfrac12 e^{-9}\approx 6\times 10^{-5}.

  5. Check against a related result. Because the integrand is odd, the same antiderivative gives xex2dx=0\int_{-\infty}^{\infty}x\,e^{-x^2}dx=0, while the even companion 0ex2dx=π20.886\int_0^{\infty}e^{-x^2}dx=\tfrac{\sqrt\pi}{2}\approx 0.886 has no elementary antiderivative at all. Comparing the two shows how much the single factor of xx changes the problem: with it, an exact 12\tfrac12; without it, a value that needs the Gaussian trick.

Answer

12\frac{1}{2}

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