Original English by Jim Hefferon — 34 validated sections. The original mathematics and supplied answers below are preserved. This is a partial-book reading edition, not the complete book or an Everyday-English rewrite.

Source, reuse and conversion details

Source revision df2262e089a02651c127f1dd12649c4622ee1383; CC BY-SA 2.5 option, with original component credits retained. This is not an Everyday-English rewrite. The complete active topic is included. Original comments and the end-of-file marker remain in the editable source.

Includes eight exercises with their eight original supplied answers, 67 mathematical expressions and all four original diagrams rebuilt from the author’s MetaPost definitions. No diagram was redrawn. Source wording and formulas are preserved; two answer defects are explained separately. AI-assisted source-preserving conversion and checks; Current rebuild runtime is documented in the credit below; earlier intermediate work is not reattributed. No human review or exhaustive mathematical correctness audit is claimed.

Context for using the rule and its proof

Cramer’s Rule requires a nonzero coefficient determinant. The original rule defines each replacement matrix and links to Exercise 3 and its complete supplied proof. The last exercise refers to the first diagram. Modular extraction must keep these givens with their dependent units.

Two notes about the original supplied answers

The unchanged answers are preserved below. These separate source-bound notes can reveal solutions; they are not an exhaustive correctness audit.

  1. Original supplied answer 7: The supplied answer claims that all replacement determinants vanishing characterizes infinitely many solutions. Without an additional rank hypothesis this is false: the zero 2-by-2 coefficient matrix has all replacement determinants zero both for b=(0,0), with infinitely many solutions, and for b=(1,0), with none. Cramer determinants alone do not distinguish these two singular systems. Preserve the original answer and attach this separate counterexample.
  2. Original supplied answer 8: The phrase two nonsingular cases is inconsistent with the displayed coefficient matrix [[1,2],[1,2]], whose determinant is zero. Both the infinitely-many and no-solution examples are singular. The rest of the stated c=6 versus c!=6 distinction is consistent with the equations.

Wide formulas scroll horizontally. Focus a formula and use the arrow keys.

Source-preserving rebuild, navigation, source packaging and current deterministic checks: OpenAI Codex — GPT-6 Astra, Ultra effort. Jim Hefferon remains the author of the mathematics. Earlier intermediate-conversion runtime identity is not established by its retained receipts and is not reassigned to this rebuild. No human review or exhaustive proof certification is claimed.

Cramer’s Rule

A linear system is equivalent to a linear relationship among vectors.

x 1 + 2 x 2 = 6 3 x 1 + x 2 = 8 ⟺ x 1 ⋅ ( 1 3 ) + x 2 ⋅ ( 2 1 ) = ( 6 8 )

In the picture below the small parallelogram is formed from the vectors ( 1 3 ) and ( 2 1 ) . It is nested inside a parallelogram with sides x 1 ( 1 3 ) and  x 2 ( 2 1 ) . By the vector equation, the far corner of the larger parallelogram is ( 6 8 ) .

Original nested parallelograms. The small one is spanned by (1,3) and (2,1); the larger has sides x1(1,3) and x2(2,1), with opposite corner (6,8). Labels and arrows identify both directions and their dilations.

This drawing restates the algebraic question of finding the solution of a linear system into geometric terms: by what factors x 1 and  x 2 must we dilate the sides of the starting parallelogram so that it will fill the other one?

We can use this picture, and our geometric understanding of determinants, to get a new formula for solving linear systems. Compare the sizes of these shaded boxes.

First shaded box: the small parallelogram spanned by (1,3) and (2,1), with the original larger parallelogram outlined behind it. Second shaded box: the parallelogram spanned by x1(1,3) and (2,1). Only the first of its two sides is dilated from the first shaded box. Third shaded box: the parallelogram spanned by (6,8) and (2,1). Its long side is the sum x1(1,3)+x2(2,1); the original larger outline remains visible for comparison. This is the shear of the second shaded box.

The second is defined by the vectors x 1 ( 1 3 ) and ( 2 1 ) and one of the properties of the size function—the determinant—is that therefore the size of the second box is x 1 times the size of the first. The third box is derived from the second by shearing, adding x 2 ( 2 1 ) to x 1 ( 1 3 ) to get x 1 ( 1 3 ) + x 2 ( 2 1 ) = ( 6 8 ) , along with ( 2 1 ) . The determinant is not affected by shearing so the size of the third box equals that of the second.

Taken together we have this.

x 1 ⋅ | 1 2 3 1 | = | x 1 ⋅ 1 2 x 1 ⋅ 3 1 | = | x 1 ⋅ 1 + x 2 ⋅ 2 2 x 1 ⋅ 3 + x 2 ⋅ 1 1 | = | 6 2 8 1 |

Solving gives the value of one of the variables.

x 1 = | 6 2 8 1 | | 1 2 3 1 | = − 10 − 5 = 2

The generalization of this example is Cramer’s Rule: if | A | ≠ 0 then the system A x → = b → has the unique solution x i = | B i | / | A | where the matrix B i is formed from A by replacing column  i with the vector b → . The proof is Exercise 3.

