TutorChase logo
Login
AP Calculus AB study notes

6.3.3 Writing a Riemann Sum for a Given Integral

AP Syllabus focus:
‘Translate a definite integral into an equivalent limit of a related Riemann sum, identifying the partition, sample points, and expression being summed.’

Writing a Riemann sum for a definite integral connects geometric accumulation with algebraic structure, allowing students to express integrals as limits based on partitions and sample-point products.

Writing a Riemann Sum for a Given Integral

This subsubtopic centers on translating the notation of a definite integral into the structure of a Riemann sum, which expresses accumulated area as the limit of products of function values and subinterval widths. AP Calculus AB students must understand how to identify the interval, construct partitions, choose sample points, and form the summation that represents the integral’s limiting behavior.

Understanding the Structure of a Definite Integral

A definite integral abf(x),dx \int_a^b f(x),dx represents accumulated change or net area over the interval [a,b][a, b]. To rewrite this integral as a Riemann sum, each component of the integral must correspond to a feature of the sum: the endpoints become the domain of partitioning, the integrand becomes the sampled function, and the differential dxdx becomes a subinterval width.
Image: insert image from

Partition of the interval [a,b][a,b][a,b] into subintervals [x0,x1],[x1,x2],…,[x4,x5] [x_0,x_1], [x_1,x_2], \dots, [x_4,x_5][x0​,x1​],[x1​,x2​],…,[x4​,x5​] under a curve y=f(x)y = f(x)y=f(x). The shaded strips illustrate the subdivision of the interval before forming a Riemann sum. This image focuses on the partition itself rather than the rectangle heights used in subsequent steps. Source.

Key Components Required for Translation

To express an integral as a Riemann sum, identify the following elements:

  • Interval of integration: The closed interval [a,b][a, b] over which accumulation occurs.

  • Partition of the interval: A division of [a,b][a, b] into nn subintervals, each with width Δx \Delta x .

  • Sample points: Chosen points within each subinterval, typically left endpoints, right endpoints, or midpoints, though any interior point is valid.

  • Summand expression: A product that approximates area, formed as f(sample point)Δxf(\text{sample point})\cdot \Delta x.

  • Limit as nn \to \infty: Ensures the approximation becomes exact.

These elements allow students to match the symbolic integral to its corresponding limit-based form.

Partitioning the Interval

To prepare a Riemann sum, divide the interval [a,b][a, b] into nn subintervals. The width of each subinterval is constant for uniform partitions and is defined using the formula in the equation block below.

Δx=ban \Delta x = \frac{b - a}{n}
Δx \Delta x = Width of each subinterval (units of the independent variable)
n n = Number of subintervals
a,b a, b = Lower and upper bounds of the integral

This width determines how the sample points are located and dictates the spacing of function evaluations within the Riemann sum.

A non-equation sentence follows naturally here, emphasizing that defining Δx\Delta x is essential because it directly links the original integral to each term in the summation.

Choosing Sample Points

Selecting sample points allows the Riemann sum to mirror the behavior of the integrand. If xix_i denotes the right endpoint of the ii-th subinterval, then xi=a+iΔxx_i = a + i\Delta x.

A sample point x1\*x_1^\*x1\*​ chosen within the first subinterval determines the height f(x1\*)f(x_1^\*)f(x1\*​) of the corresponding rectangle. Dashed lines mark the connection between the sample point on the x-axis and the function value on the curve. This emphasizes how one term of a Riemann sum, f(xi\*)Δxif(x_i^\*)\Delta x_if(xi\*​)Δxi​, is constructed. Source.

If using left endpoints, the sample point is xi1=a+(i1)Δxx_{i-1} = a + (i-1)\Delta x, and if using midpoints, the point is xi1/2=a+(i12)Δxx_{i-1/2} = a + \left(i - \tfrac12\right)\Delta x. While the choice of sample point affects approximation accuracy, all lead to the same limit as nn grows large.

Building the Summand

Each term in a Riemann sum represents a thin rectangle whose height is determined by the function value at the chosen sample point and whose width is Δx\Delta x. The summand always follows the structure:

  • Function value: f(sample point)f(\text{sample point})

  • Subinterval width: Δx \Delta x

  • Product: f(sample point)Δx f(\text{sample point})\Delta x

This product approximates the area contributed by one subinterval. Summing over all subintervals accumulates the contributions across the entire interval.

Constructing the Full Riemann Sum

Combine the elements discussed above to create the general form of the Riemann sum corresponding to the integral. A Riemann sum is built using summation notation that aggregates each small product of height and width across nn subintervals. The structure is expressed using the formula in the equation block below.

