This is LaTeX code:

[latex]
\displaystyle
A=\left[ \begin{array}{cc}
1 & 0 \\
0 & -1
\end{array}\right]
[/latex]