How do I integrate log(x) or ln(x)?

The integral of log(x) is not necessarily straight-forward. Though we can use the fact that d/dx(log(x)) = 1/x to help us.

Rather than simply trying to integrate log(x), we can use integration by parts on 1 x log(x) (as in 'one times' log(x)).

So we can differentiate the log(x) part and integrate the 1 part to give:

xlog(x) - ∫ 1 dx = xlog(x) - x

Note: if the middle step isn't clear, we can write it more explicitly as

u = log(x)  v' = 1

u' = 1/x     v = x

Where the rule for integration by parts is written as:

uv' = uv - ∫ u'v    ,  where u and v are functions of x

DF
Answered by Daniel F. Maths tutor

16923 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

The gradient of a curve is given by dy/dx = 3 - x^2. The curve passes through the point (6,1). Find the equation of the curve.


The polynomial p(x) is given by p(x) = x^3 – 5x^2 – 8x + 48 (a) (i) Use the Factor Theorem to show that x + 3 is a factor of p(x). [2 marks] (ii) Express p(x) as a product of three linear factors. [3 marks]


How would I find a the tangent of a point on a line?


Show that the line with equation ax + by + c = 0 has gradient -a/b and cuts the y axis at -c/b?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning