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


Jack G. A Level Maths tutor, GCSE Maths tutor, A Level Economics tuto...
View profile
£20 /hr

Jack G.

Degree: Politics, Philosophy, and Economics (Bachelors) - Warwick University

Subjects offered: Maths, Religious Studies+ 2 more

Religious Studies
.TSA. Oxford.

“Hello, I'm Jack and am studying politics, philosophy, and economics at Warwick.  Having recently been through the subjects I'm looking to tutor I feel like I know first hand what difficulties you'll be facing. I always found I wanted ...”

MyTutor guarantee

Jan K. GCSE Maths tutor, A Level Maths tutor, GCSE Physics tutor, A L...
View profile
£20 /hr

Jan K.

Degree: Mathematics and Music (Bachelors) - Edinburgh University

Subjects offered: Maths, Physics


“About Myself I am a Mathematics student at Edinburgh University. I have a real passion for Mathematics, and I thouroughly enjoy explaining mathematical concepts to others. Having been home-educated all through school (which also gave ...”

MyTutor guarantee

Victor T. A Level Economics tutor, GCSE Economics tutor, A Level Math...
View profile
£20 /hr

Victor T.

Degree: Economics (Bachelors) - Cambridge University

Subjects offered: Maths, Economics+ 2 more

-Personal Statements-
-Oxbridge Preparation-

“Hi I'm Victor and I am a second-year economist at Cambridge having achieved a First last year. I very much enjoy teaching and my aim to instil my passion and enthusiasm for Maths and Economics in my students. I got 12 A*s at GCSE and 5...”

MyTutor guarantee

About the author

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

Daniel F.

Currently unavailable: for regular students

Degree: Maths and Philosophy (Bachelors) - Durham University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“Friendly and Enthusiastic Maths and Philosophy student at Durham University”

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

A curve has equation y = 2x^5 + 5x^4 1 . (a) Find: (i) dy/ dx [2 marks] (ii) d^2y/ dx^2 (b) The point on the curve where x ¼ 1 is P. (i) Determine whether y is increasing or decreasing at P, giving a reason for your answer.

How do you integrate by parts?

How to integrate ln(x)

Differentiate the function: y = sin(x^2)*ln(5x)

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