Numerical Integration (AI HL)
The trapezoidal rule estimates the area under a curve by splitting the interval into strips of equal width and treating each strip as a trapezium. Add the trapezium areas: the first and last -values count once and every middle -value counts twice. It works from a function or a table of values. It's part of the broader Numerical Methods topic.
18 questions on this sub-topic.
Syllabus
| Code | Syllabus content |
|---|---|
| SL5.8 | Approximating areas using the trapezoidal rule. Given a table of data or a function, make an estimate for the value of an area using the trapezoidal rule, with intervals of equal width. |
Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).
Skills practised on this page:
- Estimate the area under a curve using the trapezoidal rule given a table of values.
The trapezoidal rule
The rule is given in the formula booklet, so you don't need to memorise it - you need to build the ordinates correctly and substitute them in the right places.
General rule (n strips)
where is the strip width and are the function values at each of the equally spaced x-values.
Over- or under-estimate?
Concave up over-estimate.
Concave down under-estimate.
The straight-line tops of the trapezia sit above a curve that bulges downward (concave up), and below a curve that bulges upward (concave down) - so the estimate leans the same way each time.
Need the wider numerical-methods picture, including your GDC's built-in solvers? See Numerical Methods.
Key terms
What is the strip width h?
The width is the length of the interval divided by the number of intervals , so . Every strip has the same width.
e.g. From to with intervals, .
What are the ordinates?
The ordinates are the -values at the edges of the strips, written . With intervals there are ordinates.
e.g. With intervals on , the five ordinates come from .
How do you use the rule with a table of values?
Check that the -values are equally spaced, take as that spacing, and put the -values into the rule.
e.g. For and , and the area is about .
Why does the trapezoidal rule only give an estimate?
The tops of the trapezia are straight lines, but the curve bends, so the area of the strips differs from the true area. More strips make the gap smaller.
e.g. For on with intervals the rule gives , but the exact area is .
Worked examples
(a) Estimate using the trapezoidal rule with 2 intervals.
(b) State whether your estimate is an over-estimate or an under-estimate of the exact value, giving a reason.
Worked solution
(a) ; gives M1
M1
giving A1
(b) Exact ; estimate is an over-estimate (concave up). A1On the GDC. Trapezoidal rule estimate with step 1 for x squared from 0 to 2 The calculator shows about 3. The calculator steps below are for (a).
Estimate using the trapezoidal rule with 4 intervals.
Worked solution
; values of : ; M1
A1
A1
Use your GDC to solve for the larger positive root, to 3 s.f.
Worked solution
Graph and M1
Intersections near A1
and A1
An iteration converges to a root if
(a) State this condition in words.
(b) For , find and state whether the iteration converges for a starting value other than
Worked solution
(a) converges if A1
(b) M1 so the iteration diverges for any starting value other than A1
Common mistakes
- Doubling the wrong ordinates. Only the interior y-values through get doubled - the two end values and are each counted once. Doubling everything (or nothing) is the single most common slip.
- Using the wrong number of strips. "4 intervals" means 5 ordinates , not 4. Miscounting here throws off both and the sum.
- Not commenting on over/under-estimate when asked. If a question asks whether the estimate is too high or too low, you need the shape of the curve (concave up or down) over that interval, not just the numerical answer.
Using your GDC
Every step below is a real button sequence, not a vague "use your calculator" hint - covering the TI-84 Plus, TI-Nspire, and Casio fx-9860/fx-CG50. Pick your model to filter down to just the steps that apply to you.
Faster and safer than algebra for messy equations - and essential in AI, where many equations can't be solved by hand. The trick is getting all solutions, not just one.
- Graph first so you can see how many solutions exist and roughly where they are.
- Rearrange so everything is on one side: - or graph both sides as separate functions and find intersections.
- MATH → Solver: enter the expression, type a starting guess close to one root, press ALPHA + ENTER. Move the guess to near a different root and repeat for each solution.TI-84
- Type nSolve(f(x)=0, x, guess) - include a guess or interval e.g. nSolve(f(x)=0, x, 2) or nSolve(f(x)=0, x, {1,5}) to target a specific root.Nspire
- Run-Matrix → SolveN(f(x), x) returns all real roots at once; or use the Equation app for a visual approach.Casio
- For transcendental equations (e.g. ), graph both sides, count crossings, then use the intersection tool for each one.
- Always verify each solution by substituting back into the original equation.
Tip: The solver finds ONE root near your starting guess - change the guess to find others. The graph shows you how many to expect.
See the full GDC guide for more calculator models and topics.
Quick questions
What is the trapezoidal rule used for?
It estimates the area under a curve (a definite integral) by splitting the region into equal-width strips and treating each strip as a trapezium: .
Does the trapezoidal rule over-estimate or under-estimate the true area?
It over-estimates when the curve is concave up and under-estimates when the curve is concave down, because the straight-line tops of the trapezia sit on the outside or inside of the curve accordingly.
Why are the middle y-values doubled?
Each middle ordinate is the edge of two neighbouring trapezia, so it appears in two area calculations. The first and last ordinates belong to only one trapezium each, so they are counted once.
Does using more intervals improve the estimate?
Generally yes, because the straight tops follow the curve more closely. For , intervals give and intervals give , getting closer to the exact value .
How do I apply the rule when I am given a function, not a table?
Choose equally spaced -values, substitute each into the function to get the ordinates, then use the rule. For on with intervals, the ordinates are and the estimate is .
Ready to practise properly?
18 numerical-integration questions, marked instantly like the real exam.