Chapter 2 Matrices
2.4 Solving Systems with Inverses
Learning Objectives
By the end of this section, you will be able to:
- Find the inverse of [latex]2\times2[/latex] and [latex]3\times 3[/latex] matrices
- Use the formula for [latex]2\times2[/latex] matrices
- Use augmenting for [latex]2\times2[/latex] and [latex]3\times 3[/latex] matrices
- Use the inverse to solve a system of equations
Nancy plans to invest $10,500 into two different bonds to spread out her risk. The first bond has an annual return of 10%, and the second bond has an annual return of 6%. In order to receive an 8.5% return from the two bonds, how much should Nancy invest in each bond? What is the best method to solve this problem?
There are several ways we can solve this problem. As we have seen in previous sections, systems of equations and matrices are useful in solving real-world problems involving finance. After studying this section, we will have the tools to solve the bond problem using the inverse of a matrix.
Finding the Inverse of a Matrix
The multiplicative inverse of a real number [latex]a[/latex] is [latex]a^{-1}[/latex], where the product is 1: [latex]aa^{-1}=a^{-1}a=(\frac{1}{a})a=1[/latex]. For example, [latex]2^{-1}=\frac{1}{2}[/latex] and [latex](\frac{1}{2})2=1[/latex]. The multiplicative inverse of a matrix is similar in concept, except that the product of matrix [latex]A[/latex] and its inverse [latex]A^{-1}[/latex] equals the identity matrix. The identity matrix is a square matrix containing ones down the main diagonal and zeros everywhere else. We identify identity matrices by [latex]I_n[/latex], where [latex]n[/latex] represents the dimension of the matrix. Shown below are the identity matrices for a [latex]2\times2[/latex] matrix and a [latex]3\times3[/latex] matrix, respectively.
[latex]I_2=\begin{bmatrix} 1&0\\0&1\end{bmatrix}[/latex], [latex]I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}[/latex]
The identity matrix acts as a 1 in matrix algebra. For example, [latex]AI=IA=A[/latex].
A matrix that has a multiplicative inverse has the properties
[latex]\begin{array}{rcl} AA^{-1} & = & I\\ A^{-1}A & = & I\\ \end{array}[/latex]
A matrix that has a multiplicative inverse is called an invertible matrix. Only a square matrix may have a multiplicative inverse, as the reversibility, [latex]AA^{-1}=A^{-1}A=I[/latex], is a requirement. Not all square matrices have an inverse, but if [latex]A[/latex] is invertible, then [latex]A^{-1}[/latex] is unique. We will look at two methods for finding the inverse of a [latex]2\times2[/latex] matrix and a third method that can be used on both [latex]2\times2[/latex] and [latex]3\times3[/latex] matrices.
The Identity Matrix and Multiplicative Inverse
The identity matrix, [latex]I_n[/latex], is a square matrix containing ones down the main diagonal and zeros everywhere else.
[latex]\begin{array}{rcc}I_2&=&\begin{bmatrix} 1&0\\0&1\end{bmatrix}\\& & 2\times2\end{array}[/latex] [latex]\begin{array}{rcc}I_3&=&\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}\\& & 3\times3\end{array}[/latex]
If [latex]A[/latex] is an [latex]n\times n[/latex] matrix and [latex]B[/latex] is an [latex]n\times n[/latex] matrix such that [latex]AB=BA=I_n[/latex], then [latex]B=A^{-1}[/latex], the multiplicative inverse of a matrix [latex]A[/latex].
Example 1
Given matrix [latex]A[/latex], show that [latex]AI=IA=A[/latex].
[latex]A=\begin{bmatrix} 3&4\\-2&5\end{bmatrix}[/latex]
Use matrix multiplication to show that the product of [latex]A[/latex] and the identity is equal to the product of the identity and [latex]A[/latex].
[latex]AI=\begin{bmatrix} 3&4\\-2&5\end{bmatrix}\begin{bmatrix} 1&0\\0&1\end{bmatrix}=\begin{bmatrix} 3\cdot1+4\cdot0&3\cdot0+4\cdot1\\-2\cdot1+5\cdot0&-2\cdot0+5\cdot1\end{bmatrix}=\begin{bmatrix} 3&4\\-2&5\end{bmatrix}[/latex]
[latex]IA=\begin{bmatrix} 1&0\\0&1\end{bmatrix}\begin{bmatrix} 3&4\\-2&5\end{bmatrix}=\begin{bmatrix} 1\cdot3+0\cdot-2&1\cdot4+0\cdot5\\0\cdot3+1\cdot-2&0\cdot4+1\cdot5\end{bmatrix}=\begin{bmatrix} 3&4\\-2&5\end{bmatrix}[/latex]
To work this problem using the matrix calculator, click here.
Given two matrices, show that one is the multiplicative inverse of the other.
- Given matrix [latex]A[/latex] of order [latex]n\times n[/latex] and matrix [latex]B[/latex] of order [latex]n\times n[/latex], multiply [latex]AB[/latex].
- If [latex]AB=I[/latex], then find the product [latex]BA[/latex]. If [latex]BA=I[/latex], then [latex]B=A^{-1}[/latex] and [latex]A=B^{-1}[/latex].
Example 2
Show that the given matrices are multiplicative inverses of each other.
[latex]A=\begin{bmatrix} 1&5\\-2&-9\end{bmatrix}[/latex], [latex]B=\begin{bmatrix} -9&-5\\2&1\end{bmatrix}[/latex]
Multiply [latex]AB[/latex] and [latex]BA[/latex]. If both products equal the identity, then the two matrices are inverses of each other.
[latex]\begin{array}{rcl}AB&=&\begin{bmatrix} 1&5\\-2&-9\end{bmatrix}\begin{bmatrix} -9&-5\\2&1\end{bmatrix}\\ &=&\begin{bmatrix} 1\cdot-9+5\cdot2&1\cdot-5+5\cdot1\\-2\cdot-9-9\cdot2&-2\cdot-5+-9\cdot1\end{bmatrix}\\ &=&\begin{bmatrix} 1&0\\0&1\end{bmatrix}\\ \end{array}[/latex]
[latex]\begin{array}{rcl}BA&=&\begin{bmatrix} -9&-5\\2&1\end{bmatrix}\begin{bmatrix} 1&5\\-2&-9\end{bmatrix}\\ &=&\begin{bmatrix} -9\cdot1-5\cdot-2&-9\cdot5-5\cdot-9\\2\cdot1+1\cdot-2&2\cdot-5+1\cdot-9\end{bmatrix}\\ &=&\begin{bmatrix} 1&0\\0&1\end{bmatrix} \end{array}[/latex]
[latex]A[/latex] and [latex]B[/latex] are inverses of each other.
To work this problem using the matrix calculator, click here.
Show that the following two matrices are inverses of each other.
[latex]A=\begin{bmatrix} 1&4\\-1&-3\end{bmatrix}[/latex], [latex]B=\begin{bmatrix} -3&-4\\1&1\end{bmatrix}[/latex]
Solution
[latex]AB=\begin{bmatrix} 1&0\\0&1\end{bmatrix}=BA[/latex]
Finding the Multiplicative Inverse by Augmenting with the Identity
One way to find the multiplicative inverse is by augmenting with the identity. When matrix [latex]A[/latex] is transformed into [latex]I[/latex], the augmented matrix [latex]I[/latex] transforms into [latex]A^{-1}[/latex].
Example 3
Given [latex]A=\begin{bmatrix}2&1\\5&3\end{bmatrix}[/latex], augment [latex]A[/latex] with the identity [latex]\left[ \begin{array}{cc|cc}2&1&1&0\\5&3&0&1\end{array}\right][/latex].
Perform row operations with the goal of turning [latex]A[/latex] into the identity.
Switch row 1 and row 2.
[latex]\left[ \begin{array}{cc|cc}5&3&0&1\\2&1&1&0\end{array}\right][/latex]
Multiply row 2 by –2 and add to row 1.
[latex]\left[ \begin{array}{cc|cc}1&1&-2&1\\2&1&1&0\end{array}\right][/latex]
Multiply row 1 by –2 and add to row 2.
[latex]\left[ \begin{array}{cc|cc}1&1&-2&1\\0&-1&5&-2\end{array}\right][/latex]
Add row 2 to row 1.
[latex]\left[ \begin{array}{cc|cc}1&0&3&-1\\0&-1&5&-2\end{array}\right][/latex]
Multiply row 2 by –1.
[latex]\left[ \begin{array}{cc|cc}1&0&3&-1\\0&1&-5&2\end{array}\right][/latex]
The matrix we have found is [latex]A^{-1}[/latex].
[latex]A^{-1}=\begin{bmatrix}3&-1\\-5&2\end{bmatrix}[/latex]
To work this problem using the matrix calculator, click here.
Finding the Multiplicative Inverse of [latex]2\times2[/latex] Matrices Using a Formula
When we need to find the multiplicative inverse of a matrix, we can use a special formula instead of using matrix multiplication or augmenting with the identity.
Formula for the Inverse of a 2×2 Matrix
If [latex]A[/latex] is a [latex]2\times2[/latex] matrix, such as [latex]A=\begin{bmatrix}a&b\\c&d\end{bmatrix}[/latex],
the multiplicative inverse of A is given by the formula
[latex]A^{-1}=\frac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}[/latex]
where [latex]ad-bc\neq0[/latex]. If [latex]ad-bc=0[/latex], then [latex]A[/latex] has no inverse.
Example 4
Use the formula to find the multiplicative inverse of
[latex]A=\begin{bmatrix}2&1\\5&3\end{bmatrix}[/latex]
Using the formula, we have
[latex]\begin{array}{rcl}A^{-1}&=&\frac{1}{(2)(3)-(5)(1)}\begin{bmatrix}3&-1\\-5&2\end{bmatrix}\\ &=&\frac{1}{1}\begin{bmatrix}3&-1\\-5&2\end{bmatrix}\\ &=&\begin{bmatrix}3&-1\\-5&2\end{bmatrix}\\ \end{array}[/latex]
Notice this matches the inverse we found above by augmenting with the identity matrix.
To work this problem using the matrix calculator, click here.
Example 5
Find the inverse, if it exists, of the given matrix: [latex]A=\begin{bmatrix} 3&6\\1&2\end{bmatrix}[/latex].
We will use the method of augmenting with the identity.
[latex]\left[ \begin{array}{cc|cc}3&6&1&0\\1&2&0&1\end{array}\right][/latex]
Switch row 1 and row 2.
[latex]\left[ \begin{array}{cc|cc}1&2&0&1\\3&6&1&0\end{array}\right][/latex]
Multiply row 1 by [latex]-3[/latex] and add it to row 2.
[latex]\left[ \begin{array}{cc|cc}1&2&0&1\\0&0&1&-3\end{array}\right][/latex]
There is nothing further we can do. The zeros in row 2 indicate that this matrix has no inverse.
To work this problem using the matrix calculator, click here.
Finding the Multiplicative Inverse of Matrices
Unfortunately, we do not have a formula similar to the one for a [latex]2\times2[/latex] matrix to find the inverse of a [latex]3\times3[/latex] matrix. Instead, we will augment the original matrix with the identity matrix and use row operations to obtain the inverse.
Given a [latex]3\times3[/latex] matrix
[latex]A=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}[/latex]
augment [latex]A[/latex] with the identity matrix
[latex]A|I=\left[\begin{array}{ccc|ccc}2&3&1&1&0&0\\3&3&1&0&1&0\\2&4&1&0&0&1\end{array}\right][/latex]
To begin, we write the augmented matrix with the identity on the right and [latex]A[/latex] on the left. Performing elementary row operations so that the identity matrix appears on the left, we will obtain the inverse matrix on the right. We will find the inverse of this matrix in the next example.
Given a 3 × 3 Matrix, Find the Inverse
- Write the original matrix augmented with the identity matrix on the right.
- Use elementary row operations so that the identity appears on the left.
- What is obtained on the right is the inverse of the original matrix.
- Use matrix multiplication to show that [latex]AA^{-1}=I[/latex] and [latex]A^{-1}A=I[/latex].
Example 6
Given the [latex]3\times3[/latex] matrix [latex]A[/latex], find the inverse.
[latex]A=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}[/latex]
Augment [latex]A[/latex] with the identity matrix, and then begin row operations until the identity matrix replaces [latex]A[/latex]. The matrix on the right will be the inverse of [latex]A[/latex].
[latex]A=\left[\begin{array}{ccc|ccc}2&3&1&1&0&0\\3&3&1&0&1&0\\2&4&1&0&0&1\end{array}\right] \xrightarrow[ ]{ \text {Interchange }R_2 \text{ and } R_1} \left[\begin{array}{ccc|ccc}3&3&1&0&1&0\\2&3&1&1&0&0\\2&4&1&0&0&1\end{array}\right][/latex]
[latex]-R_2+R_1=R_1 \longrightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\2&3&1&1&0&0\\2&4&1&0&0&1 \end{array} \right][/latex]
[latex]-R_2+R_3=R_3 \longrightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\2&3&1&1&0&0\\0&1&0&-1&0&1 \end{array} \right][/latex]
[latex]R_1\leftrightarrow R_2 \longrightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\0&1&0&-1&0&1\\2&3&1&1&0&0 \end{array} \right][/latex]
[latex]-2R_1+R_3=R_3 \longrightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\0&1&0&-1&0&1\\0&3&1&3&-2&0 \end{array} \right][/latex]
[latex]-3R_2+R_3=R_3 \longrightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\0&1&0&-1&0&1\\0&0&1&6&-2&-3 \end{array} \right][/latex]
Thus,
[latex]A^{-1}=B=\begin{bmatrix}-1&1&0\\-1&0&1\\6&-2&-3\end{bmatrix}[/latex]
To prove that [latex]B=A^{-1}[/latex], let’s multiply the two matrices together to see if the product equals the identity, if [latex]AA^{-1}=I[/latex] and [latex]A^{-1}A=I[/latex].
[latex]\begin{array}{rcl}AA^{-1}&=&\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}\begin{bmatrix}-1&1&0\\-1&0&1\\6&-2&-3\end{bmatrix}\\ &=&\begin{bmatrix}2(-1)+3(-1)+1(6)&2(1)+3(0)+1(-2)&2(0)+3(1)+1(-3)\\3(-1)+3(-1)+1(6)&3(1)+3(0)+1(-2)&3(0)+3(1)+1(-3)\\2(-1)+4(-1)+1(6)&2(1)+4(0)+1(-2)&2(0)+4(1)+1(-3)\end{bmatrix}\\ &=&\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}\end{array}[/latex]
[latex]\begin{array}{rcl}A^{-1}A&=&\begin{bmatrix}-1&1&0\\-1&0&1\\6&-2&-3\end{bmatrix}\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}\\ &=&\begin{bmatrix}-1(2)+1(3)+0(2)&-1(3)+1(3)+0(4)&-1(1)+1(1)+0(1)\\-1(2)+0(3)+1(2)&-1(3)+0(3)+1(4)&-1(1)+0(1)+1(1)\\6(2)+(-2)(3)+(-3)(2)&6(3)+(-2)(3)+(-3)(4)&6(1)+(-2)(1)+(-3)(1)\end{bmatrix}\\ &=&\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}\end{array}[/latex]
To work this problem using the matrix calculator, click here.
Find the inverse of the matrix.
[latex]A=\begin{bmatrix}2&-17&11\\-1&11&-7\\0&3&-2\end{bmatrix}[/latex]
Solution
[latex]A^{-1}=\begin{bmatrix}1&1&2\\2&4&-3\\3&6&-5\end{bmatrix}[/latex]
Solving a System of Linear Equations Using the Inverse of a Matrix
Solving a system of linear equations using the inverse of a matrix requires the definition of two new matrices: [latex]X[/latex] is the matrix representing the variables of the system, and [latex]B[/latex] is the matrix representing the constants. Using matrix multiplication, we may define a system of equations with the same number of equations as variables as
[latex]AX=B[/latex]
To solve a system of linear equations using an inverse matrix, let [latex]A[/latex] be the coefficient matrix, let [latex]X[/latex] be the variable matrix, and let [latex]B[/latex] be the constant matrix. Thus, we want to solve a system [latex]AX=B[/latex]. For example, look at the following system of equations.
[latex]\begin{cases}a_1x+b_1y=c_1\\a_2x+b_2y=c_2\end {cases}[/latex]
From this system, the coefficient matrix is
[latex]A=\begin{bmatrix}a_1&b_1\\a_2&b_2\end{bmatrix}[/latex]
The variable matrix is
[latex]X=\begin{bmatrix}x\\y\end{bmatrix}[/latex]
And the constant matrix is
[latex]B=\begin{bmatrix}c_1\\c_2\end{bmatrix}[/latex]
Then [latex]AX=B[/latex] looks like
[latex]\begin{bmatrix}a_1&b_1\\a_2&b_2\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}c_1\\c_2\end{bmatrix}[/latex]
Solving this system of equations written in matrix form is similar to solving a linear equation, except there is no matrix “division,” so instead we need to use the inverse. The goal is the same—to isolate the variable. We will investigate this idea in detail, but it is helpful to begin with a [latex]2\times2[/latex] system and then move on to a [latex]3\times3[/latex] system.
Solving a System of Equations Using the Inverse of a Matrix
Given a system of equations, write the coefficient matrix [latex]A[/latex], the variable matrix [latex]X[/latex], and the constant matrix [latex]B[/latex]. Then
[latex]AX=B[/latex]
Multiply both sides by the inverse of [latex]A[/latex] to obtain the solution.
[latex]\begin{array}{rcl}(A^{-1})AX&=&(A^{-1})B\\ [(A^{-1})A]X&=&(A^{-1})B\\ IX&=&(A^{-1})B\\ X&=&(A^{-1})B\\ \end{array}[/latex]
Important: If the coefficient matrix does not have an inverse, the system could be inconsistent and have no solution or be dependent and have infinitely many solutions.
Example 7
Solve the given system of equations using the inverse of a matrix.
[latex]\begin{cases}3x+8y=5\\4x+11y=7\end {cases}[/latex]
Write the system in terms of a coefficient matrix, a variable matrix, and a constant matrix.
[latex]A=\begin{bmatrix}3&8\\4&11\end{bmatrix}[/latex], [latex]X=\begin{bmatrix}x\\y\end{bmatrix}[/latex], [latex]B=\begin{bmatrix}5\\7\end{bmatrix}[/latex]
Then
[latex]\begin{bmatrix}3&8\\4&11\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}5\\7\end{bmatrix}[/latex]
Using the formula to calculate [latex]A^{-1}[/latex], we have:
[latex]\begin{array}{rcl}A^{-1}&=&\frac{1}{(ad-bc)}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}\\ &=&\frac{1}{3(11)-8(4)}\begin{bmatrix}11&-8\\-4&3\end{bmatrix}\\ &=&\frac{1}{1}\begin{bmatrix}11&-8\\-4&3\end{bmatrix}\\ A^{-1}&=&\begin{bmatrix}11&-8\\-4&3\end{bmatrix}\\ \end{array}[/latex]
Now we are ready to solve. Multiply both sides of the equation by [latex]A^{-1}[/latex].
[latex]\begin{array}{rcl}(A^{-1})AX&=&(A^{-1})B\\ \begin{bmatrix}11&-8\\-4&3\end{bmatrix}\begin{bmatrix}3&8\\4&11\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}&=&\begin{bmatrix}11&-8\\-4&3\end{bmatrix}\begin{bmatrix}5\\7\end{bmatrix}\\ \begin{bmatrix}1&0\\0&1\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}&=&\begin{bmatrix}11(5)+(-8)(7)\\-4(5)+3(7)\end{bmatrix}\\ \begin{bmatrix}x\\y\end{bmatrix}&=&\begin{bmatrix}-1\\1\end{bmatrix}\\ \end{array}[/latex].
The solution is [latex](-1,1)[/latex].
To work this problem using the matrix calculator, click here.
Note that you cannot solve for [latex]X[/latex] by finding the product [latex]BA^{-1}[/latex]. Recall that matrix multiplication is not commutative, so [latex]A^{-1}B\neq A^{-1}[/latex]. Consider our steps for solving the matrix equation.
[latex]\begin{array}{rcl}(A^{-1})AX&=&(A^{-1})B\\ [(A^{-1})A]X&=&(A^{-1})B\\ IX&=&(A^{-1})B\\ X&=&(A^{-1})B\\ \end{array}[/latex]
Notice in the first step we multiplied both sides of the equation by [latex]A^{-1}[/latex], but the [latex]A^{-1}[/latex] was to the left of [latex]A[/latex] on the left side and to the left of [latex]B[/latex] on the right side. Because matrix multiplication is not commutative, order matters.
Example 8
Solve the following system using the inverse of a matrix.
[latex]\begin{cases}5x+15y+56z=35\\-4x-11y-41z=-26\\-x-3y-11z=-7\end {cases}[/latex]
Write the equation [latex]AX=B[/latex].
[latex]\begin{bmatrix}5&15&56\\-4&-11&-41\\-1&-3&-11\end{bmatrix}\begin{bmatrix}x\\y\\z\end{bmatrix}=\begin{bmatrix}35\\-26\\-7\end{bmatrix}[/latex]
First, we will find the inverse of [latex]A[/latex] by augmenting with the identity.
[latex]\left[ \begin{array}{ccc|ccc}5&15&56&1&0&0\\-4&-11&-41&0&1&0\\-1&-3&-11&0&0&1\end{array}\right][/latex]
Multiply row 1 by [latex]\frac{1}{5}[/latex].
[latex]\left[ \begin{array}{ccc|ccc}1&3&\frac{56}{5}&\frac{1}{5}&0&0\\-4&-11&-41&0&1&0\\-1&-3&-11&0&0&1\end{array}\right][/latex]
Multiply row 1 by 4 and add to row 2.
[latex]\left[ \begin{array}{ccc|ccc}1&3&\frac{56}{5}&\frac{1}{5}&0&0\\0&1&\frac{19}{5}&\frac{4}{5}&1&0\\-1&-3&-11&0&0&1\end{array}\right][/latex]
Add row 1 to row 3.
[latex]\left[ \begin{array}{ccc|ccc}1&3&\frac{56}{5}&\frac{1}{5}&0&0\\0&1&\frac{19}{5}&\frac{4}{5}&1&0\\0&0&\frac{1}{5}&\frac{1}{5}&0&1\end{array}\right][/latex]
Multiply row 2 by −3 and add to row 1.
[latex]\left[ \begin{array}{ccc|ccc}1&3&-\frac{1}{5}&-\frac{11}{5}&-3&0\\0&1&\frac{19}{5}&\frac{4}{5}&1&0\\0&0&\frac{1}{5}&\frac{1}{5}&0&1\end{array}\right][/latex]
Multiply row 3 by 5.
[latex]\left[ \begin{array}{ccc|ccc}1&3&-\frac{1}{5}&-\frac{11}{5}&-3&0\\0&1&\frac{19}{5}&\frac{4}{5}&1&0\\0&0&1&1&0&5\end{array}\right][/latex]
Multiply row 3 by [latex]\frac{1}{5}[/latex] and add to row 1.
[latex]\left[ \begin{array}{ccc|ccc}1&0&0&-2&-3&1\\0&1&\frac{19}{5}&\frac{4}{5}&1&0\\0&0&1&1&0&5\end{array}\right][/latex]
Multiply row 3 by [latex]-\frac{19}{5}[/latex] and add to row 2.
[latex]\left[ \begin{array}{ccc|ccc}1&0&0&-2&-3&1\\0&1&0&-3&1&-19\\0&0&1&1&0&5\end{array}\right][/latex]
So,
[latex]A^{-1}=\begin{bmatrix}-2&-3&1\\-3&1&-19\\1&0&5\end{bmatrix}[/latex]
Multiply both sides of the equation by [latex]A^{-1}[/latex]. We want [latex]A^{-1}AX=A^{-1}B[/latex]:
[latex]\begin{bmatrix}-2&-3&1\\-3&1&-19\\1&0&5\end{bmatrix}\begin{bmatrix}5&15&56\\-4&-11&-41\\-1&-3&-11\end{bmatrix}\begin{bmatrix}x\\y\\z\end{bmatrix}=\begin{bmatrix}-2&-3&1\\-3&1&-19\\1&0&5\end{bmatrix}\begin{bmatrix}35\\-26\\-7\end{bmatrix}[/latex]
Thus,
[latex]A^{-1}B=\begin{bmatrix}70+78-7\\-105-26+133\\35+0-35\end{bmatrix}=\begin{bmatrix}1\\2\\0\end{bmatrix}[/latex]
The solution is [latex](1,2,0)[/latex].
To work this problem using the matrix calculator, click here.
Solve the system using the inverse of the coefficient matrix.
[latex]\begin{cases}2x-17y+11z=0\\-x+11y-7z=8\\3y-2z=-2\end {cases}[/latex]
Solution
[latex]X=\begin{bmatrix}1\\2\\0\end{bmatrix}[/latex], so [latex]x=4[/latex], [latex]y=38[/latex], [latex]z=58[/latex]
Systems of equations in many variables can get very complex, but solving using matrices can easily be handled by calculators or computers.
Given a system of equations, solve with matrix inverses using a calculator.
- Save the coefficient matrix and the constant matrix as matrix variables [latex][A][/latex] and [latex][B][/latex].
- Enter the multiplication into the calculator, calling up each matrix variable as needed.
- If the coefficient matrix is invertible, the calculator will present the solution matrix; if the coefficient matrix is not invertible, the calculator will present an error message.
A matrix whose product with another matrix results in the identity matrix; also called the inverse of a matrix.
A square matrix containing ones down the main diagonal and zeros everywhere else; the identity matrix acts as a 1 in matrix algebra.