How do I find the integral ∫(ln(x))^2dx ?

This problem is all about using integration by parts, so let's start by quoting the formula for integration by parts:

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

To get the integral we want on the left hand side we can use the subtitutions u = dv/dx = ln(x). This means that we will have to find ∫ln(x)dx, this is also done using integration by parts:

To find ∫ln(x)dx we can use the substitutions u = ln(x) and dv/dx = 1. Using the formula above will then give us:

   ∫ln(x)*1dx = ln(x)*x - ∫x*(1/x)dx

 = xln(x) - ∫dx = xln(x) - x = x(ln(x)-1)

Using this we can now use our original substitutions in the formula to get:

   ∫ln(x)*ln(x)dx = ln(x)*x(ln(x)-1) - ∫x(ln(x)-1)*(1/x)dx

 = xln(x)*(ln(x)-1) - ∫(ln(x)-1)dx 

 = xln(x)*(ln(x)-1) - x(ln(x)-1) + x + c 

Now we just have to tidy this up to get our final answer:

  ∫(ln(x))^2dx = x[(ln(x)+1)^2 + 1] + c

Samuel C. A Level Physics tutor, A Level Maths tutor, A Level Further...

2 years ago

Answered by Samuel, an A Level Maths tutor with MyTutor

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


£20 /hr

Jed M.

Degree: Natural Sciences (Bachelors) - Exeter University

Subjects offered: Maths, Chemistry+ 1 more


“Hi! I'm a second year Natural Science student at the University of Exeter. I love all things science, and enjoy sharing what I know about it with others. For my GCSEs and A Levels, I found worked examples and practice questions are ke...”

£24 /hr

Oliver R.

Degree: Economics and Mathematics (Bachelors) - Bristol University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“About Me:I'm currently an undergraduate at the University of Bristol studying Economics & Mathematics (Joint Honours). I am one of those few who havea genuine love of studying Maths and hope that enthusiasm will help you in tutorials...”

£22 /hr

Daniel S.

Degree: Philosophy, Politics and Economics (Bachelors) - Oxford, Christ Church University

Subjects offered: Maths, History+ 5 more

Extended Project Qualification
.TSA. Oxford.
-Personal Statements-
-Oxbridge Preparation-

“I am a Philosophy, Politics and Economics student at the University of Oxford. I am a very versatile tutor, with my degree affording me the skills to aid students with both scientific problems, as well as being able to help those with...”

MyTutor guarantee

About the author

Samuel C.

Currently unavailable: for regular students

Degree: Physics (Bachelors) - Durham University

Subjects offered: Maths, Science+ 3 more

Further Mathematics

“Hi, I'm Sam Crawford. I'm studying Maths and Physics at Durham University and I absolutely love both subjects.”

You may also like...

Posts by Samuel

How do I do a proof by induction?

How do I find the integral ∫(ln(x))^2dx ?

Other A Level Maths questions

Find dy/dx when y = x^2(cos(x)).

How do you add or subtract complex numbers?

Differentiate y = (3x − 2)^4

What exactly IS differentiation?

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