Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.1: Gaussian Elimination

( \newcommand{\kernel}{\mathrm{null}\,}\)

The standard numerical algorithm to solve a system of linear equations is called Gaussian Elimination. We can illustrate this algorithm by example.

Consider the system of equations

3x1+2x2x3=16x16x2+7x3=73x14x2+4x3=6

To perform Gaussian elimination, we form an Augmented Matrix by combining the matrix A with the column vector b :

(321166773446)

Row reduction is then performed on this matrix. Allowed operations are (1) multiply any row by a constant, (2) add multiple of one row to another row, (3) interchange the order of any rows. The goal is to convert the original matrix into an upper-triangular matrix

We start with the first row of the matrix and work our way down as follows. First we multiply the first row by 2 and add it to the second row, and add the first row to the third row:

(321102590237)

We then go to the second row. We multiply this row by 1 and add it to the third row:

(321102590022)

The resulting equations can be determined from the matrix and are given by

3x1+2x2x3=12x2+5x3=92x3=2

These equations can be solved by backward substitution, starting from the last equation and working backwards. We have

2x3=2x3=12x2=95x3=4x2=23x1=12x2+x3=6x1=2

Therefore,

(x1x2x3)=(221)


This page titled 3.1: Gaussian Elimination is shared under a CC BY 3.0 license and was authored, remixed, and/or curated by Jeffrey R. Chasnov via source content that was edited to the style and standards of the LibreTexts platform.

  • Was this article helpful?

Support Center

How can we help?