Section 1.4 Examples
In this section.
Subsection 1.4.1 Row operations versus equation manipulations
Let's examine the operations in Discovery 1.7 in detail, by considering the operations as both equation manipulations and row operations simultaneously. In each step, notice how the row↔equation and column↔variable correspondence is preserved.
[−22−5−130391−132]{−2x+2y−5z=−13x+3z=9x−y+3z=2
Subtract 3 times the first row/equation from the second row/equation. For the equation version, we do this by performing the same combination of left- and right-hand sides, collecting terms on the left.
Interchange the first and third rows/equations.
[1−1323039−22−5−1]{x−y+3z=23x+3z=9−2x+2y−5z=−1
(LHS2)−3(LHS1)=(RHS2)−3(RHS1)(3x+3z)−3(x−y+3z)=9−3(2)
This combination leads to new equation
0x+3y−6z=3.
Notice that when collecting terms, we ended up performing that “subtract 3 times the first from the second” on the coefficients of each variable. So we can achieve the same result in the matrix by performing “subtract 3 times the entry in the first row from the entry in the second row,” one column at a time.
[1−13203−63−22−5−1]{x−y+3z=23y−6z=3−2x+2y−5z=−1
Next, add 2 times the first row/equation to the third row/equation:
(LHS3)+2(LHS1)=(RHS3)+2(RHS1)(−2x+2y−5z)+2(x−y+3z)=−1+2(2),
leading to new equation
z=3,
which we will use to replace the old third row/equation.
[1−13203−630013]{x−y+3z=23y−6z=3z=3
Finally, multiply the second row/equation by 1/3:
(1/3)(LHS2)=(1/3)(RHS2)(1/3)(3y−6z)=(1/3)(3)y−2z=1,
and modify the matrix accordingly:
[1−13201−210013]{x−y+3z=2y−2z=1z=3.
The final system on the right is much easier to solve: we can see immediately from the third equation that z=3, then can use this in the second equation to determine y=7, and finally can use both of these in the first equation to determine x=0.