Professional Documents
Culture Documents
Duration: 75 Minutes
Mark: 40
Exam II
Semester: Spring 2021
Faculty : Science
Department : Math &Computer Science Division/ program: Mathematics
Course Name : Numerical Methods Course Code: Math 348
1. (10 Points) Use the following times, in minutes, and velocities, in m/min,
of a car traveling on a straight road to estimate the distance traveled by
the car between t = 0 to t = 20. Assume that the speed remains constant
at 720 m/min for t >12 minutes. Apply multiple application of Simpson’s
1/3 rule.
t 0 3 6 9 12
s(t) 0 240 420 600 720
2. (14 Points) Given the following data points:
x f(x)
0.5 1
1 1.4
1.5 1.4
2 0.6
Use quadratic splines to find the second order polynomial f 1(x) in the
interval [ 0.5, 1]. Use the derivative of this polynomial to estimate f’(0.6).
3. (10 Points) Given the following data points.
x 1 2 3 5 6 7
f(x) 0 0.7 1.1 1.6 1.8 1.9
5.
6. (8 Points) Use the Composite Simpson’s rule with n = 4 to approximate
the same integral.
2
∫ 𝑥𝑒 𝑥 𝑑𝑥 ; 𝑛 = 4
−2
FORMULAE
Polynomial interpolation
f ( x) = b0 + b1 ( x − x0 ) + b2 ( x − x0 )( x − x1 ) + + bn ( x − x0 )( x − x1 ) ( x − x n −1 )
b0 = f ( x0 )
b1 = f [ x1 , x0 ]
bn = f [ x n , x n −1 ,, x1 , x0 ]
f ( xi ) − f ( x j )
f [ xi , x j ] =
xi − x j
f [ x n , x n −1 , , x1 ] − f [ x n −1 , , x1 , x0 ]
f [ x n , x n −1 , , x1 , x0 ] =
x n − x0
n
f n ( x) = Li ( x) f ( xi )
i =0
n x − xj
Li ( x) =
j =0 xi − x j
j i
Integration
I=
h
f (a) + f (b)
2
n −1
h b−a
I = f ( x 0 ) + 2 f ( xi ) + f ( x n ) h =
2 i =1 n
= f ( x0 ) + 4 f (x1 ) + f (x n )
h
I
3
h n −1 n−2 b−a
I = f ( x 0 ) + 4 f ( xi ) + 2 f ( x j ) + f ( x n ) h=
3 i =1,3,5,... j = 2,4,6,... n
b−a
= f ( x0 ) + 3 f ( x1 ) + 3 f ( x 2 ) + f ( x3 )
3h
I h=
8 3
I (h1 ) − I (h2 )
I = I (h2 ) +
2
h1
1 −
h2
4 1 16 1 64 1
I= I m − Il , I = I m − Il , I = I m − I l ,...
3 3 15 15 63 63
n x c
2 0.5773502692 1.000000000000
− 0.5773502692 1.000000000000
3 0.7745966692 0.555555555556
0.0000000000 0.888888888889
− 0.7745966692 0.555555555556
(b − a )t + b + a b − a
b 1
f ( x)dx = f 2
2
dt
a −1