AP Calculus BC
Integral of x^2 ln x: Why ln x Should Be u
The integral of x squared times ln x is x cubed ln x over 3, minus x cubed over 9, plus C. Integration by parts is the technique, and ln x is the choice that finishes in one pass: it differentiates to 1/x, which cancels most of the leftover polynomial.
Choosing u and dv
Integration by parts needs the product split into and . LIATE ranks the logarithm ahead of the algebraic factor, so and .
That gives and .
The leftover integral is a plain power, which is the whole reason for that choice. Differentiating removed the logarithm from the problem, and the it produced cancelled a power off .
Compare it with x^2 e^x
In the polynomial is , because differentiating grinds it down while integrates back to itself. The ranking flips here for one reason: is the factor you do not want to integrate, and it is the factor that gets simpler when differentiated.
So the rule underneath both problems is the same. Take as whichever factor improves under differentiation, and as whichever factor you can antidifferentiate on sight. Whenever sits in a product, it wins the slot.
Count the passes
x^2 ln x needs parts once. x^2 e^x needs parts twice, because the polynomial has to be differentiated down to a constant. If your choice of u leads to a second pass here, you chose the slower u.
The mistakes students make
Two of these three give answers that differentiate to something visibly close to , which is why they survive a quick glance.
- Setting and . That needs before the first line can be written, and the leftover integral reproduces the original integral, so you have to solve a circular equation instead of finishing in one line.
- Dropping the from , which turns the second integral into and produces .
- Stopping at . Integrating contributes a second factor of , so the denominator of the last term is .
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
What is the integral of x^2 ln x?
It is , valid for since is undefined otherwise.
Why is u = ln x and not x^2?
Because has no antiderivative you would want as , and differentiating it gives , which reduces the leftover integral to .
Does x^2 ln x need integration by parts twice?
No. One pass removes the logarithm completely. The two-pass version of this shape is , where the polynomial is .