Solution:
Key idea: We integrate by parts, ∫uvdx=u∫vdx−∫(dxdu∫vdx)dx, with u=log(1+x2) as the first function and v=x21 as the second, since ∫x2dx=−x1. The integrand needs x=0.
Step 1 — Find the pieces needed.
By the chain rule, the derivative of log(1+x2) is 1+x22x.
dxdu=1+x22x
∫x2dx=−x1
Step 2 — Apply the parts formula.
We put these into the formula; the x cancels and the two minus signs make a plus.
I=log(1+x2)(−x1)−∫1+x22x(−x1)dx
I=−xlog(1+x2)+2∫1+x2dx
Step 3 — Finish the remaining integral.
We use ∫1+x2dx=tan−1x.
I=−xlog(1+x2)+2tan−1x+C
Therefore, ∫x2log(1+x2)dx=−xlog(1+x2)+2tan−1x+C for x=0.