Elementary Transformations and the Rank of a Matrix

Elementary Transformations

Elementary Row Operations

The following three transformations of a matrix are called elementary row operations:

  1. Interchanging two rows: interchange row ii and row jj, written Ri↔RjR_i \leftrightarrow R_j
  2. Multiplying a row by a scalar: multiply row ii by a nonzero constant kk, written Ri×kR_i \times k
  3. Adding a multiple of one row to another: add kk times row jj to row ii, written Ri+kRjR_i + kR_j

Elementary Column Operations

The following three transformations of a matrix are called elementary column operations:

  1. Interchanging two columns: interchange column ii and column jj, written Ci↔CjC_i \leftrightarrow C_j
  2. Multiplying a column by a scalar: multiply column ii by a nonzero constant kk, written Ci×kC_i \times k
  3. Adding a multiple of one column to another: add kk times column jj to column ii, written Ci+kCjC_i + kC_j

Properties of Elementary Transformations

  1. Invertibility: each elementary transformation has its own inverse transformation
  2. Rank preservation: elementary transformations do not change the rank of the matrix
  3. Equivalence preservation: elementary transformations preserve the equivalence relation between matrices

Elementary Matrices

The Definition of an Elementary Matrix

A matrix obtained by applying one elementary transformation to the identity matrix II is called an elementary matrix.

The Types of Elementary Matrices

1. Interchange Elementary Matrices

The matrix obtained by interchanging row ii and row jj of the identity matrix:

Eij=(1⋱01110⋱1)E_{ij} = \begin{pmatrix} 1 & & & & & & \\ & \ddots & & & & & \\ & & 0 & & 1 & & \\ & & & 1 & & & \\ & & 1 & & 0 & & \\ & & & & & \ddots & \\ & & & & & & 1 \end{pmatrix}

2. Scaling Elementary Matrices

The matrix obtained by multiplying row ii of the identity matrix by a nonzero constant kk:

Ei(k)=(1⋱k⋱1)E_i(k) = \begin{pmatrix} 1 & & & & \\ & \ddots & & & \\ & & k & & \\ & & & \ddots & \\ & & & & 1 \end{pmatrix}

3. Shear Elementary Matrices

The matrix obtained by adding kk times row jj of the identity matrix to row ii:

Eij(k)=(1⋱1k⋱1⋱)E_{ij}(k) = \begin{pmatrix} 1 & & & & & \\ & \ddots & & & & \\ & & 1 & & k & \\ & & & \ddots & & \\ & & & & 1 & \\ & & & & & \ddots \end{pmatrix}

Properties of Elementary Matrices

  1. Invertibility: every elementary matrix is invertible

  2. Inverse matrix:

    • Eij−1=EijE_{ij}^{-1} = E_{ij}
    • Ei(k)−1=Ei(1k)E_i(k)^{-1} = E_i(\frac{1}{k})
    • Eij(k)−1=Eij(−k)E_{ij}(k)^{-1} = E_{ij}(-k)
  3. Left-multiplication: left-multiplying a matrix AA by an elementary matrix amounts to performing the corresponding elementary row operation on AA

  4. Right-multiplication: right-multiplying a matrix AA by an elementary matrix amounts to performing the corresponding elementary column operation on AA

The Rank of a Matrix

The Definition of the Rank of a Matrix

The rank of a matrix AA is the number of linearly independent rows (or columns) in the largest such set, written r(A)r(A) or rank(A)\text{rank}(A).

Equivalent definitions:

  • The rank of AA equals the order of its highest-order nonzero minor
  • The rank of AA equals the number of nonzero rows in its row echelon form

Properties of the Rank of a Matrix

  1. Basic properties:

    • 0≤r(A)≤min⁡(m,n)0 \leq r(A) \leq \min(m, n) (AA is an m×nm \times n matrix)
    • r(A)=0r(A) = 0 if and only if A=OA = O
    • r(A)=nr(A) = n if and only if AA has full rank
  2. Properties under operations:

    • r(A+B)≤r(A)+r(B)r(A + B) \leq r(A) + r(B)
    • r(AB)≤min⁡(r(A),r(B))r(AB) \leq \min(r(A), r(B))
    • r(AT)=r(A)r(A^T) = r(A)
    • r(kA)=r(A)r(kA) = r(A) (k≠0k \neq 0)
  3. Elementary transformation property: elementary transformations do not change the rank of the matrix

Methods for Computing the Rank of a Matrix

Method 1: The Minor Method

  1. Starting from the highest order, compute the minors of the matrix
  2. The first nonzero minor you find has order equal to the rank of the matrix

Method 2: The Elementary Transformation Method

  1. Apply elementary row operations to the matrix to reduce it to row echelon form
  2. Count the number of nonzero rows

Example: find the rank of the matrix A=(123246111)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & 1 \end{pmatrix}

Solution: (123246111)\begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & 1 \end{pmatrix}

R2−2R1R_2 - 2R_1: (123000111)\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \\ 1 & 1 & 1 \end{pmatrix}

R3−R1R_3 - R_1: (1230000−1−2)\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \\ 0 & -1 & -2 \end{pmatrix}

