Algebra

Cramer’s Rule

A pupil replaces one column of a grid with a different colored column.

Cramer’s Rule definition

Cramer’s rule solves a square linear system with nonzero coefficient determinant by using ratios of determinants.

In Spanish
regla de Cramer
Topic
Matrices

Cramer’s Rule in a picture

Cramer’s Rule diagramKeep the denominator fixed and replace the column corresponding to the variable.x + y = 5 and x − y = 1Coefficient determinant = −2Replace column 1 with [5, 1]New determinant = −6x = (−6)/(−2) = 3Then y = 2
Keep the denominator fixed and replace the column corresponding to the variable.

How it works

Let A be the coefficient matrix and b the constants vector. To solve for variable xᵢ, replace column i of A with b to form Aᵢ. Then xᵢ = det(Aᵢ)/det(A). This requires a nonzero denominator. If det(A) = 0, use another method to check for no solutions or infinitely many.

Worked examples

For x + y = 5 and x − y = 1, find the numerator determinant for y.

Replace column 2 to get [[1, 5], [1, 1]], whose determinant is −4.

Find y in that system.

(−4)/(−2) = 2.

Can you apply the ratio formula if det(A) = 0?

No. Use elimination or another method.

Common mistake

Replace a column, not a row. Its position is determined by the variable’s order in the system.

Quick check

Does the standard rule require a square matrix?

Show answer

Yes.

What must be nonzero?

Show answer

det(A).

Which column do you replace to find the second variable?

Show answer

Column 2.

Sources

Flashcard

Cramer’s Rule

Reveal the definition

Cramer’s rule solves a square linear system with nonzero coefficient determinant by using ratios of determinants.

Effortless Math. “Cramer’s Rule.” Math Dictionary.