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πsin⁡x dx=2\int_0^{\pi}\sin x\,\mathrm{d}x = 2, for which ∣f′′∣≤1|f''| \le 1 and ∣f(4)∣≤1|f^{(4)}| \le 1 on [0,π][0,\pi]. (a) Show that ∫x0x0+h(x−x0)(x−x0−h) dx=−h3/6\int_{x_0}^{x_0+h}(x-x_0)(x-x_0-h)\,\mathrm{d}x = -h^3/6, and so obtain the trapezium rule's error −h312f′′(ξ)-\tfrac{h^3}{12}f''(\xi) on one panel from the linear interpolation error. (b) Find the smallest number of intervals NN for which the trapezium rule's error term guarantees an error below 10−610^{-6}, and the smallest even NN for which Simpson's does. (c) The tolerance is tightened to 10−810^{-8}. Predict each new NN from the power of hh in its error term before recomputing it, then compare the number of function evaluations the two rules need.

Browse the problem library