I was wondering if someone would be kind enough to walk me through the logic used in solving the following integral. I have been to class, and have read the section (9.4 of Swokowski's Classic), and have studied the answer in the solution manual, but I can't quite seem to make sense of the rules posed (p.474, Swokowski's Classic) for the decomposition.
$$ \int\frac{x^2+3x+1}{x^4+5x^2+4}dx $$
Factors to:
$$ \int\frac{x^2+3x+1}{(x^2+4)(x^2+1)}dx $$
And this is where I get completely lost. I can do simple ones, such as
$$ \int\frac{x+16}{x^2+2x-8} $$
where they reduce to
$$ \frac{A}{x+4} + \frac{B}{x-2} $$
But the solution manual suggests that A and B should be Ax+B and Cx+D, referring to the aforementioned rule, and I'm quite confused.
Thank you very much!
You can still do the partial fraction decomposition for the integrand, but now $A$ and $B$ would need to be linear functions of $x$, rather than constants: $$ \frac{x^2+3x+1}{(x^2+4)(x^2+1)} = \frac{1-x}{x^2+4}+\frac{x}{x^2+1} $$ Then use table integrals: $$ \int \frac{a x+b}{x^2+d^2} \mathrm{d} x = \frac{b}{d} \arctan\left(\frac{x}{d} \right) + \frac{a}{2} \log\left(x^2+d^2\right) $$