The Wayback Machine - https://web.archive.org/web/20240822105431/https://www.geeksforgeeks.org/riemann-sums-in-summation-notation/
Open In App

Riemann Sums in Summation Notation

Last Updated : 16 Jun, 2021
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Riemann sums allow us to calculate the area under the curve for any arbitrary function. These formulations help us define the definite integral. The basic idea behind these sums is to divide the area that is supposed to be calculated into small rectangles and calculate the sum of their areas. These areas are not accurate, but they help a lot in getting an idea about the actual area. The more the number of rectangles, the closer it takes us to the actual area. Let’s look at Riemann sums with sigma notations. 

Riemann Sums

Definite integrals are an important part of calculus. They are used to calculate the areas, volumes, etc of arbitrary shapes for which formulas are not defined. Analytically they are just indefinite integrals with limits on top of them, but graphically they represent the area under the curve. The limits denote the boundaries between which the area should be calculated. These concepts hold a lot of importance in the field of electrical engineering, robotics, etc. For defining integrals, Riemann sums are used in which we calculate the area under any curve using infinitesimally small rectangles. Let’s look at this interpretation of definite integrals in detail. 

Now this area can be divided into a number of rectangles, assuming the area is divided into ‘n’ rectangles of equal width. Some of these rectangles go above the actual value of the function and some go below, which means that the area is overestimated and underestimated in certain parts. The height of these rectangles is determined by the value of the function in the middle of the interval. 

In the definite integral notation, this area will be represented as, 

\int^{b}_{a}f(x)dx

This area can be approximated by dividing the area under the curve into n equally sized rectangles. So, the interval [a, b] is divided into n-subintervals defined by the points. 

a = x0 < x1 < x2 < …. xn-2< xn-1 < xn = b

Then, the n intervals are, 

[x0, x1], [x1, x2], …. [xn-1, xn]

So, for the ith rectangle, the width will be, [xi-1, xi]. 

The area for ith rectangle Ai = f(\frac{x_{i-1} + x_{i}}{2})(xi — xi-1)

So, the total area will be \sum^{n}_{i = 1}A_{i}

This sum is called Riemann sum.

Riemann Sums in Sigma Notation

Assume that the goal is to calculate the area under the graph of the function f(x) = x2, the area will be calculated between the limits x = 0.5 to x = 4.5.

Divide the interval into four equal parts, the intervals will be [0.5, 1.5], [1.5, 2.5], [2.5, 3.5] and [3.5, 4.5]. 

The riemann sum then, can be written as follows, 

A(1) + A(2) + A(3) + A(4) = \sum^{4}_{i=1}A_{i}

Let the heights of the interval be the values of the function at the end of the rectangle. This is called the right sum Riemann sum. Let xi denote the right endpoint of the ith rectangle. 

So, the formula for xi = 0.5 + i. Now, the value of the function at these points becomes, 

f(xi) = (0.5 + i)2

So, A(i) = (height)(width) 

            = (0.5 + i)2

The Riemann sum becomes, 

 A(1) + A(2) + A(3) + A(4) = \sum^{4}_{i=1}A_{i}

⇒ A(1) + A(2) + A(3) + A(4) = \sum^{4}_{i=1}(0.5 + i)^2

So, this way almost all the riemann sums can be represented in a sigma notation. 

To summarize the whole process, 

Step 1: Find out the width of each interval. Let’s denote the width of interval with \Delta x

Step 2: Let xi denote the right-endpoint of the rectangle xi = a + \Delta x.i

Step 3: Define the area of each rectangle. 

Step 4: Sum the areas 

Sample Problems

Question 1: Consider a function f(x), its area is calculated from riemann sum from x = 4 to x = 10, the whole area is divided into 5 rectangles. Find the interval width. 

Solution: 

The whole length is divided into 5 equal parts, 

xi = 4 and xl = 10, 

Width of an interval is given by = \frac{x_{l} -x_{i}}{n}

Where xi – initial point, and xl – last point and n= number of parts 

n = 5 

\Delta x = \frac{x_l - x_i}{n} \\ = \frac{10 - 4}{5} \\ = \frac{6}{5}  \\ = 1.2

Question 2: Consider a function f(x) = x, its area is calculated from riemann sum from x = 0 to x = 5, the whole area is divided into 5 rectangles. Find the riemann sum in sigma notation

Solution: 

Step (i): Calculate the width

The whole length is divided into 5 equal parts, 

xi = 0 and xl = 5, 

Width of an interval is given by = \frac{x_{l} -x_{i}}{n}

Where xi = initial point, and xl – last point and n= number of parts 

