This is LaTeX code:
[latex]
\displaystyle\left[\begin{array}{cc}1&0\\0&-1\end{array}\right]
[/latex]