Exercises 05
Exercises 05
Exercises 05
5.28. In solving a nonlinear equation in one di- asymptotic convergence rate. For each method,
mension, how many bits of accuracy are gained specify a situation in which that method is partic-
per iteration of ularly appropriate.
(a) Bisection method? (a) Regular quadratic interpolation
(b) Newton’s method? (b) Inverse quadratic interpolation
5.29. In solving a nonlinear equation f (x) = 0, if (c) Linear fractional interpolation
you assume that the cost of evaluating the deriva-
tive f 0 (x) is about the same as the cost of evalu- 5.35. State at least one method for finding all the
ating f (x), how does the cost of Newton’s method zeros of a polynomial, and discuss its advantages
compare with the cost of the secant method per and disadvantages.
iteration?
5.36. Does the bisection method generalize
5.30. What is meant by inverse interpolation? to finding zeros of multidimensional functions?
Why is it useful for root finding problems in one Why?
dimension?
5.37. For solving an n-dimensional nonlinear
5.31. Suppose that you are using fixed-point it-
equation, how many scalar function evaluations
eration based on the fixed-point problem x = g(x)
are required per iteration of Newton’s method?
to find a solution x∗ to a nonlinear equation
f (x) = 0. Which would be more favorable for 5.38. Relative to Newton’s method, which of the
the convergence rate: a horizontal tangent of g at following factors motivate secant updating meth-
x∗ or a horizontal tangent of f at x∗ ? Why? ods for solving systems of nonlinear equations?
5.32. Suggest a procedure for safeguarding the (a) Lower cost per iteration
secant method for solving a one-dimensional non- (b) Faster convergence rate
linear equation so that it will still converge even
if started far from a root. (c) Greater robustness far from solution
5.33. For what type of function is linear frac- (d ) Avoidance of computing derivatives
tional interpolation a particularly good choice of 5.39. Give two reasons why secant updating
zero finder? methods for solving systems of nonlinear equa-
5.34. Each of the following methods for comput- tions are often more efficient than Newton’s
ing a root of a nonlinear equation has the same method despite converging more slowly.
Exercises
5.1. Consider the nonlinear equation 5.3. Newton’s method is sometimes used to im-
2 plement the built-in square root function on a
f (x) = x − 2 = 0. computer, with the initial guess supplied by a
lookup table.
(a) With x0 = 1 as a starting point, what is the
value of x1 if you use Newton’s method for solving (a) What is the Newton iteration for computing
this problem? the square root of a positive number y (i.e., for
solving the equation f (x) = x2 − y = 0, given y)?
(b) With x0 = 1 and x1 = 2 as starting points,
(b) If we assume that the starting guess has an
what is the value of x2 if you use the secant
accuracy of 4 bits, how many iterations would be
method for the same problem?
necessary to attain 24-bit accuracy? 53-bit accu-
5.2. Write out Newton’s iteration for solving racy?
each of the following nonlinear equations:
5.4. On a computer with no functional unit for
(a) x3 − 2x − 5 = 0. floating-point division, one might instead use mul-
(b) e−x = x. tiplication by the reciprocal of the divisor. Apply
(c) x sin(x) = 1. Newton’s method to produce an iterative scheme
248 Chapter 5: Nonlinear Equations
5.13. Consider the system of equations fixed point of the smooth function g: R → R, and
g 0 (x∗ ) = 0, then the convergence rate of the fixed-
x1 − 1 = 0, point iteration scheme xk+1 = g(xk ) is at least
x1 x2 − 1 = 0. quadratic if started close enough to x∗ .
For what starting point or points, if any, will New- 5.15. Verify the formula given in Section 5.5.6 for
ton’s method for solving this system fail? Why? the change h in c when using linear fractional in-
5.14. Supply the details of a proof that if x∗ is a terpolation to find a zero of a nonlinear function.
Computer Problems