<s>[INST] Un-Simplifying a fraction, i.e. computing partial fraction decomposition $\frac{3x^2+17x}{x^3+3x^2+-6x-8}$
I need to find the value of C in the form of 
$\frac{A}{x+1} + \frac{B}{x-2} + \frac{C}{x+4}$
which is based on the fraction give at the top.
I can get so far to do the following:
$A(x^2+2x-8) + B(x^2+5x+4) + C(x^2-x-2) = 3x^2+17x$
No clue on my next step or even if this is the right step.
 [/INST] Hint
You have $$\frac{3 x^2+17 x}{x^3+3 x^2-6 x-8}=\frac{A}{x+1} + \frac{B}{x-2} + \frac{C}{x+4}$$ So, write $$f(x)=3x^2+17x-\Big(A(x-2)(x+4)+B(x+1)(x+4)+C(x+1)(x-2)\Big)=0$$ Now $$f(2)=3\times 2^2+17 \times 2-B\times(2+1)\times(2+4)=46-18B=0$$ Repeat for $f(-1)$ and $f(-4)$; you just have one linear equation at the time.
</s>