+ All Categories
Home > Documents > Numerical Analysis

Numerical Analysis

Date post: 11-Jan-2016
Category:
Upload: chana
View: 26 times
Download: 0 times
Share this document with a friend
Description:
Numerical Analysis. EE, NCKU Tien-Hao Chang (Darby Chang). In the previous slide. Fixed point iteration scheme what is a fixed point? iteration function convergence Newton’s method tangent line approximation convergence Secant method. In this slide. Accelerating convergence - PowerPoint PPT Presentation
Popular Tags:
75
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Transcript
Page 1: Numerical Analysis

Numerical Analysis

1

EE, NCKUTien-Hao Chang (Darby Chang)

Page 2: Numerical Analysis

In the previous slide Fixed point iteration scheme

– what is a fixed point?

– iteration function

– convergence

Newton’s method– tangent line approximation

– convergence

Secant method2

Page 3: Numerical Analysis

In this slide Accelerating convergence

– linearly convergent

– Newton’s method on a root of multiplicity >1

– (exercises)

Proceed to systems of equations– linear algebra review

– pivoting strategies

3

Page 4: Numerical Analysis

2.6

4

Accelerating Convergence

Page 5: Numerical Analysis

Accelerating convergence Having spent so much time discussing

convergence– is it possible to accelerate the convergence?

How to speed up the convergence of a linearly convergent sequence?

How to restore quadratic convergence to Newton’s method?– on a root of multiplicity > 1

5

Page 6: Numerical Analysis

Accelerating convergence

Linearly convergence Thus far, the only truly linearly

convergent sequence– false position

– fixed point iteration

Bisection method is not according to the definition

6

Page 7: Numerical Analysis

7

Page 8: Numerical Analysis

Aitken’s Δ2-method Substituting Eq. (2) into Eq. (1) Substituting Eq. (4) into Eq. (3)

The above formulation should be a

better approximation to p than pn

8

12

21

