Académique Documents
Professionnel Documents
Culture Documents
Engineering CHAPTER 3
• Subject: Chemical
Engineering
Mathematics 2 GAUSS ELIMINATION
WITH BACKWARD
• Author:
• Andrew KUMORO
SUBSTITUTION METHOD
FOR
• Dept. of Chemical
Engineering SIMULTANEOUS LINEAR
• Diponegoro University
• 2013 EQUATIONS
MATRIX FORM OF LINEAR EQUATIONS
a N 1T1 a N 2T2 a NN TN CN
A total of N algebraic equations for the N nodal points
and the system can be expressed as a matrix formulation:
[A][T]=[C]
a11 a12 a1N T1 C1
a a22 a2 N T C
where A= 21 , T 2 ,C 2
aN 1 aN 2 aNN N
T C N
NUMERICAL SOLUTIONS
x1 2 x2 x3 8
3x1 x2 x3 2
x1 x2 2 x3 3
[You could use x0, x1, x2 instead when programming, as C uses
arrays that commence with element zero]
EXERCISE
3X1 + 5X2 + 2X3 = 8 2X1 - 4X2 + 5X3 = 36
2X1 + 3X2 - X3 = 5 -3X1 + 5X2 + 7X3 = 7
-X1 - 2X2 - 3X3 = 7 5X1 + 3X2 - 8X3 = - 31
2X1 + 4X2 - 2 X3 - 2 X4 = -4
1X1 + 2X2 + 4X3 - 3 X4 = 5 3X2 + 2X3 = 16
- 3X1 - 3X2 + 8X3 - 2X4 = 7 4X1 + 2X2 - 3X3 = 5
- X1 + X2 + 6X3 - 3X4 = 7 3X1 - 4X2 + X3 = 9
X1 + X2 + X3 = 3
2X1 + 3X2 + 4X3 = 9
X1 + 7X2 + X3 = 9
2 X1 + 4 X2 - 2 X3 = 10 3X1 + 2 X2 +100X3 = 105
X1 + 2 X2 + 4 X3 = 6 - X1 + 3 X2 +100X3 = 102
2 X1 + 2 X2 + 1 X3 = 2 X1 + 2 X2 - 1X3 = 2