PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
trapezoidal rule (Definition)

The trapezoidal rule is a method for approximating a definite integral by evaluating the integrand at two points. The formal rule is given by

$\displaystyle \int_{a}^{b}f(x)\,dx\;\approx\;\frac{h}{2}\left[f(a)+f(b)\right] $
where $ h=b-a$.

This rule comes from determining the area of a right trapezoid with bases of lengths $ f(a)$ and $ f(b)$ respectively and a height of length $ h$. When using a graph to illustrate the trapezoidal rule, the height of the right trapezoid is actually horizontal and the bases are vertical. This may be confusing to someone who is seeing the trapezoidal rule for the first time. An example is shown below.


\begin{pspicture}(-2,-1)(2,5) \psline{<->}(-2,0)(2,0) \psline{<->}(0,-0.5)(0,4) ... ...put[a](0.25,-0.3){$h$} \psdots(-1,1)(1.5,2.25) \rput[l](-2,0){.} \end{pspicture}

The figure in red need not be a right trapezoid. If either $ f(a)=0$ or $ f(b)=0$, the figure will be a right triangle. If both $ f(a)=0$ and $ f(b)=0$, the figure will be a line segment. In any case, the same rule for approximating the corresponding definite integral is used.

The trapezoidal rule is the first Newton-Cotes quadrature formula. It has degree of precision 1. This means it is exact for polynomials of degree less than or equal to one. We can see this with a simple example.

If $ f$ is Riemann integrable on $ [a,b]$ with $ \vert f''(x)\vert \le M$ for all $ x \in [a,b]$, then

$\displaystyle \left\vert \int_a^b f(x) \, dx - \frac{h}{2}\left[f(a)+f(b)\right] \right\vert \le \frac{M(b-a)^3}{12}.$

Following is an example of the trapezoidal rule.

Using the fundamental theorem of calculus shows

$\displaystyle \int_{0}^{1}x\,dx =\frac{1}{2}. $

In this case, the trapezoidal rule gives the exact value,

$\displaystyle \int_{0}^{1}x\,dx \;\approx\;\frac{1}{2}[f(0)+f(1)]=\frac{1}{2}. $

It is important to note that most calculus books give the wrong definition of the trapezoidal rule. Typically, they define it to be what is actually the composite trapezoidal rule, which uses the trapezoidal rule on a specified number of subintervals. Some examples of calculus books that define the trapezoidal rule to be what is actually the composite trapezoidal rule are:

  • Stewart, James. Calculus. Pacific Groves, CA: International Thomson Publishing Co., 1995.
  • Bittinger, Marvin L. Calculus. Reading, MA: Addison-Wesley Publishing Co., 1989.

Also note the trapezoidal rule can be derived by integrating a linear interpolation or by using the method of undetermined coefficients. The latter is probably a bit easier.



"trapezoidal rule" is owned by Wkbj79. [ full author list (3) | owner history (4) ]
(view preamble)

View style:

See Also: composite trapezoidal rule

Other names:  trapezoid rule, trapezium rule
Log in to rate this entry.
(view current ratings)

Cross-references: method of undetermined coefficients, linear interpolation, subintervals, composite trapezoidal rule, Calculus, fundamental theorem of calculus, Riemann integrable, polynomials, quadrature, Newton-Cotes, line segment, right triangle, graph, lengths, right trapezoid, area, points, definite integral
There are 6 references to this entry.

This is version 22 of trapezoidal rule, born on 2003-06-02, modified 2007-09-01.
Object id is 4318, canonical name is TrapezoidalRule.
Accessed 29411 times total.

Classification:
AMS MSC41A05 (Approximations and expansions :: Interpolation)
 41A55 (Approximations and expansions :: Approximate quadratures)

Pending Errata and Addenda
None.
[ View all 10 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)