[Tex/LaTex] How to create a matrix by itself and have a letter equal to it

math-modematrices

enter image description here

I am trying to exactly duplicate this picture here in LaTex.
… so far all i have is

 \[ \left( \begin{array}{ccc}
a & 0 & 0 \\
0 & b & 0 \\
0 & 0 & c \end{array} \right)\]  

which creates just the matrix on the left but i don't know how to insert the D = and the rest of the image.

Much help would be greatly appreciated
Thank you much

Best Answer

Or maybe is something like this what you want:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ D = \begin{pmatrix}
a & 0 & 0 \\
0 & b & 0 \\
0 & 0 & c \end{pmatrix} \Longrightarrow 
D^3 = \begin{pmatrix}
a^3 & 0 & 0 \\
0 & b^3 & 0 \\
0 & 0 & c^3 \end{pmatrix} \] 
\end{document}

Is the same code of Ignasi, but I used the pmatrix environment from the amsmath package. For me is easier to write a matrix in this way.

Related Question