In the Area Problem note, we saw that the limit of the form limn→∞f(xi⋆)Δx arises when we compute an area.
It turns out that the same type of limit occurs in a wide variety of situations even when f is not necessarily a positive function.
Thus, this limit has a special name and notation.
Definition of Definite Integral. If f is a continuous function defined for a≤x≤b, we divide the interval [a,b] into n subintervals of equal width Δx=nb−a. We let x0(=a),x1,x2,…,xn(=b) be the endpoints of these subintervals and we choose the sample points x1⋆,x2⋆,…,xn⋆ in these subintervals, so that xi⋆ lies in the i-th subinterval [xi−1,xi]. Then, the definite integral of f from a to b is ∫abf(x)dx=limn→∞∑i=1nf(xi⋆)Δx.
As with the indefinite integral, f(x) is called the integrand.
a is the lower limit, and b is the upper limit.
Note that the definite integral is a number, it doesn't depend on x. We can choose another variable: ∫abf(x)dx=∫abf(t)dt=∫abf(u)du.
The sum ∑i=1nf(xi⋆)Δx is called the Riemann sum.
If the sample points xi⋆ are the left endpoints, then the sum is called the left Riemann sum; if they are the right endpoints, the sum is called the right Riemann sum.
Now, let's see what will be if f can take both positive and negative values.
If f takes on both positive and negative values, then the Riemann sum is the sum of the areas of the rectangles that lie above the x-axis minus the sum of the areas of the rectangles that lie below the x-axis.
Thus, the definite integral is the net area: the area above the x-axis minus the area below the x-axis:
∫abf(x)dx=S1−S2+S3+S4−S5+S6.
Note that, although we defined ∫abf(x)dx by dividing the interval [a,b] into n intervals of equal width, it is sometimes advantageous to work with intervals of unequal width. If the subinterval widths are Δx1,Δx2,…,Δxn then we have to ensure that all these widths approach 0 in the limiting process. This happens if the largest width, maxΔxi, approaches 0. So, in this case, the definition of integral becomes ∫abf(x)dx=limmaxΔxi→0∑i=1nf(xi⋆)Δxi.
Now, let's go through a couple of examples.
Example 1. Express limn→∞∑i=1n[3xi2−cos(xi5)]Δx as an integral on the interval [0,π].
Comparing the given limit with the limit in the definition of integral, we see that they will be identical if we choose f(x)=3x2−cos(x5) and xi⋆=xi (so that the sample points are the right endpoints). We are given that a=0 and b=π; therefore, limn→∞∑i=1n[3xi2−cos(xi5)]Δx=∫0π(3x2−cos(x5))dx.
It is very important to recognize the limits of sums as integrals. In general, if limn→∞∑i=1nf(xi⋆)Δx=∫abf(x)dx, we replace lim∑ by ∫, xi⋆ by x and Δx by dx.
Once it is clear, let's move on.
Example 2. Evaluate ∫02(3x2−x3)dx.
Divide interval [0,2] into n subintervals of the width Δx=n2−0=n2.
Since we can use any point within a subinterval, let's use the right endpoints.
The right endpoint of the i-th subinterval is n2i; so,