This is LaTeX code:

[latex]
X^2 = \left( \begin{array}{cc}
0 & 4\\
1/2 & 1/2
\end{array}\right)
[/latex]