Source TeX:
\begin{bmatrix}a & b \\ c & d\end{bmatrix}