Lably
Skip to content

Main diagonal

Entries of a matrix for which the row and column indices are equal

  • 2 min read
  • 2 chapters

Related on Lably

Through Linear algebra, Matrix (mathematics) and 0

[100010001][100001000010][100010001000][1000010000100001]

Square matrices

For a square matrix, the diagonal (or main diagonal or principal diagonal) is the diagonal line of entries running from the top-left corner to the bottom-right corner. That is, the diagonal of a matrix consists of the elements, called diagonal entries or diagonal elements, for which the row index and the column index are equal.

For example, the identity matrix can be defined as having entries of 1 on the main diagonal and zeroes elsewhere:

(100010001)

The trace of a matrix is the sum of the diagonal elements.

The top-right to bottom-left diagonal is sometimes described as the minor diagonal or antidiagonal.

The off-diagonal entries are those not on the main diagonal. A diagonal matrix is one whose off-diagonal entries are all zero.

A superdiagonal entry is one that is directly above and to the right of the main diagonal. Just as diagonal entries are those Aij with j=i, the superdiagonal entries are those with j=i+1. For example, the non-zero entries of the following matrix all lie in the superdiagonal:

(020003000)

Likewise, a subdiagonal entry is one that is directly below and to the left of the main diagonal, that is, an entry Aij with j=i−1. General matrix diagonals can be specified by an index k measured relative to the main diagonal: the main diagonal has k=0; the superdiagonal has k=1; the subdiagonal has k=−1; and in general, the k-diagonal consists of the entries Aij with j=i+k.

A banded matrix is one for which its non-zero elements are restricted to a diagonal band. A tridiagonal matrix has only the main diagonal, superdiagonal, and subdiagonal entries as non-zero.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Algebra