fbpx
Wikipedia

Riemann sum

In mathematics, a Riemann sum is a certain kind of approximation of an integral by a finite sum. It is named after nineteenth century German mathematician Bernhard Riemann. One very common application is in numerical integration, i.e., approximating the area of functions or lines on a graph, where it is also known as the rectangle rule. It can also be applied for approximating the length of curves and other approximations.

Four of the methods for approximating the area under curves. Left and right methods make the approximation using the right and left endpoints of each subinterval, respectively. Upper and lower methods make the approximation using the largest and smallest endpoint values of each subinterval, respectively. The values of the sums converge as the subintervals halve from top-left to bottom-right.

The sum is calculated by partitioning the region into shapes (rectangles, trapezoids, parabolas, or cubics) that together form a region that is similar to the region being measured, then calculating the area for each of these shapes, and finally adding all of these small areas together. This approach can be used to find a numerical approximation for a definite integral even if the fundamental theorem of calculus does not make it easy to find a closed-form solution.

Because the region by the small shapes is usually not exactly the same shape as the region being measured, the Riemann sum will differ from the area being measured. This error can be reduced by dividing up the region more finely, using smaller and smaller shapes. As the shapes get smaller and smaller, the sum approaches the Riemann integral.

Definition edit

Let   be a function defined on a closed interval   of the real numbers,  , and   as a partition of  , that is

 
A Riemann sum   of   over   with partition   is defined as
 
where   and  .[1] One might produce different Riemann sums depending on which  's are chosen. In the end this will not matter, if the function is Riemann integrable, when the difference or width of the summands   approaches zero.

Types of Riemann sums edit

Specific choices of   give different types of Riemann sums:

  • If   for all i, the method is the left rule[2][3] and gives a left Riemann sum.
  • If   for all i, the method is the right rule[2][3] and gives a right Riemann sum.
  • If   for all i, the method is the midpoint rule[2][3] and gives a middle Riemann sum.
  • If   (that is, the supremum of  over  ), the method is the upper rule and gives an upper Riemann sum or upper Darboux sum.
  • If   (that is, the infimum of f over  ), the method is the lower rule and gives a lower Riemann sum or lower Darboux sum.

All these Riemann summation methods are among the most basic ways to accomplish numerical integration. Loosely speaking, a function is Riemann integrable if all Riemann sums converge as the partition "gets finer and finer".

While not derived as a Riemann sum, taking the average of the left and right Riemann sums is the trapezoidal rule and gives a trapezoidal sum. It is one of the simplest of a very general way of approximating integrals using weighted averages. This is followed in complexity by Simpson's rule and Newton–Cotes formulas.

Any Riemann sum on a given partition (that is, for any choice of   between   and  ) is contained between the lower and upper Darboux sums. This forms the basis of the Darboux integral, which is ultimately equivalent to the Riemann integral.

Riemann summation methods edit

The four Riemann summation methods are usually best approached with subintervals of equal size. The interval [a, b] is therefore divided into   subintervals, each of length

 

The points in the partition will then be

 

Left rule edit

 
Left Riemann sum of xx3 over [0, 2] using 4 subintervals

For the left rule, the function is approximated by its values at the left endpoints of the subintervals. This gives multiple rectangles with base Δx and height f(a + iΔx). Doing this for i = 0, 1, ..., n − 1, and summing the resulting areas gives

 

The left Riemann sum amounts to an overestimation if f is monotonically decreasing on this interval, and an underestimation if it is monotonically increasing. The error of this formula will be

 
where   is the maximum value of the absolute value of   over the interval.

Right rule edit

 
Right Riemann sum of xx3 over [0, 2] using 4 subintervals

For the right rule, the function is approximated by its values at the right endpoints of the subintervals. This gives multiple rectangles with base Δx and height f(a + iΔx). Doing this for i = 1, ..., n, and summing the resulting areas gives

 

The right Riemann sum amounts to an underestimation if f is monotonically decreasing, and an overestimation if it is monotonically increasing. The error of this formula will be

 
where   is the maximum value of the absolute value of   over the interval.

Midpoint rule edit

 
Middle Riemann sum of xx3 over [0, 2] using 4 subintervals

