This is LaTeX code:
[latex]
(3+i)^2 = 3^2 + 2 \cdot 3 \cdot i + i^2 = 9 +6i -1 =8+6i
[/latex]