Partial Fractions and power of a factor with $x^2$ I just started working with partial fractions and hit a wall with splitting this one:
$$ \frac{3x^2 + 2x + 1}{(x + 2)(x^2 + x + 1)^2} $$
I get here:
$$ \frac{Ax + B}{(x^2 + x + 1)^2} + \frac{Cx + D}{x^2 + x + 1} + \frac{E}{x + 2}$$
Then on to:
$$ (Ax + B)(x + 2) + (Cx + D)(x^2 + x + 1)(x + 2) + E(x^2 + x + 1)^2 $$
I find that $E = 1$ by using $x = -2$. I am unsure how to proceed from here.

You already have 
\begin{align*}
&\frac{3x^2 + 2x + 1}{(x + 2)(x^2 + x + 1)^2}\\
&= \frac{Ax + B}{(x^2 + x + 1)^2} + \frac{Cx + D}{x^2 + x + 1} + \frac{E}{x + 2}\\ 
&= \frac{(Ax + B)(x + 2) + (Cx + D)(x^2 + x + 1)(x + 2) + E(x^2 + x + 1)^2}{(x+2)(x^2+x+1)^2}.
\end{align*}
Multiplying both sides by $(x+2)(x^2+x+1)^2$ we have $$3x^2 + 2x + 1 = (Ax + B)(x + 2) + (Cx + D)(x^2 + x + 1)(x + 2) + E(x^2 + x + 1)^2.$$ The right hand side is a quartic equation. If you expand all the brackets, you can collect all the like terms to get an equation as follows: $$3x^2 + 2x + 1 = k_4x^4 + k_3x^3+k_2x^2+k_1x+k_0$$ where $k_i$ depends on $A, B, C, D,$ and $E$. Then you can compare the coefficients of $1, x, x^2, x^3,$ and $x^4$ to get five equations in five unknowns which will be enough to determine $A, B, C, D,$ and $E$.