For the midpoint rule, the function is approximated by its values at the midpoints of the subintervals. This gives f(a + Δx/2) for the first subinterval, f(a + 3Δx/2) for the next one, and so on until f(b − Δx/2). Summing the resulting areas gives

 

The error of this formula will be

 
where   is the maximum value of the absolute value of   over the interval. This error is half of that of the trapezoidal sum; as such the middle Riemann sum is the most accurate approach to the Riemann sum.

Generalized midpoint rule edit

A generalized midpoint rule formula is given by

 
or
 
where   denotes  -th derivative.[4] For example, substituting   and
 
in the generalized midpoint rule formula, we obtain an equation of the inverse tangent
 
where   is the imaginary unit and
 

Since at each odd   the numerator of the integrand becomes  , the generalized midpoint rule formula can be reorganized as

 

The following example of Mathematica code generates the plot showing difference between inverse tangent and its approximation truncated at   and  :

f[theta_, x_] := theta/(1 + theta^2 * x^2); aTan[theta_, M_, nMax_] :=   2*Sum[(Function[x, Evaluate[D[f[theta, x], {x, 2*n}]]][(m - 1/2)/  M])/((2*n + 1)!*(2*M)^(2*n + 1)), {m, 1, M}, {n, 0, nMax}]; Plot[{ArcTan[theta] - aTan[theta, 5, 10]}, {theta, -Pi, Pi},   PlotRange -> All] 

For a function   defined over interval  , its integral is

 
Therefore, we can apply the generalized midpoint integration formula above by assuming that  .

Trapezoidal rule edit

 
Trapezoidal sum of xx3 over [0, 2] using 4 subintervals

For the trapezoidal rule, the function is approximated by the average of its values at the left and right endpoints of the subintervals. Using the area formula   for a trapezium with parallel sides b1 and b2, and height h, and summing the resulting areas gives

 

The error of this formula will be

 
where   is the maximum value of the absolute value of  .

The approximation obtained with the trapezoidal sum for a function is the same as the average of the left hand and right hand sums of that function.

Connection with integration edit

For a one-dimensional Riemann sum over domain  , as the maximum size of a subinterval shrinks to zero (that is the limit of the norm of the subintervals goes to zero), some functions will have all Riemann sums converge to the same value. This limiting value, if it exists, is defined as the definite Riemann integral of the function over the domain,

 

For a finite-sized domain, if the maximum size of a subinterval shrinks to zero, this implies the number of subinterval goes to infinity. For finite partitions, Riemann sums are always approximations to the limiting value and this approximation gets better as the partition gets finer. The following animations help demonstrate how increasing the number of subintervals (while lowering the maximum subinterval size) better approximates the "area" under the curve:

Since the red function here is assumed to be a smooth function, all three Riemann sums will converge to the same value as the number of subintervals goes to infinity.

Example edit

Comparison of the right Riemann sum with the integral of xx2 over  .
 
A visual representation of the area under the curve y = x2 over [0, 2]. Using antiderivatives this area is exactly  .
 
Approximating the area under the curve y = x2 over [0, 2] using the right Riemann sum. Notice that because the function is monotonically increasing, the right Riemann sum will always overestimate the area contributed by each term in the sum (and do so maximally).
 
The value of the right Riemann sum of xx2 over  . As the number of rectangles increases, it approaches the exact area of  .

Taking an example, the area under the curve y = x2 over [0, 2] can be procedurally computed using Riemann's method.

The interval [0, 2] is firstly divided into n subintervals, each of which is given a width of  ; these are the widths of the Riemann rectangles (hereafter "boxes"). Because the right Riemann sum is to be used, the sequence of x coordinates for the boxes will be  . Therefore, the sequence of the heights of the boxes will be  . It is an important fact that  , and  .

The area of each box will be   and therefore the nth right Riemann sum will be:

 

If the limit is viewed as n → ∞, it can be concluded that the approximation approaches the actual value of the area under the curve as the number of boxes increases. Hence:

 

This method agrees with the definite integral as calculated in more mechanical ways:

 

