Home›Study Resources›Maths›
How do you integrate ln x?
Maths
A-Level

How do you integrate ln x?

There is no standard integral for ln x, so write it as 1 × ln x and use integration by parts: ∫u (dv/dx) dx = uv − ∫v (du/dx) dx. Let u = ln x and dv/dx = 1. Example: Find ∫ ln x dx. u = ln x, so du/dx = 1/x dv/dx = 1, so v = x ∫ ln x dx = x ln x − ∫ x × (1/x) dx = x ln x − ∫ 1 dx Answer: x ln x − x + c

This answer follows the Cambridge International AS & A Level Mathematics (9709) syllabus, Pure Mathematics 3 (integration by parts). Because ln x has no direct standard integral, treat it as the product 1 × ln x. Choose u = ln x because it becomes simpler when differentiated, and dv/dx = 1 because it is easy to integrate.

Worked example

Find ∫ ln x dx.

  1. Write the integral as ∫ 1 × ln x dx.
  2. Let u = ln x, so du/dx = 1/x.
  3. Let dv/dx = 1, so v = x.
  4. Apply the formula: x ln x − ∫ x × (1/x) dx = x ln x − ∫ 1 dx.
  5. Integrate: x ln x − x + c. Check: d/dx(x ln x − x) = ln x + 1 − 1 = ln x ✓

Answer: ∫ ln x dx = x ln x − x + c

Reviewed by

Want one-to-one support?

One-to-one online tuition can help you build confidence in your subject. Find a tutor who teaches your course.

Find a Tutor

Learn face to face in Glasgow

Prefer in-person lessons? Visit the ExpertTutor Glasgow Southside centre.

See the centre