What is forward and back substitution in Gaussian elimination?
Overview
Gaussian elimination is a method in which an augmented matrix is subjected to row operations until the component corresponding to the coefficient matrix is reduced to triangular form.
After we have obtained our triangular matrix, there are two different approaches we can use to solve a system of linear equations:
- Forward substitution
- Back substitution
Forward substitution
The procedure of solving a system of linear algebraic equations (SLAE) with a lower triangular coefficient matrix is known as forward substitution. Solving an SLAE with a triangular matrix form is a variant of the generic substitution approach.
Equation
- represents the factor of the matrix of the lower triangle.
- represents the variable of matrix.
- is the result vector.
The matrix form of a lower triangle:
Visualization of forward substitution
The visualization shows how forward substitution works. The method transforms the matrix into a lower triangular form and then starts solving an equation from top to bottom.
- The diagram above shows how forward substitution works. In this process, we make a lower triangle and start from the top.
- As we can see at the top, only exists, and other values are zero, so it is easy to find a value of and use it for the next step.
- In the second step, we find the value of by using the value of , which came from the first step.
- Similarly, in the third step, we use and values and find the value of .
Back substitution
The procedure of solving an SLAE with an upper triangular coefficient matrix is known as back substitution.
Equation
- represents the factor of matrix of upper triangle.
- represents the variable of matrix.
- is the result vector.
The matrix form of an upper triangle:
Visualization of backward substitution
It shows how the backward substitution works. The method transforms the matrix into an upper triangular form and then starts solving an equation from bottom to top.
- The lower diagram shows how back substitution works. In this process we make an upper triangle and start from the bottom.
- As we can see at the bottom, only exists and other values are zero, so it is easy to find a value of and use it for next step.
- In the second step, we find the value of using the value of , which came from previous step.
- Similarly, in the third step, we use and to find the value of .
Free Resources