R2↔R3R_2 \leftrightarrow R_3: (1230−1−2000)\begin{pmatrix} 1 & 2 & 3 \\ 0 & -1 & -2 \\ 0 & 0 & 0 \end{pmatrix}

There are 2 nonzero rows, so r(A)=2r(A) = 2.

Matrix Equivalence

The Definition of Matrix Equivalence

If the matrix AA can be transformed into the matrix BB by a finite number of elementary transformations, then AA and BB are called equivalent, written A∼BA \sim B.

The Necessary and Sufficient Condition for Matrix Equivalence

The Necessary and Sufficient Condition for Matrix Equivalence

Two matrices AA and BB of the same size are equivalent if and only if they have the same rank.

The Canonical Form

Every matrix can be transformed by elementary transformations into the following form:

(IrOOO)\begin{pmatrix} I_r & O \\ O & O \end{pmatrix}

where IrI_r is the r-th order identity matrix and rr is the rank of the matrix.

Block Matrices

The Definition of a Block Matrix

Splitting a matrix along its rows and columns into several submatrices gives these submatrices the name block matrices.

Example:

A=(A11A12A21A22)A = \begin{pmatrix} A_{11} & A_{12} \\ A_{21} & A_{22} \end{pmatrix}

where A11,A12,A21,A22A_{11}, A_{12}, A_{21}, A_{22} are all submatrices.

Operations on Block Matrices

1. Addition of Block Matrices

Let A=(A11A12A21A22)A = \begin{pmatrix} A_{11} & A_{12} \\ A_{21} & A_{22} \end{pmatrix} and B=(B11B12B21B22)B = \begin{pmatrix} B_{11} & B_{12} \\ B_{21} & B_{22} \end{pmatrix}. Then:

A+B=(A11+B11A12+B12A21+B21A22+B22)A + B = \begin{pmatrix} A_{11} + B_{11} & A_{12} + B_{12} \\ A_{21} + B_{21} & A_{22} + B_{22} \end{pmatrix}

2. Multiplication of a Block Matrix by a Scalar

kA=(kA11kA12kA21kA22)kA = \begin{pmatrix} kA_{11} & kA_{12} \\ kA_{21} & kA_{22} \end{pmatrix}

3. Multiplication of Block Matrices

Let A=(A11A12A21A22)A = \begin{pmatrix} A_{11} & A_{12} \\ A_{21} & A_{22} \end{pmatrix} and B=(B11B12B21B22)B = \begin{pmatrix} B_{11} & B_{12} \\ B_{21} & B_{22} \end{pmatrix}. Then:

AB=(A11B11+A12B21A11B12+A12B22A21B11+A22B21A21B12+A22B22)AB = \begin{pmatrix} A_{11}B_{11} + A_{12}B_{21} & A_{11}B_{12} + A_{12}B_{22} \\ A_{21}B_{11} + A_{22}B_{21} & A_{21}B_{12} + A_{22}B_{22} \end{pmatrix}

Note: multiplication of block matrices requires the corresponding submatrices to be multipliable.

Special Block Matrices

1. Block-Diagonal Matrices

A=(A1A2⋱An)A = \begin{pmatrix} A_1 & & \\ & A_2 & \\ & & \ddots \\ & & & A_n \end{pmatrix}

2. Upper-Triangular Block Matrices

A=(A11A12⋯A1nA22⋯A2n⋱⋮Ann)A = \begin{pmatrix} A_{11} & A_{12} & \cdots & A_{1n} \\ & A_{22} & \cdots & A_{2n} \\ & & \ddots & \vdots \\ & & & A_{nn} \end{pmatrix}

3. Lower-Triangular Block Matrices

A=(A11A21A22⋮⋮⋱An1An2⋯Ann)A = \begin{pmatrix} A_{11} & & & \\ A_{21} & A_{22} & & \\ \vdots & \vdots & \ddots & \\ A_{n1} & A_{n2} & \cdots & A_{nn} \end{pmatrix}

The Determinant of a Block Matrix

For a 2×22 \times 2 block matrix A=(A11A12A21A22)A = \begin{pmatrix} A_{11} & A_{12} \\ A_{21} & A_{22} \end{pmatrix}:

  1. If A11A_{11} is invertible, then: ∣A∣=∣A11∣⋅∣A22−A21A11−1A12∣|A| = |A_{11}| \cdot |A_{22} - A_{21}A_{11}^{-1}A_{12}|

  2. If A22A_{22} is invertible, then: ∣A∣=∣A22∣⋅∣A11−A12A22−1A21∣|A| = |A_{22}| \cdot |A_{11} - A_{12}A_{22}^{-1}A_{21}|

  3. If A12=OA_{12} = O or A21=OA_{21} = O, then: ∣A∣=∣A11∣⋅∣A22∣|A| = |A_{11}| \cdot |A_{22}|

Exercises

Exercise 1

Write down the elementary matrix that interchanges the first row and the second row of the matrix A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}.

elementary transformationrank of a matrixelementary matrixmatrix

Approach: Construct the interchange elementary matrix.

Steps:

  1. Interchange row 1 and row 2 of the identity matrix
  2. E=(0110)E = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

