We want to evaluate the integral
$$\int \frac{-x^2+x+4}{(1-x)^2(3x+1)} dx$$
What I have troubles with, is to understand the principle of partial fraction decomposition.
For instance, here we'd have
$$\frac{-x^2+x+4}{(1-x)^2 (3x+1)} = \frac{c_1}{(1-x)} + \frac{c_2}{(1-x)^2} + \frac{c_3}{(3x+1)}$$
Sure, we could say
$$ c_3 = \bigg(\frac{-x^2+x+4}{(1-x)^2 (3x+1)} - \frac{c_1}{(1-x)} - \frac{c_2}{(1-x)^2} \bigg) \cdot (3x+1)$$
but how does that help us?
How do we find out that
$c_3 = 2$, $c_2 = 1$ and $c_1 = 1$?
$$c_3 = \frac{-x^2+x+4}{(1-x)^2} - \frac{c_1(3x+1)}{(1-x)} - \frac{c_2(3x+1)}{(1-x)^2}$$
Then substitute $x=-\frac13$ to find $c_3$. Similarly for $c_2$.
– peterwhy Jul 27 '22 at 16:46