This is LaTeX code:

[latex]
x^4+2x^3+3x^2+2x+1=x^2(x^2+2x+3+\frac{2}{x}+\frac{1}{x^2})=x^2[x^2+\frac{1}{x^2}+2(x+\frac{1}{x})+3]
[/latex]