NM Lect4 A
NM Lect4 A
an1 x1 an 2 x2 .....ann xn bn
where a= constant coefficients,
b=constants and n=number of equation.
3 ©Dr. Khaldoon Bani-Hani 10/17/2007
(4) ©Dr. Khaldoon Bani-Hani 10/17/2007
Still remember all these??
an1 an 2 an 3 an 4 ann
A AX A B
1 1
b1 x1
b x X A B
1
B 2 x 2
bn xn
(5) ©Dr. Khaldoon Bani-Hani 10/17/2007
(6) ©Dr. Khaldoon Bani-Hani 10/17/2007
Linear Algebraic
Equation Solvers
a11 x1 a12 x2 b1
a21 x1 a22 x2 b2
Eliminating x1:
a12b2 a22b1
x1
a12a21 a11a22
25 5 1 25 5 1
64 8 1 0 4.8 1.56
144 12 1 0 0 0.7
Forward Elimination
Linear Equations
A set of n equations and n unknowns
Or Where
a21
a x2 ... a xn b
' ' ' a a22
'
22 a12
22 2n 2 a11
a21
a
'
2n a2 n a1n
a11
Forward Elimination
Repeat this procedure for the remaining equations to
reduce the set of equations as
a11 x1 a12 x2 a13 x3 ... a1n xn b1
'
a22 x2 a23
'
x3 ... a2' n xn b2'
'
a32 x2 a33
'
x3 ... a3' n xn b3'
. . .
. . .
. . .
Eqn 2
Eqn3 (a32 )
a22
Forward Elimination
This procedure is repeated for the remaining equations to
reduce the set of equations as
(n 1)
ann xn bn (n-1)
Back Substitution
( n 1)
b
xn n
( n 1)
a nn
and
( n 1)
b
xn n
( n 1)
a nn
Example 9.3 (9.5) 3.0 x1- 0.1 x2 - 0.2 x3 = 7.85 (1)
0.1 x1+ 7.0 x2 - 0.3 x3 = -19.3 (2)
Forward elimination: 0.3 x1- 0.2 x2 + 10.0 x3 = 71.4 (3)
(3) x3 = 7.00003
(2) x2 = -2.50000
(1) x3 = 3.00000