Back to homeMathematics · Precalculus · Change subject
Start for free
Precalculus · Mathematics
Determinants · Determinants

Rank of a Matrix

Before you start, make sure you know: Polynomial factorization (Algebra 2)

Your school's robotics team mounts three sensors on a robot arm. Sensor C always reports exactly what sensor A and sensor B report added together. Is sensor C telling the robot anything new? Rank answers this kind of question, and determinants are the main tool for finding it.

What Rank Measures

A row is redundant if it is a multiple of another row, or a sum or other combination of other rows. A redundant row still takes up space in the matrix, but it adds no new direction, so it does not count toward rank.

Some problems write rank as $\text{rg}(A)$. It means the same thing as $\operatorname{rank}(A)$.

Three rows of a matrix: the second row is twice the first, so it is redundant, leaving two independent rows. R1 = (1, 2, 3) R2 = (2, 4, 6) = 2·R1 R3 = (0, 1, 1) redundant new

This matrix has 3 rows, but only 2 of them are independent, so its rank is 2.

Practice★☆☆Not started
Determine the rank of the following matrix $A$ by observing the relationship between its rows: $$A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 0 & 1 & 1 \end{pmatrix}$$

Determine the rank of the following matrix $A$ by observing the relationship between its rows:

$$A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 0 & 1 & 1 \end{pmatrix}$$
Solve

Determinants of 2×2 and 3×3 Matrices

Geometrically, the columns of a $2 \times 2$ matrix are the sides of a parallelogram. The determinant is the (signed) factor by which the matrix scales area.

The unit square with area 1 is mapped by a matrix with columns (2, 0) and (1, 3) to a parallelogram of area 6. Columns: (2, 0) and (1, 3) Parallelogram area = 6 det = 2·3 − 1·0 = 6

The unit square (area 1) becomes a parallelogram with area 6, and the determinant is 6. If the two columns point in the same direction, the parallelogram collapses to a segment and the determinant is 0. That is why $\begin{vmatrix} 2 & 4 \\ 1 & 2 \end{vmatrix} = 4 - 4 = 0$: its rows are proportional, so its rank is only 1.

For $3 \times 3$ matrices there is a diagonal pattern. Some problems call it Sarrus' rule.

Practice★☆☆Not started
Calculate the value of the determinant of the following matrix $A$ of order 2. This value represents the scale factor of a geometric transformation in the plane: $$A =…

Calculate the value of the determinant of the following matrix $A$ of order 2. This value represents the scale factor of a geometric transformation in the plane:

$$A = \begin{pmatrix} 5 & -2 \\ 3 & 4 \end{pmatrix}$$ Matrix A A = 5 3 −2 4 det(A) = ? Geometric Transformation x y Area = ? v₁ v₂
Solve
Practice★☆☆Not started
Given the matrix $M$, calculate the value of the real parameter $x$ so that its determinant is equal to $10$: $$M = \begin{pmatrix} x & 4 \\ 1 & 2 \end{pmatrix}$$

Given the matrix $M$, calculate the value of the real parameter $x$ so that its determinant is equal to $10$:

$$M = \begin{pmatrix} x & 4 \\ 1 & 2 \end{pmatrix}$$
Solve
Practice★☆☆Not started
Find the value of the determinant of the matrix $B$ using Sarrus' rule: $$B = \begin{pmatrix} 1 & 0 & 3 \\ 2 & 1 & -1 \\ 0 & 4 & 2 \end{pmatrix}$$

Find the value of the determinant of the matrix $B$ using Sarrus' rule:

$$B = \begin{pmatrix} 1 & 0 & 3 \\ 2 & 1 & -1 \\ 0 & 4 & 2 \end{pmatrix}$$
Solve

Cofactors and Triangular Matrices

The factor $(-1)^{i+j}$ gives a checkerboard of signs, starting with $+$ in the top-left corner.

A 3 by 3 checkerboard of cofactor signs, with the sign for row 2, column 3 highlighted as minus. +−+ −+− +−+ Entry a₂₃: sign = (−1)⁵ = −1 A₂₃ = −M₂₃

