You are on page 1of 4

Page 1 / 4

EUROPEAN UNIVERSITY OF LEFKE/FACULTY OF ENGINEERING


MATH 224 (302-305)/ECE 206(323) ENGINEERING MATHEMATICS (NUMERICAL METHODS)
SUMMER SCHOOL 13-14 FINAL EXAM
Date: 18. 08. 2014 Instructor: Prof. Dr. Hüseyin Oğuz
Time: 09:00-11:00
Room#: AS019
Student Registration No:___________________
Student Name-Surname:__________________________________
Important Note: Your own scientific calculator is allowable to use during exam with forbidding of its
exchange.
1. (30 p) The concentration of pollutant bacteria  in a lake decreases according to the following
equation:
 = 75 .
+ 20 .

Determine the time required for the bacteria concentration to be reduced to  using the Newton-
Raphson method with an initial guess of  = 6 and a stopping criterion of 0.5% .
2. (30 p) Use the Gauss-Seidel method to solve the following system to a tolerance of  = 10%. If
necessary, rearrange the equations to achieve convergence (use zero initial guesses):
−3 +  + 12 = 50
6 −  −  = 3
6 + 9 +  = 40
3. (30 p) The following model is used to represent the effect of solar radiation on the photosynthesis
rate of aquatic plants:
# % % )
! = !"  &'(
#$
where
! = ℎ +ℎ,,-./ℎ-0- 12 3454 6 7,
!" = ℎ 420494 +ℎ,,-./ℎ-0- 123454 6 7, # = -,:21 126020,/ 3;<4 -  7, 2/6
#$ = ,+042: -,:21 126020,/ 3;<4 -  7
Use Least-square method with transformation of the model given above to evaluate !" 2/6 #$ based
on the following data:

I 50 80 130 200 250 350 450 550 700


P 99 177 202 248 229 219 173 142 72
4. (30 p) The function =37 = 2 .
>
can be used to generate the following table of unequally spaced
data:
x 0 0.05 0.15 0.25 0.35 0.475 0.6
f(x) 2 1.8555 1.5970 1.3746 1.1831 0.9808 0.8131
Evaluate the integral from 2 = 0 , ? = 0.6 using
a) analytical means,
b) combination of the trapezoidal and Simpson’s rules (single or wherever possible as composite) to
attain the highest accuracy,
c) Compute the percent absolute relative true error.
A3> 7 E ∑H > G ∑H > ∑H G
Recall: @) = @ − AC3>B 7 ; 2 = BIJH B B K BIJH B BIJK B ; 2 = .N − 2 ̅
B E ∑BIJ >B L∑BIJ >B M
=3 7 + 2 ∑E
@Q =3@ 7 + =3E 7
# ≅ 3? − 27 ; R,4+,-0 S12+T,062: U9:
2/
ℎ =3 7 + 4=3 7 + =3 7
#≅ V=3 7 + 4=3 7 + =3 7W = 3? − 27 ; -0/5: X04+-,/Y - 1⁄3 U9:
3 6
3ℎ
#≅ V=3 7 + 3=3 7 + 3=3 7 + =3 7W
8
=3 7 + 3=3 7 + 3=3 7 + =3 7
= 3? − 27 ; -0/5: X04+-,/Y - 3⁄8 U9:
8
Prof.Dr. Hüseyin Oğuz MATH224 SumSchoolFinalExam-18-08-14
Page 2 / 4
MATH 302 NUMERICAL METHODS SUMMER SCHOOL (13-14) FINAL EXAM SOLUTIONS
Date: 18. 08. 2014 Instructor: Prof. Dr. Hüseyin Oğuz

1. This problem can be solved by determining the root of the following equation:

=37 = 75 .


+ 20 .
− 15 = 0
=0
= Y 37 = −112.5 .
− 1.5 .

=3@ 7
@) = @ − Y
= 3@ 7

Applying Newton-Raphson formula given above gives with the initial guess of  = 6
Iteration 1:
=3 7 75 .
3\7 + 20 .
3\7 − 15 −2.23818
 =  − = 6 − = 6 − = 3.693383
= Y 3 7 −112.5 .
3\7 − 1.5 .
3\7 −0.97033
3.693383 − 6
∈$ = ^ ^ × 100 = 62.45% ≫ 0.5%
3.693383
Iteration 2:
=3 7 75 .
3.\ab7 + 20 .
3.\ab7 − 15 0.455501
 =  − Y = 3.693383 − = 3.693383 −
= 3 7 −112.5 .
3.\ab7 − 1.5 .
3.\ab7 −1.57878
= 3.981898
3.981898 − 3.693383
∈$ = ^ ^ × 100 = 7.25% > 0.5%
3.981898
Iteration 3:
=3 7 75 .
3.abbab7 + 20 .
3.abbab7 − 15 0.02752
 =  − Y = 3.981898 − = 3.981898 −
= 3 7 −112.5 .
3.abbab7 − 1.5 .
3.abbab7 −1.39927
= 4.001565
4.001565 − 3.981898
∈$ = ^ ^ × 100 = 0.49% < 0.5%
4.001565
After three iterations, an accurate root determination (with at least 2 significant digits) can be obtained in
a few iterations (only 3 iterations) as follows

U,,  = 4.002

