
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

AMSC/CMSC 666 Dr. Wolfe SAMPLE MIDTERM EXAM Spring 2009
〈p, q〉 =
∑^ n
i=
p(xi)q(xi). (1)
(a) Show that (1) defines an inner product on Πn. (b) Πn with the inner product (1) has a ‘natural’ orthonormal basis. Write down this basis.
x − 2 − 1 0 1 2 3 y 1 4 11 16 13 − 4
S 1 (xi) = S 2 (xi) = yi, i = 0, 1 ,... , n, S
′′ j (x^0 ) =^ S
′′ j (xn) = 0,^ j^ = 1,^2.
Let S(x) = S 1 (x) − S 2 (x). (a) Show that S(x) is a natural cubic spline function. (b) Show that S′′(x) has at least n − 1 zeros on (x 0 , xn) and therefore at least n + 1 zeros on [x 0 , xn]. (c) Show that there is an i, 0 ≤ i ≤ n − 1 such that S(x) ≡ 0 on [xi, xi+1]. (d) Show S(x) ≡ 0 on [x 0 , xn] and therefore S 1 (x) ≡ S 2 (x) on [x 0 , xn].
0 e
−x^2 dx with error no more than 10−^6 using the composite trapezoid rule? (neglect roundoff error.)
0 x
ne−xdx = n!, 0! = 1.) (b) Derive the 2 point Gaussian formula ∫ (^) ∞
0
f (x)e−xdx ≈ w 1 f (x 1 ) + w 2 f (x 2 ).
i.e. find the weights and nodes.