Solution:
Key idea: A polynomial divided by a single power of x is split into separate terms, one for each term of the numerator. Each term is then a power of x, integrated with ∫xndx=n+1xn+1 for n=−1, and ∫x1dx=log∣x∣.
Step 1 — Divide each term by x².
We divide every term of the numerator by x2 separately.
x2x3+5x2+4x+1=x+5+x4+x21
Step 2 — Integrate term by term.
We use the power rule for x, 5 and x−2, and the logarithm rule for x4.
∫xdx=2x2
∫5dx=5x
∫x4dx=4log∣x∣
∫x−2dx=−x1
Step 3 — Add the results.
We collect the four results and add one constant of integration C.
I=2x2+5x+4log∣x∣−x1+C
Watch out: The term x4 is 4x−1, and the power rule fails for n=−1. That is why it gives a logarithm.
Therefore, ∫x2x3+5x2+4x+1dx=2x2+5x+4log∣x∣−x1+C.