Calculus/Definite integral

From testwiki
Jump to navigation Jump to search

Template:Calculus/Top Nav

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

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 ba, each subinterval has width Δx=ban . 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 [xi1,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 .

Template:Calculus/Def

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*[xi1,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.

Template:Calculus/Def

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

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

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 [xi1,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=limnAn=limni=1nf(xi)Δx

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

An=i=1nf(xi1)Δx

Then the integral of f is

abf(x)dx=limnAn=limni=1nf(xi1)Δx

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

Examples

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=1nin1n=1n2i=1ni

Now we use the formula

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

to get

An=1n2n(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=limnn+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 ba so

Δx=ban

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

xi*=a+iΔx=a+i(ba)n

Thus

An =i=1nf(xi*)Δx
=i=1nf(a+(ba)in)Δx
=bani=1n(a+(ba)in)2
=bani=1n(a2+2a(ba)in+(ba)2i2n2)

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

i=1na2=a2i=1n1=na2
i=1n2a(ba)in=2a(ba)ni=1ni=2a(ba)nn(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(ba)2i2n2=(ba)2n2n(n+1)(2n+1)6

Putting this together

An=ban(na2+2a(ba)nn(n+1)2+(ba)2n2n(n+1)(2n+1)6)

Taking the limit as n tend to infinity gives

abx2dx =(ba)(a2+a(ba)+13(ba)2)
=(ba)(a2+aba2+13(b22ab+a2))
=13(ba)(b2+ab+a2)
=13(b3a3)

Exercises

Template:Question-answer

Template:Question-answer Template:Noprint

Basic Properties of the Integral

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

Template:Calculus/Def

When f is positive, the height of the function cf at a point x is c times the height of the function f . So the area under cf 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,

abcf(x)dx=limni=1ncf(xi*)=climni=1nf(xi*)=cabf(x)dx

Example

We saw in the previous section that

01xdx=12

Using the constant rule we can use this to calculate that

013xdx=301xdx=312=1.5 ,
017xdx=701xdx=(7)12=3.5 .

Example

We saw in the previous section that

abx2dx=b3a33

We can use this and the constant rule to calculate that

132x2dx=213x2dx=213(3313)=23(271)=523

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

Template:Calculus/Def

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

Example

139dx=9(31)=92=18
2611dx=11(6(2))=118=88
2170dx=0(172)=0

The addition and subtraction rule

Template:Calculus/Def

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

ab(f(x)+g(x))dx =limni=1n(f(xi*)+g(xi*))
=limni=1nf(xi*)+limni=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(2x29)dx=132x2dx139dx=52318=23

Example

02(4x2+14)dx=402x2dx+0214dx=413(2303)+214=323+28=1163

Exercise

Template:Question-answer Template:Noprint

The Comparison Rule

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

Template:Calculus/Def

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 Mf(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(ba)=abMabf(x)dxabm=m(ba)

Linearity with respect to endpoints

Template:Calculus/Def

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

Template:Calculus/Def

Exercise

Template:Question-answer Template:Noprint

Even and odd functions

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

Template:Calculus/Def

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.

Template:Question-answer

Template:Calculus/Top Nav Template:Calculus/TOC