You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Any equation \(Ax=\vec {b}\) has a unique solution
\(\det {A}\neq 0\)
In this section we will take a closer look at the relationship between the
determinant of a nonsingular matrix \(A\), solution to the system \(A\vec {x}=\vec {b}\), and the inverse of
\(A\).
Cramer’s Rule
We begin by establishing a formula that allows us to express the unique solution to
the system \(A\vec {x}=\vec {b}\) in terms of the determinant of \(A\), for a nonsingular matrix \(A\). This formula
is called Cramer’s rule.
Observe that the denominators in the expressions for \(x\) and \(y\) are the same and equal to
\(\det {\begin{bmatrix}a&b\\c&d\end{bmatrix}}\).
A close examination shows that the numerators of expressions for \(x\) and \(y\) can also be
interpreted as determinants of matrices. The numerator of the expression for \(x\) is the
determinant of the matrix that is formed by replacing the first column of \(\begin{bmatrix}a&b\\c&d\end{bmatrix}\) with \(\begin{bmatrix}e\\f\end{bmatrix}\). The
numerator of the expression for \(y\) is the determinant of the matrix that is
formed by replacing the second column of \(\begin{bmatrix}a&b\\c&d\end{bmatrix}\) with \(\begin{bmatrix}e\\f\end{bmatrix}\). Thus, \(x\) and \(y\) can be written
as
Note that a unique solution to the system exists if and only if the determinant of the
coefficient matrix is not zero.
It turns out that a solution to any square system \(A\vec {x}=\vec {b}\) can be expressed using ratios of
determinants, provided that \(A\) is nonsingular. The general formula for the \(i^{th}\) component
of the solution vector is
\[x_i=\frac {\det {(\text {matrix } A \text { with column } i \text { replaced by } \vec {b})}}{\det {A}}\]
To formalize this expression, we need to introduce some notation. Given a
matrix
You should verify that what you found really is a solution.
We are now ready to
state and prove Cramer’s rule as a theorem.
Let \(A\) be a nonsingular \(n\times n\) matrix, and let \(\vec {b}\) be an \(n\times 1\) vector. Then the components of the
solution vector \(\vec {x}\) of \(A\vec {x}=\vec {b}\) are given by
Finding the determinant is computationally expensive. Because Cramer’s rule
requires finding many determinants, it is not a computationally efficient way of
solving a system of equations. However, Cramer’s rule is often used for small systems
in applications that arise in economics, natural, and social sciences, particularly when
solving for only a subset of the variables.
Adjugate Formula for the Inverse of a Matrix
In Practice Problem ?? we used the row reduction algorithm to show that
if
This formula is a special case of a general formula for the inverse of a nonsingular
square matrix. Just like the formula for a \(2\times 2\) matrix, the general formula includes the
coefficient \(\frac {1}{\det {A}}\) and a matrix related to the original matrix. We will now derive the
general formula using Cramer’s rule.
Let \(A\) be an \(n\times n\) nonsingular matrix. When looking for the inverse of \(A\), we look for a matrix
\(X\) such that \(AX=I\). We will think of matrices in terms of their columns
To find \(\det {A_i(\vec {e}_j)}\), we can expand along the \(i^{th}\) column of \(A_i(\vec {e}_j)\). But the \(i^{th}\) column of \(A_i(\vec {e}_j)\) is the vector \(\vec {e}_j\)
which has 1 in the \(j^{th}\) spot and zeros everywhere else. Thus