3.2 Matrices and Gaussian Elimination
matrix: array of numbers
From last time:
solve by elimination:
matrix: array of numbers
solve by elimination:
multiply ① by -2
add to ②
row 2: \( 0 \cdot x_1 + 1 \cdot x_2 = 2 \) so, \( x_2 = 2 \)
row 1: \( 1 \cdot x_1 + 3 \cdot x_2 = 9 \)
\( x_1 = 9 - 3x_2 = 9 - 3(2) = 3 \) \( x_1 = 3 \)
left most non-zero
back to this matrix is in row echelon form
"stairs"
the left most non-zero number (called "pivot") of a row is below and to the right of the pivot of the row above
pivot row 1
\[ \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \]is NOT in row echelon form
pivot row 2 is NOT to the right and below the pivot of the row above it
is in row echelon form
pivot of row 1
\[ \begin{bmatrix} 1 & 2 & 3 \\ 0 & 0 & 5 \\ 0 & 0 & 0 \end{bmatrix} \]pivot of row 2 it is below and to the right of pivot of row 1
row 3 does NOT have a pivot
so, this is in row echelon form
→ in row echelon form, a row of all zeros is at the bottom
also, notice all numbers below a pivot are zeros
Solving a system → put coefficient matrix into row echelon form.
The process of making a matrix in row echelon form is called row reduction or Gaussian elimination.
Sometimes called the augmented matrix because right side numbers are included.
Swap rows 1 and 2 (or 1 and 3) so we have a pivot on the upper left.
Every # below pivot should be zeros.
↑ pivot
↖ make it 0
zeros
pivot ↓ ↓ pivot
↖ make 0
Solve: row 3 \(\rightarrow 0 \cdot x_1 + 0 \cdot x_2 + 0 \cdot x_3 = -6\)
\(0 = -6\) false!
So, there is no solution
Representing the system as an augmented matrix:
Applying row operations to reach row echelon form:
Solve: row 3 \(\rightarrow 0 = 0 \rightarrow\) infinite solutions
One of the variables is arbitrary (free variable).
The variable without a pivot in its column is chosen to be free.
Here, \(x_3\) is free.
Let \(x_3 = t\)
row 2 \(\rightarrow 5x_2 - 15x_3 = -10\)
\(x_2 = 3x_3 - 2 = 3t - 2\)
row 1 \(\rightarrow \dots \rightarrow x_1 = 5 + 2t\)