Gaussian elimination is a method for solving matrix equations of the form, Ax=b. This method is also known as the row reduction algorithm.
Back Substitution
Solving the last equation for the variable and then work backward into the first equation to solve it. The fundamental idea is to add multiples of one equation to the others in order to eliminate a variable and to continue this process until only one variable is left.
Pivot row
The row that is used to perform elimination of a variable from other rows is called the pivot row.
Example:
Solving a linear equation
The augmented matrix for the above equation shall be
The equation shall be solved using back substitution. The eliminating the first variable (x1) in the first row (Pivot row) by carrying out the row operation.As the second row become zero, the row will be shifted to bottom by carrying out partial pivoting.
x3 = 2 ; x2 = 4 ; x1 = 2
The same operation can be done with a single command, Row reduced echelon form (rref) in Matlab or Octave as follows.