SlideShare a Scribd company logo
1 of 72
1
Numerical Methods
Solution of Systems of Linear Equations
2
Vector, Matrices, and
Linear Equations
3
VECTORS
ī› ī
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
1
0
0
0
,
0
1
0
0
,
0
0
1
0
,
0
0
0
1
1
2
tor
column vec
2
4
1
vector
row
:
Examples
numbers
of
array
l
dimensiona
one
a
:
Vector
4
3
2
1 e
e
e
e
vectors
Identity
4
MATRICES
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
1
2
0
0
1
4
1
0
0
1
4
3
0
0
2
1
l
Tridiagona
,
6
0
0
0
0
0
0
0
0
0
4
0
0
0
0
1
diagonal
1
0
0
1
matrix
identity
0
0
0
0
0
0
matrix
zero
:
Examples
numbers
of
array
l
dimensiona
two
a
:
Matrix
5
MATRICES
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
1
0
0
0
1
4
0
0
0
1
4
0
3
1
2
1
ngular
upper tria
,
4
5
1
5
0
1
1
1
2
symmetric
:
Examples
6
Determinant of a MATRICES
82
)
0
15
(
1
)
5
12
(
1
)
25
(
2
5
0
1
-
3
1
-
4
5
1
-
3
1
-
4
5
5
0
2
4
5
1
5
0
1
1
3
2
det
:
Examples
only
matrices
square
for
Defined
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ģ
ī€­
ī€­
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
7
Adding and Multiplying Matrices
j
i
j
i
m
k
,
b
a
c
B
A
C
*
p
m
if
only
defined
is
AB
C
product
The
*
q)
B(p
and
m)
(n
A
matrices
two
of
tion
Multiplica
,
b
a
c
B
A
C
*
size
same
the
have
they
if
only
Defined
*
B
and
A
matrices
two
of
addition
The
1
kj
ik
ij
ij
ij
ij
ī€ĸ
ī€Ŋ
īƒ›
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī‚´
ī‚´
ī€ĸ
ī€Ģ
ī€Ŋ
īƒ›
ī€Ģ
ī€Ŋ
īƒĨ
ī€Ŋ
8
Systems of Linear Equations
form
Matrix
form
Standard
7
5
3
6
0
1
3
1
5
.
2
3
4
2
7
6
5
3
5
.
2
3
3
4
2
forms
different
in
presented
be
can
equations
linear
of
system
A
3
2
1
3
1
3
2
1
3
2
1
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
īƒ›
īƒ¯
īƒž
īƒ¯
īƒŊ
īƒŧ
ī€Ŋ
ī€­
ī€Ŋ
ī€Ģ
ī€­
ī€Ŋ
ī€­
ī€Ģ
x
x
x
x
x
x
x
x
x
x
x
9
Solutions of Linear Equations
5
2
3
:
equations
following
the
o
solution t
a
is
2
1
2
1
2
1
2
1
ī€Ŋ
ī€Ģ
ī€Ŋ
ī€Ģ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
x
x
x
x
x
x
10
Solutions of Linear Equations
ī° A set of equations is inconsistent if there
exists no solution to the system of equations:
nt
inconsiste
are
equations
These
5
4
2
3
2
2
1
2
1
ī€Ŋ
ī€Ģ
ī€Ŋ
ī€Ģ
x
x
x
x
11
Solutions of Linear Equations
ī° Some systems of equations may have infinite
number of solutions
all
for
solution
a
is
)
3
(
5
.
0
solutions
of
number
infinite
have
6
4
2
3
2
2
1
2
1
2
1
a
a
a
x
x
x
x
x
x
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
ī€Ģ
ī€Ŋ
ī€Ģ
12
Graphical Solution of Systems of
Linear Equations
5
2
3
2
1
2
1
ī€Ŋ
ī€Ģ
ī€Ŋ
ī€Ģ
x
x
x
x
Solution
x1=1, x2=2
13
Cramer’s Rule is Not Practical
way
efficient
in
computed
are
ts
determinan
the
if
used
be
can
It
needed.
are
tions
multiplica
10
2.38
system,
30
by
30
a
solve
To
tions.
multiplica
1)N!
-
1)(N
(N
requires
system
N
by
N
solve
To
.
systems
large
for
practical
not
is
Rule
s
Cramer'
2
2
1
1
1
5
1
3
1
,
1
2
1
1
1
2
5
1
3
system
the
solve
to
used
be
can
Rule
s
Cramer'
35
2
1
ī‚´
ī€Ģ
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ x
x
14
ī° Naive Gaussian Elimination
ī° Examples
Lecture 13
Naive Gaussian Elimination
15
Naive Gaussian Elimination
ī° The method consists of two steps:
īŽ Forward Elimination: the system is
reduced to upper triangular form. A sequence
of elementary operations is used.
īŽ Backward Substitution: Solve the system
starting from the last variable.
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒž
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
'
'
'
0
0
'
'
0
3
2
1
3
2
1
33
23
22
13
12
11
3
2
1
3
2
1
33
32
31
23
22
21
13
12
11
b
b
b
x
x
x
a
a
a
a
a
a
b
b
b
x
x
x
a
a
a
a
a
a
a
a
a
16
Elementary Row Operations
ī° Adding a multiple of one row to another
ī° Multiply any row by a non-zero constant
17
Example
Forward Elimination
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
ī€­
18
27
6
16
14
3
2
0
1
8
12
0
2
2
4
0
4
2
2
6
4
3,
2,
equations
from
Eliminate
:
Step1
n
Eliminatio
Forward
:
1
Part
34
19
26
16
18
1
4
6
3
9
13
3
10
6
8
12
4
2
2
6
4
3
2
1
1
4
3
2
1
x
x
x
x
x
x
x
x
x
18
Example
Forward Elimination
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
3
9
6
16
3
0
0
0
5
2
0
0
2
2
4
0
4
2
2
6
4
equation
from
Eliminate
:
Step3
21
9
6
16
13
4
0
0
5
2
0
0
2
2
4
0
4
2
2
6
4
,
3
equations
from
Eliminate
:
Step2
4
3
2
1
3
4
3
2
1
2
x
x
x
x
x
x
x
x
x
x
19
Example
Forward Elimination
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
īƒž
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
ī€­
3
9
6
16
3
0
0
0
5
2
0
0
2
2
4
0
4
2
2
6
34
19
26
16
18
1
4
6
3
9
13
3
10
6
8
12
4
2
2
6
:
n
Eliminatio
Forward
the
of
Summary
4
3
2
1
4
3
2
1
x
x
x
x
x
x
x
x
20
Example
Backward Substitution
3
6
)
1
(
4
)
2
(
2
)
1
(
2
16
,
1
4
)
1
(
2
)
2
(
2
6
2
2
5
9
,
1
3
3
for
solve
,...
for
solve
then
,
for
Solve
3
9
6
16
3
0
0
0
5
2
0
0
2
2
4
0
4
2
2
6
1
2
3
4
1
3
4
4
3
2
1
ī€Ŋ
ī€­
ī€­
ī€­
ī€Ģ
ī€Ŋ
ī€Ŋ
ī€­
ī€­
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ģ
ī€­
ī€Ŋ
ī€Ŋ
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
x
x
x
x
x
x
x
x
x
x
x
21
Forward Elimination
n
i
b
a
a
b
b
n
j
a
a
a
a
a
x
n
i
b
a
a
b
b
n
j
a
a
a
a
a
x
i
i
i
j
i
ij
ij
i
i
i
j
i
ij
ij
ī‚Ŗ
ī‚Ŗ
īƒ¯
īƒ¯
īƒž
īƒ¯
īƒ¯
īƒŊ
īƒŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī‚Ŗ
ī‚Ŗ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī‚Ŗ
ī‚Ŗ
īƒ¯
īƒ¯
īƒž
īƒ¯
īƒ¯
īƒŊ
īƒŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī‚Ŗ
ī‚Ŗ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
3
)
2
(
eliminate
To
2
)
1
(
eliminate
To
2
22
2
2
22
2
2
1
11
1
1
11
1
1
22
Forward Elimination
.
eliminated
is
until
Continue
1
)
(
eliminate
To
1
ī€­
ī‚Ŗ
ī‚Ŗ
ī€Ģ
īƒ¯
īƒ¯
īƒž
īƒ¯
īƒ¯
īƒŊ
īƒŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī‚Ŗ
ī‚Ŗ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
n
k
kk
ik
i
i
kj
kk
ik
ij
ij
k
x
n
i
k
b
a
a
b
b
n
j
k
a
a
a
a
a
x
23
Backward Substitution
i
i
n
i
j
j
j
i
i
i
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
a
x
a
b
x
a
x
a
x
a
b
x
a
x
a
b
x
a
b
x
,
1
,
2
,
2
1
1
,
2
,
2
2
2
1
,
1
,
1
1
1
,
īƒĨ
ī€Ģ
ī€Ŋ
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
24
ī° Summary of the Naive Gaussian Elimination
ī° Example
ī° Problems with Naive Gaussian Elimination
īŽ Failure due to zero pivot element
īŽ Error
ī° Pseudo-Code
Naive Gaussian Elimination
25
Naive Gaussian Elimination
o The method consists of two steps
o Forward Elimination: the system is reduced to
upper triangular form. A sequence of elementary
operations is used.
o Backward Substitution: Solve the system starting
from the last variable. Solve for xn ,xn-1,â€Ļx1.
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒž
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
'
'
'
0
0
'
'
0
3
2
1
3
2
1
33
23
22
13
12
11
3
2
1
3
2
1
33
32
31
23
22
21
13
12
11
b
b
b
x
x
x
a
a
a
a
a
a
b
b
b
x
x
x
a
a
a
a
a
a
a
a
a
26
Example 1
17
7
5
6
4
8
3
2
1
1
3
3
3
7
2
3
1
1
2
2
2
10
2
3
2
)
(
1
8
3
2
3
,
2
equations
from
Eliminate
:
Step1
___
n
Eliminatio
Forward
:
1
Part
:
n
Eliminatio
Gaussian
Naive
using
Solve
3
2
3
2
3
2
1
3
2
1
3
2
1
3
2
1
1
ī€­
ī€Ŋ
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€Ģ
ī€Ģ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī€Ŋ
ī€Ģ
ī€Ģ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī€Ŋ
ī€Ģ
ī€Ģ
ī€Ŋ
ī€Ģ
ī€Ģ
x
x
x
x
x
x
x
eq
eq
eq
x
x
x
eq
eq
eq
x
x
x
equation
pivot
unchanged
eq
x
x
x
x
27
Example 1
īƒ¯
īƒŽ
īƒ¯
īƒ­
īƒŦ
ī€Ŋ
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€Ģ
ī€Ģ
īƒž
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī€­
ī€­
ī‚Ŧ
ī€­
ī€Ŋ
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€Ģ
ī€Ģ
13
13
6
4
8
3
2
2
1
5
3
3
17
7
5
)
(
2
6
4
1
8
3
2
3
equation
from
Eliminate
:
Step2
n
Eliminatio
Forward
:
1
Part
3
3
2
3
2
1
3
2
3
2
3
2
1
2
x
x
x
x
x
x
eq
eq
eq
x
x
equation
pivot
unchanged
eq
x
x
unchanged
eq
x
x
x
x
28
Example 1
Backward Substitution
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€Ŋ
ī€­
ī€Ģ
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
1
2
1
is
solution
The
1
3
2
8
2
1
4
6
1
13
13
3
2
1
1
,
1
3
2
1
,
1
3
3
,
1
2
2
,
1
1
1
3
2
,
2
3
3
,
2
2
2
3
,
3
3
3
x
x
x
a
x
x
a
x
a
x
a
b
x
x
a
x
a
b
x
a
b
x
29
Determinant
13
det
det
13
0
0
4
1
0
3
2
1
A'
2
1
3
2
3
2
3
2
1
A
:
Example
t
determinan
affect the
not
do
operations
elementary
The
operations
Elementary
ī€­
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€Ŋ
ī‚ž
ī‚ž
ī‚ž
ī‚ž
ī‚ž
ī‚ž ī‚Ž
ī‚ž
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
(A')
(A)
30
How Many Solutions Does a System of
Equations AX=B Have?
0
elements
0
elements
B
ing
correspond
B
ing
correspond
rows
zero
rows
zero
more
or
one
has
more
or
one
has
rows
zero
no
has
matrix
reduced
matrix
reduced
matrix
reduced
0
det(A)
0
det(A)
0
det(A)
Infinite
solution
No
Unique
ī€Ŋ
ī‚š
ī€Ŋ
ī€Ŋ
ī‚š
31
Examples
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
ī€­
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€­
ī‚¯
ī‚¯
ī‚¯
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īĄ
īĄ
5
.
1
!
1
0
5
.
0
0
#
:
0
2
0
0
2
1
1
2
0
0
2
1
1
1
2
0
2
1
4
2
4
2
2
1
3
2
4
2
2
1
2
1
4
3
2
1
solutions
of
#
infinte
solution
No
Unique
X
impossible
X
solutions
Infinite
solution
No
solution
X
X
X
X
X
X
Pseudo-Code: Forward Elimination
Do k = 1 to n-1
Do i = k+1 to n
factor = ai,k / ak,k
Do j = k+1 to n
ai,j = ai,j – factor * ak,j
End Do
bi = bi – factor * bk
End Do
End Do
32
Pseudo-Code: Back Substitution
xn = bn / an,n
Do i = n-1 downto 1
sum = bi
Do j = i+1 to n
sum = sum – ai,j * xj
End Do
xi = sum / ai,i
End Do
33
34
Gaussian Elimination with
Scaled Partial Pivoting
ī° Problems with Naive Gaussian Elimination
ī° Definitions and Initial step
ī° Forward Elimination
ī° Backward substitution
ī° Example
35
Problems with Naive Gaussian Elimination
o The Naive Gaussian Elimination may fail for
very simple cases. (The pivoting element is zero).
o Very small pivoting element may result in
serious computation errors
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
2
1
1
1
1
0
2
1
x
x
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒģ
īƒš
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĢ
īƒŠ ī€­
2
1
1
1
1
10
2
1
10
x
x
36
Example 2
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ ī€­
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
:
Pivoting
Partial
Scaled
with
on
Eliminati
Gaussian
using
system
following
the
Solve
4
3
2
1
x
x
x
x
37
Example 2
Initialization step
ī› ī
ī› ī
4
3
2
1
L
Vector
Index
5
8
4
2
S
vector
Scale
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
4
3
2
1
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ ī€­
x
x
x
x
Scale vector:
disregard sign
find largest in
magnitude in
each row
38
Why Index Vector?
ī° Index vectors are used because it is much
easier to exchange a single index element
compared to exchanging the values of a
complete row.
ī° In practical problems with very large N,
exchanging the contents of rows may not
be practical.
39
Example 2
Forward Elimination-- Step 1: eliminate x1
]
1
3
2
4
[
Exchange
equation
pivot
first
the
is
4
equation
to
s
correspond
max
5
4
,
8
5
,
4
3
,
2
1
4
,
3
,
2
,
1
]
4
3
2
1
[
]
5
8
4
2
[
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
equation
pivot
the
of
Selection
1
4
4
1
,
4
3
2
1
ī€Ŋ
īƒž
īƒž
īƒŊ
īƒŧ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
īƒ¯
īƒž
īƒ¯
īƒŊ
īƒŧ
īƒ¯
īƒŽ
īƒ¯
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
īƒž
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ ī€­
L
l
and
l
l
i
S
a
Ratios
L
S
x
x
x
x
i
i
l
l
40
Example 2
Forward Elimination-- Step 1: eliminate x1
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
īƒž
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ ī€­
1
25
.
2
75
.
1
25
.
1
3
5
2
4
75
.
0
25
.
0
5
.
5
0
75
.
1
75
.
2
5
.
0
0
25
.
0
75
.
0
5
.
1
0
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
B
and
A
Update
4
3
2
1
4
3
2
1
x
x
x
x
x
x
x
x
First pivot
equation
41
Example 2
Forward Elimination-- Step 2: eliminate x2
]
2
3
1
4
[
2
5
.
1
8
5
.
5
4
5
.
0
4
,
3
,
2
:
Ratios
]
1
3
2
4
[
]
5
8
4
2
[
1
25
.
2
75
.
1
25
.
1
3
5
2
4
75
.
0
25
.
0
5
.
5
0
75
.
1
75
.
2
5
.
0
0
25
.
0
75
.
0
5
.
1
0
equation
pivot
second
the
of
Selection
2
,
4
3
2
1
ī€Ŋ
īƒž
īƒž
īƒŊ
īƒŧ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
īƒ¯
īƒž
īƒ¯
īƒŊ
īƒŧ
īƒ¯
īƒŽ
īƒ¯
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
L
i
S
a
L
S
x
x
x
x
i
i
l
l
42
Example 2
Forward Elimination-- Step 3: eliminate x3
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
1
9
1667
.
2
25
.
1
3
5
2
4
2
0
0
0
8333
.
1
5
.
2
0
0
25
.
0
75
.
0
5
.
1
0
]
3
2
1
4
[
1
8333
.
6
1667
.
2
25
.
1
3
5
2
4
6667
.
1
25
.
0
0
0
8333
.
1
5
.
2
0
0
25
.
0
75
.
0
5
.
1
0
4
3
2
1
4
3
2
1
x
x
x
x
L
x
x
x
x
Third pivot
equation
43
Example 2
Backward Substitution
7.2333
4
2
5
3
1
1.1333
5
.
1
75
.
0
25
.
0
25
.
1
2.4327
5
.
2
8333
.
1
1667
.
2
,
5
.
4
2
9
]
3
2
1
4
[
1
9
1667
.
2
25
.
1
3
5
2
4
2
0
0
0
8333
.
1
5
.
2
0
0
25
.
0
75
.
0
5
.
1
0
2
3
4
1
,
2
2
,
4
3
3
,
4
4
4
,
4
4
1
3
4
2
,
1
3
3
,
1
4
4
,
1
1
2
4
3
,
2
4
4
,
2
2
3
4
,
3
3
4
4
3
2
1
1
ī€­
ī€Ŋ
ī€­
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€­
ī€Ŋ
ī€Ŋ
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
x
x
x
a
x
a
x
a
x
a
b
x
x
x
a
x
a
x
a
b
x
x
a
x
a
b
x
a
b
x
L
x
x
x
x
l
44
Example 3
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
Pivoting
Partial
Scaled
with
n
Eliminatio
Gaussian
using
sytstem
following
the
Solve
4
3
2
1
x
x
x
x
45
Example 3
Initialization step
ī› ī
ī› ī
4
3
2
1
L
Vector
Index
5
8
4
2
S
vector
Scale
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
4
3
2
1
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
x
x
x
x
46
Example 3
Forward Elimination-- Step 1: eliminate x1
]
1
3
2
4
[
Exchange
equation
pivot
first
the
is
4
equation
to
s
correspond
max
5
4
,
8
5
,
4
3
,
2
1
4
,
3
,
2
,
1
]
4
3
2
1
[
]
5
8
4
2
[
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
equation
pivot
the
of
Selection
1
4
4
1
,
4
3
2
1
ī€Ŋ
īƒž
īƒž
īƒŊ
īƒŧ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
īƒ¯
īƒž
īƒ¯
īƒŊ
īƒŧ
īƒ¯
īƒŽ
īƒ¯
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
īƒž
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
L
l
and
l
l
i
S
a
Ratios
L
S
x
x
x
x
i
i
l
l
47
Example 3
Forward Elimination-- Step 1: eliminate x1
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
ī€­
īƒž
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
1
25
.
2
75
.
1
25
.
1
3
5
2
4
75
.
0
25
.
0
5
.
10
0
75
.
1
75
.
2
5
.
0
0
25
.
0
75
.
0
5
.
1
0
1
1
1
1
3
5
2
4
3
6
8
5
4
1
3
3
1
2
1
1
B
and
A
Update
4
3
2
1
4
3
2
1
x
x
x
x
x
x
x
x
48
Example 3
Forward Elimination-- Step 2: eliminate x2
]
1
2
3
4
[
2
5
.
1
8
5
.
10
4
5
.
0
4
,
3
,
2
:
Ratios
]
1
3
2
4
[
]
5
8
4
2
[
1
25
.
2
75
.
1
25
.
1
3
5
2
4
75
.
0
25
.
0
5
.
10
0
75
.
1
75
.
2
5
.
0
0
25
.
0
75
.
0
5
.
1
0
equation
pivot
second
the
of
Selection
2
,
4
3
2
1
ī€Ŋ
īƒž
īƒž
īƒŊ
īƒŧ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
īƒ¯
īƒž
īƒ¯
īƒŊ
īƒŧ
īƒ¯
īƒŽ
īƒ¯
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
ī€­
L
i
S
a
L
S
x
x
x
x
i
i
l
l
49
Example 3
Forward Elimination-- Step 2: eliminate x2
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
ī€­
1
2.25
1.8571
0.9286
3
5
2
4
75
.
0
25
.
0
5
.
10
0
1.7143
2.7619
-
0
0
0.3571
0.7857
0
0
]
2
3
1
4
[
1
25
.
2
75
.
1
25
.
1
3
5
2
4
75
.
0
25
.
0
5
.
10
0
75
.
1
75
.
2
5
.
0
0
25
.
0
75
.
0
5
.
1
0
B
and
A
Updating
4
3
2
1
4
3
2
1
x
x
x
x
L
x
x
x
x
50
Example 3
Forward Elimination-- Step 3: eliminate x3
]
1
2
3
4
[
2
0.7857
4
2.7619
4
,
3
:
Ratios
]
1
2
3
4
[
]
5
8
4
2
[
1
2.25
1.8571
0.9286
3
5
2
4
75
.
0
25
.
0
5
.
10
0
1.7143
2.7619
0
0
0.3571
0.7857
0
0
equation
pivot
third
the
of
Selection
3
,
4
3
2
1
ī€Ŋ
īƒž
īƒž
īƒŊ
īƒŧ
īƒŽ
īƒ­
īƒŦ
ī€Ŋ
īƒ¯
īƒž
īƒ¯
īƒŊ
īƒŧ
īƒ¯
īƒŽ
īƒ¯
īƒ­
īƒŦ
ī€Ŋ
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
L
i
S
a
L
S
x
x
x
x
i
i
l
l
51
Example 3
Forward Elimination-- Step 3: eliminate x3
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
1
2.25
1.8571
1.4569
3
5
2
4
75
.
0
25
.
0
5
.
10
0
1.7143
2.7619
0
0
0.8448
0
0
0
]
1
2
3
4
[
1
2.25
1.8571
0.9286
3
5
2
4
75
.
0
25
.
0
5
.
10
0
1.7143
2.7619
0
0
0.3571
0.7857
0
0
4
3
2
1
4
3
2
1
x
x
x
x
L
x
x
x
x
52
Example 3
Backward Substitution
1.8673
4
2
5
3
1
0.3469
0.3980
2.7619
1.7143
1.8571
,
1.7245
0.8448
1.4569
]
1
2
3
4
[
1
2.25
1.8571
1.4569
3
5
2
4
75
.
0
25
.
0
5
.
10
0
1.7143
2.7619
0
0
0.8448
0
0
0
2
3
4
1
,
2
2
,
3
3
,
4
4
,
1
2
,
3
3
,
4
4
,
2
4
3
,
4
4
,
3
4
,
4
4
3
2
1
1
1
1
1
1
2
2
2
2
3
3
3
4
4
ī€­
ī€Ŋ
ī€­
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€­
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€Ŋ
ī€­
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
ī€­
x
x
x
a
x
a
x
a
x
a
b
x
a
x
a
x
a
b
x
x
a
x
a
b
x
a
b
x
L
x
x
x
x
l
l
l
l
l
l
l
l
l
l
l
l
l
l
53
How Do We Know If a Solution is
Good or Not
Given AX=B
X is a solution if AX-B=0
Compute the residual vector R= AX-B
Due to rounding error, R may not be zero
īĨ
ī‚Ŗ
i
i
r
max
if
acceptable
is
solution
The
54
How Good is the Solution?
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
0.001
0.003
0.002
0.005
:
Residues
1.7245
0.3980
0.3469
1.8673
1
1
1
1
3
5
2
4
3
6
8
5
4
1
2
3
1
2
1
1
4
3
2
1
4
3
2
1
R
x
x
x
x
solution
x
x
x
x
55
Remarks:
ī° We use index vector to avoid the need to move
the rows which may not be practical for large
problems.
ī° If we order the equation as in the last value of
the index vector, we have a triangular form.
ī° Scale vector is formed by taking maximum in
magnitude in each row.
ī° Scale vector does not change.
ī° The original matrices A and B are used in
checking the residuals.
56
Tridiagonal & Banded Systems
and Gauss-Jordan Method
ī° Tridiagonal Systems
ī° Diagonal Dominance
ī° Tridiagonal Algorithm
ī° Examples
ī° Gauss-Jordan Algorithm
57
Tridiagonal Systems:
ī° The non-zero elements are
in the main diagonal,
super diagonal and
subdiagonal.
ī° aij=0 if |i-j| > 1
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
5
4
3
2
1
5
4
3
2
1
6
1
0
0
0
1
4
1
0
0
0
2
6
2
0
0
0
1
4
3
0
0
0
1
5
b
b
b
b
b
x
x
x
x
x
Tridiagonal Systems
58
ī° Occur in many applications
ī° Needs less storage (4n-2 compared to n2 +n for the general cases)
ī° Selection of pivoting rows is unnecessary
(under some conditions)
ī° Efficiently solved by Gaussian elimination
Tridiagonal Systems
59
ī° Based on Naive Gaussian elimination.
ī° As in previous Gaussian elimination algorithms
īŽ Forward elimination step
īŽ Backward substitution step
ī° Elements in the super diagonal are not affected.
ī° Elements in the main diagonal, and B need
updating
Algorithm to Solve Tridiagonal Systems
60
Tridiagonal System
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒž
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
'
'
3
'
2
1
3
2
1
'
1
'
3
2
'
2
1
1
3
2
1
3
2
1
1
1
3
2
2
2
1
1
1
updated
not
are
elements
The
elements
and
the
update
to
need
zeros,
be
will
elements
the
All
n
n
n
n
n
n
n
n
n
b
b
b
b
x
x
x
x
d
c
d
c
d
c
d
b
b
b
b
x
x
x
x
d
a
c
d
a
c
d
a
c
d
c
b
d
a
ī
ī
ī
ī
ī
ī
ī
ī
ī
61
Diagonal Dominance
row.
ing
correspond
in the
elements
of
sum
the
n
larger tha
is
element
diagonal
each
of
magnitude
The
)
1
(
a
a
if
dominant
diagonally
is
matrix
A
,
1
ij
ii n
i
for
A
n
i
j
j
ī‚Ŗ
ī‚Ŗ
ī€ž īƒĨ
ī‚š
ī€Ŋ
62
Diagonal Dominance
dominant
Diagonally
Not
dominant
Diagonally
1
2
1
2
3
2
1
0
3
5
2
1
1
6
1
1
0
3
:
Examples
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠī€­
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
63
Diagonally Dominant Tridiagonal System
ī° A tridiagonal system is diagonally dominant if
ī° Forward Elimination preserves diagonal dominance
)
1
(
1 n
i
a
c
d i
i
i ī‚Ŗ
ī‚Ŗ
ī€Ģ
ī€ž ī€­
64
Solving Tridiagonal System
ī€¨ ī€Š 1
,...,
2
,
1
for
1
on
Substituti
Backward
2
n
Eliminatio
Forward
1
1
1
1
1
1
1
ī€­
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī‚Ŗ
ī‚Ŗ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī€Ģ
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
n
n
i
x
c
b
d
x
d
b
x
n
i
b
d
a
b
b
c
d
a
d
d
i
i
i
i
i
n
n
n
i
i
i
i
i
i
i
i
i
i
65
Example
ī€¨ ī€Š 1
,
2
,
3
for
1
,
on
Substituti
Backward
4
2
,
n
Eliminatio
Forward
6
8
9
12
,
2
2
2
,
1
1
1
,
5
5
5
5
6
8
9
12
5
1
2
5
1
2
5
1
2
5
Solve
1
1
1
1
1
1
1
4
3
2
1
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī‚Ŗ
ī‚Ŗ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒž
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ģ
ī€­
ī€­
ī€­
ī€­
ī€­
ī€­
i
x
c
b
d
x
d
b
x
i
b
d
a
b
b
c
d
a
d
d
B
C
A
D
x
x
x
x
i
i
i
i
i
n
n
n
i
i
i
i
i
i
i
i
i
i
66
Example
5619
.
4
5652
.
4
5652
.
6
1
6
,
5619
.
4
5652
.
4
2
1
5
5652
.
6
6
.
4
6
.
6
1
8
,
5652
.
4
6
.
4
2
1
5
6
.
6
5
12
1
9
,
6
.
4
5
2
1
5
n
Eliminatio
Forward
6
8
9
12
,
2
2
2
,
1
1
1
,
5
5
5
5
3
3
3
4
4
3
3
3
4
4
2
2
2
3
3
2
2
2
3
3
1
1
1
2
2
1
1
1
2
2
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
īƒˇ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ§
īƒ¨
īƒĻ
ī€­
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
b
d
a
b
b
c
d
a
d
d
b
d
a
b
b
c
d
a
d
d
b
d
a
b
b
c
d
a
d
d
B
C
A
D
67
Example
Backward Substitution
ī° After the Forward Elimination:
ī° Backward Substitution:
ī› ī ī› ī
2
5
1
2
12
1
6
.
4
1
2
6
.
6
1
5652
.
4
1
2
5652
.
6
,
1
5619
.
4
5619
.
4
5619
.
4
5652
.
6
6
.
6
12
,
5619
.
4
5652
.
4
6
.
4
5
1
2
1
1
1
2
3
2
2
2
3
4
3
3
3
4
4
4
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī‚´
ī€­
ī€Ŋ
ī€­
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
ī€Ŋ
d
x
c
b
x
d
x
c
b
x
d
x
c
b
x
d
b
x
B
D T
T
68
Gauss-Jordan Method
ī° The method reduces the general system of
equations AX=B to IX=B where I is an identity
matrix.
ī° Only Forward elimination is done and no
backward substitution is needed.
ī° It has the same problems as Naive Gaussian
elimination and can be modified to do partial
scaled pivoting.
ī° It takes 50% more time than Naive Gaussian
method.
69
Gauss-Jordan Method
Example
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
īƒž
īƒ¯
īƒ¯
īƒ¯
īƒž
īƒ¯
īƒ¯
īƒ¯
īƒŊ
īƒŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī‚Ŧ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
2
7
0
2
0
0
5
6
0
1
1
1
1
1
2
3
3
1
1
4
2
2
2
/
1
1
3
2
from
x
Eleminate
1
2
7
0
4
2
2
1
2
4
2
2
2
3
2
1
1
3
2
1
x
x
x
eq
eq
eq
eq
eq
eq
eq
eq
and
equations
Step
x
x
x
70
Gauss-Jordan Method
Example
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
īƒž
īƒ¯
īƒ¯
īƒ¯
īƒž
īƒ¯
īƒ¯
īƒ¯
īƒŊ
īƒŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ ī€­
ī€­
ī‚Ŧ
ī‚Ŧ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
2
1.1667
1.1667
2
0
0
0.8333
1
0
1667
.
0
0
1
2
1
0
3
3
2
1
1
1
1
6
/
2
2
3
1
from
x
Eleminate
2
2
7
0
2
0
0
5
6
0
1
1
1
3
2
1
2
3
2
1
x
x
x
eq
eq
eq
eq
eq
eq
eq
eq
and
equations
Step
x
x
x
71
Gauss-Jordan Method
Example
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒž
īƒ¯
īƒ¯
īƒ¯
īƒž
īƒ¯
īƒ¯
īƒ¯
īƒŊ
īƒŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ ī€­
ī€­
ī‚Ŧ
īƒˇ
īƒ¸
īƒļ
īƒ§
īƒ¨
īƒĻ
ī€­
ī‚Ŧ
ī‚Ŧ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
1
2
1
1
0
0
0
1
0
0
0
1
3
1
0.8333
2
2
3
1
1667
.
0
1
1
2
/
3
3
2
1
from
x
Eleminate
3
2
1.1667
1.1667
2
0
0
0.8333
1
0
1667
.
0
0
1
3
2
1
3
3
2
1
x
x
x
eq
eq
eq
eq
eq
eq
eq
eq
and
equations
Step
x
x
x
72
Gauss-Jordan Method
Example
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒž
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€Ŋ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
īƒē
īƒē
īƒē
īƒģ
īƒš
īƒĒ
īƒĒ
īƒĒ
īƒĢ
īƒŠ
ī€­
ī€­
ī€­
1
2
1
1
2
1
1
0
0
0
1
0
0
0
1
2
7
0
4
2
2
1
2
4
2
2
2
3
2
1
3
2
1
3
2
1
x
x
x
is
solution
x
x
x
to
d
transforme
is
x
x
x

More Related Content

What's hot

The distance formula
The distance formulaThe distance formula
The distance formulaShaun Wilson
 
Lesson plan in mathematics iv
Lesson plan in mathematics ivLesson plan in mathematics iv
Lesson plan in mathematics ivErwin Cabigao
 
Linear dependence(ld) &linear independence(li)
Linear dependence(ld)  &linear independence(li)Linear dependence(ld)  &linear independence(li)
Linear dependence(ld) &linear independence(li)Digvijaysinh Gohil
 
Relations and functions
Relations and functionsRelations and functions
Relations and functionschrystal_brinson
 
Radians, arc length and sector area
Radians, arc length and sector areaRadians, arc length and sector area
Radians, arc length and sector areaJJkedst
 
Graphs of Log functions
Graphs of Log functionsGraphs of Log functions
Graphs of Log functionslesurhommemega
 
CASIO 991 ES Calculator Technique
CASIO 991 ES Calculator TechniqueCASIO 991 ES Calculator Technique
CASIO 991 ES Calculator TechniqueMark Lester Manapol
 
FunçÃŖo do 2Âē grau
FunçÃŖo do 2Âē grauFunçÃŖo do 2Âē grau
FunçÃŖo do 2Âē grauleilamaluf
 
Introduction to Logarithm
Introduction to LogarithmIntroduction to Logarithm
Introduction to LogarithmFellowBuddy.com
 
MÊtodo de Newton-Raphson - @professorenan
MÊtodo de Newton-Raphson - @professorenanMÊtodo de Newton-Raphson - @professorenan
MÊtodo de Newton-Raphson - @professorenanRenan Gustavo
 
Lesson 1 derivative of trigonometric functions
Lesson 1 derivative of trigonometric functionsLesson 1 derivative of trigonometric functions
Lesson 1 derivative of trigonometric functionsLawrence De Vera
 
SPSF04 - Euler and Runge-Kutta Methods
SPSF04 - Euler and Runge-Kutta MethodsSPSF04 - Euler and Runge-Kutta Methods
SPSF04 - Euler and Runge-Kutta MethodsSyeilendra Pramuditya
 
Geometria analítica
Geometria analíticaGeometria analítica
Geometria analíticaMarianna Teixeira
 
Cap. 1. calculo vetorial e geometria analítica
Cap. 1. calculo vetorial e geometria analíticaCap. 1. calculo vetorial e geometria analítica
Cap. 1. calculo vetorial e geometria analíticaDuke Wdealmei
 
3 dot product angles-projection
3 dot product angles-projection3 dot product angles-projection
3 dot product angles-projectionmath267
 
Finding Equation of a Line.pptx
Finding Equation of a Line.pptxFinding Equation of a Line.pptx
Finding Equation of a Line.pptxMartinGeraldine
 

What's hot (20)

ÃĸNgulos
ÃĸNgulosÃĸNgulos
ÃĸNgulos
 
The distance formula
The distance formulaThe distance formula
The distance formula
 
Lesson plan in mathematics iv
Lesson plan in mathematics ivLesson plan in mathematics iv
Lesson plan in mathematics iv
 
Linear dependence(ld) &linear independence(li)
Linear dependence(ld)  &linear independence(li)Linear dependence(ld)  &linear independence(li)
Linear dependence(ld) &linear independence(li)
 
U unit3 vm
U unit3 vmU unit3 vm
U unit3 vm
 
Relations and functions
Relations and functionsRelations and functions
Relations and functions
 
Radians, arc length and sector area
Radians, arc length and sector areaRadians, arc length and sector area
Radians, arc length and sector area
 
Graphs of Log functions
Graphs of Log functionsGraphs of Log functions
Graphs of Log functions
 
CASIO 991 ES Calculator Technique
CASIO 991 ES Calculator TechniqueCASIO 991 ES Calculator Technique
CASIO 991 ES Calculator Technique
 
FunçÃŖo do 2Âē grau
FunçÃŖo do 2Âē grauFunçÃŖo do 2Âē grau
FunçÃŖo do 2Âē grau
 
Piecewise functions
Piecewise functions Piecewise functions
Piecewise functions
 
NotaçÃŖo científica
NotaçÃŖo científicaNotaçÃŖo científica
NotaçÃŖo científica
 
Introduction to Logarithm
Introduction to LogarithmIntroduction to Logarithm
Introduction to Logarithm
 
MÊtodo de Newton-Raphson - @professorenan
MÊtodo de Newton-Raphson - @professorenanMÊtodo de Newton-Raphson - @professorenan
MÊtodo de Newton-Raphson - @professorenan
 
Lesson 1 derivative of trigonometric functions
Lesson 1 derivative of trigonometric functionsLesson 1 derivative of trigonometric functions
Lesson 1 derivative of trigonometric functions
 
SPSF04 - Euler and Runge-Kutta Methods
SPSF04 - Euler and Runge-Kutta MethodsSPSF04 - Euler and Runge-Kutta Methods
SPSF04 - Euler and Runge-Kutta Methods
 
Geometria analítica
Geometria analíticaGeometria analítica
Geometria analítica
 
Cap. 1. calculo vetorial e geometria analítica
Cap. 1. calculo vetorial e geometria analíticaCap. 1. calculo vetorial e geometria analítica
Cap. 1. calculo vetorial e geometria analítica
 
3 dot product angles-projection
3 dot product angles-projection3 dot product angles-projection
3 dot product angles-projection
 
Finding Equation of a Line.pptx
Finding Equation of a Line.pptxFinding Equation of a Line.pptx
Finding Equation of a Line.pptx
 

Similar to lecture_note.ppt

lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...wafahop
 
Linear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxLinear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxMazwan3
 
Determinants, crammers law, Inverse by adjoint and the applications
Determinants, crammers law,  Inverse by adjoint and the applicationsDeterminants, crammers law,  Inverse by adjoint and the applications
Determinants, crammers law, Inverse by adjoint and the applicationsNikoBellic28
 
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChaimae Baroudi
 
Ch9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfCh9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfRahulUkhande
 
Applied numerical methods lec6
Applied numerical methods lec6Applied numerical methods lec6
Applied numerical methods lec6Yasser Ahmed
 
6640173.ppt
6640173.ppt6640173.ppt
6640173.pptHassanBay2
 
18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.pptBAGARAGAZAROMUALD2
 
Matrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIAMatrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIADheeraj Kataria
 
Mat 223_Ch3-Determinants.ppt
Mat 223_Ch3-Determinants.pptMat 223_Ch3-Determinants.ppt
Mat 223_Ch3-Determinants.pptTigabu Yaya
 
Matrices ppt
Matrices pptMatrices ppt
Matrices pptaakashray33
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equationssaahil kshatriya
 
2.5 Calculus of Vector & Matrix_2022.ppsx
2.5  Calculus of Vector & Matrix_2022.ppsx2.5  Calculus of Vector & Matrix_2022.ppsx
2.5 Calculus of Vector & Matrix_2022.ppsxEvelynEvelyn37
 

Similar to lecture_note.ppt (20)

lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
 
Linear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptxLinear Algebra- Gauss Elim-converted.pptx
Linear Algebra- Gauss Elim-converted.pptx
 
Determinants. Cramer’s Rule
Determinants. Cramer’s RuleDeterminants. Cramer’s Rule
Determinants. Cramer’s Rule
 
Determinants, crammers law, Inverse by adjoint and the applications
Determinants, crammers law,  Inverse by adjoint and the applicationsDeterminants, crammers law,  Inverse by adjoint and the applications
Determinants, crammers law, Inverse by adjoint and the applications
 
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/Slides
 
Ch9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfCh9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdf
 
Applied numerical methods lec6
Applied numerical methods lec6Applied numerical methods lec6
Applied numerical methods lec6
 
6640173.ppt
6640173.ppt6640173.ppt
6640173.ppt
 
18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt
 
Matrix
MatrixMatrix
Matrix
 
Es272 ch4a
Es272 ch4aEs272 ch4a
Es272 ch4a
 
Matrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIAMatrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIA
 
Determinants.ppt
Determinants.pptDeterminants.ppt
Determinants.ppt
 
Systems of linear equations; matrices
Systems of linear equations; matricesSystems of linear equations; matrices
Systems of linear equations; matrices
 
Mat 223_Ch3-Determinants.ppt
Mat 223_Ch3-Determinants.pptMat 223_Ch3-Determinants.ppt
Mat 223_Ch3-Determinants.ppt
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equations
 
Nsm
Nsm Nsm
Nsm
 
matrix
matrixmatrix
matrix
 
2.5 Calculus of Vector & Matrix_2022.ppsx
2.5  Calculus of Vector & Matrix_2022.ppsx2.5  Calculus of Vector & Matrix_2022.ppsx
2.5 Calculus of Vector & Matrix_2022.ppsx
 

Recently uploaded

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

lecture_note.ppt