We have seen how to write a system of equations with an augmented matrix, and then how to use row operations and back-substitution to obtain row-echelon form. Now, we will take row-echelon form a step farther to solve a 3 by 3 system of linear equations. The general idea is to eliminate all but one variable using row operations and then back-substitute to solve for the other variables.
Example 6: Solving a System of Linear Equations Using Matrices
Solve the system of linear equations using matrices.
Solution
First, we write the augmented matrix.
Next, we perform row operations to obtain row-echelon form.
The easiest way to obtain a 1 in row 2 of column 1 is to interchange and .
Then
The last matrix represents the equivalent system.
Using back-substitution, we obtain the solution as .
Example 7: Solving a Dependent System of Linear Equations Using Matrices
Solve the following system of linear equations using matrices.
Solution
Write the augmented matrix.
First, multiply row 1 by to get a 1 in row 1, column 1. Then, perform row operations to obtain row-echelon form.
The last matrix represents the following system.
We see by the identity that this is a dependent system with an infinite number of solutions. We then find the generic solution. By solving the second equation for and substituting it into the first equation we can solve for in terms of .
Now we substitute the expression for into the second equation to solve for in terms of .
The generic solution is .
Q & A
Can any system of linear equations be solved by Gaussian elimination?
Yes, a system of linear equations of any size can be solved by Gaussian elimination.
How To: Given a system of equations, solve with matrices using a calculator.
- Save the augmented matrix as a matrix variable .
- Use the ref( function in the calculator, calling up each matrix variable as needed.
Example 8: Solving Systems of Equations with Matrices Using a Calculator
Solve the system of equations.
Solution
Write the augmented matrix for the system of equations.
On the matrix page of the calculator, enter the augmented matrix above as the matrix variable .
Use the ref( function in the calculator, calling up the matrix variable .
Evaluate.
Using back-substitution, the solution is .
Example 9: Applying 2 × 2 Matrices to Finance
Carolyn invests a total of $12,000 in two municipal bonds, one paying 10.5% interest and the other paying 12% interest. The annual interest earned on the two investments last year was $1,335. How much was invested at each rate?
Solution
We have a system of two equations in two variables. Let the amount invested at 10.5% interest, and the amount invested at 12% interest.
As a matrix, we have
Multiply row 1 by and add the result to row 2.
Then,
So .
Thus, $5,000 was invested at 12% interest and $7,000 at 10.5% interest.
Example 10: Applying 3 × 3 Matrices to Finance
Ava invests a total of $10,000 in three accounts, one paying 5% interest, another paying 8% interest, and the third paying 9% interest. The annual interest earned on the three investments last year was $770. The amount invested at 9% was twice the amount invested at 5%. How much was invested at each rate?
Solution
We have a system of three equations in three variables. Let be the amount invested at 5% interest, let be the amount invested at 8% interest, and let be the amount invested at 9% interest. Thus,
As a matrix, we have
Now, we perform Gaussian elimination to achieve row-echelon form.
The third row tells us ; thus .
The second row tells us . Substituting , we get
The first row tells us . Substituting and , we get
The answer is $3,000 invested at 5% interest, $1,000 invested at 8%, and $6,000 invested at 9% interest.
Try It 6
A small shoe company took out a loan of $1,500,000 to expand their inventory. Part of the money was borrowed at 7%, part was borrowed at 8%, and part was borrowed at 10%. The amount borrowed at 10% was four times the amount borrowed at 7%, and the annual interest on all three loans was $130,500. Use matrices to find the amount borrowed at each rate.
Candela Citations
- Precalculus. Authored by: OpenStax College. Provided by: OpenStax. Located at: http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175:1/Preface. License: CC BY: Attribution