Solution:
Key idea: Divide each term of the numerator by x2, then integrate each power of x with the power rule ∫xndx=n+1xn+1 (n=−1) and the x1 term with ∫x1dx=log∣x∣. The letter c is already used in the question, so the constant of integration is written k.
Step 1 — Split the fraction.
We divide each term by x2 (for x=0).
x2ax2+bx+c=a+xb+cx−2
Step 2 — Integrate term by term.
The constants a, b, c stay in front; the last term uses the power rule with n=−2.
∫(a+xb+cx−2)dx=ax+blog∣x∣+c⋅−1x−1+k
∫(a+xb+cx−2)dx=ax+blog∣x∣−xc+k
Therefore, ∫x2ax2+bx+cdx=ax+blog∣x∣−xc+k, where k is the constant of integration (x=0).