Solution:
Key idea: Multiply out the brackets so that the integrand becomes a sum of powers of x. Each power is integrated with ∫xndx=n+1xn+1 (n=−1), and x1 with ∫x1dx=log∣x∣. C is the constant of integration.
Step 1 — Multiply out the brackets.
Each term of the first bracket multiplies each term of the second.
(x+x1)(x2+x21)=x3+x1+x+x31
Step 2 — Integrate term by term.
We write x31 as x−3 and use the logarithm for x1.
∫(x3+x+x1+x−3)dx=4x4+2x2+log∣x∣+−2x−2+C
∫(x3+x+x1+x−3)dx=4x4+2x2+log∣x∣−2x21+C
Therefore, ∫(x+x1)(x2+x21)dx=4x4+2x2+log∣x∣−2x21+C (x=0).