You are on page 1of 86

Numerical Analysis

EE, NCKU Tien-Hao Tien Hao Chang (Darby Chang)

In th I the previous slide i lid

Rootfinding
multiplicity

Bisection method
Intermediate Value Theorem convergence measures

False position
yet another simple enclosure method y p advantage and disadvantage in comparison with bisection method
2

In thi lid I this slide

Fixed point iteration scheme p


what is a fixed point? iteration function convergence

Newtons N t method th d
tangent line approximation convergence

Secant method
3

Rootfinding R tfi di

Simple enclosure
Intermediate Value Theorem guarantee to converge g g
convergence rate is slow

bisection and false position

Fixed point iteration


Mean Value Theorem rapid convergence
loss of guaranteed convergence

2.3 23
Fixed Point Iteration Schemes

There is at least one point on the graph at which the tangent lines is parallel to the secant line

Mean Value Theorem M V l Th

Fixed Fi d points i t

10

11

Number of fixed points N b f fi d i t

According to the p g previous figure, a g , trivial question is


how many fixed points of a given function?

12

13

14

Only O l sufficient conditions ffi i t diti

Namely, not necessary conditions


it is possible for a function to violate one or more of the hypotheses, yet still have a (possibly unique) fixed point

15

Fixed point iteration

16

Fixed Fi d point it i t iteration ti

17

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

In action

18

19

20

Any Questions?
About fixed point iteration

21

Relation t rootfinding R l ti to tfi di

Now we know what fixed point p iteration is, but how to apply it on rootfinding? More precisely, given a rootfinding hint equation, f(x)=x3+x2-3x-3=0, what is its iteration function g(x)?

22

Iteration f It ti function ti

23

24

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

In action

25

26

Analysis A l i

27

Convergence

28

29

30

31

32

Order of convergence of fixed point iteration schemes

33

34

35

36

37

38

Stopping condition St i diti

39

40

Two steps T t

41

The fi t t Th first step

42

The Th second step d t

43

Any Questions?
2.3 Fixed Point Iteration Schemes

44

2.4 24
Newtons Method

45

46

47

Newtons Method

Definition D fi iti

48

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

In action

49

50

In th I the previous example i l

51

52

Any Questions?

53

Initial guess I iti answer l

example

54

Initial guess I iti answer l

55

Initial I iti l guess

56

57

Convergence analysis for Newton s Newtons method

58

The simplest plan is to apply the general fixed point iteration convergence theorem

59

Analysis t t A l i strategy

60

61

62

63

64

Any Questions?

65

Newtons Method

Guaranteed t Converge? G t d to C ?

hint

answer

66

Newtons Method

Guaranteed t Converge? G t d to C ?

answer

67

Newtons Method

Guaranteed t Converge? G t d to C ?

68

http://img2.timeinc.net/people/i/2007/startracks/071008/brad_pitt300.jpg

Oh no! After these annoying analyses, the Newtons method is still not guaranteed to converge!?

69

Dont D t worry

Actually, there is an intuitive method Combine Newtons method and bisection method
Newtons method first if an approximation falls outside current interval, then apply bisection method to obtain a better guess g

(Can you write an algorithm for this method?)


70

Newtons Method

Convergence analysis C l i

71

Recall that
http://www.dianadepasquale.com/ThinkingMonkey.jpg

72

Is Newtons method always faster?

73

74

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

In action

75

76

Any Questions?
2.4 Newtons Method

77

2.5 25
Secant Method

78

Secant method S t th d

Because that Newtons method


2 function evaluations per iteration requires the derivative

Secant method is a variation on either answer false position or Newtons method


1 additional function evaluation per iteration does not require the derivative

Lets see the figure first


79

80

Secant method S t th d

81

82

83

84

85

Any Questions?
2.5 Secant Method

86

You might also like