Loading [MathJax]/jax/output/CommonHTML/jax.js

Estimate the error that results from using the Trapezoidal Rule with n=4 and with n=6 to approximate 21exxdx. See Example 2.

A CAS can be used to find f(x).

Solution To estimate the error resulting from approximating 21exxdx using the Trapezoidal Rule, we need to find the absolute maximum value of |f| on the interval [1,2]. We begin by finding f: f(x)=exxf(x)=ddxexx=xexexx2=exxexx2f(x)=ddx(exxexx2)=ddxexxddxexx2=(exxexx2)exx22exxx4=exxexx2exx2+2exx3=ex(1x2x2+2x3)

Since |f| is continuous on the interval [1,2], the Extreme Value Theorem guarantees that |f| has an absolute maximum on [1,2]. We find the absolute maximum of |f| using graphing technology. As seen from Figure 17, the absolute maximum is at the left endpoint 1. The absolute maximum value of f is |e1(11212+213)|=e. So, M=e.

The absolute maximum of |f| on [1,2] is at x=1.

When n=4, the error in using the Trapezoidal Rule is Error(ba)3M12n2=(21)3(e)(12)(42)=e1920.014

That is, 3.0690.01421exxdx3.069+0.0143.05521exxdx3.083

513

When n=6, the error in using the Trapezoidal Rule is Error(ba)3M12n2=(21)3(e)(12)(62)=e4320.006

That is, 3.0630.00621exxdx3.063+0.0063.05721exxdx3.069