- Algebra
- Arithmetic
- Whole Numbers
- Numbers
- Types of Numbers
- Odd and Even Numbers
- Prime & Composite Numbers
- Sieve of Eratosthenes
- Number Properties
- Commutative Property
- Associative Property
- Identity Property
- Distributive Property
- Order of Operations
- Rounding Numbers
- Absolute Value
- Number Sequences
- Factors & Multiples
- Prime Factorization
- Greatest Common Factor
- Least Common Multiple
- Squares & Perfect Squares
- Square Roots
- Squares & Square Roots
- Simplifying Square Roots
- Simplifying Radicals
- Radicals that have Fractions
- Multiplying Radicals
- Integers
- Fractions
- Introducing Fractions
- Converting Fractions
- Comparing Fractions
- Ordering Fractions
- Equivalent Fractions
- Reducing Fractions
- Adding Fractions
- Subtracting Fractions
- Multiplying Fractions
- Reciprocals
- Dividing Fractions
- Adding Mixed Numbers
- Subtracting Mixed Numbers
- Multiplying Mixed Numbers
- Dividing Mixed Numbers
- Complex Fractions
- Fractions to Decimals
- Decimals
- Exponents
- Percent
- Scientific Notation
- Proportions
- Equality
- Properties of equality
- Addition property of equality
- Transitive property of equality
- Subtraction property of equality
- Multiplication property of equality
- Division property of equality
- Symmetric property of equality
- Reflexive property of equality
- Substitution property of equality
- Distributive property of equality
- Commercial Math
- Calculus
- Differential Calculus
- Limits calculus
- Mean value theorem
- L’Hôpital’s rule
- Newton’s method
- Derivative calculus
- Power rule
- Sum rule
- Difference rule
- Product rule
- Quotient rule
- Chain rule
- Derivative rules
- Trigonometric derivatives
- Inverse trig derivatives
- Trigonometric substitution
- Derivative of arctan
- Derivative of secx
- Derivative of csc
- Derivative of cotx
- Exponential derivative
- Derivative of ln
- Implicit differentiation
- Critical numbers
- Derivative test
- Concavity calculus
- Related rates
- Curve sketching
- Asymptote
- Hyperbolic functions
- Absolute maximum
- Absolute minimum
- Integral Calculus
- Fundamental theorem of calculus
- Approximating integrals
- Riemann sum
- Integral properties
- Antiderivative
- Integral calculus
- Improper integrals
- Integration by parts
- Partial fractions
- Area under the curve
- Area between two curves
- Center of mass
- Work calculus
- Integrating exponential functions
- Integration of hyperbolic functions
- Integrals of inverse trig functions
- Disk method
- Washer method
- Shell method
- Sequences, Series & Tests
- Parametric Curves & Polar Coordinates
- Multivariable Calculus
- 3d coordinate system
- Vector calculus
- Vectors equation of a line
- Equation of a plane
- Intersection of line and plane
- Quadric surfaces
- Spherical coordinates
- Cylindrical coordinates
- Vector function
- Derivatives of vectors
- Length of a vector
- Partial derivatives
- Tangent plane
- Directional derivative
- Lagrange multipliers
- Double integrals
- Iterated integral
- Double integrals in polar coordinates
- Triple integral
- Change of variables in multiple integrals
- Vector fields
- Line integral
- Fundamental theorem for line integrals
- Green’s theorem
- Curl vector field
- Surface integral
- Divergence of a vector field
- Differential equations
- Exact equations
- Integrating factor
- First order linear differential equation
- Second order homogeneous differential equation
- Non homogeneous differential equation
- Homogeneous differential equation
- Characteristic equations
- Laplace transform
- Inverse laplace transform
- Dirac delta function
- Differential Calculus
- Matrices
- Pre-Calculus
- Lines & Planes
- Functions
- Domain of a function
- Transformation Of Graph
- Polynomials
- Graphs of rational functions
- Limits of a function
- Complex Numbers
- Exponential Function
- Logarithmic Function
- Sequences
- Conic Sections
- Series
- Mathematical induction
- Probability
- Advanced Trigonometry
- Vectors
- Polar coordinates
- Probability
- Geometry
- Angles
- Triangles
- Types of Triangles
- Special Right Triangles
- 3 4 5 Triangle
- 45 45 90 Triangle
- 30 60 90 Triangle
- Area of Triangle
- Pythagorean Theorem
- Pythagorean Triples
- Congruent Triangles
- Hypotenuse Leg (HL)
- Similar Triangles
- Triangle Inequality
- Triangle Sum Theorem
- Exterior Angle Theorem
- Angles of a Triangle
- Law of Sines or Sine Rule
- Law of Cosines or Cosine Rule
- Polygons
- Circles
- Circle Theorems
- Solid Geometry
- Volume of Cubes
- Volume of Rectangular Prisms
- Volume of Prisms
- Volume of Cylinders
- Volume of Spheres
- Volume of Cones
- Volume of Pyramids
- Volume of Solids
- Surface Area of a Cube
- Surface Area of a Cuboid
- Surface Area of a Prism
- Surface Area of a Cylinder
- Surface Area of a Cone
- Surface Area of a Sphere
- Surface Area of a Pyramid
- Geometric Nets
- Surface Area of Solids
- Coordinate Geometry and Graphs
- Coordinate Geometry
- Coordinate Plane
- Slope of a Line
- Equation of a Line
- Forms of Linear Equations
- Slopes of Parallel and Perpendicular Lines
- Graphing Linear Equations
- Midpoint Formula
- Distance Formula
- Graphing Inequalities
- Linear Programming
- Graphing Quadratic Functions
- Graphing Cubic Functions
- Graphing Exponential Functions
- Graphing Reciprocal Functions
- Geometric Constructions
- Geometric Construction
- Construct a Line Segment
- Construct Perpendicular Bisector
- Construct a Perpendicular Line
- Construct Parallel Lines
- Construct a 60° Angle
- Construct an Angle Bisector
- Construct a 30° Angle
- Construct a 45° Angle
- Construct a Triangle
- Construct a Parallelogram
- Construct a Square
- Construct a Rectangle
- Locus of a Moving Point
- Geometric Transformations
- Sets & Set Theory
- Statistics
- Collecting and Summarizing Data
- Common Ways to Describe Data
- Different Ways to Represent Data
- Frequency Tables
- Cumulative Frequency
- Advance Statistics
- Sample mean
- Population mean
- Sample variance
- Standard deviation
- Random variable
- Probability density function
- Binomial distribution
- Expected value
- Poisson distribution
- Normal distribution
- Bernoulli distribution
- Z-score
- Bayes theorem
- Normal probability plot
- Chi square
- Anova test
- Central limit theorem
- Sampling distribution
- Logistic equation
- Chebyshev’s theorem
- Difference
- Correlation Coefficient
- Tautology
- Relative Frequency
- Frequency Distribution
- Dot Plot
- Сonditional Statement
- Converse Statement
- Law of Syllogism
- Counterexample
- Least Squares
- Law of Detachment
- Scatter Plot
- Linear Graph
- Arithmetic Mean
- Measures of Central Tendency
- Discrete Data
- Weighted Average
- Summary Statistics
- Interquartile Range
- Categorical Data
- Trigonometry
- Vectors
- Multiplication Charts
- Time Table
- 2 times table
- 3 times table
- 4 times table
- 5 times table
- 6 times table
- 7 times table
- 8 times table
- 9 times table
- 10 times table
- 11 times table
- 12 times table
- 13 times table
- 14 times table
- 15 times table
- 16 times table
- 17 times table
- 18 times table
- 19 times table
- 20 times table
- 21 times table
- 22 times table
- 23 times table
- 24 times table
- Time Table
Riemann Sum – Two Rules, Approximations, and Examples
The Riemann sum is the first approximation method that we’ll be learning in our Integral calculus classes. This approximation method allows us to estimate the area under a curve or a graph.
The Riemann sum allows us to approximate the area under the curve by breaking the region into a finite number of rectangles. We can also use the Riemann sum as a way to define the integration operation.
Through the fundamental theorem of calculus, we’ve learned that the definite integral of a function over $[a, b]$ represents the area of the function’s curve. There are instances, however, that we need to approximate the integral instead. The Riemann sum shows us one way of estimating the area under the curve is by combining the area of a finite number of rectangles.
In this article, we’ll show you how to approximate the definite integral through the Riemann sum. We’ll also show you two types of approximation: the right-hand rule and the left-hand rule.
What is a Riemann sum?
The Riemann sum utilizes a finite number of rectangles to approximate the value of a given definite integral. We can define the Riemann sum as the sum of these $ n$ rectangles’ areas.
Let’s take a look at non-negative function, $f(x)$, that is continuous within the closed interval, $[a, b]$.
Through the Riemann sum, it’s now possible for us to approximate the area of the region found right below the curve. This area is bounded by the $x$-axis as well as the vertical lines: $x =a$ and $x = b$.
Here’s an example of how a definite integral, $\int_{a}^{b} f(x)\phantom{x}dx$, can be approximated by breaking down the area under the curve of $f(x)$ as a sum of the rectangles’ areas.
Riemann sum definition
We can divide the region under the curve and bounded by the interval, $[a, b]$. When we use $n$ rectangles to divide the region, each subinterval is expected to have a width of $\Delta x$.
The areas of the $\boldsymbol{n}$ rectangles can then be added to estimate the area of the entire region.
\begin{aligned}\text{Area of rectangle} &= \sum_{i =0}^{n – 1} f(x_i) \Delta x\end{aligned}
In the second part of the fundamental theorem of calculus, we’ve learned that the definite integral, $\int_{a}^{b}f(x)\phantom{x} dx$, represents the area under $f(x)$’s curve and bounded by $x = a$ and $x = b$.
This confirms the definition of Riemann sum: an approximation of the definite integral, $\int_{a}^{b}f(x)\phantom{x} dx$, by adding the rectangles that divide the region into $n$ subintervals.
\begin{aligned} \int_{a}^{b}f(x)\phantom{x} dx &\approx \lim_{n \rightarrow \infty}\sum_{i =0}^{n – 1} f(x_i) \Delta x\\&\approx f(x_1)\Delta x + f(x_2)\Delta x + f(x_3)\Delta x + …+ f(x_n)\Delta x\end{aligned}
The graph shown above is a good example of how we can break down the region for $\int_{0}^{\frac{\pi}{2}} \sin 2x \phantom{x} dx$ into $30$ rectangles with uniform widths.
The index in the summation notation shown may change depending on whether we’re working with a left-hand or right-hand Riemann sum. We’ll learn more about these two in the next section.
How to do Riemann sum?
Before we discuss the process of constructing and evaluating the Riemann, let us show you the difference between the right-hand rule and the left-hand rule for the Riemann sum.
- In the right Riemann sum, we construct the rectangles so that the curve passes through the top-right right corners.
Similarly, for the left Riemann sum, we construct the rectangles so that the curve passes through the top-left corners.
These two graphs highlight this difference between the right and left Riemann sums. The curve passes through each of the top-right corners for the right Riemann sum while it passes through the top-left corners for the left-hand Riemann sum.
Because of this difference, the process of writing $\int_{a}^{b} f(x) \phantom{x} dx$’s right and left Riemann sums in summation notation will differ slightly too. Let us summarize the steps for you here:
Step 1: Establish the value of $\Delta x$. Recall that $\Delta x$ represents the width of the rectangle. Using the definite integral’s lower and upper limits, we have $\Delta x = \dfrac{b -a}{n}$.
Step 2: Find the endpoints of the rectangles. Let $x_i$ represent each of the endpoints.
Step 3: Express the area of the rectangle in terms of $\Delta x$ and $f(x_i)$. Each rectangle will have an area of $\Delta x \cdot f(x_i)$.
Step 4: Using the definition of the Riemann sum, we then add all the areas from Step 3. This is when the summation notation comes in handy. This step will also show you how the right and left Riemann sums would differ.
- The endpoints of the right-hand rule for the Riemann sum will have endpoints at $\{x_1, x_2, x_3,…, x_{n -1}, x_n\}$.
- Meanwhile, the left-hand rule will have endpoints at $\{x_0, x_1, x_2, …, x_{n -2}, x_{n -1}\}$.
- Keep in mind that $x_0 = a$ and $x = b$, where $a$ and $b$ are the definite integral’s upper and lower limits.
This makes sense because as we have mentioned in the earlier section, the integral’s curve will pass through the right and left Riemann sum’s rectangles at their top right and left corners, respectively.
Hence, we have the following right and left Riemann sum’s summation notation:
Right Riemann Sum | Left Riemann Sum |
\begin{aligned}\sum_{i = 1}^{n} \Delta x \cdot f(x_i) \end{aligned} | \begin{aligned}\sum_{i = 0}^{n – 1} \Delta x \cdot f(x_i) \end{aligned} |
The two formulas confirm that the summation notations of the right and left Riemann sums only differ by the index: the right-hand rule begins with $i = 1$ while the left-hand rule begins with $i = 0$.
To approximate the total area under the definite interval’s curve using the Riemann sum, evaluate $\{f(x_i)\}$ each time then add the total values. Multiply this sum to the width, $\Delta x$.
Right Riemann Sum | Left Riemann Sum |
\begin{aligned}\Delta x[f(x_1) + f(x_2) + …f(x_n)] \end{aligned} | \begin{aligned}\Delta x[f(x_0) + f(x_1) + …f(x_{n – 1})] \end{aligned} |
To evaluate the Riemann sum, expand the summation notation. There are instances when you might need to apply some properties of the summation notation or sigma notation:
Helpful Summation Properties |
\begin{aligned}\sum_{i = 1}^{n} k &= k\\\sum_{i = 1}^{n} ka_i &= k\sum_{i = 1}^{n} a_i\\\sum_{i = 1}^{n} (a_i + b_i) &= \sum_{i = 1}^{n} a_i + \sum_{i = 1}^{n} b_i\\\sum_{i = 1}^{n} (a_i – b_i) &= \sum_{i = 1}^{n} a_i – \sum_{i = 1}^{n} b_i\end{aligned} |
Use these properties to simplify the process of evaluating complex summation notations. When asked to graph the definite integral’s Riemann sum, we follow the following steps:
- Create rectangles with each rectangle having a width of $\Delta x$.
- Evaluate $x_i$ at $f(x)$ to determine the height of each of the rectangle.
- Use the definition of the left-hand and right-hand Riemann sum to know the corners that the function’s passes through.
Example of writing a Riemann sum formula
Let’s go ahead and show you how the definite integral, $\int_{0}^{2} 4 – x^2 \phantom{x}dx$, can be written in left and right Riemann sum notations with four rectangles.
We first determine the value of $\Delta x$ by dividing $2- 0$ by $4$.
\begin{aligned}\Delta x &= \dfrac{2 – 0}{4}\\&= \dfrac{1}{2}\end{aligned}
We then take note of the right and left Riemann sums’ endpoints. Keep in mind that $x_0 = 0$ and $x_4 = 2$.
- For the left-hand rule, we begin with $x_0 = 0$ then add $\dfrac{1}{2}$ to find the next endpoint. Hence, we have $x_i = \left\{0, \dfrac{1}{2}, 1, dfrac{3}{2}\right\}$.
- For the right-hand rule, we start with $x_1 = \dfrac{1}{2}$ then increase it by $\dfrac{1}{2}$ for each successive endpoint. This means that we have $x_i = \left\{\dfrac{1}{2}, 1, dfrac{3}{2}, 2\right\}$.
Apply the formula for the Riemann sum using the right-hand and left-hand rules to approximate the area under the curve of $\int_{0}^{2} 4 – x^2 \phantom{x}dx$.
Right Riemann Sum | Left Riemann Sum |
\begin{aligned}\sum_{i = 1}^{4} \Delta x \cdot f(x_i) &= \dfrac{1}{2}\left[f\left(\dfrac{1}{2}\right ) + f(1) + f\left(\dfrac{3}{2}\right) + f(2)\right ]\\&= \dfrac{1}{2}\left(\dfrac{15}{4}+ 3 + \dfrac{7}{4}+0 \right )\\&=4.25 \end{aligned} | \begin{aligned}\sum_{i = 0}^{3} \Delta x \cdot f(x_i) &= \dfrac{1}{2}\left[f(0) + f\left(\dfrac{1}{2}\right ) + f(1) + f\left(\dfrac{3}{2}\right)\right ]\\&= \dfrac{1}{2}\left(4+ \dfrac{15}{4}+ 3 + \dfrac{7}{4}\right )\\&=6.25 \end{aligned} |
The actual value of $\int_{0}^{2} 4 – x^2 \phantom{x} dx$ is $\dfrac{15}{3}$ and our approximated values through the right-hand rule and the left-hand rule are $4.25$ and $6.25$, respectively.
Another form of the Riemann sum is the midpoint rule, but we’ll learn about this when we discuss other methods of approximating integrals.
Example of sketching a Riemann sum graph
What if we’re asked to sketch the definite integral with the region below divided by the Riemann sum’s rectangles? We can use the values of $\Delta x$ and $f(x_i)$ to represent the Riemann sum.
- Divide the interval, $[a, b]$, into $n$ rectangles with a width of $\Delta x$.
- Determine the height of each of the rectangle by evaluating $f(x_i)$.
- Double-check if the curve of $f(x)$ passes through the right corners of the rectangles.
Let’s use $\int_{0}^{2} 4 – x^2 \phantom{x}dx$, for example. We want $4$ rectangles with a width of $\dfrac{1}{2}$ unit. Here’s how the graphs of the left and right Riemann sum for this particular definite integral.
This shows that left Riemann sum passes through the top-left corners at $x = \{0, 0.5, 1, 1.5\}$. The right Riemann sum passes through the top-right corners at $x = \{0.5, 1, 1.5, 2\}$. Notice how the right Riemann sum appears to only have three rectangles instead of four? That’s because at the last endpoint (or when $x = 2$), $f(2)$ is equal to $0$.
Example 1
Approximate the Riemann sum shown below. Keep in mind that the graph shows a left-hand approximation of the area under the function shown below.
\begin{aligned}f(x) &= \sqrt{9 – x^2}\phantom{x}dx,\phantom{xx} 0 \leq x \leq 3\end{aligned}.
Solution
The graph above shows us that the area under the region will be divided into four subintervals. This means that each rectangle will have a width shown below.
\begin{aligned}\Delta x &= \dfrac{3 – 0}{4}\\&= \dfrac{3}{4}\end{aligned}
Since we’re performing a left Riemann sum approximation, we’re going to evaluate $f(x)$ at the following values:
\begin{aligned}x_0 &= 0\\x_1 &= \dfrac{3}{4}\\x_2 &= \dfrac{3}{2}\\x_3 &= \dfrac{9}{4}\end{aligned}
Approximate the function’s left Rieman sum using the formula, $\sum_{i =0}^{n -1} f(x_i)\Delta x$, where $n = 4$.
\begin{aligned}f(0) &= \sqrt{9 -0^2}\\&= 3\\f\left(\dfrac{3}{4} \right )&= \sqrt{9 – \dfrac{3}{4}^2}\\&\approx 2.9047\\f\left(\dfrac{3}{2} \right )&= \sqrt{9 – \dfrac{3}{2}^2}\\&\approx 2.5981\\f\left(\dfrac{9}{4} \right )&= \sqrt{9 – \dfrac{9}{4}^2}\\&\approx 1.9843\end{aligned}
Approximate the left Riemann sum by adding these values and multiplying the sum by $\Delta x = \dfrac{3}{4}$.
\begin{aligned}\int_{0}^{3} \sqrt{9 – x^2}\phantom{x}dx &\approx \Delta x[f(x_0) + f(x_1) + f(x_2)+ f(x_3)] \\& = \dfrac{3}{4}\left[f(0)+ f\left(\dfrac{3}{4}\right) + f\left(\dfrac{3}{2}\right) +f\left(\dfrac{9}{4}\right) \right ]\\&= \dfrac{3}{4}(3 + 2.9047+ 2.5981 + 1.9843)\\&\approx 7.8653\end{aligned}
Using the graph and the left-hand rule for the Riemann sum, we have approximated $\int_{0}^{3} \sqrt{9 -x^2}\phantom{x}dx$ as $7.8653$.
Example 2
Evaluate the Riemann sum for the function, $g(x)= x^4 – 4x$, using the top right corners of the curve that is bound by the following limits: $x=0$ and $x = 2$. Divide the region by $n = 8$ rectangles.
Solution
Since we want the curve of $g(x)$ to pass through the top right corners of the rectangles, we’re evaluating a right Riemann sum. Now, identify the width of the rectangle and the key endpoints that we need to focus on: