Square matrix

A Square Matrix is one with an equal number of rows and columns (m = n). This type of matrix is known as a matrix of order n and is commonly represented by the symbol A(n).

an example of a square matrix

Applications of Square Matrices Square matrices have specific properties that make them particularly valuable in Linear Algebra.

Diagonals of a Square Matrix

Square matrices feature two distinct diagonals:

  1. Main Diagonal: For a square matrix of order n, the main diagonal consists of elements ai,i where i = 1, ..., n. It runs from the top-left to the bottom-right.
    the main diagonal of a square matrix
  2. Secondary Diagonal: This diagonal consists of elements ai,i for i = n, ..., 1 and extends from the top-right to the bottom-left.
    the secondary diagonal

Note: Only square matrices have diagonals; rectangular, row, column, and null matrices lack diagonals.

Diagonal, Upper Triangular, and Lower Triangular Matrices

Square matrices can also be categorized as diagonal, upper triangular, or lower triangular:

  • Upper Triangular Matrices: A matrix is upper triangular if aij = 0 for every i > j, meaning all elements below the main diagonal are zero.
    an upper triangular matrix

    The set of real upper triangular matrices of order n is denoted by Un(R).

    Strictly Upper Triangular Matrices: A matrix is strictly upper triangular if aij = 0 for every i ≥ j, including all elements on and below the main diagonal.
    another example of an upper triangular matrix
    The set of strictly upper triangular matrices of order n is represented as U*n(R).

  • Lower Triangular Matrices: A matrix is lower triangular if aij = 0 for every i < j, indicating that all elements above the main diagonal are zero.
    a lower triangular matrix

    The set of real lower triangular matrices of order n is designated as Ln(R).

    Strictly Lower Triangular Matrices: A matrix is strictly lower triangular if aij = 0 for every i ≤ j, including elements on and above the main diagonal.
    another example of a lower triangular matrix
    This set is represented by L*n(R).

  • Diagonal: A square matrix is diagonal if aij = 0 for every i ≠ j, meaning all elements outside the main diagonal are zero. Thus, a diagonal matrix is both upper and lower triangular.
    a diagonal matrix

    The set of n x n real diagonal matrices is denoted by Dn(R).

Note: An upper or lower triangular classification does not require other elements to be nonzero.

Special Types of Square Matrices in Linear Algebra

The zero matrix is a notable case, as it is simultaneously lower triangular, upper triangular, strictly lower and upper triangular, and diagonal.
a zero matrix

Another unique case is the square matrix of order 1, which consists of just one element, a1,1.

a square matrix of order 1

By definition, a square matrix of order 1 is always lower triangular, upper triangular, and diagonal.

Note: If a1,1 = 0, the square matrix of order 1 is also strictly lower and upper triangular.
a square matrix of order 1

 
 

Please feel free to point out any errors or typos, or share suggestions to improve these notes. English isn't my first language, so if you notice any mistakes, let me know, and I'll be sure to fix them.

FacebookTwitterLinkedinLinkedin
knowledge base

Matrices (linear algebra)