n = 5 

\Delta x = \frac{x_l - x_i}{n} \\ = \frac{5 - 0}{5} \\ = 1

Step(ii): 

a = 0, 

xi = 0 +  \Delta x.i

⇒ xi = i

Step (iii) 

Ai = Height x Width 

    = f(xi)  \Delta x

    = (i)

Total Area = A(1) + A(2) + A(3) + A(4) + A(5)

                  = \sum^{5}_{i=1}i

Question 3: Consider a function f(x) = 5 – x, its area is calculated from riemann sum from x = 0 to x = 5, the whole area is divided into 5 rectangles. Find the riemann sum in sigma notation

Solution: 

Step (i): Calculate the width

The whole length is divided into 5 equal parts, 

xi = 0 and xl = 5, 

Width of an interval is given by = \frac{x_{l} -x_{i}}{n}

Where xi = initial point, and xl – last point and n= number of parts 

n = 5 

\Delta x = \frac{x_l - x_i}{n} \\ = \frac{5 - 0}{5} \\ = 1

Step(ii): 

a = 0, 

xi = 0 +  \Delta x.i

⇒ xi = i

Step (iii) 

Ai = Height x Width 

    = f(xi)  \Delta x

    = (5 – i)(1)

    = 5 – i

Total Area = A(1) + A(2) + A(3) + A(4) + A(5)

                  = \sum^{5}_{i=1}5 - i

Question 4: Consider a function f(x) = √x, its area is calculated from riemann sum from x = 0 to x = 4, the whole area is divided into 4 rectangles. Find the riemann sum in sigma notation

Solution:

Step (i): Calculate the width

The whole length is divided into 4 equal parts, 

xi = 0 and xl = 4, 

Width of an interval is given by = \frac{x_{l} -x_{i}}{n}

Where xi = initial point, and xl – last point and n= number of parts 

n = 4 

\Delta x = \frac{x_l - x_i}{n} \\ = \frac{4 - 0}{4} \\ = 1

Step(ii): 

a = 0, 

xi = 0 + \Delta x.i

⇒ xi = i

Step (iii) 

Ai = Height × Width 

    = f(xi) \Delta x

    = (√i)(1)

    = √i

Total Area = A(1) + A(2) + A(3) + A(4) 

                  = \sum^{4}_{i=1}\sqrt{i}

Question 5: Consider a function f(x) = ex + 1, its area is calculated from riemann sum from x = 0 to x = 4, the whole area is divided into 4 rectangles. Find the riemann sum in sigma notation

Solution:

Step (i): Calculate the width

The whole length is divided into 4 equal parts, 

xi = 0 and xl = 4, 

Width of an interval is given by = \frac{x_{l} -x_{i}}{n}

Where xi = initial point, and xl – last point and n= number of parts 

n = 4 

\Delta x = \frac{x_l - x_i}{n} \\ = \frac{4 - 0}{4} \\ = 1

Step(ii): 

a = 0, 

xi = 0 + \Delta x.i

⇒ xi = i

Step (iii) 

Ai = Height x Width 

    = f(xi)  \Delta x

    = (ei + 1)(1)

    = ei + 1

Total Area = A(1) + A(2) + A(3) + A(4) 

                  = \sum^{4}_{i=1}(e^i + 1)

Question 6: Consider a function f(x) = x2 + x, its area is calculated from riemann sum from x = 0 to x = 6, the whole area is divided into 3 rectangles. Find the riemann sum in sigma notation

Solution:

Step (i): Calculate the width

The whole length is divided into 4 equal parts, 

xi = 0 and xl = 6, 

Width of an interval is given by = \frac{x_{l} -x_{i}}{n}

Where xi = initial point, and xl – last point and n= number of parts 

n = 3 

\Delta x = \frac{x_l - x_i}{n} \\ = \frac{6 - 0}{3} \\ = 2

Step(ii): 

a = 0, 

xi = 0 + \Delta x.i

⇒ xi = 2i

Step (iii) 

Ai = Height x Width 

    = f(xi)  \Delta x

    = (i2 + i)(2)

Total Area = A(1) + A(2) + A(3) + A(4) + A(5) + A(6)

                  = \sum^{4}_{i=1}(i^2 + i)



Previous Article
Next Article

Similar Reads

