numerical analysis

67
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)

Upload: vilmaris-nellis

Post on 30-Dec-2015

46 views

Category:

Documents


2 download

DESCRIPTION

Numerical Analysis. EE, NCKU Tien-Hao Chang (Darby Chang). In the previous slide. Accelerating convergence linearly convergent Newton’s method on a root of multiplicity (exercise 2) Proceed to systems of equations linear algebra review pivoting strategies. In this slide. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Numerical Analysis

Numerical Analysis

1

EE, NCKUTien-Hao Chang (Darby Chang)

Page 2: Numerical Analysis

In the previous slide Accelerating convergence

– linearly convergent

– Newton’s method on a root of multiplicity

– (exercise 2)

Proceed to systems of equations– linear algebra review

– pivoting strategies

2

Page 3: Numerical Analysis

In this slide Error estimation in system of equations

– vector/matrix norms

LU decomposition– split a matrix into the product of a lower and a upper

triangular matrices

– efficient in dealing with a lots of right-hand-side vectors

Direct factorization– as an systems of equations

– Crout decomposition

– Dollittle decomposition

3

Page 4: Numerical Analysis

3.3

4

Vector and matrix norms

Page 5: Numerical Analysis

Vector and matrix norms Pivoting strategies are designed to

reduce the impact roundoff error The size of a vector/matrix is

necessary to measure the error

5

Page 6: Numerical Analysis

Vector norm

6

Page 7: Numerical Analysis

7

The two most commonly used norms in practice

Page 8: Numerical Analysis

8

Page 9: Numerical Analysis

9

Page 10: Numerical Analysis

Vector norm

Equivalent One of the other uses of norms is to

establish the convergence

Two trivial questions:– converge or diverge in different norms?

– converge to different limit values in different norms?

The answer to both is no– all vector norms are equivalent

10

Page 11: Numerical Analysis

11

Page 12: Numerical Analysis

12

The Euclidean norm and the maximum norm are equivalent

Page 13: Numerical Analysis

Matrix norms

Similarly, there are various matrix norms, here we focus on those norms related to vector norms– natural matrix norms

13

Page 14: Numerical Analysis

Matrix norms

Natural matrix norms

14

Page 15: Numerical Analysis

15

Page 16: Numerical Analysis

Natural matrix norms

Computing maximum norm

16

Page 17: Numerical Analysis

17

Page 18: Numerical Analysis

18

Page 19: Numerical Analysis

Natural matrix norms

Computing Euclidean norm Euclidean norm, unfortunately, is not

as straightforward as computing maximum matrix norms

Requires knowledge of the eigenvalues of the matrix

19

Page 20: Numerical Analysis

Eigenvalue review

20

later

Page 21: Numerical Analysis

21

Page 22: Numerical Analysis

Eigenvalue review

22

Page 23: Numerical Analysis

23

Page 24: Numerical Analysis

24

In action

http://thomashawk.com/hello/209/1017/1024/Jackson%20Running.jpg

Page 25: Numerical Analysis

25

Page 26: Numerical Analysis

26

Page 27: Numerical Analysis

Any Questions?

27

3.3 Vector and matrix norms

Page 28: Numerical Analysis

3.4

28

Error estimates and condition number

Page 29: Numerical Analysis

Error estimation A linear system , and is an

approximate solution The error, , cannot be directly

computed ( is never known) The residue vector, , can be easily

computed

29

Page 30: Numerical Analysis

Any Questions?

30

Page 31: Numerical Analysis

Is a good estimation of ? Construct the relationship between

and From the definition

31

hint#3

hint#2

hint#1

Page 32: Numerical Analysis

Is a good estimation of ? Construct the relationship between

and From the definition

32

answerhint#4hint#3

hint#2

Page 33: Numerical Analysis

Is a good estimation of ? Construct the relationship between

and From the definition

33

answerhint#4hint#3

Page 34: Numerical Analysis

Is a good estimation of ? Construct the relationship between

and From the definition

34

answerhint#4

Page 35: Numerical Analysis

Is a good estimation of ? Construct the relationship between

and From the definition

35

answer

Page 36: Numerical Analysis

Is a good estimation of ? Construct the relationship between

and From the definition

36

Page 37: Numerical Analysis

37

Page 38: Numerical Analysis

38

Page 39: Numerical Analysis

39

Page 40: Numerical Analysis

40

Page 41: Numerical Analysis

Condition number

41

Page 42: Numerical Analysis

42

Page 43: Numerical Analysis

Perturbations (skipped)

43

.

.

.

Page 44: Numerical Analysis

Any Questions?

44

3.4 Error estimates and condition number

Page 45: Numerical Analysis

3.5

45

LU decomposition

Page 46: Numerical Analysis

LU decomposition

Motivation Gaussian elimination solve a linear system,

, with unknowns

– with back substitution

– the minimum number of operations

If there are a lots of right-hand-side vectors– how many operations for a new RHS?

– with Gaussian elimination, all operations are also carried out on the RHS

46

Page 47: Numerical Analysis

LU decomposition

Given a matrix , a lower triangular matrix and an upper triangular matrix for which are said to form an LU decomposition of

Here we replace mathematical descriptions with an example to show how Gaussian elimination is used to obtain an LU decomposition

47

Page 48: Numerical Analysis

48

Page 49: Numerical Analysis

49

Page 50: Numerical Analysis

50

Page 51: Numerical Analysis

51

Page 52: Numerical Analysis

Any Questions?

52

Page 53: Numerical Analysis

Is there any other LU decompositions in addition to using modified Gaussian elimination?– degree of freedoms (number of

unknowns)•

Direct factorization (3.6)– as an systems of equations

53

answer

hint

Page 54: Numerical Analysis

Is there any other LU decompositions in addition to using modified Gaussian elimination?– degree of freedoms (number of

unknowns)•

Direct factorization (3.6)– as an systems of equations

54

answer

Page 55: Numerical Analysis

Is there any other LU decompositions in addition to using modified Gaussian elimination?– degree of freedoms (number of

unknowns)•

Direct factorization (3.6)– as an systems of equations

55

Page 56: Numerical Analysis

Solving a linear system

When a new RHS comes

– with , actually to solve and • both steps are easy

• notice that Pb does not require real matrix-vector multiplication

56

Page 57: Numerical Analysis

57

Page 58: Numerical Analysis

Solving a linear system

In summary Anyway, the two-step algorithm (LU

decomposition) is superior to Gaussian elimination with back substitution

58

Page 59: Numerical Analysis

Any Questions?

59

3.5 LU decomposition

Page 60: Numerical Analysis

3.6Direct Factorization

60

Page 61: Numerical Analysis

Is there any other LU decompositions in addition to using modified Gaussian elimination?– degree of freedoms (number of

unknowns)•

Direct factorization (3.6)– as an systems of equations

61Recall thathttp://www.dianadepasquale.com/ThinkingMonkey.jpg

Page 62: Numerical Analysis

Direct factorization Just add more equations

– ex: diagonal must be

Crout decomposition– for each

Dollittle decomposition– for each

62

Page 63: Numerical Analysis

63

Page 64: Numerical Analysis

64

Page 65: Numerical Analysis

65

Page 66: Numerical Analysis

66

Page 67: Numerical Analysis

Any Questions?

67

3.6 Direct factorization