Professional Documents
Culture Documents
Time, t 0 4 8 12 16 20 24
Velocity, v 13.2 25.4 30.1 31.8 32.2 32.9 32.89
7 4 9 0 5 2
Time, t 28 32 36 40 44 48
Velocity, v 32.2 31.1 29.7 30.3 28.0 29.94
4 6 4 8 6
Find the distance, d , traveled by the particle at the second half of the
journey by using Trapezoidal’s rule.
(7 marks)
Q2 Given
1 0 2
A 0 4 1 .
0 2 0
Use the power method to determine the dominant eigenvalue and its
corresponding eigenvector for the matrix A above. Start with initial vector
v (0) (1 1 0)T .
(7 marks)
Q3 (a) Given the ordinary differential equation with initial condition as follow
y y 4e3 x , y (0) 1 .
Find numerical solutions to the initial value problem using the second
order Taylor series method over interval 0, 1 with step size x 0.25
and find the percentage error of the numerical solutions, if the exact
solution is of the form y ( x ) e3 x .
(7 marks)
(b) Find numerical solutions to the following differential equation with initial
condition,
y x(1 y ) , y (0) 0
TOTAL MARKS: 40
-----------------------------------------------------------------------------------------------------------
-
Formulae
f ( x h) f ( x h)
3-point central difference: f ( x)
2h
f ( x 2h) 8 f ( x h) 8 f ( x h) f ( x 2h)
5-point difference: f ( x)
12h
h n 1
b
Trapezoidal rule: a f ( x ) dx
2
f 0 f n 2
i 1
f i
1
Power Method: v ( k +1) Av ( k ) , k 0,1, 2,.....
mk +1
h2
Second order Taylor series method: y ( xi 1 ) y ( xi ) hy ( xi ) y ( xi ) , i 0,1, 2,K
2!
Answer Scheme:
Question Scheme Marks
x
Q1 – M1
2.2
–
2.1
– M1A1
2.0
–
1.9 M1A1
–
1.8
M1
f (x)
–
2.04
8 M1A1
–
0.96 A1
1
0 A1
0.84
1
1.56
8 M2A2
(table)
M1A1
(a) (i) 3 – point central difference formula,
f ( − 1.9) − f ( − 2.1)
f ′( − 2) ≈ ≈ 9.010
0.2
5 – point difference formula,
− f ( −1.8 ) + 8 f ( −1.9 ) − 8 f ( −2.1) + f ( −2.2 )
f ′ ( −2 ) ≈ ≈ 9.000
1.2
x
–
1.2
–
1.1
–
1.0
–
0.9
–
0.8
f(x)
3
.87
2
3
.96
9
4
.00
0
3
.97
1
3
.88
8
3
2
.
2
4
3
1
.
1
6
2
9
.
TOTAL 16
k
Q2 v ( k )
T M1(all)
T
A v ( k )
mk 1
A3
0
1
1
0
-1 M1
4
-2 A2
4
1
-
0.2
5
1
-0.5
-0
.7
5
3.
5
-2
3.
5
2
-
0.2
14
1
-0.57
1
-0
.9
28
3.
42
9
-2
3.
42
9
3
TOTAL 7
Q3 (a) y (0) 1 x0 0, y0 1 ,
y ' y 4e3 x yi' f ( xi , yi ) 4e3 xi yi M1
3 xi
and yi'' 12e yi'
(0.25) 2
yi 1 yi 0.25(4e3 xi yi ) (12e3 xi 4e3 xi yi ) M1
2
(0.25) 2
yi 0.25(4e3 xi yi ) (8e3 xi yi )
2
M1(all)
A4
M1
M1(all)
M2
A6
i
xi
N
u
m
eri
ca
l
So
lut
io
ns
,
yi
Ex
ac
t
So
lut
io
ns
Pe
rc
en
ta
ge
Er
ro
r
0
0.
0
1.
0
1
0.
0
%
1
0.
25
2.
03
1
2.
11
7
TOTAL 17