2

)(

nnn

nnn ppp

pppp

Page 9: Numerical Analysis

9

Page 10: Numerical Analysis

Aitken’s Δ2-method

Accelerated?

10

which implies super-linearly convergence

later

answer

Page 11: Numerical Analysis

11

Page 12: Numerical Analysis

Any Questions?

12

About Aitken’s Δ2-method

Page 13: Numerical Analysis

Accelerating convergence

Anything to further enhance?

13

Page 14: Numerical Analysis

14

Why not use p-head instead of p?

Page 15: Numerical Analysis

Steffensen’s method

15

Page 16: Numerical Analysis

16

Restoring quadratic convergence to Newton’s method

Page 17: Numerical Analysis

17

Page 18: Numerical Analysis

18

Page 19: Numerical Analysis

Any Questions?

19

Page 20: Numerical Analysis

Two disadvantages

Both the first and the second derivatives of f are needed

Each iteration requires one more function evaluations

20

)()()]([

)()()(

2 xfxfxf

xfxfxxg

answer

Page 21: Numerical Analysis

Any Questions?

21

Chapter 2 Rootfinding (2.7 is skipped)

Page 22: Numerical Analysis

Exercise

22

2010/4/21 9:00amEmail to [email protected] or hand over in class. You may arbitrarily pick one problem among the first three, which means this exercise contains only five problems.

Page 23: Numerical Analysis

23

Page 24: Numerical Analysis

24

Page 25: Numerical Analysis

25

Page 26: Numerical Analysis

26

Page 27: Numerical Analysis

27

(Programming)

Page 28: Numerical Analysis

Chapter 3

28

Systems of Equations

Page 29: Numerical Analysis

Systems of Equations

Definition

29

Page 30: Numerical Analysis

3.0

30

Linear Algebra Review(vectors and matrices)

Page 31: Numerical Analysis

Matrix

Definitions

31

Page 32: Numerical Analysis

Any Questions?

32

m, n, m, i, j, EQUAL, SUM,SCALAR MULTIPLICATION, PRODUCT…

Page 33: Numerical Analysis

The Inverse Matrix

33

(cannot be skipped)

Page 34: Numerical Analysis

34

Page 35: Numerical Analysis

Any questions?

35

answerquestion

Page 36: Numerical Analysis

The Determinant

36

(cannot be skipped, too)

Page 37: Numerical Analysis

37

cofactor

Page 38: Numerical Analysis

38

Page 39: Numerical Analysis

Link the concepts– All these theorems will be extremely

important throughout this chapter

Nonsingular matrices Determinants Solutions of linear systems of

equations

39

Page 40: Numerical Analysis

40

Page 41: Numerical Analysis

41

(Hard to prove)

Page 42: Numerical Analysis

Any Questions?

42

3.0 Linear Algebra Review

Page 43: Numerical Analysis

3.1

43

Gaussian Elimination(I suppose you have already known it)

Page 44: Numerical Analysis

An application problem

44

Page 45: Numerical Analysis

I1-I2-I3=0

I2-I4-I5=0

I3+I4-I6=0

2I3+I6=7

I2+2I5=13

-I2+2I3-3I4=0

45

Page 46: Numerical Analysis

Following Gaussian elimination

46

Page 47: Numerical Analysis

Any Questions?

47

Gaussian elimination

Page 48: Numerical Analysis

Gaussian elimination

Operation Counts

48

Page 49: Numerical Analysis

Operation Counts

Comparison Gaussian elimination

– forward elimination

– back substitution

Gauss-Jordan elimination

Compute the inverse matrix

49

nnn 672

213

32

2n

nnn 672

233

32

nnn 23

nnn 23 22

Page 50: Numerical Analysis

3.2

50

Pivoting Strategy

Page 51: Numerical Analysis

51

Page 52: Numerical Analysis

52

Page 53: Numerical Analysis

53

Compare to x1=1, x2=7, x3=1

Page 54: Numerical Analysis

Pivoting strategy To avoid small pivot elements A scheme for interchanging the rows

(interchanging the pivot element) Partial pivoting

54

Page 55: Numerical Analysis

55

In action

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

Page 56: Numerical Analysis

56

Page 57: Numerical Analysis

57

Compare to x1=1, x2=7, x3=1

Page 58: Numerical Analysis

Any Questions?

58

Page 59: Numerical Analysis

From the algorithm view How to implement the interchanging

operation?– change implicitly

Introduce a row vector r– each time a row interchange is required,

we need only swap the corresponding elements of the vector

– number of operations from 3n to 3

59

hint

answer

Page 60: Numerical Analysis

60

In action

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

Page 61: Numerical Analysis

61

Without pivoting

Page 62: Numerical Analysis

62

Page 63: Numerical Analysis

63

Page 64: Numerical Analysis

x = [1.000, -0.9985, 0.9990, -1.000]T

– exact solution x = [1,-1,1,-1]T

– no r x = [1.131, -0.7928, 0.8500, -0.9987]T

64

Page 65: Numerical Analysis

Scaled Partial Pivoting

65

Page 66: Numerical Analysis

Scaled partial pivoting

An example

66

Page 67: Numerical Analysis

Any Questions?

67

Page 68: Numerical Analysis

Scaled partial pivoting

A blind spot of partial pivoting

68

answer

Page 69: Numerical Analysis

Scaled partial pivoting

69

Page 70: Numerical Analysis

70

Page 71: Numerical Analysis

71

In action

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

Page 72: Numerical Analysis

72

Page 73: Numerical Analysis

73

Page 74: Numerical Analysis

x = [1.000, -1.000, 1.000, -1.000]T

– exact solution x = [1,-1,1,-1]T

– no s x = [1.000, -0.9985, 0.9990, -1.000]T

– no r x = [1.131, -0.7928, 0.8500, -0.9987]T

74

Page 75: Numerical Analysis

Any Questions?

75

3.2 Pivoting Strategy


Recommended