From now on, a minor of order $k$ means the determinant of any $k \times k$ square piece of a matrix. $M_{ij}$ above is the special case of order $n - 1$.

For example, $\begin{vmatrix} 2 & 5 & 1 \\ 0 & -3 & 4 \\ 0 & 0 & 6 \end{vmatrix} = 2 \cdot (-3) \cdot 6 = -36$.

Practice★☆☆Not started
In the matrix $C$, identify the element $a_{23}$ and calculate its cofactor $A_{23}$: $$C = \begin{pmatrix} 2 & 1 & 5 \\ 0 & -1 & 3 \\ 4 & 2 & 1 \end{pmatrix}$$

In the matrix $C$, identify the element $a_{23}$ and calculate its cofactor $A_{23}$:

$$C = \begin{pmatrix} 2 & 1 & 5 \\ 0 & -1 & 3 \\ 4 & 2 & 1 \end{pmatrix}$$ C = 2 1 5 0 −1 4 2 1 3 a₂₃ Cofactor A₂₃ A₂₃ = (−1)²⁺³ odd (-) 2 1 4 2
Solve
Practice★☆☆Not started
Quickly calculate the determinant of the following upper triangular matrix, justifying your answer: $$T = \begin{pmatrix} 3 & 7 & 9 \\ 0 & -2 & 1 \\ 0 & 0 & 5…

Quickly calculate the determinant of the following upper triangular matrix, justifying your answer:

$$T = \begin{pmatrix} 3 & 7 & 9 \\ 0 & -2 & 1 \\ 0 & 0 & 5 \end{pmatrix}$$
Solve
Practice★★☆Not started
Solve the following quadratic equation expressed in determinant form: $\begin{vmatrix} x & 1 & 3 \\ 1 & x & 2 \\ 3 & 2 & 1 \end{vmatrix} = 0$ Find the exact solutions…

Solve the following quadratic equation expressed in determinant form:

$\begin{vmatrix} x & 1 & 3 \\ 1 & x & 2 \\ 3 & 2 & 1 \end{vmatrix} = 0$

Find the exact solutions (they may contain radicals).

Solve

Properties of Determinants

These rules let you compute determinants of products, scalar multiples, and inverses without ever expanding. Let $A$ and $B$ be $n \times n$ matrices.

Property Effect
Transpose $\lvert A^t \rvert = \lvert A \rvert$
Swap two rows (or two columns) the determinant changes sign
Multiply one row (or column) by $k$ the determinant is multiplied by $k$
Multiply the whole matrix by $k$ $\lvert kA \rvert = k^n \lvert A \rvert$
A row of zeros, or two equal or proportional rows the determinant is $0$
Add a multiple of one row to another row the determinant does not change
Product $\lvert AB \rvert = \lvert A \rvert \lvert B \rvert$
Inverse (if it exists) $\lvert A^{-1} \rvert = \dfrac{1}{\lvert A \rvert}$
Sum in one column $\lvert C_1 + C_1', C_2, C_3 \rvert = \lvert C_1, C_2, C_3 \rvert + \lvert C_1', C_2, C_3 \rvert$

The rules about columns work the same way as the rules about rows.

Three row operations and their effect on the determinant: swapping multiplies by minus one, scaling a row by k multiplies by k, adding a multiple of a row changes nothing. Swap two rows det × (−1) Row × k det × k Row + k·(other row) det unchanged

The scalar rule has a reason: $kA$ multiplies every row by $k$. Each of the $n$ rows contributes one factor of $k$, so you get $k^n$. The product rule is a theorem we use without proof. The inverse rule follows from it: $|A||A^{-1}| = |AA^{-1}| = |I| = 1$.

Practice★☆☆Not started
If we know that the determinant of a square matrix $A$ of order 2 is $|A| = 5$, what will be the value of the determinant of the matrix $2A$? Apply the properties of…

If we know that the determinant of a square matrix $A$ of order 2 is $|A| = 5$, what will be the value of the determinant of the matrix $2A$? Apply the properties of determinants to justify your answer.