2. The equations should first be rearranged so that they are diagonally dominant as follows:
6 −  −  = 3
6 + 9 +  = 40
−3 +  + 12 = 50
Iteration 0 (Initial Values):
 = 0;  = 0;  = 0

3 +  +  3 + 0 + 0
Iteration 1:
 = = = 0.5;
6 6
40 − 6 −  40 − 630.57 − 0
 = = = 4.11111
9 9
Prof.Dr. Hüseyin Oğuz MATH224 SumSchoolFinalExam-18-08-14
Page 3 / 4
50 + 3 −  50 + 330.57 − 4.11111
 = = = 3.949074
12 12
The absolute relative approximate error as percentages can be computed as follows:
0.5 − 0
$, = ^ ^ × 100 = 100%
0.5
4.11111 − 0
$, = ^ ^ × 100 = 100%
4.11111
3.949074 − 0
$, = ^ ^ × 100 = 100%
3.949074

3 +  +  3 + 4.11111 + 3.949074
Iteration 2:
 = = = 1.843364;
6 6
40 − 6 −  40 − 631.8433647 − 3.949074
 = = = 2.776749
9 9
50 + 3 −  50 + 331.8433647 − 2.776749
 = = = 4.396112
12 12
1.843364 − 0.5
$, = ^ ^ × 100 = 72.88% 34204947
1.843364
2.776749 − 4.11111
$, = ^ ^ × 100 = 48.05%
2.776749
4.396112 − 3.949074
$, = ^ ^ × 100 = 10.17%
4.396112

3 +  +  3 + 2.776749 + 4.396112
Iteration 3:
 = = = 1.695477;
6 6
40 − 6 −  40 − 631.6954777 − 4.396112
 = = = 2.82567
9 9
50 + 3 −  50 + 331.6954777 − 2.82567
 = = = 4.355063
12 12
1.695477 − 1.843364
$, = ^ ^ × 100 = 8.72% 34204947 < 10%
1.695477
2.82567 − 2.776749
$, = ^ ^ × 100 = 1.73%
2.82567
4.355063 − 4.396112
$, = ^ ^ × 100 = 0.94%
4.355063
The solution vector is:
 1.695477

e  f = e 2.82567 f
 4.355063
3. Employing exponential model given requires transformation (linearization) of it to use least-square
method as follows:

g J
%  ) i l m%) i 
! = !" %  = h% j k # g&'(
g&'( → ln ! = ln h% j k + ln # + h− % k # + 1 →
&'( &'( &'( &'(
! !" 1
qln l m − 1r = ln l m + l− m # → .@ = 2 + 2 # 3:0/210T6/12/-=,146 =,147
# #$ #$

Prof.Dr. Hüseyin Oğuz MATH224 SumSchoolFinalExam-18-08-14


Page 4 / 4
Apply Least-Square method for the transformed form of exponential model to find regression coefficients as
follows:
/ ∑E@Q #@ .@ − ∑E@Q #@ ∑E@Q .@
2 =
/ ∑E@Q #@ − 3∑E@Q #@ 7
2 = T̅ − 2 ̅
Table. Summations of data to calculate coefficients of the linearized model:
t ut vt v u t wt ut z
wt = xy l m − 
u t
1 50 99 -0.3169 -15.845 2500
2 80 177 -0.2059 -16.472 6400
3 130 202 -0.5593 -72.709 16900
4 200 248 -0.7849 -156.98 40000
5 250 229 -1.0877 -271.925 62500
6 350 219 -1.4689 -514.115 122500
7 450 173 -1.9560 -880.2 202500
8 550 142 -2.3541 -1294.755 302500
9 700 72 -3.2744 -2292.08 490000
{ 2760 -12.0081 -5515.081 1245800
By substituting the corresponding values at the bottom of the table to the least square equations given above,
we have:
93−5515.0817 − 3276073−12.00817 1 1
2 = = −4.58810 
= l− m → # = = 217.96
9312458007 − 327607 #$ $
4.58810

−12.0081 2760 !" !"


2 = l m − 3−4.58810 7 l m = 0.07275 = ln l m → =  $| =  .
= 1.07546
9 9 #$ #$
!" = 1.07546#$ = 1.075463217.967 = 234.41
Exponential model to fit the data:

# %
! = 234.41  .a\)
217.96
4. a) Analytically (use chain rule):
.\
2 .
> .\ 2
} 32 .
> 7 6 == q  r = −0.54209 − l m = 0.79124
−1.5  −1.5


b) Applying combination of Trapezoidal and Simpson’s Rules (single trapezoidal+ single Simpson’s 3/8
Rule+ Single Simpson’s 1/3 Rule) as follows:
2 + 1.8555 1.855 + 331.5970 + 1.37467 + 1.1831
# ≅ 30.05 − 07 + 30.35 − 0.057 +
2 8
1.1831 + 430.98087 + 0.8131
30.6 − 0.357 = 0.79126
6

S19 ~2:9 − ++1,042 ~2:9 0.79124 − 0.79126


c)
 = ^ ^ 100 = ^ ^ 100 = 0.0025%
S19 ~2:9 0.79124

Prof.Dr. Hüseyin Oğuz MATH224 SumSchoolFinalExam-18-08-14

You might also like