\(\left(8x-4x^2-1\right)\left(x^2+2x+1\right)=4\left(x^2+x+1\right)\)
\(\Leftrightarrow8x^3+16x^2+8x-4x^4-8x^3-4x^2-x^2-2x-1=4x^2+4x+4\)
\(\Leftrightarrow11x^2+6x-4x^4-1=4x^2+4x+4\)
\(\Leftrightarrow11x^2+6x-4x^2-1-4x^2-4x-4=0\)
\(\Leftrightarrow7x^2+2x-4x^4-4=0\)
\(\Leftrightarrow\left(-4x^3-4x^2+3x+5\right)\left(x-1\right)=0\)
\(\Leftrightarrow\left(-4x^2-8x-5\right)\left(x-1\right)\left(x-1\right)=0\)
\(\Leftrightarrow x-1=0\)
\(\Leftrightarrow x=1\)