Solution:
We use integration by parts:
∫f(x)g(x)dx=f(x)∫g(x)dx−∫[f′(x)∫g(x)dx]dx
Take (logx)2 as the first function and x as the second function.
∫x(logx)2dx=(logx)2⋅2x2−∫2logx⋅x1⋅2x2dx
=2x2(logx)2−∫xlogxdx…(1)
Integrate ∫xlogxdx by parts, with logx as the first function and x as the second function.
∫xlogxdx=logx⋅2x2−∫x1⋅2x2dx=2x2logx−4x2
Substituting in (1),
∫x(logx)2dx=2x2(logx)2−[2x2logx−4x2]+C
Therefore,
∫x(logx)2dx=2x2(logx)2−2x2logx+4x2+C