I'm learning partial fractions. However, I am not sure about when to put $A, B, C..$ into the numerator and when to put $Ax+B, Bx+C..$ into the numerator.
For example, I have the following integral:
$$\int \frac{x^5}{(x-1)^2(x^2-1)}dx$$
and I want to calculate simplify using partial fractions.
I know that $(x-1)^2$ has just one real solution, so I will write it as $\frac{A}{x-1}+\frac{B}{(x-1)^2}$.
However, $x^2-1$ has two real solutions, $\{-1, 1\}$.
Do I write is as $\frac{Cx+D}{(x^2-1)}$ or just $\frac{C}{(x^2-1)}$?
I am really not sure about when to use the simple form $A,B$ and when to use $Cx+D, Dx+E$.
Thanks