Solve
Practice★★☆Not started
Given a square matrix $A$ of order $3$ whose determinant is $|A| = 4$, use the properties of determinants to calculate with reasoning the value of the following…

Given a square matrix $A$ of order $3$ whose determinant is $|A| = 4$, use the properties of determinants to calculate with reasoning the value of the following determinants:

  1. a) $|A^t \cdot A^{-1}|$
  1. b) $|2 \cdot A \cdot A^t|$
  1. c) The determinant of the matrix resulting from swapping the first two rows of $A$ and multiplying the third column by $-3$.
Solve
Practice★★☆Not started
Given that the value of the determinant of the matrix $3 \times 3$ formed by the column vectors $\vec{c_1}$, $\vec{c_2}$ and $\vec{c_3}$ is equal to $5$, that is,…

Given that the value of the determinant of the matrix $3 \times 3$ formed by the column vectors $\vec{c_1}$, $\vec{c_2}$ and $\vec{c_3}$ is equal to $5$, that is, $|\vec{c_1}, \vec{c_2}, \vec{c_3}| = 5$, calculate without expanding the value of:

$|\vec{c_1} + \vec{c_3}, \quad 2\vec{c_2}, \quad \vec{c_1} - \vec{c_3}|$

Justify each step by mentioning the property of determinants you applied.

Solve

Adjugate, Inverse, and Combining Properties

For $2 \times 2$: $\operatorname{adj}\begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}$.

Splitting the determinant of k times A transpose times adjugate of A into three factors: k to the n, determinant of A, and determinant of A to the n minus 1. kⁿ |Aᵗ| = |A| |adj A| = |A|ⁿ⁻¹ |k · Aᵗ · adj(A)| = multiply the three pieces together

Combining columns and rank. If $|A| \ne 0$, the columns $C_1, C_2, C_3$ are independent. Any new columns built from them are independent exactly when their coefficient vectors are independent.

Practice★★★Not started
Let $A$ be a square matrix of order $n=4$ such that its determinant is $|A| = \frac{1}{2}$. Using exclusively the properties of determinants, calculate the value of the…

Let $A$ be a square matrix of order $n=4$ such that its determinant is $|A| = \frac{1}{2}$. Using exclusively the properties of determinants, calculate the value of the determinant of matrix $B$, defined as:

$$B = (2 \cdot A^t \cdot Adj(A))^{-1}$$

where $A^t$ is the transpose of $A$ and $Adj(A)$ is its adjugate matrix. Justify each step of your calculation, stating the property used.

|B| = |(2·Aᵗ·Adj(A))⁻¹| Step 1: Inverse |M⁻¹| = 1 / |M| 1 / |2·Aᵗ·Adj(A)| Step 2: Scalar (n=4) |k·M| = k⁴ · |M| 1 / (2⁴ · |Aᵗ·Adj(A)|) Step 3: Product and Transpose |M·N| = |M|·|N|, |Aᵗ| = |A| 1 / (16 · |A| · |Adj(A)|) Step 4: Adjugate Matrix |Adj(A)| = |A|³ 1 / (16 · |A| · |A|³) |B| = 1 / (16 · |A|⁴) = 1 / (16 · (1/2)⁴) = 1
Solve
Practice★★★Not started
Consider the square matrix $A$ of order 3 whose columns are $C_1, C_2, C_3$. It is known that $|A| = 5$. Calculate the value of the determinant of matrix $M$ whose…

Consider the square matrix $A$ of order 3 whose columns are $C_1, C_2, C_3$. It is known that $|A| = 5$. Calculate the value of the determinant of matrix $M$ whose columns are:

$$M = (C_1 + C_2, \quad C_2 + C_3, \quad C_3 + C_1)$$

If we replace the third column of $M$ with the zero vector, what would be the rank of the new matrix? Justify your answer without performing detailed numerical calculations.

Solve

Row Operations: Making Zeros

For $4 \times 4$ and bigger, use the three row operations to create zeros in one column, then expand along that column.

  • Swapping two rows multiplies the determinant by $-1$.

  • Replacing a row by that row plus a multiple of another row does not change the determinant.

  • Multiplying a row by $k$ multiplies the determinant by $k$.

