Take , for which and on . (a) Show that , and so obtain the trapezium rule's error on…
PHYSICS · Subjective · 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
Take ∫0πsinxdx=2, for which ∣f′′∣≤1 and ∣f(4)∣≤1 on [0,π]. (a) Show that ∫x0x0+h(x−x0)(x−x0−h)dx=−h3/6, and so obtain the trapezium rule's error −12h3f′′(ξ) on one panel from the linear interpolation error. (b) Find the smallest number of intervals N for which the trapezium rule's error term guarantees an error below 10−6, and the smallest even N for which Simpson's does. (c) The tolerance is tightened to 10−8. Predict each new N from the power of h in its error term before recomputing it, then compare the number of function evaluations the two rules need.