AP Syllabus focus:
‘Use midpoint Riemann sums and trapezoidal sums, with uniform or nonuniform partitions, to approximate the value of a definite integral numerically.’
Midpoint and trapezoidal approximations provide structured numerical methods for estimating definite integrals when analytic integration is difficult, impossible, or unnecessary, supporting deeper understanding of accumulated change.
Midpoint and Trapezoidal Approximations
Midpoint and trapezoidal methods are two major numerical strategies for approximating definite integrals using Riemann sums. Each method replaces the exact area under a curve with shapes whose areas can be computed more easily. These approaches apply whether an interval is divided into uniform partitions (all subintervals equal width) or nonuniform partitions (varying widths).
Understanding the Purpose of Numerical Integration
Numerical integration is used to approximate the value of when the function is known only through graphs, tables, or difficult expressions. Midpoint and trapezoidal sums interpret accumulation through geometric estimation, connecting rate functions to total change.
Midpoint Riemann Sums
The midpoint Riemann sum estimates the area under a curve by using the height of the function at the midpoint of each subinterval. For each subinterval, the method constructs a rectangle whose width matches the subinterval width and whose height equals the function’s value at the midpoint.

This graph illustrates a midpoint Riemann sum for a function using four subintervals on , with each rectangle’s height determined by the function value at its midpoint. The diagram visually represents how midpoint sampling approximates . The specific function shown, , adds concrete context without introducing concepts beyond the syllabus. Source.
Midpoint Riemann Sum: An approximation technique where each rectangle’s height is determined by the function value at the midpoint of a subinterval.
Because midpoints tend to balance portions where the function is increasing or decreasing, the midpoint method often provides a more accurate estimate than basic left or right Riemann sums.
Choosing Midpoints
Each midpoint must lie strictly inside its subinterval. For uniform partitions, midpoints follow a predictable pattern, while for nonuniform partitions, each midpoint must be identified separately.
Features of the Midpoint Approach
Uses rectangles as approximating shapes.
Height determined at midpoints rather than endpoints.
Often gives improved accuracy for functions with symmetric behavior on subintervals.
Works for both uniform and nonuniform partitions.
Trapezoidal Approximations
The trapezoidal sum replaces the curved region with trapezoids rather than rectangles.

This illustration shows the composite trapezoidal rule applied to approximate . Trapezoids are formed using endpoint function values as parallel sides, demonstrating how the method approximates area across uniform subintervals. The graphic exemplifies the trapezoidal method emphasized in the syllabus. Source.
Trapezoidal Sum: A numerical approximation that models area under a curve using trapezoids whose parallel sides correspond to function values at subinterval endpoints.
This method averages the left and right endpoint heights, producing an estimate that tends to correct overestimates and underestimates common to simple endpoint-based Riemann sums.
Shape Interpretation
Because the top edge of each trapezoid slants between the two endpoint function values, the trapezoidal method more closely follows curves that change gradually across each subinterval.
Features of the Trapezoidal Method
Uses trapezoids instead of rectangles.
Incorporates both left and right endpoint values.
Provides improved accuracy for functions that are approximately linear on subintervals.
Functions smoothly for uniform and nonuniform partitions.
Uniform vs. Nonuniform Partitions in Approximations
Both midpoint and trapezoidal approaches remain valid regardless of partition type. However, the computational structure differs because widths may vary.
Uniform Partitions
In a uniform partition, the interval is divided into subintervals of equal width. This allows consistent use of a single width value and simplifies midpoint identification.
= Width of each subinterval in a uniform partition
Uniform partitions typically streamline approximation because patterns in midpoints and endpoints repeat predictably across subintervals.
Nonuniform Partitions
A nonuniform partition divides the interval into subintervals of different widths. Midpoint and trapezoidal sums must be computed individually for each subinterval:
Each subinterval receives its own width.
Each midpoint must be located accurately.
Function values must be evaluated at each relevant point rather than following a repeated pattern.
Nonuniform partitions are essential when data come from tables or real-world measurements that do not occur at evenly spaced inputs.
Constructing Midpoint and Trapezoidal Approximations
Both methods follow structured processes that guide students toward accurate numerical results.
Midpoint Approximation Process
Partition the interval into subintervals (uniform or nonuniform).
Identify the midpoint of each subinterval.
Evaluate the function at each midpoint.
Multiply each midpoint value by the width of its subinterval.
Add all resulting products to approximate the integral.
Trapezoidal Approximation Process
Partition the interval into subintervals.
Evaluate the function at each endpoint of each subinterval.
For each subinterval, compute the average of the two endpoint values.
Multiply each average by the corresponding subinterval width.
Sum all contributions to estimate the integral.
Accuracy Considerations
Midpoint and trapezoidal approximations reduce but do not eliminate error. Their effectiveness depends on:
The curvature of the function within each subinterval.
Whether subintervals are narrow and numerous.
Whether a function is smooth or changes abruptly.
Midpoint sums often outperform trapezoidal sums for functions with curvature symmetric around midpoints, whereas trapezoidal sums are effective for nearly linear behavior on subintervals.

