Outcomes
- Use determinants to determine whether a matrix has an inverse, and evaluate the inverse using cofactors.
- Apply Cramer’s Rule to solve a or a linear system.
- Given data points, find an appropriate interpolating polynomial and use it to estimate points.
A Formula for the Inverse
The determinant of a matrix also provides a way to find the inverse of a matrix. Recall the definition of the inverse of a matrix in Definition 2.6.1. We say that , an matrix, is the inverse of , also , if and .
We now define a new matrix called the cofactor matrix of . The cofactor matrix of is the matrix whose entry is the cofactor of . The formal definition is as follows.
Definition : The Cofactor Matrix
Let be an matrix. Then the cofactor matrix of , denoted , is defined by where is the cofactor of .
Note that denotes the entry of the cofactor matrix.
We will use the cofactor matrix to create a formula for the inverse of . First, we define the adjugate of to be the transpose of the cofactor matrix. We can also call this matrix the classical adjoint of , and we denote it by .
In the specific case where is a matrix given by then is given by
In general, can always be found by taking the transpose of the cofactor matrix of . The following theorem provides a formula for using the determinant and adjugate of .
Theorem : The Inverse and the Determinant
Let be an matrix. Then
Moreover is invertible if and only if . In this case we have:
Notice that the first formula holds for any matrix , and in the case is invertible we actually have a formula for .
Consider the following example.
Example : Find Inverse Using the Determinant
Find the inverse of the matrix using the formula in Theorem .
Solution
According to Theorem ,
First we will find the determinant of this matrix. Using Theorems 3.2.1, 3.2.2, and 3.2.4, we can first simplify the matrix through row operations. First, add times the first row to the second row. Then add times the first row to the third row to obtain By Theorem 3.2.4, . By Theorem 3.1.2, . Hence, .
Now, we need to find . To do so, first we will find the cofactor matrix of . This is given by Here, the entry is the cofactor of the original matrix which you can verify. Therefore, from Theorem , the inverse of is given by
Remember that we can always verify our answer for . Compute the product and and make sure each product is equal to .
Compute as follows You can verify that and hence our answer is correct.
We will look at another example of how to use this formula to find .
Example : Find the Inverse From a Formula
Find the inverse of the matrix using the formula given in Theorem .
Solution
First we need to find . This step is left as an exercise and you should verify that The inverse is therefore equal to
We continue to calculate as follows. Here we show the determinants needed to find the cofactors.
Expanding all the determinants, this yields
Again, you can always check your work by multiplying and and ensuring these products equal . This tells us that our calculation for is correct. It is left to the reader to verify that .
The verification step is very important, as it is a simple way to check your work! If you multiply and and these products are not both equal to , be sure to go back and double check each step. One common error is to forget to take the transpose of the cofactor matrix, so be sure to complete this step.
We will now prove Theorem .
Theorem : The Inverse and the Determinant
- Proof
-
(of Theorem ) Recall that the -entry of is equal to . Thus the -entry of is : By the cofactor expansion theorem, we see that this expression for is equal to the determinant of the matrix obtained from by replacing its th row by — i.e., its th row.
If then this matrix is itself and therefore . If on the other hand , then this matrix has its th row equal to its th row, and therefore in his case. Thus we obtain: Similarly we can verify that: And this proves the first part of the theorem.
Further if is invertible, then by Theorem 3.2.5 we have: and thus . Equivalently, if , then is not invertible.
Finally if , then the above formula shows that is invertible and that:
This completes the proof.
This method for finding the inverse of is useful in many contexts. In particular, it is useful with complicated matrices where the entries are functions, rather than numbers.
Consider the following example.
Example : Inverse for Non-Constant Matrix
Suppose Show that exists and then find it.
Solution
First note so exists.
The cofactor matrix is and so the inverse is
Cramer’s Rule
Another context in which the formula given in Theorem is important is Cramer’s Rule. Recall that we can represent a system of linear equations in the form , where the solutions to this system are given by . Cramer’s Rule gives a formula for the solutions in the special case that is a square invertible matrix. Note this rule does not apply if you have a system of equations in which there is a different number of equations than variables (in other words, when is not square), or when is not invertible.
Suppose we have a system of equations given by , and we want to find solutions which satisfy this system. Then recall that if exists, Hence, the solutions to the system are given by . Since we assume that exists, we can use the formula for given above. Substituting this formula into the equation for , we have Let be the entry of and be the entry of . Then this equation becomes where is the entry of .
By the formula for the expansion of a determinant along a column, where here the column of is replaced with the column vector . The determinant of this modified matrix is taken and divided by . This formula is known as Cramer’s rule.
We formally define this method now.
Procedure : Using Cramer’s Rule
Suppose is an invertible matrix and we wish to solve the system for Then Cramer’s rule says where is the matrix obtained by replacing the column of with the column matrix
We illustrate this procedure in the following example.
Example : Using Cramer's Rule
Find if
Solution
We will use method outlined in Procedure to find the values for which give the solution to this system. Let
In order to find , we calculate where is the matrix obtained from replacing the first column of with .
Hence, is given by
Therefore,
Similarly, to find we construct by replacing the second column of with . Hence, is given by
Therefore,
Similarly, is constructed by replacing the third column of with . Then, is given by
Therefore, is calculated as follows.
Cramer’s Rule gives you another tool to consider when solving a system of linear equations.
We can also use Cramer’s Rule for systems of non linear equations. Consider the following system where the matrix has functions rather than numbers for entries.
Using Cramer’s Rule
Example : Use Cramer's Rule for Non-Constant Matrix
Solve for if
Solution
We are asked to find the value of in the solution. We will solve using Cramer’s rule. Thus
Polynomial Interpolation
In studying a set of data that relates variables and , it may be the case that we can use a polynomial to “fit” to the data. If such a polynomial can be established, it can be used to estimate values of and which have not been provided.
Consider the following example.
Example : Polynomial Interpolation
Given data points , find an interpolating polynomial of degree at most and then estimate the value corresponding to .
Solution
We want to find a polynomial given by such that and . To find this polynomial, substitute the known values in for and solve for , and .
Writing the augmented matrix, we have
After row operations, the resulting matrix is
Therefore the solution to the system is and the required interpolating polynomial is
To estimate the value for , we calculate :
This procedure can be used for any number of data points, and any degree of polynomial. The steps are outlined below.
Procedure : Finding an Interpolation Polynomial
Suppose that values of and corresponding values of are given, such that the actual relationship between and is unknown. Then, values of can be estimated using an interpolating polynomial . If given and the corresponding , the procedure to find is as follows:
- The desired polynomial is given by
- for all so that
- Set up the augmented matrix of this system of equations
- Solving this system will result in a unique solution . Use these values to construct , and estimate the value of for any .
This procedure motivates the following theorem.
Theorem : Polynomial Interpolation
Given data points with the distinct, there is a unique polynomial such that for . The resulting polynomial is called the interpolating polynomial for the data points.
We conclude this section with another example.
Example : Polynomial Interpolation
Consider the data points . Find an interpolating polynomial of degree at most three, and estimate the value of .
Solution
The desired polynomial is given by:
Using the given points, the system of equations is
The augmented matrix is given by:
The resulting matrix is
Therefore, and . To estimate the value of , we compute .