1 / 42

Solutions of Equations in One Variable

Solutions of Equations in One Variable. +. -. Suppose f(x) is a continuous function of x within interval [a, b]. f(a) = - ive and f(b) = + ive. There exist at least a number p in [a, b] with f(p) = 0. Meaning, p is a root of the equation f(x) = 0. +. -. Bisection Method

eshe
Download Presentation

Solutions of Equations in One Variable

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Solutions of Equations in One Variable

  2. + -

  3. Suppose f(x) is a continuous function of x within interval [a, b]. f(a) = - ive and f(b) = + ive There exist at least a number p in [a, b] with f(p) = 0. Meaning, p is a root of the equation f(x) = 0

  4. + -

  5. Bisection Method (Binary Search) The Bisection Method calls for a repeated halving of subintervals of [a, b] each time locating the half containing p.

  6. Bisection Algorithm

  7. Seta1 = aandb1 = b. Find the midpoint between a1 and b1. Midpoint,

  8. If f(p1) = 0, then p1 is the root of the equation within [a, b]. If f(p1) ¹ 0, then what? Then find if f(p1) has the same sign as either f(a1) or f(b1).

  9. Bisection Algorithm

  10. IF f(p1) has the same sign as f(a1) , then the root is in [p1, b1]. Set a2 = p1 and b2 = b1. IF f(p1) has the same sign as f(b1) , then the root is in [a1, p1]. Set a2 = a1 and b2 = p1.

  11. The rootis in the interval [a2, b2].Divide the interval in two halves and repeat the process.

  12. When do we stop?

  13. has a root in [1, 2].

  14. The Method of False Position The method is based on bracketing the root between two points. At the beginning choose two points, so that Now draw a line joining The x-intercept of the line is

  15. Now bracket the root between either Which pair to choose? On the other hand Let us assume that This means that the root is between

  16. and the process continues … Now draw a line joining The x-intercept of the line is

  17. has a root in [1, 2].

  18. has a root in [1, 2]. Fixed-Point Iteration Rewrite f(x) = 0 in the form of x = g(x) and iterate.

  19. We can rewrite f(x) in the form of x = g(x) in the following ways.

  20. Start with x = 1.5

  21. Results of the Fixed-point Iteration

  22. Why some expressions failed to deliver the root? To deliver the root, g(x) for all x in [a, b] must stay within [a, b].

  23. Newton’s Method

  24. Consider the triangle (p2, 0), (p1, 0) and (p1, f(p1)).

  25. Newton’s Method

  26. (p1, f(p1)) (p2, 0) (p1, 0) Consider the triangle (p2, 0), (p1, 0) and (p1, f(p1)).

  27. (p1, f(p1)) (p2, 0) (p1, 0) The slope,

  28. A sequence can be generated as:

  29. Example:

More Related