DEPARTMENT OF COMPUTER SCIENCES
CSC2912 – Numerical Analysis
Tutorial Sheet III
1) Given the three points (𝑥0 , 𝑦0 ), (𝑥1 , 𝑦1 ) and (𝑥2 , 𝑦2 ). Derive a formula for 𝑓’’(𝑥1 ),
where 𝑥0 , 𝑥1 and 𝑥2 are separated by an interval ℎ.
2) Give the following points of the function 𝑓
x 0.0 0.2 0.4 0.6 0.8
f(x) 1.00000 1.49182 2.22554 3.32012 4.95303
3) Approximate
a) 𝑓’(0) 𝑢𝑠𝑖𝑛𝑔 ℎ = 0.2
b) 𝑓’(0) 𝑢𝑠𝑖𝑛𝑔 ℎ = 0.4
c) 𝑓’’(0.4) 𝑢𝑠𝑖𝑛𝑔 ℎ = 0.2
d) 𝑓’’(0.4) 𝑢𝑠𝑖𝑛𝑔 ℎ = 0.4
4) Approximate
0.8
∫ 𝑓(𝑥)𝑑𝑥
0.0
a) Using the
i) trapezoidal rule
ii) Simpson rule
b) Using the composite
i) Trapezoidal rule with 𝑛 = 4
ii) Simpson rule 𝑛 = 2