You are on page 1of 4

# 2/26/2018 Gaussian elimination calculator

## Study of mathematics online. Log

Study math with us and make sure that "Mathematics is easy!"  Custom Search
← CE
 About  Practice  Calculators Library  Formulas Feedback  Order
7 8
4 5
Gaussian elimination calculator 1 2
0

This online calculator will help you to solve a system of linear equations using Gauss-Jordan elimination.
algorithm how to solve system of linear equations by Gauss-Jordan elimination.

Calculator Guide

## Linear equations solver: Solving by Gaussian Elimination.

The number of equations in the system: 4
Change the names of the variables in the system
Fill the system of linear equations:

2 x1 + -3 x2 + 1 x3 + 1 x4 = 1

1 x1 + 5 x2 + -2 x3 + -1 x4 = 3

7 x1 + 1 x2 + 4 x3 + 2 x4 = 14

1 x1 + -1 x2 + 1 x3 + 1 x4 = 2

## Solve the system

You can input only integer numbers, decimals or fractions in this online calculator (-2.4, 5/7, ...). More in-depth information read at these rules.

Solution:

2x1 - 3x2 + x3 + x4 = 1
x1 + 5x2 - 2x3 - x4 = 3
7x1 + x2 + 4x3 + 2x4 = 14
x1 - x2 + x3 + x4 = 2

Rewrite the system in matrix form and solve it by Gaussian Elimination (Gauss-Jordan elimination)

2 -3 1 1 1
1 5 -2 -1 3
7 1 4 2 14
1 -1 1 1 2

## 1 -1.5 0.5 0.5 0.5

1 5 -2 -1 3
7 1 4 2 14
1 -1 1 1 2

R2 - 1 R1 → R2 (multiply 1 row by 1 and subtract it from 2 row); R3 - 7 R1 → R3 (multiply 1 row by 7 and subtract it from 3 row);
R4 - 1 R1 → R4 (multiply 1 row by 1 and subtract it from 4 row)

## 1 -1.5 0.5 0.5 0.5

0 6.5 -2.5 -1.5 2.5
0 11.5 0.5 -1.5 10.5
0 0.5 0.5 0.5 1.5

http://onlinemschool.com/math/assistance/equation/gaus/ 1/4
2/26/2018 Gaussian elimination calculator

## R2 / 6.5 → R2 (divide the 2 row by 6.5)


1 -1.5 0.5 0.5 0.5 ← CE
5 3 5 7 8
0 1 - -
13 13 13 4 5
0 11.5 0.5 -1.5 10.5 1 2

## 0 0.5 0.5 0.5 1.5 0

R1 + 1.5 R2 → R1 (multiply 2 row by 1.5 and add it to 1 row); R3 - 11.5 R2 → R3 (multiply 2 row by 11.5 and subtract it from 3
row); R4 - 0.5 R2 → R4 (multiply 2 row by 0.5 and subtract it from 4 row) 
1 2 14
1 0 -
13 13 13
5 3 5
0 1 - -
13 13 13
64 15 79
0 0
13 13 13
9 8 17
0 0
13 13 13

64 64
R3 / → R3 (divide the 3 row by )
13 13

1 2 14
1 0 -
13 13 13
5 3 5
0 1 - -
13 13 13
0 0 1 0.234375 1.234375
9 8 17
0 0
13 13 13

1 1 5 5
R1 + R → R1 (multiply 3 row by and add it to 1 row); R2 + R → R2 (multiply 3 row by and add it to 2 row); R4 -
13 3 13 13 3 13
9 9
R → R4 (multiply 3 row by and subtract it from 4 row)
13 3 13

1 0 0 0.171875 1.171875
0 1 0 -0.140625 0.859375
0 0 1 0.234375 1.234375
0 0 0 0.453125 0.453125

## R4 / 0.453125 → R4 (divide the 4 row by 0.453125)

1 0 0 0.171875 1.171875
0 1 0 -0.140625 0.859375
0 0 1 0.234375 1.234375
0 0 0 1 1

R1 - 0.171875 R4 → R1 (multiply 4 row by 0.171875 and subtract it from 1 row); R2 + 0.140625 R4 → R2 (multiply 4 row by
0.140625 and add it to 2 row); R3 - 0.234375 R4 → R3 (multiply 4 row by 0.234375 and subtract it from 3 row)

1 0 0 0 1
0 1 0 0 1
0 0 1 0 1
0 0 0 1 1

x1 = 1
x2 = 1
x3 = 1
x4 = 1

Make a check:

http://onlinemschool.com/math/assistance/equation/gaus/ 2/4
2/26/2018 Gaussian elimination calculator
2·1 - 3·1 + 1 + 1 = 2 - 3 + 1 + 1 = 1
1 + 5·1 - 2·1 - 1 = 1 + 5 - 2 - 1 = 3
7·1 + 1 + 4·1 + 2·1 = 7 + 1 + 4 + 2 = 14

1-1+1+1=1-1+1+1=2 ← CE
7 8
Check completed successfully.
4 5
1 2

x1 = 1
x2 = 1
x3 = 1 
x4 = 1

OnlineMSchool.com

To calculator ↑ To comments ↓

##  Try online calculators. Solving of equations.

Solving systems of linear equations by substitution.
Gaussian elimination calculator
Linear equations calculator: Cramer's rule
Linear equations calculator: Inverse matrix method
Show all online calculators

##  Try to solve the exercises from the theme equations.

Exercises. Exponential equations.
Exercises. The system of linear equations with 2 variables.
Exercises. The system of linear equations with 3 variables.
Exercises. The system of linear equations with 4 variables.
Show all online exercises

http://onlinemschool.com/math/assistance/equation/gaus/ 3/4
2/26/2018 Gaussian elimination calculator

← CE
7 8
4 5
1 2
0
very great and fantastic website. very helpful thanks a lot.

## Peter Sandelis · Braden River High School 

This is a malicious site

## Augustin Rung · University of the Cordilleras

how can i create this calculator in excel?

Doesn't work

## Ajayi Akinyemi Ebenezer · Federal University of Technology Akure

This is too much. The model is perfect and precise