Riemann Sums
Riemann Sum is a certain kind of approximation of an integral by a finite sum. A Riemann sum is the sum of rectangles or trapezoids that approximate vertical slices of the area in question. German mathematician Bernhard Riemann developed the concept of Riemann Sums. In this article, we will look into the Riemann sums, their approximation, sum notat
7 min read
Definite Integral as the Limit of a Riemann Sum
Definite integrals are an important part of calculus. They are used to calculate the areas, volumes, etc of arbitrary shapes for which formulas are not defined. Analytically they are just indefinite integrals with limits on top of them, but graphically they represent the area under the curve. The limits denote the boundaries between which the area
7 min read
Riemann Zeta Function
Riemann Zeta Function, denoted by Îķ(s), is a mathematical function that is defined for complex numbers. It's named after the German mathematician Bernhard Riemann, who introduced it in 1859. In this article, we will understand the meaning of the Riemann zeta function, the properties of the Riemann zeta function, the Functional Equation, the Euler p
9 min read
Cauchy-Riemann Equations
Cauchy-Riemann equations are fundamental in complex analysis, providing essential conditions for a function of a complex variable to be complex differentiable, or analytic. Named after Augustin-Louis Cauchy and Bernhard Riemann, these equations connect the partial derivatives of the real and imaginary parts of a complex function. Cauchy-Riemann equ
14 min read
Riemann Integral
Riemann integral is a method used in calculus to find the area under a curve, or the total accumulated quantity represented by the curve, between two specified points. In this article, we will understand the Riemann sums, the formula of the Riemann integral, the properties of the Riemann integral, and the applications of the Riemann integral. At th
11 min read
Simplify and express the result in positive power notation: (−4)<sup>5</sup> ÷ (−4)<sup>8</sup>
Exponents and powers are used to show very large numbers or very small numbers in a simplified manner. For example, if we have to show 2 × 2 × 2 × 2 in a simple way, then we can write it as 24, where 2 is the base and 4 is the exponent. The whole expression 24 is said to be power. Power is a value or an expression that represents repeated multiplic
4 min read
What is the power notation of 343?
In mathematics, the terms "exponents and powers" are used when a number is multiplied by itself several times. A number is raised to the power of a natural number is equivalent to the number of times the number is multiplied by itself. When a number is multiplied by itself n times, the expression obtained is referred to as the nth power of the give
6 min read
How to Simplify numbers using Scientific Notation?
The exponent or power of a number represents the number of times the former has been multiplied by itself. For instance, if let a be any real number which is multiplied n times by itself, then the exponent or power of a would be n. The exponent of a is n, and the formula an is read as a raised to the power n. Exponents and powers are used to repres
4 min read
Addition and Subtraction in Scientific Notation
Scientific notation is a way to represent large and smaller numbers in easy representation form. Any number can be represented in this scientific notation such that the number is in between 1 (one) and 10 (ten) and is multiplied by the power of 10. Example: 7200000 (72 Lakhs) can be represented in scientific form as 7.2 × 106 Here 7200000 is repres
5 min read
Express the power notation with positive exponent
Mathematics is not only about numbers but it is about dealing with different calculations involving numbers and variables. This is what basically is known as Algebra. Algebra is defined as the representation of calculations involving mathematical expressions that consist of numbers, operators, and variables. Numbers can be from 0 to 9, operators ar
4 min read
Set-Builder Notation
Set-builder Notation is a type of mathematical notation used to describe sets by naming their components or highlighting the requirements that each member of the set must meet. Sets are written in the form of {y | (properties of y)} OR {y : (properties of y)} in the set-builder notation, where the condition that fully characterizes each member of t
11 min read
Interval Notation
Interval notation is a method used to represent continuous sets of real numbers by specifying their boundaries. Written intervals resemble ordered pairs but are not used to indicate specific points. Instead, they serve as a concise means to express inequalities or systems of inequalities, providing a shorthand form to describe the range of values w
12 min read
What is a Factorial Notation?
Sometimes, to find order, arrangements, or combinations of objects are required. Combinatorics is that branch of mathematics that focuses on the study of counting. So the fundamental counting principle was introduced which states that if one event has m possible outcomes and the second event has n possible outcomes, then there are m × n outcomes fo
4 min read
Scientific Notation Formula
In mathematics, there is a plethora of numerals and numerical figures. We are all familiar with the concept of the number line and also that it extends infinitely to the left as well as the right of zero. As a result, the numbers keep on becoming smaller and smaller (towards the left) or bigger and bigger (towards the right) to the point where it i
6 min read
Function Notation Formula
A function is a type of operator that takes an input variable and provides a result. When one quantity is dependent on another, a function is created. An interesting property of functions is that each input corresponds to a single output. In other words, such an operator between two sets, say set A and set B is called a function if and only if it a
4 min read
Set Notation
Set notation refers to the different symbols used in the representation and operation of sets. Set notation is a fundamental concept in mathematics, providing a structured and concise way to represent collections of objects, numbers, or elements. The set notation used to represent the elements of sets is curly brackets i.e., {}. In this article, we
8 min read
How to write numbers in scientific notation?
To write numbers in scientific notation, place the decimal after the first digit, count the shifts, and express as a product of that number and 10 raised to the shift's power.For example, 5000 can be written as 5×103 because the decimal point moves three places to the left, and 0.0098 can be written as 9.8×10 −3because the decimal point moves three
3 min read
Summation Formula
In mathematics, the summation is the basic addition of a sequence of any numbers, called addends or summands; the result is their sum or total. In Mathematics numbers, functions, vectors, matrices, polynomials, and, in general, elements of any mathematical object can be associated with an operation called addition/summation, denoted as "+". Summati
6 min read
Geometric Progression (GP) | Formula, Sums and Properties
Geometric Progression (GP) is a sequence of numbers where each term after the first is found by multiplying the previous term by a constant called the common ratio. Example: GP = 2,4,8,16,32,64...... This concept is crucial in mathematics and appears frequently in various applications, from finance to physics. In this article, we will explore the k
11 min read
Tense Chart in English - Rules, Examples, Types & Mind map
Tense Chart: The Tense Chart is a visual representation of the various verb tenses in English. It organizes the verb tenses in English. It outlines the various forms of the verb according to their uses. By using a tense chart, one can easily understand the relationship between the various forms of verbs and be able to make appropriate verb choices
10 min read
Trigonometry Formulas - List of All Trigonometric Identities and Formulas
Trigonometry formulas are equations that relate the sides and angles of triangles. They are essential for solving a wide range of problems in mathematics, physics, engineering and other fields. Here are some of the most common types of trigonometry formulas: Basic definitions: These formulas define the trigonometric ratios (sine, cosine, tangent, e
10 min read
Components of Computer
A computer is an electronic device that accepts data, performs operations, displays results, and stores the data or results as needed. It is a combination of hardware and software resources that integrate and provide various functionalities to the user. Hardware is the physical components of a computer, such as a processor, memory devices, monitor,
6 min read
Elements of Communication Process
The process of exchange of ideas, views, facts, feelings, etc., between two or more persons in order to reach a common understanding is known as Communication.   "Communication is the sum of all things, a person does when he wants to create an understanding in the minds of another. It involves a systematic and continuous process of telling, listeni
3 min read
Logic Gates - Definition, Types, Uses
Logic gates are the fundamental components of all digital circuits and systems. In digital electronics, there are seven main types of logic gates used to perform various logical operations. A logic gate is basically an electronic circuit designed by using components like diodes, transistors, resistors, capacitors, etc., and capable of performing lo
12 min read
Periodic Table of Elements
The Periodic table of elements is a systematic arrangement of 118 known chemical elements. These chemical elements are organized in order of increasing atomic number. The horizontal rows from left to right are called periods while the vertical columns from top to bottom are called groups in a periodic table. Table of Content What is Periodic Table
5 min read
Cloud Deployment Models
Pre-Requisite: Cloud Computing In cloud computing, we have access to a shared pool of computer resources (servers, storage, programs, and so on) in the cloud. You simply need to request additional resources when you require them. Getting resources up and running quickly is a breeze thanks to the clouds. It is possible to release resources that are
12 min read
Types of Computers
Pre-Requisite: Basics of Computer A computer is an electronic device that has storage, computations, input (data), output (data) and networking capabilities. With the growing AI, computers also have learning capabilities from the data provided. The input and output data can be in different forms like text, images, audio and video. A computer proces
7 min read
Software and its Types
Software is a collection of instructions, data, or computer programs that are used to run machines and carry out particular activities. It is the antithesis of hardware, which refers to a computer's external components. A device's running programs, scripts, and applications are collectively referred to as "software" in this context. What is a Softw
7 min read
Generations of Computers - Computer Fundamentals
Generations of Computer: The modern computer took its shape with the arrival of your time. It had been around the 16th century when the evolution of the computer started. The initial computer faced many changes, obviously for the betterment. It continuously improved itself in terms of speed, accuracy, size, and price to urge the form of the fashion
9 min read
What are Numbers?
Numbers in math are the most fundamental thing invented by mankind to serve its vast variety of endeavors in science and technology. From sending rockets to Mars to calculating bills for groceries, numbers are used everywhere. Nowadays, we can't think of mathematics without Understanding numbers. There are different types of numbers like natural nu
15+ min read
three90RightbarBannerImg