Documente Academic
Documente Profesional
Documente Cultură
1.Find the cube root of 7 using the Bisection method. Find the answer correct
to 2 decimal places and work to 3 decimal places throughout.
Solution
We need to solve for x. Let
then we need to find x where
f(x) = 0.
f xx 3x73 7
If x = 2, f(2) = 23 7 = 8 7 = +1
f(x) = 0 for some x value between 1
and 2.
If x = 1, f(1) = 13 7 = 1 7 = -6
mid
f(a)
f(mid)
f(b)
1.5
-6
-3.625
+1
1.5
1.75
-3.625
-1.641
+1
1.75
1.875
-1.641
-0.408
+1
1.875
1.938
-0.408
-0.279
+1
1.875
1.907
1.938
-0.408
-0.065
+0.279
1.907
1.923
1.938
-0.065
+0.111
+0.279
1.907
1.915
1.923
-0.065
+0.023
+0.111
1.907
1.911
1.915
-0.065
-0.021
+0.023
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
The last row tells us that the root lies between 1.911 and 1.915 but is not 1.915
exactly. This means that the root must be 1.91 to 2 decimal places.
i.e. Cube root of 7 is 1.91 to 2 d.p.
f ( x) x 3 x 1
Table
Step 1
mid
f(a)
f(mid)
f(b)
0.5
-1
-0.375
+1
0.5
0.75
-0.375
+0.172
+1
0.5
0.625
0.75
-0.375
-0.131
+0.172
0.625
0.688
0.75
-0.131
+0.014
+0.172
0.625
0.657
0.688
-0.131
-0.059
+0.014
0.657
0.673
0.688
-0.059
-0.022
+0.014
0.673
0.681
0.688
-0.022
-0.003
+0.014
0.681
0.685
0.688
-0.003
+0.006
+0.014
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
The last row shows the solution must be between 0.681 and 0.685 but does not
equal 0.685, so that to 2 decimal places,
x = 0.68.
Check:
x3 + x 1 = 0.683 + 0.68 1 = 0 -0.006, which is as required.
3.The equation x3 3x 8 = 0 has a root between 2 and 3. Find the root accurate to 2 decimal places.
Our function is f(x) = x3 3x 8.
x0 = 2 f(x0)
= 23 - 32 8
= -6
<0
x0, where f(x0)<0
2
2
2.25
2.375
2.4375
2.46875
2.484375
2.484375
2.48828125
x1 = 3 f(x1)
3
2.5
2.5
2.5
2.5
2.5
2.5
2.4921875
2.4921875
x2
= 33 - 33 8
= 10
>0
x 0 x1
2
2.5
2.25
2.375
2.4375
2.46875
2.484375
2.4921875
2.48828125
f(x2)
We can stop now, because both estimates are the same value when rounded to 2
decimal places, which is our required level of accuracy.
Hence the root of x3 3x 8 = 0 between 2 and 3 is 2.49 (2dp).
APPLICATIONS:
1.You have a spherical storage tank containing ft
h3 oil. The tank has a diameter of 6 ft. You are
asked to calculate the height to which a
dipstick 8 ft long would be wet with oil when
immersed in the tank when it contains 4 of oil.
Figure 5 Spherical storage tank problem.
f h h 3 9h 2 3.8197 0
0 h 2r
0 h 2(3)
h0 h0,hu6 6
f h f hu f 0 f 6 3.8197 104.18 0
hu
Iteration 1
The estimate of the root is
h hu
hm 0
26
2
3
3
2
f hm f 3 3 9 3 3.1897 50.180
f h f hm f 0 f 3 3.1897 50.180 0
h h
hm 0 3 u
2
12.5
3
2
f hm f 1.5 1.5 91.5 3.8197 13.055
f h f hm f 0 f 1.5 3.8197 13.055 0
hmnew hmold
a 1.5
100
3
hmnew 100
1.100
5 %
hm 1.5
5%
Iteration 3
The estimate of the root is
h h
hm 0 1.5u
2
0.275
3
2
f hm f 0.75 0.75 9 0.75 3.8197 0.82093
f h f hm f 0 f 0.75 3.8197 0.82093 0
hmnew hmold
a 0.75 new
1.5 100
100
hm
100%
0.75
Still none of the significant digits are
5%
at least correct in the estimated root of the
equation as the absolute relative approximate
error is greater than .
The height of the liquid is estimated as 0.75 ft at the end of the third iteration.
Seven more iterations were conducted and these iterations are shown in Table 1.
Table 1 Root of as a function of the number
of iterations for bisection method.
f x 0
Iteration
1
2
3
4
5
6
7
8
9
10
0.00
0.00
0.00
0.00
0.375
0.5625
0.65625
0.65625
0.65625
0.66797
hu
6
3
1.5
0.75
0.75
0.75
0.75
0.70313
0.67969
0.67969
a %
f hm
---------100
100
100
33.333
14.286
6.6667
3.4483
1.7544
0.86957
50.180
13.055
0.82093
2.6068
1.1500
0.22635
0.28215
0.024077
0.10210
0.039249
hm
3
1.5
0.75
0.375
0.5625
0.65625
0.70313
0.67969
0.66797
0.67383
10 th
a 0.86957%
m
Hence the number of significant digits
at least correct is given by the largest value of
for which
a 0.5 10 2 m
0.86957 0.5 10 2 m
1.7391 10 2 m
So
log1.7391 2 m
m 2 log1.7391 1.759
m 1
2.You are working for DOWN THE TOILET COMPANY that makes floats for ABC
commodes. The floating ball has a specific gravity of 0.6 and has a radius of 5.5 cm. You are
asked to find the depth to which the ball is submerged when floating in water.
The equation that gives the depth to which the x ball is submerged under water is given by
x 3 0.165 x 2 3.993 10 4 0
x
Use the bisection method of
finding roots of equations to find the depth to
which the ball is submerged under water.
Conduct three iterations to estimate the root of the above equation. Find the absolute relative
approximate error at the end of each iteration, and the number of significant digits at least correct at
the end of each iteration.
Solution
From the physics of the problem, the ball
where
that is
0 x 2R
0 0 x x 2
055)
(0.11
Lets us assume
x 0, xu 0.11
Check if the function changes sign
xu
between and .
f ( x ) f (0) (0) 3 0.165(0) 2 3.993 10 4 3.993 10 4
f ( xu ) f (0.11) (0.11) 3 0.165(0.11) 2 3.993 10 4 2.662 10 4
Hence
f ( x ) f ( xu ) f (0) f (0.11) (3.993 10 4 )(2.662 10 4 ) 0
So there is at
xu
least one root between and , that is between 0
and 0.11.
Iteration 1
The estimate of the root is
f xm
x x
xm 0 0.11u
2
0.055
2
Hence the
xm
u
root is bracketed between and , that is,
between 0.055 and 0.11. So, the lower and
upper limit of the new bracket is
x 0.055, xu 0.11
At this point, the absolute relative
a
approximate error cannot be calculated as we
do not have a previous approximation.
Iteration 2
The estimate of the root is
x x
x0m.055
0.u11
2
0.0825
2
Hence,
x
xm
the root is bracketed between and , that is,
between 0.055 and 0.0825. So the lower and
upper limit of the new bracket is
x 0.055, xu 0.0825
The absolute relative approximate
a
error at the end of Iteration 2 is
x new xmold
0a .0825
m new
0.055 100
100
x
m
33.33%
0
.0825
x xu
m 0.0825
0x.055
2
0.06875
2
100
0.06875
new
0.0825
a
100
xm
20
%
0.06875
Still none of the significant
digits are at least correct in the estimated root of the equation as the absolute relative approximate
error is greater than 5%.
Seven more iterations were conducted and these iterations are shown in Table 1.
Table 1 Root of as function of number f ( x) 0
of iterations for bisection method.
xu
xm
x
Iteration
f (xm )
6.655 10 5
0.00000
0.11
0.055
----------
0.055
0.11
0.0825
33.33
1.622 10 4
0.055
0.0825
0.06875
20.00
5.563 10 5
0.055
0.06875
0.06188
11.11
4.484 106
0.06188
0.06875
0.06531
5.263
2.593 10 5
0.06188
0.06531
0.06359
2.702
1.0804 10 5
0.06188
0.06359
0.06273
1.370
3.176 10 6
0.06188
0.06273
0.0623
0.6897
6.497 10 7
0.0623
0.06273
0.06252
0.3436
1.265 10 6
10
0.0623
0.06252
0.06241
0.1721
3.0768 10 7
m
Hence the number of significant digits at
least correct is given by the largest value of
for which
a 0.5 10 2 m
0.1721 0.5 10 2 m
0.3442 10 2 m
log(0.3442) 2 m
m 2 log(0.3442) 2.463
So
m2
th
The number of significant digits at least
0.10
06241
correct in the estimated root of at the end
of the iteration is 2.