Let I=∫(x2+1)logxdx=∫x2logxdx+∫logxdx
Let I=I1+I2 ........... (1)
Where, I1=∫x2logxdx and I2=∫logxdx
I1=∫x2logxdx
Taking logx as first function and x2 as second function and integrating by parts, we obtain
I1=logx∫x2dx−∫{(ddxlogx)∫x2dx}dx
=logx⋅x33−∫1x⋅x33dx
=x33logx−13(∫x2dx)
=x33logx−x39+C1 .......... (2)
I2=∫logxdx
Taking logx as first function and 1 as second function and integrating by part x, we obtain
I1=logx∫1⋅dx−∫{(ddxlogx)∫1⋅dx}
=logx⋅x−∫1x⋅xdx
=xlogx−∫1dx
=xlogx−x+C2 ...... (3)
Using equation (2) and (3) in (1), we obtain
I=x33logx−x39+C1+xlogx−x+C2
=x33logx−x39+xlogx−x+(C1+C2)
=(x33+x)logx−x39−x+C