Skip to content
ihateDesmos

Integral of ln(1 + x)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of ln(1 + x)
∫
ln(1+x)
dx =
(1+x)ln(1+x)−x+C

The integral of ln(1 + x) is (1 + x) ln(1 + x) − x + C, for x > −1. It follows from the integral of ln u, with u = 1 + x.

1234240
Open in calculator
y=ln(1+x)
in blue and its integral
y=(1+x)ln(1+x)−x
(with C = 0) in red. Defined for x > −1.

How to integrate ln(1 + x)

Method: integration by parts.

  1. 1
    Let u = 1 + x, so du = dx.
  2. 2
    The integral becomes ∫ln u du = u ln u − u.
  3. 3
    Substitute back: (1 + x) ln(1 + x) − (1 + x).
  4. 4
    The −1 is absorbed into the constant, leaving (1 + x) ln(1 + x) − x + C.

What it means

ln(1 + x) passes through the origin with slope 1, so its integral starts out looking like x²/2 near zero.

The integral from 0 to 1

Using the antiderivative: F(1) − F(0) = 2 ln 2 − 1, which is about 0.386294. A direct numerical integration of ln(1 + x) gives 0.386294, which agrees.

−0.50.511.522.533.544.55−2−112345

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xln(1 + x)Slope of the answer
−1/2−ln 2−ln 2
00−0
1ln 2ln 2
21.098611.09861
41.609441.60944

Common mistakes

  • Forgetting that ∫ln u du has two terms: u ln u and −u.

Frequently asked questions

What is the integral of ln(1 + x)?
The integral of ln(1 + x) is (1 + x) ln(1 + x) − x + C, for x > −1.
What is the integral of ln(1 + x) from 0 to 1?
2 ln 2 − 1, which is about 0.386294.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator