Question :Write $$\frac{x^5}{(x^2+1 )(x+1)^2}$$ as a sum of partial fraction
What I've tried is to do polynomial long division twice to reduce the degree of numerator to be smaller than denominator than carry on to the normal steps of partial fraction decomposition
this is what i get $$x - 2 + \frac{1}{2x^2+2} + \frac{2}{x+1} - \frac{1}{2(x+1)^2}$$
but i'm not sure if its correct