Question: Exercise #2: No simple formulae exist to compute the zeros of a general function f(x) (i.e. the values of x for which f(x)=0). This includes

 Exercise \#2: No simple formulae exist to compute the zeros ofa general function f(x) (i.e. the values of x for which f(x)=0).

Exercise \#2: No simple formulae exist to compute the zeros of a general function f(x) (i.e. the values of x for which f(x)=0). This includes even polynomial functions of degree greater than 4 . Instead, numerical methods must be used to find these zeros. We have previously considered a "brute force" approach to this problem: compute f(x) on a large range of values for x, and look for the one which results in f(x) being close to zero. In addition to being inelegant, this approach requires a large amount unnecessary computation (and hence time). It is far more efficient, and elegant, to use a more sophisticated "guess and check" algorithm to "home in" on a value of x for which f(x)=0, using as few computations as possible. One common algorithm is known as Newton's method, which can be summarized as follows: Start with an (essentially arbitrary) initial guess z for one of the zeros of the function f(x). Compute f(z). If f(z)=0 then z is a zero and we are done. Of course, it is unlikely that the initial guess for z really is a zero, so generally f(z)=0. In this case, Newton's method generates a new, "improved" guess for the zero z according to the formula z=zf(z)f(z) In this formula the "old" guess for z is used on the right-hand side of the equation, and the result is used to define the new guess for z. We then check this new z to see if f(z)=0, and if not repeat the above calculation with the new z to generate yet another new z, continuing in this fashion as long as necessary until f(z)=0. 1 Of course, the finite precision of the computer means that we can't really continue the process of generating better and better guesses until f(z) is exactly zero, as this would require essentially infinite time. Rather, must settle for zeros which satisfy f(z)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!