This is LaTeX code:

[latex]
(\omega+1)(\omega+1)=(\omega+1)\omega+\omega+1=\omega^2+\omega+1
[/latex]