Linear Algebra, Topic: Cramer's Rule
Up for GrabsUpdated 4 min read
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
\begin{matrix}{x}_{1} & + & 2 {x}_{2} & = & 6 \\ 3 {x}_{1} & + & {x}_{2} & = & 8\end{matrix}
is equivalent to a linear relationship among vectors.
{x}_{1} ⋅ ( \begin{matrix}1 \\ 3\end{matrix} ) + {x}_{2} ⋅ ( \begin{matrix}2 \\ 1\end{matrix} ) = ( \begin{matrix}6 \\ 8\end{matrix} )
The picture below shows a parallelogram with sides formed from( \frac{1}{3} ) and ( \frac{2}{1} ) nested inside a parallelogram
with sides formed from {x}_{1} ( \frac{1}{3} ) and {x}_{2} ( \frac{2}{1} ).
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 {x}_{1} and {x}_{2} 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 {x}_{1} ( \frac{1}{3} ) and ( \frac{2}{1} ), and
one of the properties of the size function— the determinant— is
that its size is therefore {x}_{1} times the size of the
first box.
Since the third box is formed from{x}_{1} ( \frac{1}{3} ) + {x}_{2} ( \frac{2}{1} ) = ( \frac{6}{8} )
and ( \frac{2}{1} ),
and the determinant is unchanged by adding {x}_{2}
times the second column to the first column,
the size of the third box equals that of the second.
We have this.
| \begin{matrix}6 & 2 \\ 8 & 1\end{matrix} | = | \begin{matrix}{x}_{1} ⋅ 1 & 2 \\ {x}_{1} ⋅ 3 & 1\end{matrix} | = {x}_{1} ⋅ | \begin{matrix}1 & 2 \\ 3 & 1\end{matrix} |
Solving gives the value of one of the variables.
{x}_{1} = \frac{| \begin{matrix}6 & 2 \\ 8 & 1\end{matrix} |}{| \begin{matrix}1 & 2 \\ 3 & 1\end{matrix} |} = \frac{− 10}{− 5} = 2
The theorem that generalizes this example, Cramer's Rule,
is: if | A | ≠ 0 then the system A \overset{→}{x} = \overset{→}{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 \overset{→}{b}.
Problem 3 asks for a proof.
For instance, to solve this system for {x}_{2}
( \begin{matrix}1 & 0 & 4 \\ 2 & 1 & − 1 \\ 1 & 0 & 1\end{matrix} ) ( \begin{matrix}{x}_{1} \\ {x}_{2} \\ {x}_{3}\end{matrix} ) = ( \begin{matrix}2 \\ 1 \\ − 1\end{matrix} )
we do this computation.
{x}_{2} = \frac{| \begin{matrix}1 & 2 & 4 \\ 2 & 1 & − 1 \\ 1 & − 1 & 1\end{matrix} |}{| \begin{matrix}1 & 0 & 4 \\ 2 & 1 & − 1 \\ 1 & 0 & 1\end{matrix} |} = \frac{− 18}{− 3}
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.
Exercises
Problem 1
Use Cramer's Rule to solve each for each of the variables.
\begin{matrix}x & − & y & = & 4 \\ − x & + & 2 y & = & − 7\end{matrix}\begin{matrix}− 2 x & + & y & = & − 2 \\ x & − & 2 y & = & − 2\end{matrix}
Problem 2
Use Cramer's Rule to solve this system for z.
\begin{matrix}2 x & + & y & + & z & = & 1 \\ 3 x & & & + & z & = & 4 \\ x & − & y & − & z & = & 2\end{matrix}
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 1.
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.
Where this page came from
This page was imported from Wikibooks. From “Linear Algebra” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.
Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.