Diagonal, Triangular, and Symmetric Matrices

MAT1503 - Linear Algebra I · SYSTEMS OF LINEAR EQUATIONS AND MATRICES

Diagonal, Triangular, and Symmetric Matrices

This topic focuses on specific types of matrices: diagonal, triangular, and symmetric matrices. Understanding these matrices is important because they have unique properties that simplify many operations in linear algebra. For example, they can make solving systems of equations easier and help in understanding matrix transformations.

Key idea: After studying this topic, you should be able to:

  • Define and identify diagonal, triangular, and symmetric matrices.
  • Explain the properties of these matrices.
  • Perform operations involving these matrices.

1. Diagonal Matrices

A diagonal matrix is a square matrix in which all the elements outside the main diagonal are zero. In other words, if a matrix A is diagonal, then:

A = [[a, 0, 0],
     [0, b, 0],
     [0, 0, c]]

Here, a, b, and c are the diagonal elements. For example:

A = [[3, 0, 0],
     [0, 5, 0],
     [0, 0, 2]]

Properties of Diagonal Matrices

  • The determinant of a diagonal matrix is the product of its diagonal elements.
  • The inverse of a diagonal matrix (if it exists) is also a diagonal matrix, where each diagonal element is the reciprocal of the original diagonal element.

Example: Determinant and Inverse

Consider the diagonal matrix:

B = [[4, 0],
     [0, 9]]

The determinant of B is:

det(B) = 4 × 9 = 36

The inverse of B is:

B^(-1) = [[1/4, 0],
           [0, 1/9]]

2. Triangular Matrices

A triangular matrix is also a square matrix. It can be either upper triangular or lower triangular. An upper triangular matrix has all elements below the main diagonal equal to zero, while a lower triangular matrix has all elements above the main diagonal equal to zero.

Upper Triangular Matrix

C = [[1, 2, 3],
     [0, 5, 6],
     [0, 0, 8]]

Lower Triangular Matrix

D = [[7, 0, 0],
     [4, 5, 0],
     [1, 2, 3]]

Properties of Triangular Matrices

  • The determinant of an upper or lower triangular matrix is the product of its diagonal elements.
  • The inverse of a triangular matrix (if it exists) is also a triangular matrix.

Example: Determinant of Triangular Matrix

Consider the upper triangular matrix:

E = [[2, 3],
     [0, 4]]

The determinant of E is:

det(E) = 2 × 4 = 8

3. Symmetric Matrices

A symmetric matrix is a square matrix that is equal to its transpose. The transpose of a matrix is obtained by swapping its rows and columns. For a matrix A to be symmetric, it must satisfy the condition A = AT.

F = [[1, 2, 3],
     [2, 5, 6],
     [3, 6, 9]]

Properties of Symmetric Matrices

  • The eigenvalues of a symmetric matrix are always real.
  • The eigenvectors corresponding to distinct eigenvalues are orthogonal.

Example: Checking for Symmetry

Consider the matrix:

G = [[4, 1, 2],
     [1, 5, 3],
     [2, 3, 6]]

To check if G is symmetric, we find its transpose:

GT = [[4, 1, 2],
              [1, 5, 3],
              [2, 3, 6]]

Since G = GT, G is a symmetric matrix.

4. Operations with Special Matrices

When performing operations with diagonal, triangular, and symmetric matrices, certain rules apply that make calculations easier.

Matrix Addition

When adding two diagonal matrices, the result is also a diagonal matrix:

H = [[1, 0],
     [0, 2]]

K = [[3, 0],
     [0, 4]]

H + K = [[1 + 3, 0],
          [0, 2 + 4]] = [[4, 0],
                         [0, 6]]

Matrix Multiplication

When multiplying diagonal matrices, the result is also a diagonal matrix:

L = [[2, 0],
     [0, 3]]

M = [[4, 0],
     [0, 5]]

L × M = [[2 × 4, 0],
          [0, 3 × 5]] = [[8, 0],
                         [0, 15]]

Matrix Product of Symmetric Matrices

The product of two symmetric matrices is not always symmetric. For example:

N = [[1, 2],
     [2, 3]]

O = [[4, 5],
     [5, 6]]

N × O = [[1×4 + 2×5, 1×5 + 2×6],
          [2×4 + 3×5, 2×5 + 3×6]] = [[14, 17],
                                     [23, 28]]

Here, the product is not symmetric.

Watch out: Remember that the product of two symmetric matrices is not necessarily symmetric. Always check the result.

Summary

  • A diagonal matrix has non-zero elements only on its main diagonal.
  • A triangular matrix can be upper or lower triangular, with zero elements on one side of the diagonal.
  • A symmetric matrix is equal to its transpose.
  • Operations on these matrices often result in similar types of matrices.

Check your understanding

  • What is a diagonal matrix? Give an example.
  • Explain the difference between upper and lower triangular matrices.
  • How can you determine if a matrix is symmetric?
  • What are the properties of the determinant for triangular matrices?

Test yourself

5 quick questions on this lesson. Pick an answer to see if you're right.

  1. 1. If matrix N = is symmetric, what is its transpose?

  2. 2. How can you determine if a matrix G is symmetric?

  3. 3. What is a diagonal matrix?

  4. 4. Which statement is true about the product of two symmetric matrices?

  5. 5. Which statement is always true for any square matrix A?