[Math] How large should n be to guarantee that the Simpson’s Rule approximation on the Integral (from 0 to 1) 19e^x^2 dx is accurate to within 0.0001

approximationcalculussimpsons rule

I'm very lost on the following problem and will appreciate your help very much.

How large should $n$ be to guarantee that the Simpson's Rule approximation on the $\int_0^1 19e^{x^2} \, dx$ is accurate to within $0.0001$?

Best Answer

A bound on the error in using Simpson's rule with $n$ subintervals to approximate the integral of $f(x)$ over $[a,b]$ is

$$E \leq \frac{(b-a)^5}{180n^4}\max_{a \leq x \leq b}|f^{iv}(x)|.$$

Differentiating $f(x) = 19e^{x^2}$ four times we have for $x \in [0,1]$

$$f^{iv}(x) = 19e^{x^2}(12+48x^2+16x^4) \leq 1444e.$$

We have $E < 0.0001$ if

$$ \frac{(b-a)^5}{180n^4}\max_{a \leq x \leq b}|f^{iv}(x)|= \frac{1444e}{180n^4}< 0.0001,$$

Thus $n \geq 22$ is required.

Related Question