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

SC
Answered by Samuel C. Maths tutor

11567 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

Solve 4cos(2x )+ 2sin(2x) = 1 given -90° < x < 90°. Write 4cos(2x )+ 2sin(2x) in the form Rcos(2x - a), where R and a are constants.


Find the equation of the line tangential to the function f(x) = x^2+ 1/ (x+3) + 1/(x^4) at x =2


Find the gradient of a curve whose parametric equations are x=t^2/2+1 and y=t/4-1 when t=2


The function f(x)=x^2 -2x -24x^(1/2) has one stationary point. Find the value of x when f(x) is stationary, and hence determine the nature of this stationary point.


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning