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

Omri T.

Degree: Chemistry (Masters) - Bristol University

Subjects offered: Maths, Chemistry


“About Me:I am a Chemistry student at Bristol University. I've always had a passion for science and always wanted to understand how things worked, no matter how complicated they were.I am a friendly, patient, approachable person. I ...”

£22 /hr

Bryan P.

Degree: Mathematics (Bachelors) - Bristol University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“I am currently a BSc Mathematics student at the University of Bristol and I am already no stranger to teaching.I have worked as a teaching assistant in my secondary school's maths department where I also led one-on-one sessions with ...”

£20 /hr

Dharani Y.

Degree: Medicine (Bachelors) - Kings, London University

Subjects offered: Maths, Science+ 4 more

-Personal Statements-
-Medical School Preparation-

“A little bit about me: Hi, I’m Dharani! I am a medical student at King’s College London. I have some experience in mentoring as I used to help younger students on a one-to-one basis at school during classes. The idea of being able to ...”

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

The quadratic equation 2x^2 + 8x + 1 = 0 has roots a and b. Write down the value of a + b, a*b and a^2 + b^2.

How do you integrate xcos(x)?

How do you integrate by parts?

How do I rationalise the denominator of a fraction which consists of surds?

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