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

Answered by Daniel F. Maths tutor

13750 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

Given that sin(x)^2 + cos(x)^2 = 1, show that sec(x)^2 - tan(x)^2 = 1 (2 marks). Hence solve for x: tan(x)^2 + cos(x) = 1, x ≠ (2n + 1)π and -2π < x =< 2π(3 marks)


Given that x=3 is a solution to f(x)= 2x^3 - 8x^2 + 7x - 3 = 0, solve f(x)=0 completely.


Given that dy/dx=6-8x+x^4 and that x=1 when y=4. Find an expression for y in terms of x.


Express cos(2x) in the form acos^2(x) + b, where a and b are constants.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences