Someone argues: "The truncation error of the central difference is
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics
Mathematical Methods for Physics, Ch Root finding, interpolation, numerical linear algebra and quadrature
Problem
Someone argues: "The truncation error of the central difference D(h)=2hf(x+h)−f(x−h) is 6h2∣f′′′(x)∣, which shrinks as h→0, so a very small step such as h=10−10 must give the most accurate estimate of f′(x)." Take f(x)=cosx at x=2rad, where f(2)=−0.416147 and f′′′(2)=sin2=0.909297, and machine epsilon ϵM=2.2×10−16.
((a)) Find the error in the reasoning by estimating the total error (truncation plus rounding) of D(h) at h=10−10.
((b)) Find the step h∗ that minimises the total error, and the resulting best error, and compare both with part (a).