10

I have a question about the integral of $\ln x$.

When I try to calculate the integral of $\ln x$ from 0 to 1, I always get the following result.

  • $\int_0^1 \ln x = x(\ln x -1) |_0^1 = 1(\ln 1 -1) - 0 (\ln 0 -1)$

Is the second part of the calculation indeterminate or 0?

What am I doing wrong?

Thanks Joachim G.

Leucippus
  • 26,329
user54188
  • 101

2 Answers2

22

$\ln x$ is not defined at $0$ so the integral $$\int_0^1\ln x\, dx$$ is improper. Thus, \begin{align} \int_0^1\ln x\, dx &= (x\ln x -x)|_0^1 \\ &=1\ln 1-1-\lim_{x\to 0}x\ln x-0 \\ &= -1+\lim_{x\to 0}x\ln x. \end{align} We need to evaluate $$\lim_{x\to 0}x\ln x=\lim_{x\to 0}\frac{\ln x}{\frac1x}.$$ Can you do that?

Rócherz
  • 3,976
Nameless
  • 13,456
21

Looking sideways at the graph of $\log(x)$ you can also see that $$\int_0^1\log(x)dx = -\int_0^\infty e^{-x}dx = -1.$$

WimC
  • 32,192
  • 2
  • 48
  • 88