You are on page 1of 13

Gauss-Method

(1st type, Gauss-Jacobi)


Gauss-Method is another way of solving three
equations with three unknown

If we have three equations....


a1x1+b1x2+c1x3= C1
a2x1+b2x2+c2x3= C2
a3x1+b3x2+c3x3= C3

The idea is to arrange them first in a way that it is


diagonally dominant in order for the converging
process to be fast.
To do that, we need first to correct the position of the
three equations so that it is diagonally dominant....
a1x1+b1x2+c1x3= C1
a2x1+b2x2+c2x3= C2
a3x1+b3x2+c3x3= C3

Diagonally dominant means that.....


|a1|>|b1|+|c1|
|b2|>|a2|+|c2|
|c3|>|b3|+|a3|
Such that, a1 must be in the first equation
b2 must be in the second equation
c3 must be in the third equation
Arrange this equation in a diagonally
dominant

-2x1+6x2+25x3=5
x1+24x2+5x3=6
20x1+2x2+x3=30
Answer:

20x1+2x2+x3=30
x1+24x2+5x3=6
-2x1+6x2+25x3=5
Now that we arrange the three equations, we now solve
x1 on the first equation, solve x2 on the second equation
and solve x3 on the third equation.

This will be our iterative formula

x1=(30-2x2-x3)/20 -> first iterative formula


x2=(6-x1-5x3)/24 -> second iterative formula
x3=(5-6x2+2x1)/25 -> third iterative formula
Calculator Technique
Use the variable A as x1, B as x2 and C as x3
1. Put (30-2B-C)/20.
2. Then press SHIFT then to activate the
colon syntax so that you can write multiple
equations
3. After that put the second equation, (6-A-5C)/24
4. Then the third equation, (5-6B+2A)/25
5. The display should look like this,
(30-2B-C)/20: (6-A-5C)/24: (5-6B+2A)/25
Use initial value of [x1,x2,x3]=[0 0 0].
Use 3rd decimal place, stop at A.E.<0.1

x1 x2 x3 Total Absolute
Error
0 0 0

Substitute A=0, B=0 and C=0 then


press equal sign multiple times
until the answer in each equation show’s up
x1 x2 x3 Total Absolute
Error
0 0 0
1.5 0.25 0.2
6. For the absolute error, add this to the existing
expression, :|(D-E)+(F-X)+(Y-M)|

x1 x2 x3 Total Absolute
Error
0 0 0
1.5 0.25 0.2
Where D=1.5, E=0, F=0.25, X=0, Y=0.2 and M=0
x1 x2 x3 Total Absolute
Error
0 0 0
1.5 0.25 0.2 1.95

Total Absolute Error is the summation of


Absolute Error
of the three x1,x2 and x3 present
and previous values
|A.E.|=|1.5-0|+|0.25-0|+|0.2-0|=1.95
x1 x2 x3 Total Absolute
Error
0 0 0
1.5 0.25 0.2 1.95
1.465 0.146 0.26 0.079

So x1=1.465, x2=0.146, x3=0.26 is our answer


Solve the three equations. Stop at
A.E.<0.01, Use=[0,0,0] as the initial
value

26x1-6x2-4x3=10
2x1-23x2+8x3=13
2x1+5x2-30x3=5

You might also like