Jump to content

Calculus/Definite integral

From Wikibooks, open books for an open world
← Integration/Contents Calculus Fundamental Theorem of Calculus →
Definite integral

Suppose we are given a function and would like to determine the area underneath its graph over an interval. We could guess, but how could we figure out the exact area? Below, using a few clever ideas, we actually define such an area and show that by using what is called the definite integral we can indeed determine the exact area underneath a curve.

Definition of the Definite Integral

[edit | edit source]
Figure 1: Approximation of the area under the curve f(x) from x=x0 to x=x4.
Figure 2: Rectangle approximating the area under the curve from x2 to x3 with sample point x3∗ .

The rough idea of defining the area under the graph of f is to approximate this area with a finite number of rectangles. Since we can easily work out the area of the rectangles, we get an estimate of the area under the graph. If we use a larger number of smaller-sized rectangles we expect greater accuracy with respect to the area under the curve and hence a better approximation. Somehow, it seems that we could use our old friend from differentiation, the limit, and "approach" an infinite number of rectangles to get the exact area. Let's look at such an idea more closely.

Suppose we have a function f that is positive on the interval [a,b] and we want to find the area S under f between a and b . Let's pick an integer n and divide the interval into n subintervals of equal width (see Figure 1). As the interval [a,b] has width b−a, each subinterval has width Δx=b−an . We denote the endpoints of the subintervals by x0,x1,…,xn . This gives us

xi=a+iΔx for i=0,1,…,n
Figure 3: Riemann sums with an increasing number of subdivisions yielding better approximations.

Now for each i=1,…,n pick a sample point xi∗ in the interval [xi−1,xi] and consider the rectangle of height f(xi∗) and width Δx (see Figure 2). The area of this rectangle is f(xi∗)Δx . By adding up the area of all the rectangles for i=1,…,n we get that the area S is approximated by

An=f(x1∗)Δx+…+f(xn∗)Δx

A more convenient way to write this is with summation notation:

An=∑i=1nf(xi∗)Δx

For each number n we get a different approximation. As n gets larger the width of the rectangles gets smaller which yields a better approximation (see Figure 3). In the limit of An as n tends to infinity we get the area S .

Definition of the Definite Integral
Suppose f is a continuous function on [a,b] and Δx=b−an . Then the definite integral of f between a and b is

∫abf(x)dx=limn→∞An=limn→∞∑i=1nf(xi∗)Δx

where xi∗ are any sample points in the interval [xi−1,xi] and xk=a+k⋅Δx for k=0,…,n .

It is a fact that if f is continuous on [a,b] then this limit always exists and does not depend on the choice of the points xi∗∈[xi−1,xi] . For instance they may be evenly spaced, or distributed ambiguously throughout the interval. The proof of this is technical and is beyond the scope of this section.

Notation
When considering the expression, ∫abf(x)dx (read "the integral from a to b of the f of x dx"), the function f is called the integrand and the interval [a,b] is the interval of integration. Also a is called the lower limit and b the upper limit of integration.

Figure 4: The integral gives the signed area under the graph.

One important feature of this definition is that we also allow functions which take negative values. If f(x)<0 for all x then f(xi∗)<0 so f(xi∗)Δx<0 . So the definite integral of f will be strictly negative. More generally if f takes on both positive and negative values then ∫abf(x)dx will be the area under the positive part of the graph of f minus the area above the graph of the negative part of the graph (see Figure 4). For this reason we say that ∫abf(x)dx is the signed area under the graph.

Independence of Variable

[edit | edit source]

It is important to notice that the variable x did not play an important role in the definition of the integral. In fact we can replace it with any other letter, so the following are all equal:

∫abf(x)dx=∫abf(t)dt=∫abf(u)du=∫abf(w)dw

Each of these is the signed area under the graph of f between a and b . Such a variable is often referred to as a dummy variable or a bound variable.

Left and Right Handed Riemann Sums

[edit | edit source]
Figure 5: Right-handed Riemann sum
Figure 6: Left-handed Riemann sum

The following methods are sometimes referred to as L-RAM and R-RAM, RAM standing for "Rectangular Approximation Method."

We could have decided to choose all our sample points xi∗ to be on the right hand side of the interval [xi−1,xi] (see Figure 5). Then xi∗=xi for all i and the approximation that we called An for the area becomes

An=∑i=1nf(xi)Δx

This is called the right-handed Riemann sum, and the integral is the limit

∫abf(x)dx=limn→∞An=limn→∞∑i=1nf(xi)Δx

Alternatively we could have taken each sample point on the left hand side of the interval. In this case xi∗=xi−1 (see Figure 6) and the approximation becomes

An=∑i=1nf(xi−1)Δx

Then the integral of f is

∫abf(x)dx=limn→∞An=limn→∞∑i=1nf(xi−1)Δx

The key point is that, as long as f is continuous, these two definitions give the same answer for the integral.

Examples

[edit | edit source]

Example 1
In this example we will calculate the area under the curve given by the graph of f(x)=x for x between 0 and 1. First we fix an integer n and divide the interval [0,1] into n subintervals of equal width. So each subinterval has width