For instance, to solve this system for x 2

( 1 0 4 2 1 − 1 1 0 1 ) ( x 1 x 2 x 3 ) = ( 2 1 − 1 )

we do this computation.

x 2 = | 1 2 4 2 1 − 1 1 − 1 1 | | 1 0 4 2 1 − 1 1 0 1 | = − 18 − 3

Cramer’s Rule lets us by-eye solve systems that are small and simple. For example, we can solve systems with two equations and two unknowns, or three equations and three unknowns, where the numbers are small integers. Such cases appear often enough that many people find this formula handy.

But using it to solving large or complex systems is not practical, either by hand or by a computer. A Gauss’s Method-based approach is faster.

Exercises

  1. Exercise 1 Supplied answer

    Use Cramer’s Rule to solve each for each of the variables.

    1. x − y = 4 − x + 2 y = − 7

    2. − 2 x + y = − 2 x − 2 y = − 2

    Back to Exercise 1

    Answer.

    1. Solve for the variables separately.

      x = | 4 − 1 − 7 2 | | 1 − 1 − 1 2 | = 1 1 = 1 y = | 1 4 − 1 − 7 | | 1 − 1 − 1 2 | = − 3 1 = − 3

    2. x = 2 , y = 2

  2. Exercise 2 Supplied answer

    Use Cramer’s Rule to solve this system for z .

    2 x + y + z = 1 3 x + z = 4 x − y − z = 2

    Back to Exercise 2

    Answer. z = 1

  3. Exercise 3 Supplied answer

    Prove Cramer’s Rule.

    Back to Exercise 3

    Answer. Determinants are unchanged by combinations, including column combinations, so det ( B i ) = det ( a → 1 , … , x 1 a → 1 + ⋯ + x i a → i + ⋯ + x n a → n , … , a → n ) . Use the operation of taking − x 1 times the first column and adding it to the i -th column, etc., to see this is equal to det ( a → 1 , … , x i a → i , … , a → n ) . In turn, that is equal to x i ⋅ det ( a → 1 , … , a → i , … , a → n ) = x i ⋅ det ( A ) , as required.

  4. Exercise 4 Supplied answer

    Here is an alternative proof of Cramer’s Rule that doesn’t overtly contain any geometry. Write X i for the identity matrix with column  i replaced by the vector  x → of unknowns x 1 , …,  x n .

    1. Observe that A X i = B i .

    2. Take the determinant of both sides.

    Back to Exercise 4

    Answer.

    1. Here is the case of a 2 × 2 system with i = 2 .

      a 1 , 1 x 1 + a 1 , 2 x 2 = b 1 a 2 , 1 x 1 + a 2 , 2 x 2 = b 2 ⟺ ( a 1 , 1 a 1 , 2 a 2 , 1 a 2 , 2 ) ( 1 x 1 0 x 2 ) = ( a 1 , 1 b 1 a 2 , 1 b 2 )

    2. The determinant function is multiplicative det ( B i ) = det ( A X i ) = det ( A ) ⋅ det ( X i ) . The Laplace expansion shows that det ( X i ) = x i , and solving for x i gives Cramer’s Rule.

  5. Exercise 5 Supplied answer

    Suppose that a linear system has as many equations as unknowns, that all of its coefficients and constants are integers, and that its matrix of coefficients has determinant  1 . Prove that the entries in the solution are all integers. (Remark. This is often used to invent linear systems for exercises.)

    Back to Exercise 5

    Answer. Because the determinant of A is nonzero, Cramer’s Rule applies and shows that x i = | B i | / 1 . Since B i is a matrix of integers, its determinant is an integer.

  6. Exercise 6 Supplied answer

    Use Cramer’s Rule to give a formula for the solution of a two equations/two unknowns linear system.

    Back to Exercise 6

    Answer. The solution of

    a x + b y = e c x + d y = f

    is

    x = e d − f b a d − b c y = a f − e c a d − b c

    provided of course that the denominators are not zero.

  7. Exercise 7 Supplied answer

    Can Cramer’s Rule tell the difference between a system with no solutions and one with infinitely many?

    Back to Exercise 7

    Answer. Of course, singular systems have | A | equal to zero, but we can characterize the infinitely many solutions case is by the fact that all of the | B i | are zero as well.

  8. Exercise 8 Supplied answer

    The first picture in this Topic (the one that doesn’t use determinants) shows a unique solution case. Produce a similar picture for the case of infinitely many solutions, and the case of no solutions.

    Back to Exercise 8

    Answer. We can consider the two nonsingular cases together with this system

    x 1 + 2 x 2 = 6 x 1 + 2 x 2 = c

    where c = 6 of course yields infinitely many solutions, and any other value for c yields no solutions. The corresponding vector equation

    x 1 ⋅ ( 1 1 ) + x 2 ⋅ ( 2 2 ) = ( 6 c )

    gives a picture of two overlapping vectors. Both lie on the line y = x . In the c = 6 case the vector on the right side also lies on the line y = x but in any other case it does not.