Solving System of Equations using Matrices: Learn It 4
Solving a System of Linear Equations Using Matrices
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.
Solve the system of linear equations using matrices.
Using back-substitution, we obtain the solution as [latex]\left(4,-3,1\right)[/latex].
Recall that there are three possible outcomes for solutions to linear systems. In the previous example, the solution [latex]\left(4,-3,1\right)[/latex] represents a point in three dimensional space. This point represents the intersection of three planes. In the next example, we solve a system using row operations and find that it represents a dependent system. A dependent system in 3 dimensions can be represented by two planes that are identical, much like in 2 dimensions where a dependent system represents two lines that are identical.
Solve the following system of linear equations using Gaussian Elimination.
[latex]\begin{array}{r}\hfill -x - 2y+z=-1\\ \hfill 2x+3y=2\\ \hfill y - 2z=0\end{array}[/latex]
We see by the identity [latex]0=0[/latex] that this is a dependent system with an infinite number of solutions. We then find the generic solution.
First, solve the second equation for [latex]y[/latex]:
[latex]\begin{align} y - 2z &= 0 \\ y &= 2z \end{align}[/latex]
Next, substitute [latex]y = 2z[/latex] into the first equation:
[latex]\begin{align} x + 2(2z) - z &= 1 \\ x + 4z - z &= 1 \\ x + 3z &= 1 \\ x &= 1 - 3z \end{align}[/latex]
The generic solution is [latex](1-3z,2z,z)[/latex].
Recall that when you solve a dependent system of linear equations in two variables using elimination or substitution, you can write the solution [latex](x,y)[/latex] in terms of [latex]x[/latex], because there are infinitely many [latex](x,y)[/latex] pairs that will satisfy a dependent system of equations, and they all fall on the line [latex](x, mx+b)[/latex]. Now that you are working in three dimensions, the solution will represent a plane, so you would write it in the general form [latex](x, m_{1}x+b_{1}, m_{2}x+b_{2})[/latex]. However, in three dimensions, it is often convenient to express the solution in terms of the single variable [latex]z[/latex].
How To: Given a system of equations, solve with matrices using a calculator
Save the augmented matrix as a matrix variable [latex]\left[A\right],\left[B\right],\left[C\right]\text{,} \dots[/latex].
Use the ref( function in the calculator, calling up each matrix variable as needed.