# Riemann sum

In mathematics, a Riemann sum is a method for approximating the values of integrals.

Let it be supposed there is a function f: DR where D, RR and that there is a closed interval I = [a,b] such that ID. If we have a finite set of points {x0, x1, x2, ... xn} such that a = x0 < x1 < x2 ... < xn = b, then this set creates a partition P = {[x0, x1), [x1, x2), ... [xn-1, xn]} of I.

If [itex]P[itex] is a partition with [itex]n \in \mathbb{N}[itex] elements of [itex]I[itex], then the Riemann sum of [itex]f[itex] over [itex]I[itex] with the partition [itex]P[itex] is defined as

[itex]S = \sum_{i=1}^{n} f(y_i)(x_{i}-x_{i-1})[itex]

where xi-1 ≤ yi ≤ xi. The choice of yi is arbitrary. If yi = xi-1 for all i, then S is called a left Riemann sum. If yi = xi, then S is called a right Riemann sum.

Suppose we have

[itex]S = \sum_{i=1}^{n} v_i(x_{i}-x_{i-1})[itex]

where vi is the supremum of f over [xi-1, xi]; then S is defined to be an upper Riemann sum. Similarly, if vi is the infimum of f over [xi-1, xi], then S is a lower Riemann sum.

• Art and Cultures
• Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
• Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
• Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
• United States (http://www.academickids.com/encyclopedia/index.php/United_States)
• World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
• Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
• Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
• Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
• Space and Astronomy
• Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)