<s>[INST] Solve $10x^4-7x^2(x^2+x+1)+(x^2+x+1)^2=0$ How to solve the following equation?
$$10x^4-7x^2(x^2+x+1)+(x^2+x+1)^2=0$$

My attempt:
$$ 10x^4 - (7x^2+1)(x^2+x+1)=0$$
Thats all i can
Update
Tried to open brakets and simplify:
$$(7x^2+1)(x^2+x+1) = 7x^4+7x^3+7x^2+x^2+x+1=7x^4+7x^3+8x^2+1 $$
$$10x^4 - (7x^2+1)(x^2+x+1)= 3x^4-7x^3-8x^2-1=0 $$
 [/INST] Set $A=x^2,B=x^2+x+1$. 
Then,
$$\begin{align}10x^4-7x^2(x^2+x+1)+(x^2+x+1)^2&=10A^2-7AB+B^2\\&=(2A-B)(5A-B)\\&=(2x^2-(x^2+x+1))(5x^2-(x^2+x+1))\\&=(x^2-x-1)(4x^2-x-1)\end{align}$$
</s>