Gaussian Elimination
The Definition of Elementary Row Operations
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
The following three transformations of a matrix are called elementary row operations:
- Interchanging two rows: interchange row and row of the matrix
- Multiplying a row by a scalar: multiply a row of the matrix by a nonzero constant
- Adding a multiple of one row to another: add times row to row , written
Properties of Elementary Row Operations
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Elementary row operations do not change the rank of the matrix.
Proof
Proof:
- Interchanging two rows: does not change linear dependence
- Multiplying by a scalar: does not change linear dependence
- Adding a multiple: does not change linear dependence
The Matrix Representation of Elementary Row Operations
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
An elementary row operation is equivalent to left-multiplication by an elementary matrix.
Elementary matrices:
- Interchange matrix: denotes the matrix that interchanges row i and row j
- Scaling matrix: denotes the matrix that multiplies row i by k
- Shear matrix: denotes the matrix that adds k times row j to row i
The Basic Idea of Gaussian Elimination
Idea: use elementary row operations to reduce the augmented matrix to row echelon form, then solve by back substitution.
Row Echelon Form Matrices
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
A matrix satisfying the following conditions is called a row echelon form matrix:
- The zero rows (rows consisting entirely of zeros) lie below the nonzero rows
- The first nonzero entry of each nonzero row (called the pivot) lies to the right of the pivot of the row above
- The entries below each pivot are zero
Example:
The Steps of Gaussian Elimination
Steps:
- Forward elimination: use elementary row operations to reduce the augmented matrix to row echelon form
- Back substitution: start from the last row and solve for the unknowns one row at a time
An Example of Gaussian Elimination
Example 1: solve the system by Gaussian elimination:
Solution:
-
Write down the augmented matrix:
-
Forward elimination:
- :
- :
- :
-
Back substitution:
- From the third row: , so
- From the second row: , so
- From the first row: , so
-
Solution: , ,
The Idea of Gauss-Jordan Elimination
Idea: starting from row echelon form, go further and reduce the matrix to reduced row echelon form (the Jordan canonical form).
Reduced Row Echelon Form Matrices
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
A matrix satisfying the following conditions is called a reduced row echelon form matrix:
- It is in row echelon form
- Every pivot is 1
- All the other entries in the column containing a pivot are zero
Example:
The Steps of Gauss-Jordan Elimination
Steps:
- Reduce to row echelon form by Gaussian elimination
- Turn each pivot into 1
- Turn the entries above each pivot into zero
The Unique Solution
Condition: the system has a unique solution when the rank of the coefficient matrix equals the rank of the augmented matrix, and that common rank equals the number of unknowns.
Infinitely Many Solutions
Condition: the system has infinitely many solutions when the rank of the coefficient matrix equals the rank of the augmented matrix, and that common rank is less than the number of unknowns.
Form of the general solution: a particular solution plus the general solution of the homogeneous system
No Solution
Condition: the system has no solution when the rank of the coefficient matrix is less than the rank of the augmented matrix.
Advantages
- Universality: it applies to systems of linear equations of any size
- Numerical stability: the numerical error accumulated during the computation is small
- Ease of implementation: the algorithm is simple and easy to program
- The structure of the solution can be analysed: the rank analysis tells you which case you are in
Disadvantages
- Heavy computation: for large systems the amount of computation is considerable
- Storage requirements: the whole augmented matrix has to be stored
- Unsuitable for sparse matrices: for sparse matrices the efficiency is not high
Exercise 1
Solve the system by Gaussian elimination.
Approach: Follow the steps of Gaussian elimination.
Steps:
-
The augmented matrix:
-
Forward elimination: :
-
Back substitution:
- From the second row: , so
- From the first row: , so
Answer: ,
Exercise 2
Solve the system by Gaussian elimination.
Approach: Follow the steps of Gaussian elimination, noting that this is a homogeneous system.
Steps:
-
The augmented matrix:
-
Forward elimination: :
-
Analyse the structure of the solution:
- The rank of the coefficient matrix is 1, and the number of unknowns is 3
- The number of free variables is 3-1=2
- Let and , then
Answer: , , (where are arbitrary constants)
Exercise 3
Decide which case the system falls into.
Approach: Use Gaussian elimination to analyse the structure of the solution.
Steps:
-
The augmented matrix:
-
Forward elimination: :
-
Analysis:
- The rank of the coefficient matrix is 1
- The rank of the augmented matrix is 2
- The rank of the coefficient matrix is less than the rank of the augmented matrix
Answer: there is no solution
Exercise 4
Solve the system by Gauss-Jordan elimination.
Approach: First reduce to row echelon form by Gaussian elimination, then reduce to reduced row echelon form by Gauss-Jordan elimination.
Steps:
-
The augmented matrix:
-
Gaussian elimination:
- :
- :
- :
-
Gauss-Jordan elimination:
- :
- :
- :
-
Read off the solution directly: , ,
Answer: , ,
Exercise 5
Prove that: elementary row operations do not change the rank of a matrix.
Approach: Prove separately that each of the three elementary row operations leaves the rank unchanged.
Steps:
- Interchanging two rows: does not change linear dependence, so it does not change the rank
- Multiplying by a scalar: does not change linear dependence, so it does not change the rank
- Adding a multiple: does not change linear dependence, so it does not change the rank
Answer: the proof is complete
Symbols Used in This Article
| Symbol | Type | Pronunciation / Note | Meaning in This Article |
|---|---|---|---|
| Mathematical symbol | row i plus k row j | The shear operation: add times row to row | |
| Mathematical symbol | E sub i j | The elementary matrix that interchanges rows and | |
| Mathematical symbol | E sub i of k | The elementary matrix that multiplies row by the nonzero constant | |
| Mathematical symbol | E sub i j of k | The elementary matrix for the shear operation | |
| Mathematical symbol | k | The nonzero scalar multiplier used in a row operation |
