How do I integrate ln(x)?

There is a subtle, but very neat trick to this when applying the rules of integration by parts.

If we take ∫ln(x)dx = ∫1*ln(x)dx, and then let our term to be differentiated, u = ln(x), and our term to be integrated, dv/dx = 1, then it follows that:


du/dx = x⁻¹, v = x


and from the integration by parts formula:

∫u * (dv/dx) dx = uv - ∫v * (du/dx) dx


∴ ∫ln(x)dx = xln(x) - ∫(x⁻¹ * x)dx (+ constant)

∫ln(x)dx = xln(x) - ∫dx (+ constant)

Hence, our results turns out to be:

∫ln(x)dx = xln(x) - x + c


NB. While our trick here gives us a very straightforward solution to an integration which could have been very laborious via other methods, integration by parts tends to be a last resort, as more, seemingly contrived steps are required. One should generally try integration by substitution, for non-standard integrations, first when unsure of which method to use, as the steps to a result are often far simpler and quicker.

Jacan C. A Level Maths tutor, A Level Physics tutor, GCSE Physics tut...

2 years ago

Answered by Jacan, an A Level Maths tutor with MyTutor

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


£20 /hr

Grace C.

Degree: Physics with a Year Abroad (Masters) - Edinburgh University

Subjects offered: Maths, -Personal Statements-

-Personal Statements-

“I am a physics student at The University of Edinburgh and ever since reading National Geographic Kids magazines, I've been in love with our world ad how it works. I've learned that mathematics is really at the heart of everything and I...”

MyTutor guarantee

£20 /hr

Visitation L.

Degree: Biomedical sciences (Bachelors) - Durham University

Subjects offered: Maths, Biology


“Hi, I am Visitation, a second year Biomedical scientist at Durham. Science and Maths are such fascinating subjects and I would like to share my passion and help you through my tutorials!”

£20 /hr

Rebecca M.

Degree: Mathematics (Masters) - Warwick University

Subjects offered: Maths, Psychology+ 2 more

English Literature

“About Me:I am a Warwick University maths student who has also dabbled in philosophy and mechanics modules.My Aim: A lot of the people I have helped who struggle, do so because they either lack understanding or lack passion for th...”

MyTutor guarantee

About the author

£30 /hr

Jacan C.

Degree: Theoretical Physics (Masters) - York University

Subjects offered: Maths, Science+ 3 more

Further Mathematics

“Hi, my name is Jacan. I am a Theoretical Physics third year at the University of York. I have had a real excitement for gaining an understanding in science at all levels through my education. This was, however, not always facilitated...”

You may also like...

Other A Level Maths questions

Given a table showing grouped data and the frequency of each class, find the median Q2

What is an integral?

The first term of an infinite geometric series is 48. The ratio of the series is 0.6. (a) Find the third term of the series. (b) Find the sum to infinity. (c) The nth term of the series is u_n. Find the value of the sum from n=4 to infinity of u_n.

Prove why the quadratic formula works

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