A 4 by 4 matrix before and after using row operations to create zeros below the top-left entry. 1210 2103 1012 0121 1210 0−3−23 0−202 0121 R2 − 2R1 R3 − R1
Practice★★☆Not started
Calculate the value of the following determinant of order $4$ using Gaussian elimination to create zeros in a row or column before expanding by cofactors:…

Calculate the value of the following determinant of order $4$ using Gaussian elimination to create zeros in a row or column before expanding by cofactors:

$|D| = \begin{vmatrix} 1 & 2 & 0 & 3 \\ -1 & 3 & 1 & 4 \\ 2 & 0 & -2 & 1 \\ 0 & 1 & 3 & 2 \end{vmatrix}$

Solve
Practice★★★Not started
Calculate, without expanding directly using Sarrus's rule, the value of the following determinant of order 4, applying elementary transformations to make zeros and…

Calculate, without expanding directly using Sarrus's rule, the value of the following determinant of order 4, applying elementary transformations to make zeros and simplify the calculation:

$$\Delta = \begin{vmatrix} 1 & 1 & 1 & 1 \\ 1 & 1+a & 1 & 1 \\ 1 & 1 & 1+b & 1 \\ 1 & 1 & 1 & 1+c \end{vmatrix}$$

What condition must $a, b$ and $c$ meet for the rank of the associated matrix to be exactly 2?

Pivot row F₁ F₂ F₃ F₄ 1 1 1 1 1 1+a 1 1 1 1 1+b 1 1 1 1 1+c Fᵢ - F₁ Zeros below the diagonal 1 1 1 1 0 a 0 0 0 0 b 0 0 0 0 c = 1·a·b·c = abc Condition for Rank = 2 Exactly two parameters of {a, b, c} must be 0
Solve
Practice★★★Not started
Given the square matrix of order 3: $$A = \begin{pmatrix} \cos x & -\sin x & 0 \\ \sin x & \cos x & 0 \\ 0 & 0 & 1 \end{pmatrix}$$ 1. Prove that $|A|$ is independent of…

Given the square matrix of order 3:

$$A = \begin{pmatrix} \cos x & -\sin x & 0 \\ \sin x & \cos x & 0 \\ 0 & 0 & 1 \end{pmatrix}$$
  1. Prove that $|A|$ is independent of the value of the variable $x$.

  2. If we define a new matrix $B = A - \lambda I$ (where $I$ is the identity), find the values of $\lambda$ for which the rank of $B$ is less than 3 when $x = \frac{\pi}{4}$.

Solve

Rank Using Minors

A 3 by 3 matrix with rows 1 and 2 and columns 1 and 3 highlighted, giving a 2 by 2 minor equal to 1. 120 241 361 Rows 1–2, columns 1 and 3: 1·1 − 0·2 = 1 ≠ 0 so the rank is at least 2
Practice★☆☆Not started
Calculate the rank of the matrix $B$ by finding the non-zero minor of the highest order: $$B = \begin{pmatrix} 1 & 0 & 5 \\ -2 & 1 & 3 \end{pmatrix}$$

Calculate the rank of the matrix $B$ by finding the non-zero minor of the highest order:

$$B = \begin{pmatrix} 1 & 0 & 5 \\ -2 & 1 & 3 \end{pmatrix}$$ B = 1 0 5 −2 1 3 2x2 minor 1 0 −2 1 = 1·1 - 0·(−2) = 1 - 0 = 1 ≠ 0 Como el menor es ≠ 0 → Rango(B) = 2
Solve

Bordering Method

Checking every minor is slow. Bordering is faster: start with a nonzero minor and add one row and one column at a time.

Bordering process: a 1 by 1 minor is extended to 2 by 2 and then to 3 by 3. 1×1 2×2 3×3 add one row and one column at a time
Practice★★☆Not started
Determine the rank of the matrix $B$ according to the values of the real parameter $a$:…

Determine the rank of the matrix $B$ according to the values of the real parameter $a$:

