# Linear Algebra/Topic: Cramer's Rule

We have introduced determinant functions algebraically by looking for a formula to decide whether a matrix is nonsingular. After that introduction we saw a geometric interpretation, that the determinant function gives the size of the box with sides formed by the columns of the matrix. This Topic makes a connection between the two views.

First, a linear system

is equivalent to a linear relationship among vectors.

The picture below shows a parallelogram with sides formed from and nested inside a parallelogram with sides formed from and .

So even without determinants we can state the algebraic issue that opened this book, finding the solution of a linear system, in geometric terms: by what factors and must we dilate the vectors to expand the small parallegram to fill the larger one?

However, by employing the geometric significance of determinants we can get something that is not just a restatement, but also gives us a new insight and sometimes allows us to compute answers quickly. Compare the sizes of these shaded boxes.

The second is formed from and , and one of the properties of the size function— the determinant— is that its size is therefore times the size of the first box. Since the third box is formed from and , and the determinant is unchanged by adding times the second column to the first column, the size of the third box equals that of the second. We have this.

Solving gives the value of one of the variables.

The theorem that generalizes this example, **Cramer's Rule**,
is: if then the system has the
unique solution
where the matrix is formed from by replacing column
with the vector .
Problem 3 asks for a proof.

For instance, to solve this system for

we do this computation.

Cramer's Rule allows us to solve many two equations/two unknowns systems by eye. It is also sometimes used for three equations/three unknowns systems. But computing large determinants takes a long time, so solving large systems by Cramer's Rule is not practical.

## ExercisesEdit

- Problem 1

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

- Problem 2

Use Cramer's Rule to solve this system for .

- Problem 3

Prove Cramer's Rule.

- Problem 4

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 .
Prove that the entries in the solution are all integers.
(*Remark.*
This is often used to invent linear systems for exercises.
If an instructor makes the linear system with this property
then the solution is not some disagreeable fraction.)

- Problem 5

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

- Problem 6

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

- Problem 7

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 infintely many solutions, and the case of no solutions.