Build an integral estimate from samples
The composite trapezoidal rule replaces each segment of the graph with the straight line joining its endpoint samples. It can therefore use measured tables without requiring an antiderivative. The compact weighted formula requires equally spaced nodes. There are n subintervals but n+1 samples. An interior sample belongs to two neighboring trapezoids and receives weight 2, while each endpoint belongs to only one.[1]
Here fi=f(xi), n is a positive integer and a<b. Negative function values retain their signs.[1]
The result estimates a signed integral. For nonnegative speed it approximates distance; for signed velocity it approximates displacement. An unsigned area between a curve and the axis instead requires absolute values or splitting at zeros. Trapezoid geometry explains the weights without changing the sign convention of an integral.[2]
Derive the weights and interpret error
Summing makes every interior sample occur twice. For a linear function the chords coincide with the graph, making the rule exact.[2]
This bound assumes f∈C2[a,b] and a valid upper bound M2. Five samples alone do not provide a certified M2.[1]
For a convex function, the chords lie above the graph, so Tn overestimates the integral; concavity reverses the direction. Under the smoothness assumptions, halving h quarters the stated error bound. This concerns discretization rather than measurement noise or floating-point error. Comparing two approximations can be useful, but their difference is not automatically a guaranteed bound. Simpson’s rule instead uses parabolic pieces and different weights; its higher error order requires additional smoothness.[1]
An exact straight line and a curved function
Linear velocity: exact within the model
- Given
- v(t)=2t+1 m/s on 0≤t≤2 s, using four equal subintervals.
- Find
- Calculate displacement from five samples.
The step is 0.5 s. The samples are 1, 2, 3, 4, 5 m/s.
Combine the weighted samples before multiplying.
Result: Displacement is 6 m.
Check: . A straight line is integrated exactly.
Quadratic graph: a visible overestimate
- Given
- f(x)=x2 on [0,2], n=4; all quantities are dimensionless.
- Find
- Compare the approximation and actual error.
For h=1/2 the samples are 0, 1/4, 1, 9/4, 4.
Compare with the power antiderivative.
Result: T4=2.75 exceeds I by 1/12≈0.08333.
Check: Here f″=2, and the bound 2·(1/2)2·2/12=1/12 is attained.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five samples, four subintervals
The specialized calculator uses exactly five samples over four equal subintervals. Enter a, b and f0 through f4; the x-coordinates follow from the grid spacing. It does not promise a free expression parser, a variable number of subintervals or automatic interpolation of irregular data. Inputs are normalized numbers. In an application, the x-unit times the function-value unit gives the result unit: seconds times metres per second gives metres.[1]
Require a<b. No certified error bound is reported without additional information about the second derivative.[1]
Calculate, check data and diagnose errors
Calculate · Foundation
Approximate the integral of f(x)=x3 on [0,2] with n=4.
Show hint
Use 0, 1/8, 1, 27/8, 8.
Learning goal: Double the interior weights.
Show solution and calculation
.
The exact integral is 4, so the overestimate is 1/4.
Error analysis · Application
Someone uses weights 1,1,1,1,1 and multiplies by h/2. Why is this wrong? Check f=1 on [0,2].
Show hint
A constant function must be exact.
Learning goal: Explain the weights geometrically.
Show solution and calculation
The wrong sum gives 5/4.
Correct weights 1,2,2,2,1 sum to 8, so (1/4)·8=2.
Each interior height belongs to two trapezoids.
Interpret · Foundation
All five samples equal −2 on [0,3]. What does the rule return? Is this a negative unsigned area?
Show hint
Distinguish signed integral from area.
Learning goal: Interpret the sign.
Show solution and calculation
T4=(3/8)·(−16)=−6.
This is the signed integral; the unsigned geometric area is 6.
Transfer · Application
Nodes are 0, 0.2, 0.7, 1.4, 2. May the compact T4 formula be used?
Show hint
Compare the four spacings.
Learning goal: Recognize a grid outside the model.
Show solution and calculation
No: 0.2, 0.5, 0.7, 0.6 differ.
Sum (xi+1−xi)(fi+fi+1)/2 separately.
The single-h calculator does not cover this table.
Calculate · Application
On [0,2], |f″|≤3. Find the guaranteed bound for n=4 and then n=8.
Show hint
Insert h=2/n into the bound.
Learning goal: Calculate the bound and refinement effect.
Show solution and calculation
For n=4: 2·(1/2)2·3/12=1/8=0.125.
For n=8: 2·(1/4)2·3/12=1/32=0.03125.
The bound is quartered.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 1, 2026
- OpenStax Calculus Volume 2, §3.6 Numerical Integration
- TU Clausthal, Mathematik interaktiv: Numerische Integration
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Authored a distinct DE/EN article with model limits, two worked examples and five varied exercises.
Cite this reference page
Quanta. Composite trapezoidal rule. Updated November 1, 2026. https://quanta-study.de/en/formula-sheet/zusammengesetzte-trapezregel
When citing a specific scientific statement, also cite the specialist source linked to that statement.