1. You are designing a spherical tank (shown below) to hold water for a small village. The volume
of liquid it can hold can be computed as follows:
3V h2 3R h
where V = volume (m3), h = depth of water in tank (m), and R = the tank radius (m).
If R = 3 m, what depth must the tank be filled to so that it holds 30 m3? Solve the problem
using Newton-Raphson method and determine the approximate relative error after each
iteration until your error is less than 0.1%.
Ans:
(a) Given R=3, V=30, therefore 30 h2 9 h . Rewrite equation and divide by pi gives
30
f ( h) h 3 9h 2 0
f '(h) 3h2 18h
f ( xi )
Recall NR method xi 1 xi
f '( xi )
This question is a bit tricky as it contains 3 solutions. If the initial guess is very close to 0,
one gets negative h = -1.64081, which is not physical. A better guess is h=3, using the radius as
an initial guess. In this case, h = 2.026906. A third solution is h=8.613907 and this can be
obtained by initial guess of 4 or 5.
Six iteration is good enough to get a good converged solution.
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.
MDB3053 NUMERICAL METHODS
TUTORIAL 2 – Suggested Solution by Dr. W Pao
Ans:
At steady state, W Qc kV c 0 . Substitute in the values given
f xi xi 1 xi
Recall Secant formula xi 1 xi . To start, when c = 0, f(c) =1. Use this as
f ( xi 1 ) f ( xi )
initial guess.
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.
MDB3053 NUMERICAL METHODS
TUTORIAL 2 – Suggested Solution by Dr. W Pao
3. Given
f ( x) 2 x6 1.6 x 4 12 x 1
Use bisection to determine the maximum of this function. Employ initial guesses of XL=0,
and XU=1, and perform the iteration until the approximate relative error falls below 5%.
Ans:
Maximum of function of f(x) is when df(x)/dx = 0.
df ( x)
0 12 x5 6.4 x3 12
dx
Using the algorithm for bisection, we can construct the following table:
gm ct
v 1 exp
c m
where g = 9.8 m/s2. (a) For a parachutist with a drag coefficient c=15 kg/s, compute the mass
m so that the velocity v=35 m/s at t= 9 s. Use false-position method to determine m to a level
of error below 0.1%. Use initial guess of 10 and 50.
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.
MDB3053 NUMERICAL METHODS
TUTORIAL 2 – Suggested Solution by Dr. W Pao
(b) Use bisection to determine the drag coefficient needed so that an 80-kg parachutist has a
velocity of 36 m/s after 4 s of free fall. Use intial guesses of XL=0.1 and XU=50, and iterate
until the approximate relative error falls below 2%.
Ans:
(a) Substitute known values into formula
135
f (m) 0 0.6533m 1 exp 35
m
(b)
784 c
F (c ) 0 1 exp 36
c 20
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.
MDB3053 NUMERICAL METHODS
TUTORIAL 2 – Suggested Solution by Dr. W Pao
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.
MDB3053 NUMERICAL METHODS
TUTORIAL 2 – Suggested Solution by Dr. W Pao
5. Determine the real root of x3.5 80 (a) analytically and using MATLAB command, and (b)
with the bisection method to within error = 2.5% and 4 significant figures. Use initial guesses
of 2.0 and 5.0.
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.
MDB3053 NUMERICAL METHODS
TUTORIAL 2 – Suggested Solution by Dr. W Pao
6. Determine the real root of f ( x) 26 85x 91x 2 44 x3 8x 4 x5 (a) graphically using
MATLAB; (b) using false position to determine the root to error below 10-5 %. Use initial
guess of 0.5 and 1.0.
Ans:
Two iteration is required for error to go below 10%. The converged value x = 0.55703
Attempt all tutorial questions before coming to tutorial session. The session is not for you to do your
exercise but to solve problems you encountered.