Solution:
Key idea: We integrate by parts, ∫uvdx=u∫vdx−∫(dxdu∫vdx)dx, with u=logx as the first function and v=x21 as the second, since ∫x−2dx=−x1. The integrand needs x>0.
Step 1 — Find the pieces needed.
We differentiate the first function and integrate the second.
dxdu=x1
∫x2dx=−x1
Step 2 — Apply the parts formula.
We put these into the formula; the two minus signs make a plus.
I=logx(−x1)−∫x1(−x1)dx
I=−xlogx+∫x2dx
Step 3 — Finish the remaining integral.
We integrate x−2 again and add the constant.
I=−xlogx−x1+C
I=−x1(logx+1)+C
Therefore, ∫x2logxdx=−x1(1+logx)+C for x>0.