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:

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.