Professional Documents
Culture Documents
Q1
(a)
(4 marks)
(b)
Solve the following equation using the separable method and give your
answer in the exponent form,
x y
dy
x2 = x3
dx
(6 marks)
(6 marks)
(c)
(i)
6 y 5 y '6 = 30 x
(ii)
d2y
dy
+ 7y = 4
2
dx
dx
(2 marks)
(d)
y 4 y 5 y = 0
(ii)
d2y
+9 = 0
dx 2
(8 marks)
Find the root(s) of function f ( x ) = x 3 1.7 x 2 + 0.84 x 0.108 that lies in the given
interval [a0 , b0 ] by using Bisection method. Iterate until f (ci ) < = 0.005 :
(a)
(b)
(c)
Q3
Find the root(s) of function f ( x) = x 3 3.5 x 2 + 3.28 x 0.924 that lies in the given
interval [a0 , b0 ] by using Bisection method. Iterate until f (ci ) < = 0.005 :
(a)
(b)
(c)
Q4
Find the root(s) of function f ( x) = 2 x 3 7.4 x + 0.8 that lies in the given interval
[a0 , b0 ] by using Bisection method. Iterate until f (ci ) < = 0.005 :
(a)
(b)
(c)
Q5
Fertilizers/nutrients
Nitrogen (kg)
Phosphate (kg)
Potassium (kg)
Grade A
18
Grade B
20
Grade C
24
Q6
Suppose that a team of three jumpers are connected by bungee cords. They are being
held in place vertically so that each cord is fully extended but unstretched. After they
are released, gravity takes hold and the jumpers will eventually come to the
equilibrium positions. By the assumption that each cord behaves as a linear spring and
following Hookes law, this free-body problem can be formulated as
(k1 + k2 ) x1 k2 x2 = m1 g
k2 x1 + (k2 + k3 ) x2 k3 x3 = m2 g
k3 x2 + k3 x3 = m3 g
where m = the mass of jumper (kg), k = the spring constant for cord (N/m), x = the
displacement of jumper that measured downward from the equilibrium position (m)
and g = gravitational acceleration ( m/s 2 ). Given that the parameter values are
m1 = 60, m2 = 70, m3 = 80, k1 = 50, k2 = 100, k3 = 50 and g = 9.81 m/s 2 .
(a)
(b)
Q7
The arc length of the curve y = f (x) over the interval a x b is given by
Q8
Arc length =
x 2 1
dx
x 2 +1
(a) Approximate the arc length of curve f (x) , in the interval [0, 1] by
using the trapezoidal rule, with a step size of h = 0.1.
(10 marks)
(b) Approximate the arc length of curve f (x) , in the interval [0, 1] by
using the trapezoidal rule, with a step size of h = 0.2.
(5 marks)
(c) Refer to the Table Q8 below, find the value of A and B if the exact
solution is -0.571. What is your conclusion?
Table Q8 : Different step size and absolute error for Trapezoidal Rule
Numerical Method
Absolute Error
(5 marks)
Q9
(a)
Given that,
e 3.5 = 33.115,
and
e 4 = 54.598
Use Newton divided difference method to estimate the value of e 3.1 . Find
the
absolute error for this approximation.
(10 marks)
(b)
Q10
Solve the following initial value problem (IVP) by using 1st Order Taylor series
(Eulers method):
dy
= xy with y (2) = 1 over interval 2 x 5 and h = 0.3 .
dx
(a)
(1 + x 2 )
(b)
( x 2 xy )
dy
= y xy 2 with y (2) = 3 over interval 2 x 3 and h = 0.2 .
dx
(c)
( x2 + y 2 )
dy
= xy with y (1) = 0.584 over interval 1 x 1.5 and h = 0.05 .
dx
(d)
( x + 1) +
dy
= xy with y (0) = 2 over interval 0 x 1 and h = 0.1 .
dx
Answers:
Q1
(a) shown
(b)
3 y 2 = 2 x 3 + 3x 2 + A
(c)
(i) Nonhomogen
(ii) Homogen
(d)
y" 4 y ' 5 y = 0
(i)
Characteristic equation :
m 2 4m 5 = 0
(m + 1)(m - 5)=0
m= -1 @ 5
Hence, general solution : y = Ae x + Be 5 x
(ii)
d2y
+ 9y = 0
dx 2
(iii)
Characteristic equation :
m 2 = 9
m = 3i
Q2
(a)
(b)
(c)
x = 0.18
x = 0.6
x = 0.866
Q3
(a)
(b)
(c)
x = 0.6
x = 0.7
x = 2.2
Q4
(a)
(b)
(c)
x = 0.108
x = 1.867
x = 1.975
Q5
(a)
Form of Ax = b is:
18 20 24 x1 26, 400
4 4 3 x2 = 4,900
5 4 6 x 6, 200
Q6
(b)
(a)
50 x2 + 50 x3 = 784.8
Form of Ax = b is:
150 100 0 x1 588.6
50 50
x3 784.8
Q7
(b)
(a)
30 x1 20 x2 = 19.62
20 x1 + 30 x2 10 x3 = 29.43
10 x2 + 10 x3 = 24.525
20 30 10 x2 = 29.43
0 10 10 x 24.525
(b)
(a)
Q8
(a)
h = 0.1, a = 0, b = 1
f ( xi ) =
xi
f0 or fn
x 2 1
x 2 +1
fi
-1
0.1
-0.98
0.2
-0.923
0.3
-0.835
0.4
-0.724
0.5
-0.6
0.6
-0.471
0.7
-0.342
Row of xi =2m
0.8
-0.22
Row of f i =6m
0.9
-0.105
10
1.0
Total
-1
-5.2
By trapezoidal rule,
x 2 1
0 x 2 +1dx
1
13
(0.1)
f 0 + f n + 2 f i
2
i =1
(0.1)
( 1 + 2(5.2) )
2
1m
= -0.570
(b)
1m
h = 0.2, a = 0, b = 1
xi
f ( xi ) =
x 2 1
x 2 +1
f0 or fn
fi
-1
0.2
-0.923
Row of xi =1m
0.4
-0.724
Row of f i =2m
0.6
-0.471
0.8
-0.22
0
Total
-1
-2.338
By trapezoidal rule,
x 2 1
0 x 2 +1dx
1
6
( 0 .2 )
f
+
f
+
2
fi
0
n
2
i =1
( 0 .2 )
( 1 + 2(2.338) )
2
= -0.568
(c)
(1m)
(1m)
(2m)
(2m)
We can conclude that by using smaller step size (h=0.1) we can produce more accurate
result.
(1m)
Q9 (a)
xi
fi[0]
f i[1]
f i[ 2]
20.086
26.058
16.908
3.5
33.115
42.966
54.598
(1m)
(1m)
(1m)
(1m)
(1m)
(2m)
(1m)
(1m)
xi
1
2
f i[1]
f i[ 2]
0.365
-0.115
1.4
0.146
0.273
1.8
0.255
(1m)
fi[0]
(1m)
(1m)
(1m)
(2m)
(2m)
Q10
(a)
(1 + x 2 )
(1m)
(1m)
dy
= xy with y (2) = 1 over interval 2 x 5 and h = 0.3 .
dx
dy
xy
=
dx 1 + x 2
xy
yi +1 = yi + hf ( xi , yi ) = yi + 0.3 i i 2
1 + xi
Calculator formula: Y + 0.3(( XY ) (1 + X 2 ))
xi
Numerical Solution, yi
2.3
1.12
2.6
1.243
2.9
1.368
3.2
1.494
3.5
1.622
3.8
1.751
4.1
1.880
(b)
4.4
2.010
4.7
2.140
10
2.271
( x 2 xy )
dy
= y xy 2 with y (2) = 3 over interval 2 x 3 and h = 0.2 .
dx
xi
Numerical Solution, yi
2.2
4.5
2.4
6.083
2.6
7.955
2.8
10.204
12.918
(c)
( x2 + y 2 )
dy
= xy with y (1) = 0.584 over interval 1 x 1.5 and h = 0.05 .
dx
dy
xy
= 2
dx x + y 2
xy
yi +1 = yi + hf ( xi , yi ) = yi + 0.05 2 i i 2
xi + yi
Calculator formula: Y + 0.05(( XY ) ( X 2 + Y 2 ))
xi
Numerical Solution, yi
0.584
1.05
0.606
1.1
0.628
1.15
0.650
1.2
0.671
1.25
0.692
1.3
0.713
1.35
0.734
1.4
0.755
1.45
0.776
10
1.5
0.797
(d)
( x + 1) +
dy
= xy with y (0) = 2 over interval 0 x 1 and h = 0.1 .
dx
dy
xy
=
dx x + 1
xy
yi +1 = yi + hf ( xi , yi ) = yi + 0.1 i i
xi + 1
Calculator formula: Y + 0.1(( XY ) ( X + 1))
xi
Numerical Solution, yi
0.1
0.2
2.018
0.3
2.052
0.4
2.099
0.5
2.159
0.6
2.231
0.7
2.315
0.8
2.410
0.9
2.517
10
2.636