Gaussian Elimination

Terry D. Johnson
10.001 Fall 2000
 
 
 

We begin with a general matrix of n by m dimensions:
 
 
 


 
 
 

Step 1: Focus on Row 1. Subtract a multiple of Row 1 from all rows beneath it. The multiple is chosen to eliminate a21, a31, a41...am1. Example: (a21/a11)*Row 1 is subtracted from Row 2.

Note: When one row is subtracted from a second row, the numbers in the second row change. This change in number is denoted by the an accent (').
 
 
 


 
 
 

Step 2: Focus on Row 2. Subtract a multiple of Row 2 from all rows beneath it.  The multiple is chosen to eliminate a32', a42',...am2'. Example: (a32/a22)*Row 2 is subtracted from Row 3.
 
 
 


 
 
 

Step 3-Step (m-1): Continue until your matrix is in 'almost' Row Echelon form.
 
 
 


 
 
 

Back Substitute: Solve! Start at the bottom and solve for xm = ym'''.../amn''''...
 
 
 


 
 
 

then substitute xm to solve for xm-1. Use xm and xm-1 to solve for xm-2.
 
 
 

~ Continue until x1-xm are solved for ~
 
 

END