When to use: Integrating P(x) where Q(x) factors into linear and quadratic terms.
Step 1: If deg(P) >= deg(Q), divide first to get polynomial + proper fraction.
Step 2: Factor Q(x) completely over the reals.
Step 3: Write the decomposition:
- Each factor (x-a) contributes
- Each factor (x-a)^k contributes + ^2 + ... + ^k
- Each factor () contributes
- Repeated quadratic factors: similar stacking
Step 4: Find coefficients by:
- Substituting roots of Q (cover-up method for distinct linear factors)
- Comparing coefficients of powers of x
- Using convenient values of x
Step 5: Integrate each term:
- => A*ln|x-a|
- ^n => A(x-a)^
- => split into ln and arctan parts