By LearnAllStudents Editorial Team. Source check dates are listed below.
The result
∫ ln x dx = x ln x − x + c, for x > 0. The condition matters: ln x is only defined for positive x. The constant c is the constant of integration for an indefinite integral.
Note that this result is not in the AQA A Level Mathematics formulae booklet we checked. The booklet prints the integration by parts formula, not the answer, so you need to know the result or derive it in the exam.
Step-by-step working by parts
The integration by parts formula in the AQA booklet is ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx. To use it, write ln x as ln x × 1 and choose:
- u = ln x, so du/dx = 1/x.
- dv/dx = 1, so v = x.
Then ∫ ln x dx = x ln x − ∫ x × (1/x) dx = x ln x − ∫ 1 dx = x ln x − x + c.
Why choose u = ln x? Because ln x gets simpler when you differentiate it (it becomes 1/x), while 1 is easy to integrate. If you chose u = 1 you would need to integrate ln x, which is the problem you started with.
Check by differentiating
Differentiate x ln x − x using the product rule on the first term: d/dx (x ln x) = ln x + x × (1/x) = ln x + 1. Then d/dx (−x) = −1. So the total is ln x + 1 − 1 = ln x, which is what we integrated. If you have time in an exam, this check takes under a minute.
Worked example 1: a definite integral
Find ∫ from 1 to e of ln x dx. Use the result: [x ln x − x] evaluated between 1 and e. At x = e: e × ln e − e = e × 1 − e = 0. At x = 1: 1 × ln 1 − 1 = 0 − 1 = −1. The integral is 0 − (−1) = 1.
Worked example 2: ln of a multiple of x
Find ∫ ln(2x) dx. Use the same method with u = ln(2x), so du/dx = 1/x (because d/dx ln(2x) = 2/(2x)), and dv/dx = 1, so v = x. Then ∫ ln(2x) dx = x ln(2x) − ∫ x × (1/x) dx = x ln(2x) − x + c. Check: d/dx [x ln(2x) − x] = ln(2x) + x × (1/x) − 1 = ln(2x).
Worked example 3: x ln x
Find ∫ x ln x dx. This time choose u = ln x, so du/dx = 1/x, and dv/dx = x, so v = x²/2. Then ∫ x ln x dx = (x²/2) ln x − ∫ (x²/2) × (1/x) dx = (x²/2) ln x − ∫ x/2 dx = (x²/2) ln x − x²/4 + c.
The rule of thumb for products with ln x: let u = ln x, because it simplifies when differentiated.
Common mistakes
- Saying the integral of ln x is 1/x. That is the derivative of ln x, not its integral.
- Forgetting the + c in an indefinite integral.
- Choosing u = 1 or u = x for ∫ ln x dx, which makes the second integral harder than the first.
- Forgetting that ln 1 = 0 and ln e = 1 when evaluating definite limits.
Try it yourself: choose the right logarithmic integral
Scroll the table to see all columns. Keyboard: focus the table area and use the arrow keys.
| Question (x > 0) | Answer | Check |
|---|---|---|
| ∫ 3 ln x dx | 3x ln x − 3x + C | Differentiate: 3 ln x + 3 − 3 = 3 ln x. |
| ∫ from 1 to e² of ln x dx | e² + 1 | At e² the antiderivative is e²; at 1 it is −1. |
| ∫ ln(5x) dx | x ln(5x) − x + C | The derivative of ln(5x) is 1/x, not 5/x. |
Attempt each question before reading its answer. The integral of ln x is not the integral of 1/x: the latter gives ln|x| + C. Identify the integrand before selecting a method.
A different integrand: ln x divided by x
For x > 0, ∫(ln x)/x dx = ½(ln x)² + C. Set u = ln x, so du = dx/x; the remaining integral is ∫u du. This is different from ∫ln x dx and from ∫x ln x dx.
Check by differentiating: d[½(ln x)²]/dx = (ln x)/x. Try ∫ from 1 to e of (ln x)/x dx. The answer is ½, because ln e = 1 and ln 1 = 0.
How a tutor would approach this
A tutor can show why the choice of u and dv/dx matters, and give you three or four variations to try straight away. In the free demo you bring a by-parts question you could not start, and practise choosing the parts before any algebra.
See the matching syllabus page →Frequently asked questions
What is the integral of ln x?
x ln x − x + c, where x is greater than 0. It is found by integration by parts with u = ln x and dv/dx = 1.
How do I check my answer?
Differentiate it. The derivative of x ln x − x is ln x + 1 − 1 = ln x.
Is the integral of ln x in the formula booklet?
Not in the AQA A Level Mathematics booklet we checked. It prints the by-parts formula only. Check your own board's booklet.
What is the integral of ln x from 1 to e?
It equals 1. Evaluate x ln x − x at e (giving 0) and at 1 (giving −1) and subtract.
Can I try a lesson before paying?
Yes. The first 30-minute demo is free and needs no payment details. A standard paid class is 60 minutes.
Official sources
- AQA: Formulae for A-level Mathematics (7356, 7357), integration by parts (official PDF) (checked 2026-11-18)
- OpenStax: integration by parts (checked 2026-11-24)
- OpenStax: exponential and logarithmic integrals (checked 2026-11-23)
Related pages
Try a free 30-minute demo
Work through a question with a tutor. No payment needed.
Request a free 30-minute demo