Docsity

Practice Problem Set 6 - Numerical Analysis Computation | COT 4501, Assignments of Computer Science

Toggle sidebar
bg1
Homework 6
Due on Thursday, March 6
1 (Problem 6 on page 100)
Do three iterations of Newton’s method (either by hand or with MATLAB) for
f(x) = 3 −ex
using x0= 1. Repeat, using x0= 2,4,8,16. Comment on your results.
2 (Problem 9 on page 100)
Write down Newton’s method for finding the root of the arctangent function. From this formulate an equation which
must be satisfied by the value x=β, in order to have the Newton iteration cycle back and forth between βand −β.
Hint: If xn=βand Newton’s method is supposed to give us xn+1 =−β, what is an equation satisfied by β?
3 (Problem 6 on page 113)
Consider applying Newton’s method to find the root of the function f(x) = 4x−cosx. Assume we want accuracy to
within 10−8. Use the Newton error estimate (3.12) to show that the iteration will converge for all x0∈[−2,2]. How
many iterations will be needed for the iteration to converge? Compare with the corresponding results for bisection,
using an initial interval of [−2,2].
4 (Problem 7 on page 113)
Verify by actual computation that your results in the previous problem were correct, i.e., apply Newton’s method to
f(x)=4x−cos x; do you converge to the specified accuracy in the correct number of iterations, and does this con-
vergence appear to be occurring for all choices of x0? (For this problem, you need to write a short MATLAB code
that does the computation. You don’t need to hand in the code. However, you need to run a few experiments to answer
the questions above. In addition, you should turn in a table similar to Table 3.5 on page 112 with x0= 0 showing the
convergence.)
5 (Problem 6 on page 117)
Consider a function that satisfies the following properties:
1. fis defined and twice continuously differentiable for all x;
2. fhas a unique root α∈[−1,1];
3. |f0(x)| ≥ 2for all x;
4. |f00(x)| ≤ 5for all x.
Can we conclude that Newton’s method will converge for all x0∈[−1,1]? If so, how many iterations are required
to get 10−6accuracy? If not, how many steps of bisection must we do to get the initial interval small enough so that
Newton’s method will converge? (for any choice of x0.) How many total function evaluations (bisection plus Newton)
are required to get 10−6accuracy?
1

Partial preview of the text

Download Practice Problem Set 6 - Numerical Analysis Computation | COT 4501 and more Assignments Computer Science in PDF only on Docsity!

Homework 6

Due on Thursday, March 6

1 (Problem 6 on page 100) Do three iterations of Newton’s method (either by hand or with MATLAB) for

f (x) = 3 − ex

using x 0 = 1. Repeat, using x 0 = 2, 4 , 8 , 16. Comment on your results.

2 (Problem 9 on page 100) Write down Newton’s method for finding the root of the arctangent function. From this formulate an equation which must be satisfied by the value x = β, in order to have the Newton iteration cycle back and forth between β and −β. Hint: If xn = β and Newton’s method is supposed to give us xn+1 = −β, what is an equation satisfied by β?

3 (Problem 6 on page 113) Consider applying Newton’s method to find the root of the function f (x) = 4x − cos x. Assume we want accuracy to within 10 −^8. Use the Newton error estimate (3.12) to show that the iteration will converge for all x 0 ∈ [− 2 , 2]. How many iterations will be needed for the iteration to converge? Compare with the corresponding results for bisection, using an initial interval of [− 2 , 2].

4 (Problem 7 on page 113) Verify by actual computation that your results in the previous problem were correct, i.e., apply Newton’s method to f (x) = 4x − cos x; do you converge to the specified accuracy in the correct number of iterations, and does this con- vergence appear to be occurring for all choices of x 0? (For this problem, you need to write a short MATLAB code that does the computation. You don’t need to hand in the code. However, you need to run a few experiments to answer the questions above. In addition, you should turn in a table similar to Table 3.5 on page 112 with x 0 = 0 showing the convergence.)

5 (Problem 6 on page 117) Consider a function that satisfies the following properties:

  1. f is defined and twice continuously differentiable for all x;
  2. f has a unique root α ∈ [− 1 , 1];
  3. |f ′(x)| ≥ 2 for all x;
  4. |f ′′(x)| ≤ 5 for all x.

Can we conclude that Newton’s method will converge for all x 0 ∈ [− 1 , 1]? If so, how many iterations are required to get 10 −^6 accuracy? If not, how many steps of bisection must we do to get the initial interval small enough so that Newton’s method will converge? (for any choice of x 0 .) How many total function evaluations (bisection plus Newton) are required to get 10 −^6 accuracy?