Home › Lectures › 3Blue1Brown — Essence of linear algebra

Cramer's rule, explained geometrically

The lecture derives Cramer's rule by interpreting coordinates as signed areas or volumes and using how a determinant scales them under a linear transformation.

3Blue1Brown⏱ 12 minOpen on YouTube ↗
Take the full quiz — 6 questions →

Free, sign in with Google. A ready quiz does not use your hourly limit.

What the lecture covers

A linear system can be viewed as a matrix transformation: the unknown input vector is mapped to a known output. When the determinant is nonzero, each output has exactly one input. Dot products might seem like a way to recover the input’s coordinates, but most transformations do not preserve dot products. The lecture instead interprets coordinates geometrically: in two dimensions, a coordinate can be represented by the signed area of a parallelogram formed from the vector and a basis vector. In three dimensions, the analogous quantity is a signed volume.

A transformation scales all areas or volumes by the same factor: the determinant of its matrix. Thus, the relevant signed area or volume after transformation can be calculated from the known output and the matrix columns, then divided by the determinant to recover the original coordinate. This gives Cramer’s rule: replace the appropriate column of the coefficient matrix with the output vector, take the resulting determinant, and divide by the determinant of the original matrix. The same reasoning extends to larger systems. Cramer’s rule is not presented as the fastest computational method; its value is showing how determinants and solutions to linear systems are connected.

Key ideas

Sample questions

For a square linear system represented by a matrix with a nonzero determinant, what follows about the solutions for any right-hand-side vector?

  1. AThere is exactly one solution because the transformation is invertible.
  2. BThere is no solution unless the right-hand-side vector is zero.
  3. CThere may be multiple solutions because the transformation loses information.
  4. DA solution exists only when the matrix is symmetric.
Show answer

Correct answer: A. A nonzero determinant means the transformation is invertible, so each possible output corresponds to exactly one input.

A linear system has the form Ax = b, where the columns of A are orthonormal. How can you find the coordinate xᵢ by using the columns of A and the output vector b?

  1. ATake the dot product of b with every column and add the results.
  2. BDivide the length of b by the length of column i.
  3. CTake the determinant of A and multiply it by the length of b.
  4. DTake the dot product of b with column i of A.
Show answer

Correct answer: D. Since the columns are orthonormal, each column has dot product 1 with itself and 0 with every other column. Thus, dotting b with column i isolates xᵢ.

Take the full quiz — 6 questions →

A quiz for any lecture

Paste a video link — LearnReplay builds a comprehension quiz.

Create a quiz →