Download presentation
Presentation is loading. Please wait.
1
Roots of equations Class VII
2
Last time We started new topic: Roots of Equation
Definition of root or zero of function f(x). Examples. Bisection method of finding roots at the interval [a,b]. After n steps the estimate of a root is π=( π π + π π )/2 i.e. root is trapped in the interval [ π π , π π ] Error in Bisection method πβ€(bβa)/ 2 π+1 We started to study Newtonβs method of finding roots.
3
Convergence analysis in Bisection method
Suppose error tolerance πΏ has been prescribed in advance. How to determine number of steps n required in the Bisection method that error in root estimate π<πΏ ? Recall that πβ€(bβa)/ 2 π+1 leading to (bβa)/ 2 π+1 < πΏ Taking logarithms: log(b-a) β n log 2 < log (2πΏ) We have inequality: n > [ log(b-a) - log (2πΏ) ] / log 2
4
Newtonβs Method Function f(x) is differentiable
Let point π₯ 0 be a starting point and some initial approximation to the root
6
Newtonβs Method This method gives as a sequence:
π₯ 0 , π₯ 1 , π₯ 2 , β¦, π₯ π , π₯ π+1 where the n-th approximation to the root is π=π₯ π
7
Example π π₯ = π₯ 3 β2 π₯ 2 +π₯β3 Let us start finding root from π₯ 0 =3, π (π₯ 0 )= 9 πβ² π₯ = 3 π₯ 2 β4π₯+1 In five steps (n=5) we will have π₯ 5 = and π (π₯ 5 )=1.97Γ 10 β12 Rather fast convergence of the sequence of π₯ π to the root.
8
Convergence analysis in Newtonβs method
Function f(x): f(r)=0, derivatives fβ. Assume that fβ(r) β 0 Newtonβs method, if started sufficiently close to root r, converge quadratically: | πβπ₯ π+1 | β€π | πβπ₯ π | 2 π₯ π+1 has approximately twice as many correct digits as π₯ π Suppose c=1 and | πβπ₯ π | β€ 10 βπ ο¨ | πβπ₯ π+1 | β€ 10 β2π If k=2, error decreases from 0.01 to
9
Pitfalls of Newtonβs method
a) Runaway Each successive point π₯ π in Newtonβs iteration recedes from r instead of converging to r. Pure choice of the initial point π₯ 0 .
10
Pitfalls of Newtonβs method
b) Flat spot The tangent to the curve is parallel to the x-axis resulting in π₯ 1 =Β±β.
11
Pitfalls of Newtonβs method
c) Cycle The iteration values cycle because π₯ 2 =π₯ 0 .
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.