`(x^2-x+1)^4+4x^4=5x^2(x^2-x+1)^2`
Đặt `a=(x^2-x+1)^2,b=x^2`
`pt<=>a^2+4b^2=5ab`
`<=>a^2-5ab+4b^2=0`
`<=>a^2-ab-4ab+4b^2=0`
`<=>a(a-b)-4b(a-b)=0`
`<=>(a-b)(a-4b)=0`
`<=>` $\left[ \begin{array}{l}a=b\\a=4b\end{array} \right.$
`+)a=b`
`<=>x^2=(x^2-x+1)^2`
`<=>(x^2+1)(x^2-2x+1)=0`
`<=>(x-1)^2=0` do `x^2+1>0`
`<=>x=1`
`+)a=4b`
`<=>x^2=4(x^2-x+1)^2`
`<=>x^2=(2x^2-2x+1)^2`
`<=>(2x^2-x+1)(2x^2-3x+1)=0`
`+)2x^2-x+1=0`
`<=>x^2-1/2x+1/2=0`
`<=>(x-1/4)^2+7/16=0` vô lý
`+)2x^2-3x+1=0`
`<=>2x^2-2x-x+1=0`
`<=>2x(x-1)-(x-1)=0`
`<=>(x-1)(2x-1)=0`
`<=>` $\left[ \begin{array}{l}x=1\\x=\dfrac{1}{2}\end{array} \right.$
Vậy `S={1,1/2}`