Diagonal matrix
In linear algebra, a diagonal matrix is a matrix whose only non-zero entries are those on the main diagonal (top left to bottom right). Thus, the matrix D = (di,j) is diagonal if:
Example:
Any diagonal matrix is also a symmetric matrix. The identity matrix In is diagonal.
Diagonal matrices occur in many areas of linear algebra. Matrix multiplication of diagonal matrices is very simple, so if a matrix we are interested in can in some way be replaced by a diagonal one, computations involving it are much faster.
If D, E are diagonal, and their product DE = F = (fi,j) then:
in other words, diagonal matrices can simply be multiplied entry by entry, because the zeros cancel all the other parts of the multiplication formula.
See also diagonalization.