$B = \begin{pmatrix} 1 & a & 1 & 2 \\ 2 & -1 & a & 1 \\ 1 & 10 & -3 & 5 \end{pmatrix}$

Remember that for a matrix of dimensions $3 \times 4$, the maximum possible rank is $3$.

Solve
Practice★★★Not started
A robotics engineer is programming the movement of a mechanical arm in three-dimensional space. The sensors detect three force vectors that determine the stability of…

A robotics engineer is programming the movement of a mechanical arm in three-dimensional space. The sensors detect three force vectors that determine the stability of the system. The matrix representing these forces is:

$$M = \begin{pmatrix} k & 1 & 1 & 0 \\ 1 & k & 1 & 2 \\ 1 & 1 & k & k \end{pmatrix}$$

You are asked to:

  1. Determine the rank of matrix $M$ in terms of the real parameter $k$.

  2. Is there any value of $k$ for which the forces are linearly dependent but the rank of the matrix is maximum? Explain your answer based on the theory of minors.

Solve

Rank with a Parameter

When a matrix has a letter $k$ in it, the rank can change with $k$. Follow this plan:

  1. Find the determinant of the largest square submatrix (or all the largest minors) as an expression in $k$.

  2. Factor it and find its zeros.

  3. For every other value of $k$, the rank is the maximum. For each zero, substitute it in and find the rank with a smaller minor.

For a rectangular matrix, the rank is maximal if any largest minor is nonzero. The rank drops only at values of $k$ that make all of them zero.

Number line with the single critical value k equals negative 1: rank 3 on both sides and rank 2 at that value. k = −1 k < −1: rank 3 k > −1: rank 3 k = −1: rank 2

What rank 1 and rank 2 look like

Each row of a $3 \times 3$ matrix is a vector in 3D space, drawn as an arrow from the origin. The rank tells you how much room those arrows need.

  • Rank 1: every row is a scalar multiple of one nonzero vector. All the row vectors are parallel (collinear): they lie along a single line through the origin.

  • Rank 2: the rows are not all on one line, but they all lie in one plane through the origin (they are coplanar).

  • Rank 3: the rows are independent and do not fit in any single plane. They point in three truly different directions.

For example, in the first matrix of this page, $R_2 = 2R_1$ so those two arrows are parallel. The third row $(0, 1, 1)$ is not on that line, so together the rows span a plane and the rank is 2.

Three parallel row vectors lying along one line through the origin, which is what rank 1 looks like. R1 R2 = 2·R1 R3 = −½·R1 One line through the origin: all rows parallel, rank = 1

So when a problem asks for the values of the parameters that make the rank equal to 1, it is asking when all rows become parallel: every $2 \times 2$ minor must be zero, and not every entry is zero.

Some determinants factor nicely without much work. A very useful pattern is the Vandermonde determinant.

Practice★★☆Not started
Analyze the rank of the following matrix $A$ in terms of the possible values of the real parameter $k$:…

Analyze the rank of the following matrix $A$ in terms of the possible values of the real parameter $k$:

$A = \begin{pmatrix} k & 1 & 1 \\ 1 & k & 1 \\ 1 & 1 & k \end{pmatrix}$

Determine for which values of $k$ the rank is $1$, $2$, or $3$.

k k₁ = ? k₂ = ? A = k 1 1 1 k 1 1 1 k rg(A) = 1 ? rg(A) = 2 ? rg(A) = 3 ? |A| = 0 k = ? rg(A) = ? rg(A) = ? rg(A) = ? rg(A) = ? rg(A) = ?
Solve
Practice★★★Not started
Analyze the linear dependence of the rows of matrix $A$ according to the values of the real parameters $a$ and $b$: $$A = \begin{pmatrix} 1 & a & b \\ a & 1 & b \\ a & b…

Analyze the linear dependence of the rows of matrix $A$ according to the values of the real parameters $a$ and $b$:

$$A = \begin{pmatrix} 1 & a & b \\ a & 1 & b \\ a & b & 1 \end{pmatrix}$$

