← Back to Math 010

1.7 Diagonal, Triangular, and Symmetric Matrices: Class Notes

Definition

A square matrix in which all the entries off the main diagonal are zero is called a diagonal matrix.

Is [000000000] diagonal? Yes: every entry off the main diagonal is zero (the diagonal entries are allowed to be zero too).

#3

Find the product by inspection.

[3000−10002][21−4125]

Solution

Multiplying on the left by a diagonal matrix multiplies each row by the corresponding diagonal entry: row 1 by 3, row 2 by −1, row 3 by 2.

Answer: [634−1410]

#8

Find A2, A−2, and Ak (where k is any integer) by inspection.

A=[−600030005]

Solution

Powers of a diagonal matrix are found by raising each diagonal entry to that power.

Answer: A2=[36000900025]

Answer: A−2=[1/360001/90001/25]

Answer: Ak=[(−6)k0003k0005k]

Definitions

A square matrix in which all entries below the main diagonal are zero is an upper triangular matrix. A square matrix in which all entries above the main diagonal are zero is a lower triangular matrix. If a matrix is either upper triangular or lower triangular (or both), it is said to be triangular.

A diagonal matrix is also triangular.

Consider A=[aij], a square matrix.

Square matrix split by the main diagonal into the region above it (i less than j) and below it (i greater than j)

A square matrix A=[aij] with diagonal entries d1,d2,…,dn. The entries on and above the main diagonal (the region where i<j, plus the diagonal) are shaded purple. The entries below the main diagonal (where i>j) are shaded green.

In an upper triangular matrix, any nonzero entries are on or above the main diagonal (entries with i>j are zero). In a lower triangular matrix, any nonzero entries are on or below the main diagonal (entries with i<j are zero).

Theorem 1.7.1 Properties of Triangular Matrices

  1. The transpose of a lower triangular matrix is upper triangular, and the transpose of an upper triangular matrix is lower triangular.
  2. The product of lower triangular matrices is lower triangular, and the product of upper triangular matrices is upper triangular.
  3. A triangular matrix is invertible if and only if its diagonal entries are all nonzero.
  4. The inverse of an invertible lower triangular matrix is lower triangular, and the inverse of an invertible upper triangular matrix is upper triangular.

Proof of (a)

(Lower triangular.) Let A=[aij] be a lower triangular matrix. Then aij=0 if i<j, that is, if the row number is less than the column number. But

AT=[aij]T=[aji],

and aji=0 for j>i, that is, if the row number is greater than the column number. AT is then upper triangular.

#19

Determine by inspection whether the matrix is invertible.

[06−107−4002]

Solution

The matrix is upper triangular. Since a11=0, it is not invertible (Theorem 1.7.1 (c)).

Answer: Not invertible

#23

Find the diagonal entries of AB by inspection.

A=[32601−200−1],B=[−127053006]

Solution

Both matrices are upper triangular, so (see #46) each diagonal entry of AB is the product of the corresponding diagonal entries: 3(−1), 1(5), (−1)(6).

Answer: (AB)11=−3,(AB)22=5,(AB)33=−6

#46

Prove: If the matrices A and B are both upper triangular or both lower triangular, then the diagonal entries of both AB and BA are the products of the diagonal entries of A and B.

Proof of the upper triangular case

The ijth entry of AB comes from row i of A, [ai1ai2⋯ain], and column j of B, [b1jb2j⋯bnj]T.

Let A=[aij] and B=[bij] be n×n upper triangular matrices. Then aij=0 and bij=0 if i>j.

The ijth entry of AB=∑k=1naikbkj.

If i>k (or k<i), aik=0, and if k>j (or j<k), bkj=0. [Thus, AB is upper triangular.]

(AB)ii=∑k=1naikbki.

But if i≠k, then aikbki=0 (one of the two factors is below the diagonal), so

(AB)ii=aiibii.

Definition

A square matrix A is said to be symmetric if A=AT.

Theorem 1.7.2 Algebraic Properties of Symmetric Matrices

If A and B are symmetric matrices with the same size, and if k is any scalar, then:

  1. AT is symmetric.
  2. A+B and A−B are symmetric.
  3. kA is symmetric.

Theorem 1.7.3

The product of two symmetric matrices is symmetric if and only if the matrices commute.

Theorem 1.7.4

If A is an invertible symmetric matrix, then A−1 is symmetric.

Theorem 1.7.5

If A is an invertible matrix, then AAT and ATA are also invertible.

Proof

A invertible ⇒ AT is invertible (Theorem 1.4.9). Then AAT and ATA are each products of invertible matrices, and so are invertible by Theorem 1.4.6.