MDB3053 Chap9 LinearAlgebra Part 1 May16
MDB3053 Chap9 LinearAlgebra Part 1 May16
1. Bracketing Method:
Bisection Method
False-Position Method
2. Open Method:
Fixed Point Iteration
Newton-Raphson Method
Secant Method
x2
x1
Cokes example
x1
3x1 5 x2 2 x3 8
2 x1 3x2 x3 1
x1 2 x2 3x3 1
Three coupled,
linear equations
Ax b
an1 x1 an 2 x2 ann xn bn
unknown
variables
constants
mxn
coefficient
matrix, A
a11
A
a
m1
Example:
2 x1 3x2 1
4 x1 x2 5
a1n
x1
b1
, x , b
x
b
amn
n
n
Ax b
augmented form
2 3 1
2 3 x1 1
or
4
1
5
4
1
5
TRY THIS
Write the matrix representation for the L.A.E
shown below:
3x1 5 x2 2 x3 8
2 x1 3x2 x3 1
x1 2 x2 3x3 1
3 5
2 8
2 3 1 1
1 2 3 1
0
a11 0
0 a22 0
0
0 a33
Identity matrix, I
1 0 0
0 1 0
0 0 1
a11 0
a21 a22
a
31 a32
0
a33
a11 a12
0 a22
0
0
a13
a23
a33
Gaussian Elimination
Gauss-Jordan
LU Factorization
Jacobis Method
Gauss-Seidel Method
GRAPHICAL METHOD
The SOLUTION is
shown graphically
They are in the forms of
straight line because of
linear equations
3x1 2 x2 18
x1 2 x2 2
x2 9
x2
3x1
.......(1)
2
x1
1..........(2)
2
4
8
x2
Without Solution
3x1 9 x2 5
x1 3x2 6
x1
x2
parallel lines
x1
x2
2 x1 3x2 4
4 x1 6 x2 8
identical lines
x1
x2
x1
GAUSSIAN ELIMINATION
Most frequently used Direct Method
Principle: to reduce coefficient matrix, A into
equivalent upper triangular form
Consists of TWO stages:
Gaussian =
Elimination
Forward
Elimination
Back
Substitution
Augmented
form
Fig. 9.3
upper
triangular
matrix
FORWARD ELIMINATION
Forward Elimination stage reduces the augmented
matrix into an upper triangular matrix.
2 3 1
4
1
5
4 1 5
2 3 1
4 1 5
4 6 2
4 1 5
0 7 7
R1
R2
4
4
4
6
2
4
6
10
R3
4
R2 R2 R1
1
'
4 Elimination factor or
1 multiplier
EXAMPLE (cont)
Thus, the new 2nd row becomes :
R2 = [4 4 2 | 6] 4 [1 2 2 | 3]
= [0 4 6 | 6]
4
R2 R2 R1
1
4
R3 R3 R1
1
Thus, the new 3rd row becomes:
R3 = [4 6 4 | 10] 4 [1 2 2 | 3]
= [ 0 2 4 | 2]
R3'' = [0 -2 -4 | -2] 1/2 [0 -4 -6 | -6]
= [ 0 0 1 | 1]
Original Matrix:
1 2 2 3
4 4 2 6
4 6 4 10
Transformation:
1
0
0
2
-4
-2
2 3
-6 -6
-4 -2
BACK SUBSTITUTION
Suppose that the next forward elimination step results in
the following augmented matrix:
All the entries
below the
diagonal are
ZEROS
1
0
0
2
4
0
2
6
1
3
6
x3 = 1 x3 = 1
R2:
4x2 6x3 = 6 x2 = 3
R1 :
x1 + 2x2 + 2x3 = 3 x1 = 1
Direct method
yields exact sol
CLASS ACTIVITY #1
2 x1 x2 3x3 2
4 x1 x2 x3 1
2 x1 3x2 2 x3 3
Use fraction number to reduce round-off errors.
Try this in EXCEL: (p296)
To inverse, highlight the
range, enter minverse(..)
and press Ctrl+Shift+Enter
To multiply,enter mmult(..)
2 1 3 2
1 1 1
4
2 3 2 3
R2 2 R1 0
3 5 5 2 R1 4 2 6
2 3
2
3
x1
GAUSS-JORDAN
A variation of Gauss elimination but 50% more
computational work than Gaussian Elimination
Elimination step results in an identity matrix (not
upper triangular matrix) due to normalization step
No back substitution required
a11
a 21
a
31
Identity
matrix
a12
a 22
a23
a13 c1
a23 c2
a33 c3
1 0 0 h1
0 1 0 h2
0 0 1 h
3
Elimination +
Normalization
Fig 9.9
Elimination +
Normalization
Identity
Matrix
No back
substitution !
EXAMPLE
Suppose that the forward elimination and normalizing
steps result in the following augmented matrix:
1
0
0
0
1
0
0
0
1
5
3
7
x2 = 3 and x3 = 7
CLASS ACTIVITY #2
Solve the system of equations below using
Gauss-Jordan method
x1 2 x2 x3 7
2 x1 5 x2 2 x3 6
3x1 2 x2 x3 1
Ans: x1 = 2 ; x2 = 8; x3 = 21
MATRIX INVERSION
Inverse Matrix A-1 can be found through GaussJordan Method
STEP 1 : Form A I
STEP 2 : Transform A I to I B using the
Elementary Row Transformations.
STEP 3 : Finally, B = A-1, where B is the inverse
matrix
CLASS ACTIVITY #3
MATRIX INVERSION
Find the inverse of the matrix below using
the Gauss-Jordan Method
1 2 2
A 1 3 1
2 1 6
17 10 4
1
A 4 2 1
5 3
1