Δx=1n

To calculate the integral we will use the right-handed Riemann sum. (We could have used the left-handed sum instead, and this would give the same answer in the end). For the right-handed sum the sample points are

xi∗=0+iΔx=ini=1,…,n

Notice that f(xi∗)=xi∗=in . Putting this into the formula for the approximation,

An=∑i=1nf(xi∗)Δx=∑i=1nf(in)Δx=∑i=1nin⋅1n=1n2∑i=1ni

Now we use the formula

∑i=1ni=n(n+1)2

to get

An=1n2⋅n(n+1)2=n+12n

To calculate the integral of f between 0 and 1 we take the limit as n tends to infinity,

∫01f(x)dx=limn→∞n+12n=12

Example 2
Next we show how to find the integral of the function f(x)=x2 between x=a and x=b . This time the interval [a,b] has width b−a so

Δx=b−an

Once again we will use the right-handed Riemann sum. So the sample points we choose are

xi∗=a+iΔx=a+i(b−a)n

Thus

An =∑i=1nf(xi∗)Δx
=∑i=1nf(a+(b−a)in)Δx
=b−an∑i=1n(a+(b−a)in)2
=b−an∑i=1n(a2+2a(b−a)in+(b−a)2i2n2)

We have to calculate each piece on the right hand side of this equation. For the first two,

∑i=1na2=a2∑i=1n1=na2
∑i=1n2a(b−a)in=2a(b−a)n∑i=1ni=2a(b−a)n⋅n(n+1)2

For the third sum we have to use a formula

∑i=1ni2=n(n+1)(2n+1)6

to get

∑i=1n(b−a)2i2n2=(b−a)2n2n(n+1)(2n+1)6

Putting this together

An=b−an(na2+2a(b−a)n⋅n(n+1)2+(b−a)2n2n(n+1)(2n+1)6)

Taking the limit as n tend to infinity gives

∫abx2dx =(b−a)(a2+a(b−a)+13(b−a)2)
=(b−a)(a2+ab−a2+13(b2−2ab+a2))
=13(b−a)(b2+ab+a2)
=13(b3−a3)

Exercises

[edit | edit source]
1. Use left- and right-handed Riemann sums with 5 subdivisions to get lower and upper bounds on the area under the function f(x)=x6 from x=0 to x=1 .
Lower bound: 0.062592
Upper bound: 0.262592
Lower bound: 0.062592
Upper bound: 0.262592
2. Use left- and right-handed Riemann sums with 5 subdivisions to get lower and upper bounds on the area under the function f(x)=x6 from x=1 to x=2 .
Lower bound: 12.460992
Upper bound: 25.060992
Lower bound: 12.460992
Upper bound: 25.060992

Solutions

Basic Properties of the Integral

[edit | edit source]

From the definition of the integral we can deduce some basic properties. For all the following rules, suppose that f and g are continuous on [a,b] .

The Constant Rule

[edit | edit source]

Constant Rule ∫abc⋅f(x)dx=c∫abf(x)dx

When f is positive, the height of the function c⋅f at a point x is c times the height of the function f . So the area under c⋅f between a and b is c times the area under f . We can also give a proof using the definition of the integral, using the constant rule for limits,

∫abc⋅f(x)dx=limn→∞∑i=1nc⋅f(xi∗)=c⋅limn→∞∑i=1nf(xi∗)=c∫abf(x)dx

Example

We saw in the previous section that

∫01xdx=12

Using the constant rule we can use this to calculate that

∫013xdx=3∫01xdx=3⋅12=1.5 ,
∫01−7xdx=−7∫01xdx=(−7)⋅12=−3.5 .

Example

We saw in the previous section that

∫abx2dx=b3−a33

We can use this and the constant rule to calculate that

∫132x2dx=2∫13x2dx=2⋅13⋅(33−13)=23(27−1)=523

There is a special case of this rule used for integrating constants:

Integrating Constants
If c is constant then ∫abc dx=c(b−a)

When c>0 and a<b this integral is the area of a rectangle of height c and width b−a which equals c(b−a) .

Example

∫139dx=9(3−1)=9⋅2=18
∫−2611dx=11(6−(−2))=11⋅8=88
∫2170dx=0⋅(17−2)=0

The addition and subtraction rule

[edit | edit source]

Addition and Subtraction Rules of Integration
∫ab(f(x)+g(x))dx=∫abf(x)dx+∫abg(x)dx

∫ab(f(x)−g(x))dx=∫abf(x)dx−∫abg(x)dx

As with the constant rule, the addition rule follows from the addition rule for limits:

∫ab(f(x)+g(x))dx =limn→∞∑i=1n(f(xi∗)+g(xi∗))
=limn→∞∑i=1nf(xi∗)+limn→∞∑i=1ng(xi∗)
=∫abf(x)dx+∫abg(x)dx

The subtraction rule can be proved in a similar way.

Example

From above ∫139dx=18 and ∫132x2dx=523 so