This paired diagram compares how the trapezoidal rule and midpoint rule approximate . The upper graph uses trapezoids formed from endpoint values, while the lower graph uses rectangles whose heights come from midpoints, highlighting methodological differences. The figure includes commentary on relative accuracy, which extends slightly beyond the AP AB syllabus but reinforces conceptual distinctions discussed in the notes. Source.
FAQ
Although the midpoint rule often performs well, it can be less accurate when the function is highly concave or convex over each subinterval. In such cases, the midpoint height may systematically overshoot or undershoot the actual average value of the function.
The trapezoidal rule, which averages endpoint values, may follow the curve more closely when the function changes direction or bends sharply within an interval.
Nonuniform spacing requires separate width calculations for each subinterval, and this can increase the influence of intervals where the function changes more rapidly.
For midpoint sums, inaccurate midpoint placement on wide intervals can amplify error.
For trapezoidal sums, uneven endpoint spacing may either reduce or increase overestimation depending on local behaviour of the function.
Both methods benefit from more subintervals, but the midpoint rule often improves more rapidly because midpoints better approximate average function behaviour.
However, if the function has abrupt changes or sharp corners, simply increasing subintervals may not fully correct localised errors in either method.
The tendency depends on the function’s shape:
• Midpoint sums usually underestimate for strongly concave-up functions and overestimate for concave-down functions.
• Trapezoidal sums usually overestimate for concave-up functions and underestimate for concave-down functions.
These tendencies assume the function behaves consistently on each subinterval.
When data come from measurements at fixed time points, trapezoidal approximations are often easier and more reliable because midpoints are not directly observed.
The method works naturally with recorded endpoint values and avoids the need to interpolate or estimate missing midpoint data.
Practice Questions
Question 1 (1–3 marks)
A function f is increasing and positive on the interval 2 ≤ x ≤ 6. The interval is divided into four equal subintervals.
(a) State whether the midpoint Riemann sum or the trapezoidal sum is more likely to give the better approximation of the integral from 2 to 6 of f(x).
(b) Give a brief reason for your answer.
Question 1 (1–3 marks)
(a)
• 1 mark: States that the midpoint Riemann sum is likely to give the better approximation.
(b)
• 1 mark: Mentions symmetry or that using midpoints balances overestimates and underestimates for increasing functions.
• 1 mark: Notes that the trapezoidal rule overestimates when the function is increasing (or equivalent correct reasoning).
Total: 3 marks.
Question 2 (4–6 marks)
A function g is defined on the interval 0 ≤ x ≤ 8, and its values at selected points are shown in the table below.
x: 0, 2, 4, 6, 8
g(x): 3, 5, 7, 6, 4
(a) Use the midpoint rule with two subintervals to approximate the integral from 0 to 8 of g(x).
(b) Use the trapezoidal rule with the same partition to approximate the same integral.
(c) Comment on the difference between the two estimates, referring to the behaviour of g on the interval.
Question 2 (4–6 marks)
(a) Midpoint rule (2 subintervals: [0,4] and [4,8])
• 1 mark: Identifies midpoints as x = 2 and x = 6.
• 1 mark: Uses function values g(2) = 5 and g(6) = 6.
• 1 mark: Computes the approximation: (width 4)(5 + 6) = 44.
(b) Trapezoidal rule
• 1 mark: Correct formula structure using endpoints 0, 4, 8.
• 1 mark: Uses g(0) = 3, g(4) = 7, g(8) = 4 with width 4.
• 1 mark: Computes the approximation: 4[(3 + 4)/2 + 7] = 4(3.5 + 7) = 42.
(c)
• 1 mark: Notes that the midpoint rule gives a slightly larger estimate than the trapezoidal rule.
• 1 mark: Explains this by referring to the increase then decrease in g, affecting whether areas are over- or under-estimated.
Total: 6 marks.
