Presentation is loading. Please wait.

Presentation is loading. Please wait.

Roots of equations Class IX.

Similar presentations


Presentation on theme: "Roots of equations Class IX."β€” Presentation transcript:

1 Roots of equations Class IX

2 Review of Class VI Bisection Method finding roots of function
Function f(x) on the interval [a,b] and f(a)*f(b) < f(x) has a root(s) on [a,b] The method produces a sequence of the intervals [π‘Ž 𝑛 , 𝑏 𝑛 ] with each containing the desired root of the function estimated as π‘Ÿ=( π‘Ž 𝑛 + 𝑏 𝑛 )/2 Error (accuracy) of root estimate after n steps πœ€β‰€ (𝑏 𝑛 βˆ’ π‘Ž 𝑛 )/2 or πœ€β‰€(π‘βˆ’π‘Ž)/ 2 𝑛+1 If one requires that error πœ€<𝛿 (tolerance of an error) , the number of steps required in the bisection method is n > [ log(b-a) - log (2𝛿) ] / log 2

3 Review of Class VII Newton’s Method finding roots of function
Newton’s method requires that function f(x) is differentiable implying that the graph of f(x) has a definite slope at each point. π‘₯ 𝑛+1 = π‘₯ 𝑛 βˆ’ 𝑓( π‘₯ 𝑛 ) 𝑓 β€² ( π‘₯ 𝑛 ) The method evaluates (numerically or analytically) f(x) and f’(x) at each step If 𝑓 β€² π‘₯ 𝑛 β‰ˆ0 or 𝑓 β€² π‘₯ 𝑛 =0, the method diverges It requires an initial value π‘₯ 0 The method converges quadratically to the desired root r if π‘₯ 0 is sufficiently close to r : | π‘Ÿβˆ’π‘₯ 𝑛+1 | ≀𝑐 | π‘Ÿβˆ’π‘₯ 𝑛 | 2

4 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 .

5 Pitfalls of Newton’s method
b) Flat spot The tangent to the curve is parallel to the x-axis resulting in π‘₯ 1 =±∞.

6 Mathematica functions for finding roots


Download ppt "Roots of equations Class IX."

Similar presentations


Ads by Google