Gaussian elimination

The calculator solves the systems of linear equations using the row reduction (Gaussian elimination) algorithm. The calculator produces step by step solution description.

The systems of linear equations:
\begin{cases}a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1\\ a_{21}x_1 + a_{22}x_2 + \dots + a_{2n}x_n = b_2\\ \dots \\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m\\ \end{cases}
can be solved using Gaussian elimination with the aid of the calculator.

In Gaussian elimination, the linear equation system is represented as an augmented matrix, i.e. the matrix containing the equation coefficients a_{ij} and constant terms b_i with dimensions [n:n+1]:
\begin{array}{|cccc|c|}  a_{11} &  a_{12} &  ... &  a_{1n} &  b_1\\  a_{21} &  a_{22} &  ... &  a_{2n} &  b_2\\  ... &  ... &  ... &  ... &  ...\\  a_{n1} &  a_{n2} &  ... &  a_{nn} &  b_n\\ \end{array}

PLANETCALC, Gaussian elimination

Gaussian elimination

Digits after the decimal point: 2
Number of solutions
1
Solution vector
1.806.31-1.550.77
The file is very large. Browser slowdown may occur during loading and creation.

Details

MatrixRow operations
834531
144332317
15423722
41117151
-
Multiply by 8, subtract 14 * row N 1
Multiply by 8, subtract 15 * row N 1
Multiply by 8, subtract 4 * row N 1
834531
0-10208114-298
0-13124-19-289
076120-12284
-
-
Multiply by -10, add 13 * row N 2
Multiply by -10, subtract 76 * row N 2
834531
0-10208114-298
0014641672-984
00-17008-854419808
-
-
-
Multiply by 1464, add 17008 * row N 3
834531
0-10208114-298
0014641672-984
0001592896012263040
-
-
-
Divide by 15928960
834531
0-10208114-298
0014641672-984
00010.77
Subtract 5 * row N 4
Subtract 114 * row N 4
Subtract 1672 * row N 4
834027.15
0-102080-385.76
0014640-2271.20
00010.77
-
-
Divide by 1464
834027.15
0-102080-385.76
0010-1.55
00010.77
Subtract 4 * row N 3
Subtract 208 * row N 3
830033.36
0-1000-63.08
0010-1.55
00010.77
-
Divide by -10
830033.36
01006.31
0010-1.55
00010.77
Subtract 3 * row N 2
800014.43
01006.31
0010-1.55
00010.77
Divide by 8

Gaussian elimination

The method is named after Carl Friedrich Gauss, the genius German mathematician from 19 century. Gauss himself did not invent the method. The row reduction method was known to ancient Chinese mathematicians; it was described in The Nine Chapters on the Mathematical Art, a Chinese mathematics book published in the II century.

Forward elimination

The first step of Gaussian elimination is row echelon form matrix obtaining. The lower left part of this matrix contains only zeros, and all of the zero rows are below the non-zero rows:
\begin{array}{|cccc|c|}  a_{11} &  a_{12} &  ... &  a_{1n} &  \beta_1\\  0 &  a_{22}  &  ... &  a_{2n} &  \beta_2 \\ 0 & 0 & \ddots & \vdots & \vdots \\ 0 &  0 &  0 & a_{nn} &  \beta_n\\ \end{array}

The matrix is reduced to this form by the elementary row operations: swap two rows, multiply a row by a constant, add to one row a scalar multiple of another.
Our calculator gets the echelon form using sequential subtraction of upper rows A_i, multiplied by {a_{ji}} from lower rows A_j , multiplied by {a_{ii}}, where i - leading coefficient row (pivot row).
It is important to get a non-zero leading coefficient. If it becomes zero, the row gets swapped with a lower one with a non-zero coefficient in the same position.

Back substitution

During this stage the elementary row operations continue until the solution is found. Finally, it puts the matrix into reduced row echelon form:
\begin{array}{|cccc|c|}  1 &  0 &  ... &  0 &  \beta_1\\  0 &  1 &  \vdots &  0 &  \beta_2 \\ 0 & 0 & \ddots & \vdots & \vdots \\ 0 &  0 &  0 & 1 &  \beta_n\\ \end{array} ,

URL copied to clipboard
PLANETCALC, Gaussian elimination

Comments