Problem Set 3
Problem Set 3
Schwendeman
Numerical Computing
Problem Set 3
Due:
Tuesday, 2/18/14
3
2
= 12
g 0 ( 21 ) = 31 , and g 0 ( 43 ) = 21 . Hence |g 0 (x)| < 1 for all x [1/2, 4/3] the fixed point
is attracting.
3. Text exercise 4(b) on page 59.
f (x) = x3 x2 5x 3 = x3 x2 2x 3(x + 1) = x(x 2)(x + 1) 3(x + 1) =
(x + 1)(x2 2x 3) = (x + 1)2 (x 3). We see that r = 1 is a double root and r = 3 is a
single root.
1. r = 1
1
1
m = 2 S = (21)
2 = 2 ei+1 = 2 ei . We have linear convergence rate.
2. r = 3
00
(3) 1
M = ff 0 (3)
= 2 ei+1 = 12 e2i . We have quadratic convergence rate.
4. Again there are two parts for this question the code for Newtons method could be found
on the course website.
The code for the second question is as follows.
1 1
2 2 1 2
1 1 12 1
4
0
5 0 1
1 2 1 0 5
0 1 2 5
0 0
2 1 1
3
1 0 1 1
0 1 0 1
0 0 1 2
Therefore we have x = 1,y = 1,z = 2.
3
21
0
2
1
1
1 0
4
0
1 21
1
0
0
1
1
1
2