
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!

EXTRA HW ASSIGNMENT 4 (Not to be collected)
(a) linear interpolation is used? (b) quadratic interpolation is used? (c) cubic interpolation is used?
(a) Use Taylor’s theorem to derive the discretization-error formula for the centered second-derivative approximation; namely,
e( h^2 )f = f ′′(x) − D( h^2 )f = −
h^2 12
f (^4 )(ξ)
(b) For f (x) = ex^ at x = 2, complete the following table, and show that the error diminishes in each column at the expected rate: h Dh+ f eh+ f Dh− f eh− f Dh f eh f 1 / 4 1 / 8 1 / 16 1 / 32
(a) Consider the definite elliptic integral Z (^) π/ 4
0
1 − 2 sin^2 xdx
which cannot be integrated exactly. Complete the following table. xi f (xi) WL WR WT WS 0 1 π/ 16 2 π/ 16 3 π/ 16 4 π/ 16 Use the table to compute estimates L(h), R(h), T (h), S(h), and M( 2 h) for h = π/16. Verify that S(h) = ( 2 T (h) + M( 2 h))/3. Which estimate is probably the most accurate and why? What could you do to improve accuracy if necessary? (b) Show that
R (^) x 2 x 0 L^1 (x)dx^ =^4 h/3, where^ L^1 is the quadratic Lagrange function whose value is 1 at x 1.