
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A homework assignment from millersville university's department of mathematics for math 375. It includes instructions for approximating derivatives using difference formulas and the method of undetermined coefficients to derive a five-point formula for approximating second derivatives. Students are expected to use the textbook, computer programs, and notes, and all numerical approximations must be accurate to within 10−4.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Millersville University Department of Mathematics MATH 375, Homework 4 October 7, 2003
The completed assignment is due at class time on 10/16/2003. You may use your textbook, computer programs, and notes. All numerical approximations must be accurate to within 10−^4 unless otherwise stated.
(a) f ′(1) using the two-point forward difference formula. (b) f ′(1/2) using the three-point centered difference formula. (c) f ′(3/2) using the five-point centered difference formula. (d) f ′′(− 1 /2) using the three-point formula.
For each of the derivatives approximated above, find the absolute error in the approximation and the maximum theoretical approximation error.
f ′′(x 0 ) ≈ Af (x 0 − 2 h) + Bf (x 0 − h) + Cf (x 0 ) + Df (x 0 + h) + Ef (x 0 + 2h).
We can find a polynomials, P (x), of degrees less than or equal to four which interpolate f (x) at one or more of these five points. Then on the interval [x 0 − 2 h, x 0 + 2h] we have f (x 0 ) ≈ P (x 0 ). Thus f ′′(x 0 ) ≈ P ′′(x 0 ) and P ′′(x 0 ) is easy to find since P (x) is a polynomial of degree four or less. For example, if P (x) = 1 (which is a polynomial of degree less than or equal to four) then we know that
f ′′(x 0 ) ≈ P ′′(x 0 ) = A + B + C + D + E = 0
since f (x 0 + jh) = P (x 0 + jh) for j = − 2 , − 1 , 0 , 1 , 2.
(a) Let P (x) = x and derive a similar equation involving the five unknown coefficients A, B, C, D, E. Do the same thing for P (x) = xn^ for n = 2, 3 , 4. (b) Solve the system of five linear equations for A, B, C, D, E. (c) What is the five-point formula for the approximation to f ′′(x 0 )?