Answer: E=(0110)E = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

Exercise 2

Reduce the matrix A=(123246111)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & 1 \end{pmatrix} to row echelon form by elementary row operations.

elementary transformationrank of a matrixelementary matrixelementary row operation

Approach: Use elementary row operations to reduce the matrix to row echelon form.

Steps:

(123246111)\begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & 1 \end{pmatrix}

R2−2R1R_2 - 2R_1: (123000111)\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \\ 1 & 1 & 1 \end{pmatrix}

R3−R1R_3 - R_1: (1230000−1−2)\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \\ 0 & -1 & -2 \end{pmatrix}

R2↔R3R_2 \leftrightarrow R_3: (1230−1−2000)\begin{pmatrix} 1 & 2 & 3 \\ 0 & -1 & -2 \\ 0 & 0 & 0 \end{pmatrix}

Answer: the row echelon form is (1230−1−2000)\begin{pmatrix} 1 & 2 & 3 \\ 0 & -1 & -2 \\ 0 & 0 & 0 \end{pmatrix}

Exercise 3

Find the rank of the matrix A=(123246111)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & 1 \end{pmatrix}.

elementary transformationrank of a matrixelementary matrixmatrix

Approach: Reduce to row echelon form by elementary transformations and count the nonzero rows.

Steps:

  1. Apply elementary row operations to AA: R2→R2−2R1R_2 \to R_2 - 2R_1 and R3→R3−R1R_3 \to R_3 - R_1, giving (1230000−1−2)\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \\ 0 & -1 & -2 \end{pmatrix}.
  2. Then interchange the second and third rows to obtain the row echelon form (1230−1−2000)\begin{pmatrix} 1 & 2 & 3 \\ 0 & -1 & -2 \\ 0 & 0 & 0 \end{pmatrix}.
  3. The row echelon form has 2 nonzero rows, so by the definition of the rank the rank of the matrix equals the number of nonzero rows.

Answer: r(A)=2r(A) = 2

Exercise 4

Decide whether the matrices A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B=(2468)B = \begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix} are equivalent.

elementary transformationrank of a matrixelementary matrixmatrix

Approach: Compute the rank of each matrix and check whether they are equal.

Steps:

  1. A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, ∣A∣=−2≠0|A| = -2 \neq 0, so r(A)=2r(A) = 2

  2. B=(2468)B = \begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix}, B=2AB = 2A, so r(B)=r(A)=2r(B) = r(A) = 2

  3. The two matrices have the same rank, so they are equivalent.

Answer: AA and BB are equivalent

Exercise 5

Compute the determinant of the block matrix (ABOC)\begin{pmatrix} A & B \\ O & C \end{pmatrix}, where both AA and CC are invertible matrices.

elementary transformationrank of a matrixelementary matrixblock matrix

Approach: Use the determinant property for block matrices.

Steps:

For the block matrix (ABOC)\begin{pmatrix} A & B \\ O & C \end{pmatrix}, we have A12=OA_{12} = O, so:

∣A∣=∣A11∣⋅∣A22∣=∣A∣⋅∣C∣|A| = |A_{11}| \cdot |A_{22}| = |A| \cdot |C|

Answer: ∣(ABOC)∣=∣A∣⋅∣C∣\left|\begin{pmatrix} A & B \\ O & C \end{pmatrix}\right| = |A| \cdot |C|

Exercise 6

Prove that: if AA is an m×nm \times n matrix, then r(A)≤min⁡(m,n)r(A) \leq \min(m, n).

elementary transformationrank of a matrixelementary matrixmatrix

Approach: Use the definition and the properties of the rank of a matrix.

Steps:

  1. The rank of the matrix equals its largest number of linearly independent rows, and the matrix has only mm rows, so r(A)≤mr(A) \leq m

  2. The rank of the matrix equals its largest number of linearly independent columns, and the matrix has only nn columns, so r(A)≤nr(A) \leq n

  3. Therefore r(A)≤min⁡(m,n)r(A) \leq \min(m, n)

Answer: the proof is complete

Summary

Symbols Used in This Article

SymbolTypePronunciation / NoteMeaning in This Article
Ri↔RjR_i \leftrightarrow R_jMathematical symbolR i swap R jThe elementary row operation that interchanges row ii and row jj
EijE_{ij}Mathematical symbolE i jThe interchange elementary matrix, obtained by interchanging rows i,ji, j of the identity matrix
Ei(k)E_i(k)Mathematical symbolE i of kThe scaling elementary matrix, obtained by multiplying row ii by kk
Eij(k)E_{ij}(k)Mathematical symbolE i j of kThe shear elementary matrix, obtained by adding kk times row jj to row ii
r(A)r(A)Mathematical symbolrank of AThe rank of the matrix AA, the number of linearly independent rows (columns)
A∼BA \sim BMathematical symbolA equivalent to BThe matrices AA and BB are equivalent (they can be transformed into one another by elementary transformations)
IrI_rMathematical symbolI rThe r-th order identity matrix, used in the canonical form (IrOOO)\begin{pmatrix} I_r & O \\ O & O \end{pmatrix}

Found an issue with this content?

Tell us what could be improved.