Professional Documents
Culture Documents
1. Use fixed-point iteration method to find a fixed-point of p = 0.5 p 3 + 0.3. Take p0 = 0.1
as the initial approximation and compute p1, p2, p3. Round the answer correct to 5
decimal places.
Solution:
p = 0.5 p 3 + 0.3.
pn +1 = G ( pn )
c) Carry out the first five iterations using the g ( x ) determined in part (b) starting
with x = 2. Round the answer correct to 5 decimal places.
Solution:
a)
1
x 3 − x − e x − 2 = 0, x3 − x − e x − 2 = 0, x 3 − x − e x − 2 = 0, x3 − x − e x − 2 = 0,
− x = − x 3 + e x + 2. x3 = x + e x + 2, x ( x 2 − 1) = e x + 2, −e = − x + x + 2,
x 3
x = x 3 − e x − 2. x = ( x + ex + 2) . e x = x3 − x − 2,
13
ex + 2
x= 2
ln e x = ln ( x3 − x − 2 ) ,
.
g ( x ) = x 3 − e x − 2. x −1
g ( x ) = ( x + e + 2) .
x 13
ex + 2 x = ln ( x3 − x − 2 ) .
g ( x) = 2 .
x −1
g ( x ) = ln ( x3 − x − 2 ) .
b)
g ( x ) = x 3 − e x − 2. g ( x ) = ( x + ex + 2) .
13
g ( x ) = 3x 2 − e x . 1
(1 + e x )( x + e x + 2 ) .
−2 3
g( x) =
g ( 2 ) = 4.61 1. 3
g ( 3) = 6.91 1. g ( 2 ) = 0.55 1.
Cannot be used. g ( 3) = 0.82 1.
Can be used.
ex + 2 g ( x ) = ln ( x3 − x − 2 ) .
g ( x) = 2 ,
x −1 3x 2 − 1
e x x 2 − e x − 2 xe x − 4 x g ( x) = .
g( x) = , x3 − x − 2
( )
2
x 2
− 1 g ( 2 ) = 2.75 1.
g ( 2 ) = 1.70 1. g ( 3) = 1.18 1.
g ( 3) = 0.44 1. Cannot be used.
Cannot be used.
Therefore, g ( x ) = ( x + e x + 2 )
13
can be used.
c)
2
3. Use a fixed-point iteration method to determine a solution accurate to within 10 −4 for
x = tan x, for x in 4,5. Round the answer correct to 4 decimal places. Hint, use
radian.
Solution:
g ( x ) = tan x
1
g ( x) = 2
= sec2 x.
cos x
g ( 4 ) = 2.34 1.
g ( 5 ) = 12.43 1.
3
x g'(x)
4 -0.68346
4.1 -0.43399
4.2 -0.25972
4.3 -0.1373
4.4 -0.05265
4.5 0.002882
4.6 0.034521
4.7 0.045116
4.8 0.035688
4.9 0.005609
5 -0.04751
Solution:
g ( x ) = ( x + 1) .
13
1
g( x) = ( x + 1) .
−2 3
3
g (1) = 0.21 1.
g ( 2 ) = 0.16 1.
5. Use the bisection method to find x3 for f ( x ) = x − cos x = 0 on 0,1 . Round the
answer correct to 3 decimal places. Hint, use radian.
4
Solution:
Therefore, x3 = 0.625.
a)
0 0.0000 1.0000 -6.0000 2.0000 0.5000 -0.6250
1 0.5000 1.0000 -0.6250 2.0000 0.7500 0.9844
2 0.5000 0.7500 -0.6250 0.9844 0.6250 0.2598
3 0.5000 0.6250 -0.6250 0.2598 0.5625 -0.1619
4 0.5625 0.6250 -0.1619 0.2598 0.5938 0.0540
5 0.5625 0.5938 -0.1619 0.0540 0.5781 -0.0526
6 0.5781 0.5938 -0.0526 0.0540 0.5859 0.0010
Since f ( c7 ) = 0.001 0.01, then x = 0.5859.
b)
c)
5
0 3.2 4 -0.112 2 3.6000 0.3360
1 3.2 3.6 -0.112 0.336 3.4000 -0.0160
2 3.4 3.600 -0.016 0.336 3.5000 0.1250
3 3.400 3.500 -0.016 0.125 3.4500 0.0461
4 3.400 3.450 -0.016 0.046 3.4250 0.0130
5 3.400 3.425 -0.016 0.013 3.4125 -0.0020
6 3.413 3.425 -0.002 0.013 3.4188 0.0054
7. The function f ( x ) = x5 − 3x3 + 2.5 x − 0.6 has exactly one root in 1, 2. By using the
bisection method, determine the root with an error of at most 10 −5. Round the answer
correct to 6 decimal places.
Solution:
8. Use the bisection method to find to four decimal places a root of 0.1x 2 − x ln x = 0
between 1 and 2.
Solution:
6
0 1.0000 2.0000 0.1000 -0.9863 1.5000 -0.3832
1 1.0000 1.5000 0.1000 -0.3832 1.2500 -0.1227
2 1.0000 1.2500 0.1000 -0.1227 1.1250 -0.0059
3 1.0000 1.1250 0.1000 -0.0059 1.0625 0.0485
4 1.0625 1.1250 0.0485 -0.0059 1.0938 0.0216
5 1.0938 1.1250 0.0216 -0.0059 1.1094 0.0079
6 1.1094 1.1250 0.0079 -0.0059 1.1172 0.0010
7 1.1172 1.1250 0.0010 -0.0059 1.1211 -0.0025
8 1.1172 1.1211 0.0010 -0.0025 1.1191 -0.0007
9 1.1172 1.1191 0.0010 -0.0007 1.1182 0.0001
10 1.1182 1.1191 0.0001 -0.0007 1.1187 -0.0003
11 1.1182 1.1187 0.0001 -0.0003 1.1184 -0.0001
12 1.1182 1.1184 0.0001 -0.0001 1.1183 0.0000
13 1.1183 1.1184 0.0000 -0.0001 1.1183 0.0000
Solution:
a)
Therefore, x3 is −1.25208.
b)
Therefore, x3 is −0.84136.
10. Use the method of false position to find solutions accurate to within 10 −4 for the
following problems:
a) x3 − 2 x 2 − 5 = 0, 1, 4
b) x3 + 3x 2 − 1 = 0, −3, −2
c) x − cos x = 0, 0, 2
d) x − 0.8 − 0.2sin x = 0, 0, 2
Round the answer correct to 5 decimal places.
7
Solution:
a)
b)
c)
d)
8
1 0.00000 1.57080 -0.80000 0.57080 0.91672 -0.04200
2 0.91672 1.57080 -0.04200 0.57080 0.96155 -0.00246
3 0.96155 1.57080 -0.00246 0.57080 0.96417 -0.00014
4 0.96417 1.57080 -0.00014 0.57080 0.96432 -0.00001 <0.0001
5 0.96432 1.57080 -0.00001 0.57080 0.96433 0.00000 <0.0001
Solution:
9
1 0.000000 1.000000 -9.000000 27.000000 0.250000 -62.507813
2 0.250000 1.000000 -62.507813 27.000000 0.773763 -83.830520
3 0.773763 1.000000 -83.830520 27.000000 0.944885 -11.265130
4 0.944885 1.000000 -11.265130 27.000000 0.961111 -0.855868
5 0.961111 1.000000 -0.855868 27.000000 0.962306 -0.061802
6 0.962306 1.000000 -0.061802 27.000000 0.962392 -0.004446
7 0.962392 1.000000 -0.004446 27.000000 0.962398 -0.000320
8 0.962398 1.000000 -0.000320 27.000000 0.962398 -0.000023
9 0.962398 1.000000 -0.000023 27.000000 0.962398 -0.000002
10 0.962398 1.000000 -0.000002 27.000000 0.962398 0.000000 <0.000001
c) Newton’s method
10