Approximate accumulation without hiding its error
How do left rectangles, midpoint rectangles and trapezoids differ?
Entering midway? An integral accumulates small contributions. A numerical rule replaces each curved piece with a simpler area.
Start with a concrete question
Integrate x² from zero to a selected endpoint using at most sixteen pieces and compare against the exact integral.
Try the initial inputs, then write a prediction before changing one setting. All calculations run locally on your CPU.
Go directly to the experiment · Review prerequisite mathematics and return here
What do you expect?
Which rule underestimates an increasing convex curve, and which overestimates it?
Change one thing. Inspect what happens.
- Compare the three rules with two pieces on [0,2].
- Double piece count while holding the rule fixed; compare signed errors.
- Inspect each polygon contribution and sum it independently.
- Set endpoint zero, then explain why improving this arithmetic does not validate an empirical model.
Your settingsMechanism
Calculation belowEvidence
Compare outcomes
Quadrature pieces under a fixed curve
Horizontal: x. Vertical: x².
- 1. Exact curve (solid line)
- 2. Piece 1 (dashed line)
- 3. Piece 2 (dashed line)
- 4. Piece 3 (dashed line)
- 5. Piece 4 (dashed line)
Axes use the displayed ranges.
Read plotted values as a table
| Series | x | x² |
|---|---|---|
| Exact curve | 0 | 0 |
| Exact curve | 0.03333 | 0.001111 |
| Exact curve | 0.06667 | 0.004444 |
| Exact curve | 0.1 | 0.01 |
| Exact curve | 0.1333 | 0.01778 |
| Exact curve | 0.1667 | 0.02778 |
| Exact curve | 0.2 | 0.04 |
| Exact curve | 0.2333 | 0.05444 |
| Exact curve | 0.2667 | 0.07111 |
| Exact curve | 0.3 | 0.09 |
| Exact curve | 0.3333 | 0.1111 |
| Exact curve | 0.3667 | 0.1344 |
| Exact curve | 0.4 | 0.16 |
| Exact curve | 0.4333 | 0.1878 |
| Exact curve | 0.4667 | 0.2178 |
| Exact curve | 0.5 | 0.25 |
| Exact curve | 0.5333 | 0.2844 |
| Exact curve | 0.5667 | 0.3211 |
| Exact curve | 0.6 | 0.36 |
| Exact curve | 0.6333 | 0.4011 |
| Exact curve | 0.6667 | 0.4444 |
| Exact curve | 0.7 | 0.49 |
| Exact curve | 0.7333 | 0.5378 |
| Exact curve | 0.7667 | 0.5878 |
| Exact curve | 0.8 | 0.64 |
| Exact curve | 0.8333 | 0.6944 |
| Exact curve | 0.8667 | 0.7511 |
| Exact curve | 0.9 | 0.81 |
| Exact curve | 0.9333 | 0.8711 |
| Exact curve | 0.9667 | 0.9344 |
| Exact curve | 1 | 1 |
| Exact curve | 1.033 | 1.068 |
| Exact curve | 1.067 | 1.138 |
| Exact curve | 1.1 | 1.21 |
| Exact curve | 1.133 | 1.284 |
| Exact curve | 1.167 | 1.361 |
| Exact curve | 1.2 | 1.44 |
| Exact curve | 1.233 | 1.521 |
| Exact curve | 1.267 | 1.604 |
| Exact curve | 1.3 | 1.69 |
| Exact curve | 1.333 | 1.778 |
| Exact curve | 1.367 | 1.868 |
| Exact curve | 1.4 | 1.96 |
| Exact curve | 1.433 | 2.054 |
| Exact curve | 1.467 | 2.151 |
| Exact curve | 1.5 | 2.25 |
| Exact curve | 1.533 | 2.351 |
| Exact curve | 1.567 | 2.454 |
| Exact curve | 1.6 | 2.56 |
| Exact curve | 1.633 | 2.668 |
| Exact curve | 1.667 | 2.778 |
| Exact curve | 1.7 | 2.89 |
| Exact curve | 1.733 | 3.004 |
| Exact curve | 1.767 | 3.121 |
| Exact curve | 1.8 | 3.24 |
| Exact curve | 1.833 | 3.361 |
| Exact curve | 1.867 | 3.484 |
| Exact curve | 1.9 | 3.61 |
| Exact curve | 1.933 | 3.738 |
| Exact curve | 1.967 | 3.868 |
| Exact curve | 2 | 4 |
| Exact curve | 2.033 | 4.134 |
| Exact curve | 2.067 | 4.271 |
| Exact curve | 2.1 | 4.41 |
| Exact curve | 2.133 | 4.551 |
| Exact curve | 2.167 | 4.694 |
| Exact curve | 2.2 | 4.84 |
| Exact curve | 2.233 | 4.988 |
| Exact curve | 2.267 | 5.138 |
| Exact curve | 2.3 | 5.29 |
| Exact curve | 2.333 | 5.444 |
| Exact curve | 2.367 | 5.601 |
| Exact curve | 2.4 | 5.76 |
| Exact curve | 2.433 | 5.921 |
| Exact curve | 2.467 | 6.084 |
| Exact curve | 2.5 | 6.25 |
| Exact curve | 2.533 | 6.418 |
| Exact curve | 2.567 | 6.588 |
| Exact curve | 2.6 | 6.76 |
| Exact curve | 2.633 | 6.934 |
| Exact curve | 2.667 | 7.111 |
| Exact curve | 2.7 | 7.29 |
| Exact curve | 2.733 | 7.471 |
| Exact curve | 2.767 | 7.654 |
| Exact curve | 2.8 | 7.84 |
| Exact curve | 2.833 | 8.028 |
| Exact curve | 2.867 | 8.218 |
| Exact curve | 2.9 | 8.41 |
| Exact curve | 2.933 | 8.604 |
| Exact curve | 2.967 | 8.801 |
| Exact curve | 3 | 9 |
| Piece 1 | 0 | 0 |
| Piece 1 | 0 | 0 |
| Piece 1 | 0.5 | 0 |
| Piece 1 | 0.5 | 0 |
| Piece 2 | 0.5 | 0 |
| Piece 2 | 0.5 | 0.25 |
| Piece 2 | 1 | 0.25 |
| Piece 2 | 1 | 0 |
| Piece 3 | 1 | 0 |
| Piece 3 | 1 | 1 |
| Piece 3 | 1.5 | 1 |
| Piece 3 | 1.5 | 0 |
| Piece 4 | 1.5 | 0 |
| Piece 4 | 1.5 | 2.25 |
| Piece 4 | 2 | 2.25 |
| Piece 4 | 2 | 0 |
Follow the calculation
- Piece 1: [0.00000,0.50000], width 0.50000, left endpoint height 0.00000, contribution 0.00000.
- Piece 2: [0.50000,1.00000], width 0.50000, left endpoint height 0.25000, contribution 0.12500.
- Piece 3: [1.00000,1.50000], width 0.50000, left endpoint height 1.00000, contribution 0.50000.
- Piece 4: [1.50000,2.00000], width 0.50000, left endpoint height 2.25000, contribution 1.12500.
- Exact ∫₀^2 x² dx = 2³/3 = 2.66667; numerical−exact = -0.91667.
Finer pieces reduce this discretization error. That does not test whether x² is a good model of any measured process.
Captures keep your inputs, prediction and observation. Results are recalculated from those inputs. Resetting inputs keeps your captures and challenge history.
Explain the mechanism
Start with the meaning
An integral accumulates small contributions. A numerical rule replaces each curved piece with a simpler area.
Integrate x² from zero to a selected endpoint using at most sixteen pieces and compare against the exact integral.
A worked explanation
A left rectangle uses the function at the interval start. A midpoint rectangle samples its middle. A trapezoid averages endpoint heights.
On [0,2] with two pieces, left rectangles give 1, midpoint rectangles 0.25+2.25=2.5, and trapezoids 0.5+2.5=3. The exact integral is 8/3≈2.6667.
For this smooth curve, refinement reduces discretization error. Model error is separate: a perfectly integrated wrong curve can still give a wrong real-world prediction.
Symbols and relationship
h=(b−a)/n. Left: hΣf(left); midpoint: hΣf(mid); trapezoid: hΣ(f(left)+f(right))/2. Exact ∫₀ᵇx²dx=b³/3.
Use the graph and trace together
The graph and calculations use your current inputs. Read axis labels and units before comparing positions or slopes. Change one input, predict the effect, and use the numerical trace to verify the plotted behavior. A displayed curve is an illustration; the formula and its assumptions determine which conclusions are justified.
Scope and edge cases
- A smooth quadratic integrand and equal widths; no claim about discontinuities or singular integrals.
- All polygons share fixed axes; increasing pieces changes numerical work, not the underlying model.
Try a fresh case
Use two midpoint rectangles to integrate x² from 0 to 4. What is the approximation?
This is a public practice check. Retries support learning; matching a number does not certify independent proficiency.
Take the investigation further
Choose any extension. These are project prompts for you to carry out; they are not automatically assessed.
School investigation
Draw and add the approximation pieces.
College investigation
Derive the error order and test a nonsmooth counterexample.
Workplace investigation
Specify a numerical tolerance and separately document uncertainty in the modeled rate.
Keep the evidence, choose your next step
Completion records your own decision that you have worked through this investigation. Practice checks and independent project evidence are separate.