i=1nf(xi),Δx \sum_{i=1}^{n} f(x_i),\Delta x
f(xi) f(x_i) = Function value at the chosen sample point in subinterval ii
xi x_i = Sample point, typically a+iΔxa + i\Delta x
Δx \Delta x = Subinterval width

This summation provides the algebraic expression required before taking the limit, reflecting how area is approximated via many narrow rectangles.

A left Riemann sum for y=x3y = x^3y=x3 on [0,2][0,2][0,2] using four equal-width rectangles. Each rectangle height is set by the function value at the left endpoint of the subinterval, illustrating the general summation form f(xi)Δxf(x_i)\Delta xf(xi​)Δx. The explicit function y=x3y = x^3y=x3 adds detail beyond the syllabus but directly supports the concept of constructing Riemann sums. Source.

Writing a single integral as a Riemann sum requires clear alignment between the integral’s bounds, the partition’s structure, and the function evaluations.

Taking the Limit to Match the Integral

Once the summation is established, the limit as nn\to\infty completes the translation from approximation to exact accumulation. The limit removes the dependence on the number of subintervals and ensures the sum converges to the integral’s value. The complete limit expression mirrors the definite integral both conceptually and structurally.

Practical Steps for Students

When asked to convert a definite integral to a Riemann sum, proceed with the following structured approach:

  • Identify the integral’s bounds aa and bb.

  • Determine the subinterval width using Δx=ban \Delta x = \frac{b - a}{n} .

  • Choose a consistent sample point formula such as xi=a+iΔxx_i = a + i\Delta x.

  • Write the summand as f(xi)Δxf(x_i)\Delta x.

  • Express the integral as the limit of the sum as nn\to\infty.

FAQ

Writing a Riemann sum is a symbolic translation task: you express a definite integral as a limit of summations using partition widths and sample points. No numerical calculation is required.

Estimating an integral involves choosing a finite value of n and computing the approximate value of the sum. This relies on arithmetic evaluation, whereas writing a Riemann sum focuses solely on structure and notation.

Different sample point choices correspond to different expressions for the locations of x-values in the sum. Using left, right, or midpoints changes the index structure and determines how each term is constructed.

Once specified, the choice must be used consistently throughout the summation.

Yes. Any point inside each subinterval is acceptable when writing a Riemann sum, provided the expression for the sample point is clearly defined.

For example, one could choose the point one-third of the way across each subinterval, giving a consistent formula such as a + (i − 2/3)Δx. The integral’s value in the limit remains unchanged.

For non-uniform partitions, Δx is no longer constant. Each subinterval has its own width, usually written as Δx_i.

A valid Riemann sum becomes the sum of f(sample point in subinterval i) multiplied by Δx_i. The structure remains the same, but the summation cannot factor out a single uniform width.

Look for the following:

• Both sums use sample points lying within the same interval.
• The subinterval widths, whether uniform or non-uniform, cover the entire interval exactly.
• Reindexing (e.g., shifting i to i − 1) can transform one expression into the other.

If these elements match, the two sums represent the same definite integral even if the algebraic forms differ.

Practice Questions

Question 1 (1–3 marks)
The function f is continuous on the interval [2, 5]. Write a Riemann sum that represents the definite integral from 2 to 5 of f(x) dx using n equal subintervals and right-endpoint sample points. Do not evaluate the sum.

Question 1

• 1 mark for correctly identifying the width of each subinterval as (5 − 2)/n.
• 1 mark for using right-endpoint sample points written in the correct form, such as 2 + i(3/n).
• 1 mark for a correct full Riemann-sum expression, for example:
Sum from i = 1 to n of f(2 + i(3/n)) multiplied by (3/n).

Question 2 (4–6 marks)
Let g be a continuous function on [0, 4]. Consider the definite integral from 0 to 4 of g(x) dx.

(a) Write an expression for the width of each subinterval when the interval [0, 4] is divided into n equal parts.
(b) Using left-endpoint sample points, write the Riemann sum that corresponds to this integral.
(c) Explain how this Riemann sum converges to the value of the integral as n increases.

Question 2

(a)
• 1 mark for correctly stating the width of each subinterval as (4 − 0)/n or 4/n.

(b)
• 1 mark for correct left-endpoint form, such as sample point 0 + (i − 1)(4/n).
• 1 mark for the full Riemann sum written correctly, for example:
Sum from i = 1 to n of g((i − 1)(4/n)) multiplied by (4/n).

(c)
• 1 mark for stating that as n increases, the subintervals become narrower.
• 1 mark for stating that the approximation becomes more accurate as the number of rectangles increases.
• 1 mark for explaining that in the limit as n approaches infinity, the Riemann sum equals the exact value of the definite integral.

Hire a tutor

Please fill out the form and we'll find a tutor for you.

1/2
Your details
Alternatively contact us via
WhatsApp, Phone Call, or Email