⎩⎨⎧R1=x+2y+3z=6R2=2x−3y+2z=14R3=3x+y−z=2Subtract R1 from R2 and R3⎩⎨⎧R1=x+2y+3z=6R2−2R1=−7y−4z=2R3−3R1=−5y−10z=−20=−5(y+2z=4)Swap row 2 and row 3 for simplicity, and divide out the -5 from the new row 2.⎩⎨⎧R1=x+2y+3z=6R2=y+2z=4R3=−7y−4z=2From here, you can isolate the y and x variables and solve for them.⎩⎨⎧R1=x+2y+3z=6R2=y+2z=4R3+7R2=10z=30→z=3Use back substitution to solve for other variables.R2=y+2(3)=4→y=−2R1=x+2(−2)+3(3)=6→x=1Thus, the answer is: x=1,y=−2,z=3
Solving SLEs with matrices
First, convert the system to an augmented matrix, augmented meaning that there is a line separating variables from constants.⎩⎨⎧x+2y+z=0x−y+3z=−23x−z=4→⎝⎛1132−1013−10−24⎠⎞Use the same process of removing one coefficient at a time.R2−R1,R3−3R1⎝⎛1002−3−612−40−24⎠⎞R3−2R1⎝⎛1002−3012−80−28⎠⎞Convert back into system of equations and perform back substitution⎩⎨⎧x+2y+z=0−3y+2z=−2−8z=8→z=−1−3y+2(−1)=−2→y=0x+2(0)+(−1)=0→x=1Thus, the answer is x=1,y=0,z=−1
In this method, we use Elementary Row Operations which include the following:
All are used to solve systems of linear equations, and importantly, all operations are reversible.
Pivots
In reducing a matrix that represents a system, our goal is to have as many pivots as possible and get the matrix down to row echelon form. A matrix in row echelon form looks like the following:
⎝⎛1002−3012−80−28⎠⎞
As shown above, row echoleon forms have a pivot in every row. A pivot is a value where either everything before (left of) it is a zero and everything below it is a zero (so 1, -3, and -8). It is also effective to reduce down the matrix to a form such as this:
⎝⎛100010001xyz⎠⎞
This is reduced row echelon form and is easy to reach when you have the row echelon form.
If the row echelon form has zeroes at the bottom but a nonzero constant such as this: