Calculus · real student question

Evaluate the integral of ln x with respect to x from 0 to 1.

Question

Evaluate

01lnxdx\int_0^1\ln x\,dx

Step-by-step solution

  1. Notice that the integral is improper before computing anything. lnx\ln x\to-\infty as x0+x\to0^+, so the integrand is unbounded at the lower endpoint. The integral must be defined as a limit:

    01lnxdx=lima0+a1lnxdx\int_0^1\ln x\,dx=\lim_{a\to0^+}\int_a^1\ln x\,dx

    Skipping this and plugging in 00 directly produces the undefined expression 0ln00\cdot\ln 0.

  2. Find the antiderivative by parts. Take u=lnxu=\ln x and dv=dxdv=dx, so du=dxxdu=\tfrac{dx}{x} and v=xv=x:

    lnxdx=xlnxx1xdx=xlnxx+C\int\ln x\,dx=x\ln x-\int x\cdot\frac1x\,dx=x\ln x-x+C

    Choosing dv=dxdv=dx is what makes this work: it converts lnx\ln x into 1/x1/x, which then cancels against v=xv=x.

  3. Evaluate on [a,1][a,1].

    a1lnxdx=[xlnxx]a1=(01)(alnaa)=1alna+a\int_a^1\ln x\,dx=\big[x\ln x-x\big]_a^1=(0-1)-(a\ln a-a)=-1-a\ln a+a

  4. Take the limit at the singular endpoint. The only delicate term is alnaa\ln a. Writing it as lna1/a\dfrac{\ln a}{1/a} and applying L'Hôpital gives 1/a1/a2=a0\dfrac{1/a}{-1/a^2}=-a\to0. So

    lima0+(1alna+a)=1\lim_{a\to0^+}\left(-1-a\ln a+a\right)=-1

    The integral converges even though the integrand blows up — the singularity is logarithmic, hence integrable.

  5. Sanity-check the sign and size. On (0,1)(0,1) we have lnx<0\ln x<0, so a negative answer is expected. The mean value of lnx\ln x over [0,1][0,1] is therefore 1-1, matching e10.368e^{-1}\approx0.368 as the point where lnx\ln x equals its average — consistent with the graph ✓.

Answer

1-1

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