This is LaTeX code:
[latex]
(-2x-2)(x^2+1)-4x(-x^2-2x+1)=0 \Longleftrightarrow -x^3-3x^2+3x+1=0
[/latex]