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
A simulation returns f(x)=1/(1+25x2) for any x in [−1,1], but each evaluation takes 1s. We need ∫−11fdx with an error below 10−6. On [−1,1], ∣f′′∣≤50 and ∣f(4)∣≤15000, both largest at x=0.
((a)) From the error terms, find how many intervals the trapezium rule and Simpson's rule each need to guarantee the target, and how long each run takes. Which rule would you run?
((b)) A colleague proposes to pass one polynomial of degree ten through eleven equally spaced samples and integrate it exactly, for 11s in all. For these nodes ∣w(x)∣ reaches 8.5×10−3 in the end intervals, and ∣f(11)(x)∣/11! reaches 4.4×107 near x=±0.02. Decide from the interpolation error whether the polynomial can be trusted, and so whether the proposal is safe.
((c)) Make the same decision for g(x)=1/(1+x2), for which ∣g(11)(x)∣/11!≤0.91 on [−1,1], and name the property of the function, not of the nodes, that decides the matter.