Definition
Gaussian Elimination
Gaussian elimination is an algorithm used to transform a matrix into its row echelon form (REF) or reduced row echelon form (RREF) using a sequence of elementary row operations. It is primarily used to solve systems of linear equations, determine the rank of a matrix, and compute inverses of matrices.
Elementary Row Operations
Gaussian elimination uses the following elementary row operations:
- Row Swap: Swap two rows .
- Row Scaling: Multiply a row by a non-zero scalar where .
- Row Addition: Add a multiple of one row to another row .
These operations are invertible and preserve the solution space of the system or the rank of the matrix.
Row Echelon Form (REF)
Row Echelon Form
A matrix is in row echelon form if:
- All non-zero rows are above rows of all zeros.
- The leading entry (pivot) of each non-zero row is to the right of the leading entry of the row above.
- The entries below each pivot are zero.
Example of REF
Reduced Row Echelon Form (RREF)
Reduced Row Echelon Form
A matrix is in reduced row echelon form if it satisfies the conditions of row echelon form (REF) and additionally:
- The pivot in each row is .
- Each pivot is the only non-zero entry in its column.
Example of RREF
Steps of Gaussian Elimination
- Select a Pivot: Choose the leftmost non-zero entry as a pivot. If necessary, swap rows to bring a non-zero entry into the pivot position.
- Create Zeros Below the Pivot: Use row operations to create zeros below the pivot.
- Move to the Next Row: Repeat the process for the submatrix below the current pivot.
- Continue Until in Row Echelon Form.
For RREF, additional steps are performed to ensure each pivot is and the entries above each pivot are zero.
Determining the Rank of a Matrix
Rank
The rank of a matrix is the number of non-zero rows in its row echelon form (REF) or reduced row echelon form (RREF). It represents the number of linearly independent rows or the dimension of the row space.
Example
Given the matrix:
-
Step 1: Use in the first row as the pivot.
-
Step 2: Eliminate entries below:
- Row 2:
- Row 3:
New matrix:
-
Step 3: Use in Row 2 as the next pivot.
-
Step 4: Eliminate entries below:
- Row 3:
Final REF:
- Rank: There are 2 non-zero rows, so .