∫13(2x2+9)dx=∫132x2dx+∫139dx=523+18=1063
∫13(2x2−9)dx=∫132x2dx−∫139dx=523−18=−23

Example

∫02(4x2+14)dx=4∫02x2dx+∫0214dx=4⋅13(23−03)+2⋅14=323+28=1163

Exercise

[edit | edit source]
3. Use the subtraction rule to find the area between the graphs of f(x)=x and g(x)=x2 between x=0 and x=1
16
16

Solution

The Comparison Rule

[edit | edit source]
Figure 7: Bounding the area under f(x) on [a,b]

Comparison Rule

  • Suppose f(x)≥0 for all x∈[a,b] . Then
∫abf(x)dx≥0
  • Suppose f(x)≥g(x) for all x∈[a,b] . Then
∫abf(x)dx≥∫abg(x)dx
  • Suppose M≥f(x)≥m for all x∈[a,b] . Then
M(b−a)≥∫abf(x)dx≥m(b−a)

If f(x)≥0 then each of the rectangles in the Riemann sum to calculate the integral of f will be above the y axis, so the area will be non-negative. If f(x)≥g(x) then f(x)−g(x)≥0 and by the first property we get the second property. Finally if M≥f(x)≥m then the area under the graph of f will be greater than the area of rectangle with height m and less than the area of the rectangle with height M (see Figure 7). So

M(b−a)=∫abM≥∫abf(x)dx≥∫abm=m(b−a)

Linearity with respect to endpoints

[edit | edit source]

Additivity with respect to endpoints Suppose a<c<b . Then

∫abf(x)dx=∫acf(x)dx+∫cbf(x)dx

Again suppose that f is positive. Then this property should be interpreted as saying that the area under the graph of f between a and b is the area between a and c plus the area between c and b (see Figure 8).

Figure 8: Illustration of the property of additivity with respect to endpoints

Extension of Additivity with respect to limits of integration
When a=b we have that Δx=b−an=0 so

∫aaf(x)dx=0

Also in defining the integral we assumed that a<b . But the definition makes sense even when b<a , in which case Δx=b−an has changed sign. This gives

∫baf(x)dx=−∫abf(x)dx

With these definitions,

∫abf(x)dx=∫acf(x)dx+∫cbf(x)dx

whatever the order of a,b,c .

Exercise

[edit | edit source]
4. Use the results of exercises 1 and 2 and the property of linearity with respect to endpoints to determine upper and lower bounds on ∫02x6dx .
Lower bound: 12.523584
Upper bound: 25.323584
Lower bound: 12.523584
Upper bound: 25.323584

Solution

Even and odd functions

[edit | edit source]

Recall that a function f is called odd if it satisfies f(−x)=−f(x) and is called even if f(−x)=f(x) .

Suppose f is a continuous odd function then for any a ,

∫−aaf(x)dx=0

If f is a continuous even function then for any a ,

∫−aaf(x)dx=2∫0af(x)dx

Suppose f is an odd function and consider first just the integral from −a to 0 . We make the substitution u=−x so du=−dx . Notice that if x=−a then u=a and if x=0 then u=0 . Hence

∫−a0f(x)dx=−∫a0f(−u)du=∫0af(−u)du .

Now as f is odd, f(−u)=−f(u) so the integral becomes

∫−a0f(x)dx=−∫0af(u)du .

Now we can replace the dummy variable u with any other variable. So we can replace it with the letter x to give

∫−a0f(x)dx=−∫0af(u)du=−∫0af(x)dx .

Now we split the integral into two pieces

∫−aaf(x)dx=∫−a0f(x)dx+∫0af(x)dx=−∫0af(x)dx+∫0af(x)dx=0 .

The proof of the formula for even functions is similar.

5. Prove that if f is a continuous even function then for any a ,
∫−aaf(x)dx=2∫0af(x)dx .
From the property of linearity of the endpoints we have
∫−aaf(x)dx=∫−a0f(x)dx+∫0af(x)dx

Make the substitution u=−x;du=−dx . u=a when x=−a and u=0 when x=0 . Then

∫−a0f(x)dx=∫a0f(−u)(−du)=−∫a0f(−u)du=∫0af(−u)du=∫0af(u)du

where the last step has used the evenness of f . Since u is just a dummy variable, we can replace it with x . Then

∫−aaf(x)dx=∫0af(x)dx+∫0af(x)dx=2∫0af(x)dx
From the property of linearity of the endpoints we have
∫−aaf(x)dx=∫−a0f(x)dx+∫0af(x)dx

Make the substitution u=−x;du=−dx . u=a when x=−a and u=0 when x=0 . Then

∫−a0f(x)dx=∫a0f(−u)(−du)=−∫a0f(−u)du=∫0af(−u)du=∫0af(u)du

where the last step has used the evenness of f . Since u is just a dummy variable, we can replace it with x . Then

∫−aaf(x)dx=∫0af(x)dx+∫0af(x)dx=2∫0af(x)dx
← Integration/Contents Calculus Fundamental Theorem of Calculus →
Definite integral