Because the function is continuous and monotonically increasing over the interval, a right Riemann sum overestimates the integral by the largest amount (while a left Riemann sum would underestimate the integral by the largest amount). This fact, which is intuitively clear from the diagrams, shows how the nature of the function determines how accurate the integral is estimated. While simple, right and left Riemann sums are often less accurate than more advanced techniques of estimating an integral such as the Trapezoidal rule or Simpson's rule.

The example function has an easy-to-find anti-derivative so estimating the integral by Riemann sums is mostly an academic exercise; however it must be remembered that not all functions have anti-derivatives so estimating their integrals by summation is practically important.


Higher dimensions edit

The basic idea behind a Riemann sum is to "break-up" the domain via a partition into pieces, multiply the "size" of each piece by some value the function takes on that piece, and sum all these products. This can be generalized to allow Riemann sums for functions over domains of more than one dimension.

While intuitively, the process of partitioning the domain is easy to grasp, the technical details of how the domain may be partitioned get much more complicated than the one dimensional case and involves aspects of the geometrical shape of the domain.[5]

Two dimensions edit

In two dimensions, the domain   may be divided into a number of two-dimensional cells   such that  . Each cell then can be interpreted as having an "area" denoted by  .[6] The two-dimensional Riemann sum is

 
where  .

Three dimensions edit

In three dimensions, the domain   is partitioned into a number of three-dimensional cells   such that  . Each cell then can be interpreted as having an "volume" denoted by  . The three-dimensional Riemann sum is[7]

 
where  .

Arbitrary number of dimensions edit

Higher dimensional Riemann sums follow a similar pattern. An n-dimensional Riemann sum is

 
where  , that is, it is a point in the n-dimensional cell   with n-dimensional volume  .

Generalization edit

In high generality, Riemann sums can be written

 
where   stands for any arbitrary point contained in the set   and   is a measure on the underlying set. Roughly speaking, a measure is a function that gives a "size" of a set, in this case the size of the set  ; in one dimension this can often be interpreted as a length, in two dimensions as an area, in three dimensions as a volume, and so on.

See also edit

References edit

  1. ^ Hughes-Hallett, Deborah; McCullum, William G.; et al. (2005). Calculus (4th ed.). Wiley. p. 252. (Among many equivalent variations on the definition, this reference closely resembles the one given here.)
  2. ^ a b c Hughes-Hallett, Deborah; McCullum, William G.; et al. (2005). Calculus (4th ed.). Wiley. p. 340. So far, we have three ways of estimating an integral using a Riemann sum: 1. The left rule uses the left endpoint of each subinterval. 2. The right rule uses the right endpoint of each subinterval. 3. The midpoint rule uses the midpoint of each subinterval.
  3. ^ a b c Ostebee, Arnold; Zorn, Paul (2002). Calculus from Graphical, Numerical, and Symbolic Points of View (Second ed.). p. M-33. Left-rule, right-rule, and midpoint-rule approximating sums all fit this definition.
  4. ^ S. M. Abrarov and B. M. Quine (2018), "A formula for pi involving nested radicals", The Ramanujan Journal, 46 (3): 657–665, arXiv:1610.07713, doi:10.1007/s11139-018-9996-8, S2CID 119150623
  5. ^ Swokowski, Earl W. (1979). Calculus with Analytic Geometry (Second ed.). Boston, MA: Prindle, Weber & Schmidt. pp. 821–822. ISBN 0-87150-268-2.
  6. ^ Ostebee, Arnold; Zorn, Paul (2002). Calculus from Graphical, Numerical, and Symbolic Points of View (Second ed.). p. M-34. We chop the plane region R into m smaller regions R1, R2, R3, ..., Rm, perhaps of different sizes and shapes. The 'size' of a subregion Ri is now taken to be its area, denoted by ΔAi.
  7. ^ Swokowski, Earl W. (1979). Calculus with Analytic Geometry (Second ed.). Boston, MA: Prindle, Weber & Schmidt. pp. 857–858. ISBN 0-87150-268-2.

External links edit

