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

Daniel F. A Level Maths tutor, A Level Further Mathematics  tutor, GC...

2 years ago

Answered by Daniel, an A Level Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£26 /hr

Priya L.

Degree: Economics (Bachelors) - Warwick University

Subjects offered: Maths, Further Mathematics + 1 more

Further Mathematics

“About Me: I recently graduated from the University of Warwick with an Economics degree. I am currently on a gap year before I begin my graduate role as a Management Consultant in October. I decided to tutor because I wanted to spend m...”

£20 /hr

Matthew S.

Degree: Economics (Bachelors) - Exeter University

Subjects offered: Maths, History+ 2 more

Extended Project Qualification

“Who am I? I am a 3rd Year Economics Student at the University of Exeter. Economics has always been at the top of my interests meaning that I have real passion for all things economics and math based which I will aim to instill into my...”

£20 /hr

Harry D.

Degree: Mathematics with a year abroad (Masters) - Sheffield University

Subjects offered: Maths


“My name is Harry, I am a Mathematics student at the University of Sheffield. I am very enthusistic about the subject and love to help others improve their skills. I am a well organised, patient and friendly individual and I feel these ...”

MyTutor guarantee

About the author

Daniel F.

Currently unavailable: for regular students

Degree: Maths and Philosophy (Bachelors) - Durham University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“Top tutor from the renowned Russell university group, ready to help you improve your grades.”

You may also like...

Posts by Daniel

How do I integrate cos^2(x)?

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

Other A Level Maths questions

What's the point of Maths?

Find the coordinates of the stationary points of the curve y = 2x^3 + 3x^2 - 12x + 1

How do you take the derivative of a^x ?

Given that d/dx(cosx)=-sinx show that d/dx(secx)=secx(tanx)

View A Level Maths tutors


We use cookies to improve our service. By continuing to use this website, we'll assume that you're OK with this. Dismiss