Solution:
We use integration by parts:
∫f(x)g(x)dx=f(x)∫g(x)dx−∫[f′(x)∫g(x)dx]dx
Take logx as the first function and (x2+1) as the second function.
Since ∫(x2+1)dx=3x3+x,
∫(x2+1)logxdx=logx(3x3+x)−∫x1(3x3+x)dx
=(3x3+x)logx−∫(3x2+1)dx
=(3x3+x)logx−9x3−x+C
Therefore,
∫(x2+1)logxdx=(3x3+x)logx−9x3−x+C