

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!


CS/Math 3414 Assignment 4 Solution Sketches
′′′(x) + · · ·
and f ′(x) = f^ (x)^ −^ f h^ ( x^ −^ h)− h 2 f ′′(x) + h 2 6 f^
′′′(x) − · · ·
This gives 2 f ′(x) = f^ (x^ +^ h)^ − h f^ (x^ −^ h)+ h
2 3 f^
′′′(x) + · · · If we make f ′(x) ≈ f^ (x^ +^ h)^2 −h^ f^ (x^ −^ h) then the error will be h 62 f ′′′(ξ) or O(h^2 ).
′′′(x) +^2 h^5 5! f^
(5)(x) + · · · S(h) = f (x + h) + f (x − h) = 2 f (x) + h^2 f ′′(x) +^2 h
4 4! f^
(4)(x) + · · · Now, D(2h) = 4 hf ′(x) +^8 h 3 3 f^
′′′(x) +^64 h^5 5! f^
(5)(x) + · · · 2 D(h) = 4 hf ′(x) +^2 h 3 3 f^
′′′(x) +^4 h^5 5! f^
(5)(x) + · · ·
This means, D(2h) − 2 D(h) = 2 h^3 f ′′′(x) +^60 h 5 120 f^
(5)(x) + · · ·
Or,
f ′′′(x) = D(2h) 2 −h 3 2 D(h)− h 2 4 f^
(5)(ξ)
Similarly, we can express the calculations for f (4)(x) in terms of the S function.
S(h) = 2 f (x) + h^2 f ′′(x) + h 4 12 f^
(4)(x) + h^6 360 f^
(6)(x) + · · · 4 S(h) = 8 f (x) + 4h^2 f ′′(x) +^4 h 4 12 f^
(4)(x) +^4 h^6 360 f^
(6)(x) + · · · S(2h) = 2 f (x) + 4h^2 f ′′(x) +^16 h 4 12 f^
(4)(x) +^64 h^6 360 f^
(6)(x) + · · ·
Therefore,
S(2h) − 4 S(h) = − 6 f (x) + h^4 f (4)(x) + h 6 6 f^
(6)(x) + · · ·
Or,
S(2h) − 4 S(h) + 6f (x) = h^4 f (4)(x) + h 6 6 f^
(6)(x) + · · ·
Thus,
f (4)(x) = S(2h)^ −^4 S h( 4 h ) + 6f^ (x)− h
2 6 f^
(6)(ξ)
Both formulas are thus O(h^2 ) but the second has a smaller error term.