Ce 601 Num Meth Lecture 5
Ce 601 Num Meth Lecture 5
Lecture 5
Course Coordinator:
Dr. Suresh A. Kartha,
Associate Professor,
Department of Civil Engineering,
IIT Guwahati.
Elimination Methods
• For a system [A]{x} = {b} where [A] is an n X n matrix,
the number of operations = (2/3)n3+(3/2)n2-(7/6)n.
• Note: The formula (2/3)n3+(3/2)n2-(7/6)n will always
yield integer values.
• Like Gauss elimination, you might have studied Gauss-
Jordan elimination method. The objective of Gauss-
Jordan scheme was to convert [A]{x} = {b} => [I]{x} =
{x}, [I] -> Identity matrix, through systematic
elimination process.
• We are not going to discuss on this method in the
class and request you to work on your our referring
literature.
• The Gauss-Jordan scheme is computationally less
efficient than the Gauss elimination scheme. The
no. of operations involved in Gauss-Jordan
scheme = n3+n2-n.
• Like Gauss elimination, Gauss-Jordan, etc. you
might have studied matrix inverse methods to
solve linear systems
i.e. [A]{x} = {b}
so, {x} = [A]-1{b}
There are two evaluations in this scheme
→ First evaluate the inverse of matrix [A]
→Second, to evaluate the product of [A]-1{b}
• In both the evaluations, there are arithmetic
operations involved. For matrix inverse it takes
2n2-n operations i.e. total of 2n3 operations.
• Based on the significant digits assigned to the
variables or components, round-off errors
may creep in the solutions while using Gauss
elimination scheme.
→ These errors can be minimized by
performing partial pivoting or scaled partial
pivoting.
• LU Decomposition
o We have discussed that matrix can be factored i.e., it can
be given as product of two different matrix.
[A] = [B][C]
o There can be many possibilities of obtaining factor
matrices.
→ However if we specify the diagonal elements of either
[L] or [U], then we will have a unique a factorization for
[A].
→The LU decomposition methods like Doolittle and Crout
work on these principles.
o In a similar tone, one can also factorize [A] as product of [L]
and [U] i.e., [A]= [L][U] where [L] is lower triangular and [U]
is a upper triangular matrix.
a11 a12 a1n l11 0 0 u11 u12 u1n
a21 a22 a2 n l21 l22 0 0 u22 u2 n
ln1 ln 2 lnn 0 0 1
(n 1)
ln1 ln 2 ln 3 1 0 0 0 ann
(1) (1)
where l21 a21 a11 , l32 a32 a22 , etc.
• So the steps involved are:
o No. of steps as in Gauss elimination
k = 1,2,3,…,n-1
o At any k , i= k+1,k+2,…,n and j=k,k+1,…,n
lkk 1
lik 0; i k
uij aij( k ) aij( k 1)
lik akj( k 1)
uij 0
lik aik( k 1)
akk( k 1)
;i k
o Forward substitution for c
c1 b1
k 1
ci bi lim cm ; i 2,3, ,n
m 1
750 / 7
Forward Substitution:
c1 b1 20
c2 20 ( 20 / 4) 25
c3 20 ( 20 / 4) ( 5 25 / 7) 300 / 7
[U ]{x} {c}
80 20 20 x1 20
i.e., 0 35 25 x2 25
0 0 750 / 7 x3 300 / 7
n 2 3 n2 n
(n 1)(4n 1) n
6 3 2 6
o To perform forward substitution,
as c1 = b1 (No operation required)
i 1
ci bi limcm ; i 2,3,4, , n
m 1