I want to create a simple matrix and the code is given below, but I got error when I compile it. Could anyone help with this?
$$e^{-{\cal L}=
\left[
\begin{array}{cccccc}
1 & 0 & . & . & . & 0 \\
0 & 0 & . & . & . & 0 \\
0 & 0 & . & . & . & 0 \\
0 & 0 & . & . & . & 0 \\
0 & 0 & . & . & . & 0 \\
0 & 0 & . & . & . & 0 \\
\end{array}
\right]$$

e^{-{\cal L}– Steven B. Segletes Nov 17 '13 at 01:16bmatrixyou won't have to specify the delimiters and the centering. And you can use\cdotsinstead of multiple columns. Also see http://tex.stackexchange.com/questions/503/why-is-preferable-to – Ethan Bolker Nov 17 '13 at 01:26\mathcal{L}is used instead of{\cal L}which has been obsolete for twenty years. – egreg Nov 17 '13 at 10:02e^{-L}has matrix inversee^{+L}(or\det e^{-L}=\exp(-trace of L)\neq 0). – Nov 17 '13 at 21:41