Determine for which values of $(a, b)$ the rank of $A$ is equal to 1. Describe geometrically what relationship the row vectors have when this occurs.

Solve
Practice★★★Not started
In a telecommunications system, the signal is lost if the determinant of the transmission matrix becomes zero. The transmission matrix is given by: $$T = \begin{pmatrix}…

In a telecommunications system, the signal is lost if the determinant of the transmission matrix becomes zero. The transmission matrix is given by:

$$T = \begin{pmatrix} 1 & m & m^2 \\ 1 & a & a^2 \\ 1 & b & b^2 \end{pmatrix}$$
  1. Knowing that it is a Vandermonde determinant, express it as a product of linear factors.

  2. If we fix $a=2$ and $b=5$, discuss the rank of $T$ according to the values that the parameter $m$ can take. For what value of $m$ is the rank minimum?

|T| = −3(m - 2)(m - 5) |T| = 0 ⇒ m = 2, m = 5 Parameter m 0 1 3 4 6 7 m = 2 m = 5 Rank(T)=3 Signal OK Rank(T)=2 Signal lost Rank(T)=3 Signal OK Rank(T)=2 Signal lost Rank(T)=3 Signal OK
Solve

Square Matrices and Products

A nonzero determinant means maximum rank; a zero determinant means rank below n; and the rank of a product is at most the smaller of the two ranks. |A| ≠ 0 → rank(A) = n |A| = 0 → rank(A) < n rank(AB) ≤ min(rank A, rank B) if one factor is singular, so is the product
Practice★★☆Not started
In the design of a graphics engine for a video game, a transformation matrix $M$ is required to be invertible in order to undo movements. Given the matrix:…

In the design of a graphics engine for a video game, a transformation matrix $M$ is required to be invertible in order to undo movements. Given the matrix:

$M = \begin{pmatrix} 1 & 0 & -1 \\ 0 & m & 3 \\ 4 & 1 & -m \end{pmatrix}$

  1. a) Find the values of the real parameter $m$ for which matrix $M$ does not have an inverse.
  1. b) For the value $m = 2$, calculate the value of the determinant of the inverse matrix, $|M^{-1}|$.
Solve
Practice★★☆Not started
Given the matrices $A$ and $B$ of order $3 \times 3$, it is known that $A$ has rank $3$ and that the determinant of $B$ is $|B| = 0$. a) What is the value of the…

Given the matrices $A$ and $B$ of order $3 \times 3$, it is known that $A$ has rank $3$ and that the determinant of $B$ is $|B| = 0$.

  1. a) What is the value of the determinant of the product $|A \cdot B|$? Justify your answer.
  1. b) Is it possible for the rank of the product matrix $A \cdot B$ to be $3$? Explain why based on the relationship between the determinant and the rank.
|A · B| = |A| · |B| = |A| · 0 = 0 Matrix A |A| ≠ 0 rg(A) = 3 Preserves 3D space · Matrix B |B| = 0 rg(B) < 3 Collapses space = Matrix A·B |A·B| = 0 rg(A·B) < 3 Remains collapsed
Solve
Practice★★★Not started
Given the matrix: $$A = \begin{pmatrix} \alpha & 1 & 1 \\ 1 & \alpha & 1 \\ 1 & 1 & \alpha \end{pmatrix}$$ 1. Find the values of $\alpha$ for which the matrix does not…

Given the matrix:

$$A = \begin{pmatrix} \alpha & 1 & 1 \\ 1 & \alpha & 1 \\ 1 & 1 & \alpha \end{pmatrix}$$
  1. Find the values of $\alpha$ for which the matrix does not have an inverse.

  2. For the values found in part 1, calculate the rank of matrix $A^2$.

  3. Is it possible to find a value of $\alpha$ such that $rg(A) \neq rg(A^2)$? Argue your answer based on the properties of rank and determinants.

Solve

Back to the robot: put each sensor's readings in one row of a matrix. If sensor C always equals A plus B, the matrix is singular and its rank is lower than the number of sensors. Sensor C is redundant, because it adds no independent information.

Summary

See all the exercises in this section