Q1
Q1
Consider the problem of finding the points of intersection of f1 (x) = 3.9x and f2 (x) = 7 sin(7x).
Formulate this as a problem of solving a nonlinear equation f(x) = 0 .
f(x) = 3.9*x-7*sin(7*x)
Hint: You can use the functions sin, cos, tan, log (for natural logorithm), and exp (rather than e^x). Use ^
for power Remember to type the multiplication symbol * whenever appropriate. Use the preview to double
check your answer.
(b) [4 marks]
You are asked to solve a nonlinear equation f(x) = 0 on an interval [a, b] using Newton's method.
(i) How many starting values does this iterative method require?
No
Yes
(iii) Does this iterative method require the starting value(s) to be close to a simple root?
Yes
No
If f ∈ C([a, b]) and f(a)f(b) < 0, then, with the starting point
(c) [4 marks]
Assume that the nonlinear problem in part (a) has been formulated so that the conditions required for the
convergence theory of Newton's method in part (b) are satisfied.
Let x ∗ denote the target solution, and for each k = 1, 2, … let x k denote the k th iterate and define
ek := |xk − x∗ |. Suppose we know that e2 ≈ 0.95.
e5 ≈ 0.664
(ii) Estimate the number of further steps required for the error to satisfy e2+m ≤ 10−13 .
m≈ 9.18878