riemann, mathematics, certain, kind, approximation, integral, finite, named, after, nineteenth, century, german, mathematician, bernhard, riemann, very, common, application, numerical, integration, approximating, area, functions, lines, graph, where, also, kno. In mathematics a Riemann sum is a certain kind of approximation of an integral by a finite sum It is named after nineteenth century German mathematician Bernhard Riemann One very common application is in numerical integration i e approximating the area of functions or lines on a graph where it is also known as the rectangle rule It can also be applied for approximating the length of curves and other approximations Four of the methods for approximating the area under curves Left and right methods make the approximation using the right and left endpoints of each subinterval respectively Upper and lower methods make the approximation using the largest and smallest endpoint values of each subinterval respectively The values of the sums converge as the subintervals halve from top left to bottom right The sum is calculated by partitioning the region into shapes rectangles trapezoids parabolas or cubics that together form a region that is similar to the region being measured then calculating the area for each of these shapes and finally adding all of these small areas together This approach can be used to find a numerical approximation for a definite integral even if the fundamental theorem of calculus does not make it easy to find a closed form solution Because the region by the small shapes is usually not exactly the same shape as the region being measured the Riemann sum will differ from the area being measured This error can be reduced by dividing up the region more finely using smaller and smaller shapes As the shapes get smaller and smaller the sum approaches the Riemann integral Contents 1 Definition 2 Types of Riemann sums 3 Riemann summation methods 3 1 Left rule 3 2 Right rule 3 3 Midpoint rule 3 3 1 Generalized midpoint rule 3 4 Trapezoidal rule 4 Connection with integration 5 Example 6 Higher dimensions 6 1 Two dimensions 6 2 Three dimensions 6 3 Arbitrary number of dimensions 6 4 Generalization 7 See also 8 References 9 External linksDefinition editLet f a b R displaystyle f a b to mathbb R nbsp be a function defined on a closed interval a b displaystyle a b nbsp of the real numbers R displaystyle mathbb R nbsp and P x 0 x 1 x n displaystyle P x 0 x 1 ldots x n nbsp as a partition of a b displaystyle a b nbsp that isa x 0 lt x 1 lt x 2 lt lt x n b displaystyle a x 0 lt x 1 lt x 2 lt dots lt x n b nbsp A Riemann sum S displaystyle S nbsp of f displaystyle f nbsp over a b displaystyle a b nbsp with partition P displaystyle P nbsp is defined as S i 1 n f x i D x i displaystyle S sum i 1 n f x i Delta x i nbsp where D x i x i x i 1 displaystyle Delta x i x i x i 1 nbsp and x i x i 1 x i displaystyle x i in x i 1 x i nbsp 1 One might produce different Riemann sums depending on which x i displaystyle x i nbsp s are chosen In the end this will not matter if the function is Riemann integrable when the difference or width of the summands D x i displaystyle Delta x i nbsp approaches zero Types of Riemann sums editSpecific choices of x i displaystyle x i nbsp give different types of Riemann sums If x i x i 1 displaystyle x i x i 1 nbsp for all i the method is the left rule 2 3 and gives a left Riemann sum If x i x i displaystyle x i x i nbsp for all i the method is the right rule 2 3 and gives a right Riemann sum If x i x i x i 1 2 displaystyle x i x i x i 1 2 nbsp for all i the method is the midpoint rule 2 3 and gives a middle Riemann sum If f x i sup f x i 1 x i displaystyle f x i sup f x i 1 x i nbsp that is the supremum off textstyle f nbsp over x i 1 x i displaystyle x i 1 x i nbsp the method is the upper rule and gives an upper Riemann sum or upper Darboux sum If f x i inf f x i 1 x i displaystyle f x i inf f x i 1 x i nbsp that is the infimum of f over x i 1 x i displaystyle x i 1 x i nbsp the method is the lower rule and gives a lower Riemann sum or lower Darboux sum All these Riemann summation methods are among the most basic ways to accomplish numerical integration Loosely speaking a function is Riemann integrable if all Riemann sums converge as the partition gets finer and finer While not derived as a Riemann sum taking the average of the left and right Riemann sums is the trapezoidal rule and gives a trapezoidal sum It is one of the simplest of a very general way of approximating integrals using weighted averages This is followed in complexity by Simpson s rule and Newton Cotes formulas Any Riemann sum on a given partition that is for any choice of x i displaystyle x i nbsp between x i 1 displaystyle x i 1 nbsp and x i displaystyle x i nbsp is contained between the lower and upper Darboux sums This forms the basis of the Darboux integral which is ultimately equivalent to the Riemann integral Riemann summation methods editThe four Riemann summation methods are usually best approached with subintervals of equal size The interval a b is therefore divided into n displaystyle n nbsp subintervals each of lengthD x b a n displaystyle Delta x frac b a n nbsp The points in the partition will then bea a D x a 2 D x a n 2 D x a n 1 D x b displaystyle a a Delta x a 2 Delta x ldots a n 2 Delta x a n 1 Delta x b nbsp Left rule edit nbsp Left Riemann sum of x x3 over 0 2 using 4 subintervalsFor the left rule the function is approximated by its values at the left endpoints of the subintervals This gives multiple rectangles with base Dx and height f a iDx Doing this for i 0 1 n 1 and summing the resulting areas givesS l e f t D x f a f a D x f a 2 D x f b D x displaystyle S mathrm left Delta x left f a f a Delta x f a 2 Delta x dots f b Delta x right nbsp The left Riemann sum amounts to an overestimation if f is monotonically decreasing on this interval and an underestimation if it is monotonically increasing The error of this formula will be a b f x d x S l e f t M 1 b a 2 2 n displaystyle left vert int a b f x dx S mathrm left right vert leq frac M 1 b a 2 2n nbsp where M 1 displaystyle M 1 nbsp is the maximum value of the absolute value of f x displaystyle f prime x nbsp over the interval Right rule edit nbsp Right Riemann sum of x x3 over 0 2 using 4 subintervalsFor the right rule the function is approximated by its values at the right endpoints of the subintervals This gives multiple rectangles with base Dx and height f a iDx Doing this for i 1 n and summing the resulting areas givesS r i g h t D x f a D x f a 2 D x f b displaystyle S mathrm right Delta x left f a Delta x f a 2 Delta x dots f b right nbsp The right Riemann sum amounts to an underestimation if f is monotonically decreasing and an overestimation if it is monotonically increasing The error of this formula will be a b f x d x S r i g h t M 1 b a 2 2 n displaystyle left vert int a b f x dx S mathrm right right vert leq frac M 1 b a 2 2n nbsp where M 1 displaystyle M 1 nbsp is the maximum value of the absolute value of f x displaystyle f prime x nbsp over the interval Midpoint rule edit nbsp Middle Riemann sum of x x3 over 0 2 using 4 subintervalsFor the midpoint rule the function is approximated by its values at the midpoints of the subintervals This gives f a Dx 2 for the first subinterval f a 3Dx 2 for the next one and so on until f b Dx 2 Summing the resulting areas givesS m i d D x f a D x 2 f a 3 D x 2 f b D x 2 displaystyle S mathrm mid Delta x left f left a tfrac Delta x 2 right f left a tfrac 3 Delta x 2 right dots f left b tfrac Delta x 2 right right nbsp The error of this formula will be a b f x d x S m i d M 2 b a 3 24 n 2 displaystyle left vert int a b f x dx S mathrm mid right vert leq frac M 2 b a 3 24n 2 nbsp where M 2 displaystyle M 2 nbsp is the maximum value of the absolute value of f x displaystyle f prime prime x nbsp over the interval This error is half of that of the trapezoidal sum as such the middle Riemann sum is the most accurate approach to the Riemann sum Generalized midpoint rule edit A generalized midpoint rule formula is given by 0 1 f x d x m 1 M n 0 1 n 1 2 M n 1 n 1 f n x x m 1 2 M displaystyle int 0 1 f x dx sum m 1 M sum n 0 infty frac left 1 right n 1 left 2M right n 1 left n 1 right left f n x right x frac m 1 2 M nbsp or 0 1 f x d x lim N m 1 M n 0 N 1 n 1 2 M n 1 n 1 f n x x m 1 2 M displaystyle int 0 1 f x dx lim N to infty sum m 1 M sum n 0 N frac left 1 right n 1 left 2M right n 1 left n 1 right left f n x right x frac m 1 2 M nbsp where f n x displaystyle f n x nbsp denotes n displaystyle n nbsp th derivative 4 For example substituting M 1 displaystyle M 1 nbsp and f x 8 1 8 2 x 2 displaystyle f x frac theta 1 theta 2 x 2 nbsp in the generalized midpoint rule formula we obtain an equation of the inverse tangent tan 1 8 i n 1 1 2 n 1 1 1 2 i 8 2 n 1 1 1 2 i 8 2 n 1 2 n 1 1 2 n 1 a n 8 a n 2 8 b n 2 8 displaystyle tan 1 theta i sum n 1 infty frac 1 2n 1 left frac 1 left 1 2i theta right 2n 1 frac 1 left 1 2i theta right 2n 1 right 2 sum n 1 infty frac 1 2n 1 frac a n left theta right a n 2 left theta right b n 2 left theta right nbsp where i 1 displaystyle i sqrt 1 nbsp is the imaginary unit and a 1 8 2 8 b 1 8 1 a n 8 1 4 8 2 a n 1 8 4 8 b n 1 8 b n 8 1 4 8 2 b n 1 8 4 8 a n 1 8 displaystyle begin aligned a 1 theta amp frac 2 theta b 1 theta amp 1 a n theta amp left 1 frac 4 theta 2 right a n 1 theta frac 4 theta b n 1 theta b n theta amp left 1 frac 4 theta 2 right b n 1 theta frac 4 theta a n 1 theta end aligned nbsp Since at each odd n displaystyle n nbsp the numerator of the integrand becomes 1 n 1 0 displaystyle 1 n 1 0 nbsp the generalized midpoint rule formula can be reorganized as 0 1 f x d x 2 m 1 M n 0 1 2 M 2 n 1 2 n 1 f 2 n x x m 1 2 M displaystyle int 0 1 f x dx 2 sum m 1 M sum n 0 infty frac 1 left 2M right 2n 1 left 2n 1 right left f 2n x right x frac m 1 2 M nbsp The following example of Mathematica code generates the plot showing difference between inverse tangent and its approximation truncated at M 5 displaystyle M 5 nbsp and N 10 displaystyle N 10 nbsp f theta x theta 1 theta 2 x 2 aTan theta M nMax 2 Sum Function x Evaluate D f theta x x 2 n m 1 2 M 2 n 1 2 M 2 n 1 m 1 M n 0 nMax Plot ArcTan theta aTan theta 5 10 theta Pi Pi PlotRange gt All For a function g t displaystyle g t nbsp defined over interval a b displaystyle a b nbsp its integral is a b g t d t 0 b a g t a d t b a 0 1 g b a x a d x displaystyle int a b g t dt int 0 b a g tau a d tau b a int 0 1 g b a x a dx nbsp Therefore we can apply the generalized midpoint integration formula above by assuming that f x b a g b a x a displaystyle f x b a g b a x a nbsp Trapezoidal rule edit Main article Trapezoidal rule nbsp Trapezoidal sum of x x3 over 0 2 using 4 subintervalsFor the trapezoidal rule the function is approximated by the average of its values at the left and right endpoints of the subintervals Using the area formula 1 2 h b 1 b 2 displaystyle tfrac 1 2 h b 1 b 2 nbsp for a trapezium with parallel sides b1 and b2 and height h and summing the resulting areas givesS t r a p 1 2 D x f a 2 f a D x 2 f a 2 D x f b displaystyle S mathrm trap tfrac 1 2 Delta x left f a 2f a Delta x 2f a 2 Delta x dots f b right nbsp The error of this formula will be a b f x d x S t r a p M 2 b a 3 12 n 2 displaystyle left vert int a b f x dx S mathrm trap right vert leq frac M 2 b a 3 12n 2 nbsp where M 2 displaystyle M 2 nbsp is the maximum value of the absolute value of f x displaystyle f x nbsp The approximation obtained with the trapezoidal sum for a function is the same as the average of the left hand and right hand sums of that function Connection with integration editFor a one dimensional Riemann sum over domain a b displaystyle a b nbsp as the maximum size of a subinterval shrinks to zero that is the limit of the norm of the subintervals goes to zero some functions will have all Riemann sums converge to the same value This limiting value if it exists is defined as the definite Riemann integral of the function over the domain a b f x d x lim D x 0 i 1 n f x i D x i displaystyle int a b f x dx lim Delta x rightarrow 0 sum i 1 n f x i Delta x i nbsp For a finite sized domain if the maximum size of a subinterval shrinks to zero this implies the number of subinterval goes to infinity For finite partitions Riemann sums are always approximations to the limiting value and this approximation gets better as the partition gets finer The following animations help demonstrate how increasing the number of subintervals while lowering the maximum subinterval size better approximates the area under the curve nbsp Left Riemann sum nbsp Right Riemann sum nbsp Middle Riemann sumSince the red function here is assumed to be a smooth function all three Riemann sums will converge to the same value as the number of subintervals goes to infinity Example editComparison of the right Riemann sum with the integral of x x2 over 0 2 textstyle 0 2 nbsp nbsp A visual representation of the area under the curve y x2 over 0 2 Using antiderivatives this area is exactly 8 3 textstyle dfrac 8 3 nbsp nbsp Approximating the area under the curve y x2 over 0 2 using the right Riemann sum Notice that because the function is monotonically increasing the right Riemann sum will always overestimate the area contributed by each term in the sum and do so maximally nbsp The value of the right Riemann sum of x x2 over 0 2 textstyle 0 2 nbsp As the number of rectangles increases it approaches the exact area of 8 3 textstyle dfrac 8 3 nbsp Taking an example the area under the curve y x2 over 0 2 can be procedurally computed using Riemann s method The interval 0 2 is firstly divided into n subintervals each of which is given a width of 2 n displaystyle tfrac 2 n nbsp these are the widths of the Riemann rectangles hereafter boxes Because the right Riemann sum is to be used the sequence of x coordinates for the boxes will be x 1 x 2 x n displaystyle x 1 x 2 ldots x n nbsp Therefore the sequence of the heights of the boxes will be x 1 2 x 2 2 x n 2 displaystyle x 1 2 x 2 2 ldots x n 2 nbsp It is an important fact that x i 2 i n displaystyle x i tfrac 2i n nbsp and x n 2 displaystyle x n 2 nbsp The area of each box will be 2 n x i 2 displaystyle tfrac 2 n times x i 2 nbsp and therefore the nth right Riemann sum will be S 2 n 2 n 2 2 n 2 i n 2 2 n 2 n n 2 8 n 3 1 i 2 n 2 8 n 3 n n 1 2 n 1 6 8 n 3 2 n 3 3 n 2 n 6 8 3 4 n 4 3 n 2 displaystyle begin aligned S amp frac 2 n left frac 2 n right 2 dots frac 2 n left frac 2i n right 2 dots frac 2 n left frac 2n n right 2 1ex amp frac 8 n 3 left 1 dots i 2 dots n 2 right 1ex amp frac 8 n 3 left frac n n 1 2n 1 6 right 1ex amp frac 8 n 3 left frac 2n 3 3n 2 n 6 right 1ex amp frac 8 3 frac 4 n frac 4 3n 2 end aligned nbsp If the limit is viewed as n it can be concluded that the approximation approaches the actual value of the area under the curve as the number of boxes increases Hence lim n S lim n 8 3 4 n 4 3 n 2 8 3 displaystyle lim n to infty S lim n to infty left frac 8 3 frac 4 n frac 4 3n 2 right frac 8 3 nbsp This method agrees with the definite integral as calculated in more mechanical ways 0 2 x 2 d x 8 3 displaystyle int 0 2 x 2 dx frac 8 3 nbsp Because the function is continuous and monotonically increasing over the interval a right Riemann sum overestimates the integral by the largest amount while a left Riemann sum would underestimate the integral by the largest amount This fact which is intuitively clear from the diagrams shows how the nature of the function determines how accurate the integral is estimated While simple right and left Riemann sums are often less accurate than more advanced techniques of estimating an integral such as the Trapezoidal rule or Simpson s rule The example function has an easy to find anti derivative so estimating the integral by Riemann sums is mostly an academic exercise however it must be remembered that not all functions have anti derivatives so estimating their integrals by summation is practically important Higher dimensions editThe basic idea behind a Riemann sum is to break up the domain via a partition into pieces multiply the size of each piece by some value the function takes on that piece and sum all these products This can be generalized to allow Riemann sums for functions over domains of more than one dimension While intuitively the process of partitioning the domain is easy to grasp the technical details of how the domain may be partitioned get much more complicated than the one dimensional case and involves aspects of the geometrical shape of the domain 5 Two dimensions edit In two dimensions the domain A displaystyle A nbsp may be divided into a number of two dimensional cells A i displaystyle A i nbsp such that A i A i textstyle A bigcup i A i nbsp Each cell then can be interpreted as having an area denoted by D A i displaystyle Delta A i nbsp 6 The two dimensional Riemann sum isS i 1 n f x i y i D A i displaystyle S sum i 1 n f x i y i Delta A i nbsp where x i y i A i displaystyle x i y i in A i nbsp Three dimensions edit In three dimensions the domain V displaystyle V nbsp is partitioned into a number of three dimensional cells V i displaystyle V i nbsp such that V i V i textstyle V bigcup i V i nbsp Each cell then can be interpreted as having an volume denoted by D V i displaystyle Delta V i nbsp The three dimensional Riemann sum is 7 S i 1 n f x i y i z i D V i displaystyle S sum i 1 n f x i y i z i Delta V i nbsp where x i y i z i V i displaystyle x i y i z i in V i nbsp Arbitrary number of dimensions edit Higher dimensional Riemann sums follow a similar pattern An n dimensional Riemann sum isS i f P i D V i displaystyle S sum i f P i Delta V i nbsp where P i V i displaystyle P i in V i nbsp that is it is a point in the n dimensional cell V i displaystyle V i nbsp with n dimensional volume D V i displaystyle Delta V i nbsp Generalization edit In high generality Riemann sums can be writtenS i f P i m V i displaystyle S sum i f P i mu V i nbsp where P i displaystyle P i nbsp stands for any arbitrary point contained in the set V i displaystyle V i nbsp and m displaystyle mu nbsp is a measure on the underlying set Roughly speaking a measure is a function that gives a size of a set in this case the size of the set V i displaystyle V i nbsp in one dimension this can often be interpreted as a length in two dimensions as an area in three dimensions as a volume and so on See also editAntiderivative Euler method and midpoint method related methods for solving differential equations Lebesgue integral Riemann integral limit of Riemann sums as the partition becomes infinitely fine Simpson s rule a powerful numerical method more powerful than basic Riemann sums or even the Trapezoidal rule Trapezoidal rule numerical method based on the average of the left and right Riemann sumReferences edit Hughes Hallett Deborah McCullum William G et al 2005 Calculus 4th ed Wiley p 252 Among many equivalent variations on the definition this reference closely resembles the one given here a b c Hughes Hallett Deborah McCullum William G et al 2005 Calculus 4th ed Wiley p 340 So far we have three ways of estimating an integral using a Riemann sum 1 The left rule uses the left endpoint of each subinterval 2 The right rule uses the right endpoint of each subinterval 3 The midpoint rule uses the midpoint of each subinterval a b c Ostebee Arnold Zorn Paul 2002 Calculus from Graphical Numerical and Symbolic Points of View Second ed p M 33 Left rule right rule and midpoint rule approximating sums all fit this definition S M Abrarov and B M Quine 2018 A formula for pi involving nested radicals The Ramanujan Journal 46 3 657 665 arXiv 1610 07713 doi 10 1007 s11139 018 9996 8 S2CID 119150623 Swokowski Earl W 1979 Calculus with Analytic Geometry Second ed Boston MA Prindle Weber amp Schmidt pp 821 822 ISBN 0 87150 268 2 Ostebee Arnold Zorn Paul 2002 Calculus from Graphical Numerical and Symbolic Points of View Second ed p M 34 We chop the plane region R into m smaller regions R1 R2 R3 Rm perhaps of different sizes and shapes The size of a subregion Ri is now taken to be its area denoted by DAi Swokowski Earl W 1979 Calculus with Analytic Geometry Second ed Boston MA Prindle Weber amp Schmidt pp 857 858 ISBN 0 87150 268 2 External links editWeisstein Eric W Riemann Sum MathWorld A simulation showing the convergence of Riemann sums Retrieved from https en wikipedia org w index php title Riemann sum amp oldid 1176960807, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.