Chapter 8

Introduction to Integration

IN THIS CHAPTER

Bullet Integrating — adding it all up

Bullet Approximating areas

Bullet Using the definite integral to get exact areas

If you’re still reading, I presume you survived differentiation (Chapters 47). Now you begin the second major calculus topic: integration. Just as two simple ideas lie at the heart of differentiation — rate (like miles per hour) and the slope of a curve — integration can also be understood in terms of two simple ideas: adding up small pieces of something and the area under a curve.

Integration: Just Fancy Addition

Say you want to determine the volume of the lamp’s base in Figure 8-1. Because no formula for the volume of such a weird shape exists, you can’t calculate the volume directly. You can, however, calculate the volume with integration. Imagine that the base is cut up into thin, horizontal slices, as shown on the right in Figure 8-1.

Illustration of a lamp with a curvy base (left) and its base cut into thin horizontal slices (right).

FIGURE 8-1: A lamp with a curvy base and the base cut into thin horizontal slices.

Do you see how each slice is shaped like a thin pancake? Now, because there is a formula for the volume of a pancake (a pancake is just a very short cylinder), you can determine the total volume of the base by simply calculating the volume of each pancake-shaped slice and then adding up the volumes. That’s integration in a nutshell.

What makes integration one of the great achievements in the history of mathematics is that — to stay with the lamp example — it gives you the exact volume of the lamp’s base by sort of cutting it into an infinite number of infinitely thin slices. If you cut the lamp into fewer than an infinite number of slices, you can get only a very good approximation of the volume because each slice will have a weird, curved edge which would cause a small error.

Integration has an elegant symbol: math. You’ve probably seen it before. You can think of the integration symbol as an elongated S for “sum up.” So, for our lamp problem, you can write

math

where dB means a little bit of the base — actually an infinitely small piece. So the equation just means that if you sum up all the little pieces of the base from the bottom to the top, the result is B, the volume of the whole base.

This is a bit oversimplified — I can hear the siren of the math police now — but it’s a good way to think about integration. By the way, thinking of dB as a little or infinitesimal piece of B is an idea you saw before with differentiation (see Chapter 4), where the derivative or slope, math, is equal to the ratio of a little bit of y to a little bit of x, as you shrink the slope stair step down to an infinitesimal size — see Figure 8-2.

Illustration of a curve depicting how it shrinks the slope stair to step down to an infinitesimal size.

FIGURE 8-2: In the limit, math

So, whenever you see something like

math

it just means that you add up all the little pieces of the mumbo jumbo from a to b to get the total of all of the mumbo jumbo from a to b. Or you might see something like

math

which means add up the little pieces of distance traveled between 0 and 20 seconds to get the total distance traveled in that time span.

To sum up — that’s a pun! — the mathematical expression to the right of the integration symbol always stands for a little bit of something, and integrating such an expression means to add up all the little pieces between some starting point and some ending point.

Finding the Area under a Curve

The most fundamental meaning of integration is to add up. And when you depict integration on a graph, you can see the adding up process as a summing up of little bits of area to arrive at the total area under a curve. Consider Figure 8-3.

Graph depicting an integrating function f(x) from a to b to  find the area under the curve between a and b.

FIGURE 8-3: Integrating f(x) from a to b means finding the area under the curve between a and b.

The shaded area in Figure 8-3 can be calculated with the following integral:

math

Look at the thin rectangle in Figure 8-3. It has a height of math and a width of dx (a little bit of x), so its area (length × width, of course) is given by math. The above integral tells you to add up the areas of all the narrow rectangular strips between a and b under the curve math. As the strips get narrower and narrower, you get a better and better estimate of the area. The power of integration lies in the fact that it gives you the exact area by sort of adding up an infinite number of infinitely thin rectangles.

If you’re doing a problem where both the x and y axes are labeled in a unit of length, say, feet, then each thin rectangle measures so many feet by so many feet, and its area — length × width — is some number of square feet. In this case, when you integrate to get the total area under the curve between a and b, your final answer will be an amount of — what else? — area. But you can use this adding-up-areas-of-rectangles scheme to add up tiny bits of anything — distance, volume, or energy, for example. In other words, the area under the curve doesn’t have to stand for an actual area.

If, for example, the units on the x-axis are hours and the y-axis is labeled in miles per hour, then, because rate × time = distance, the area of each rectangle represents an amount of distance, and the total area gives you the total distance traveled during the given time interval. Or if the x-axis is labeled in hours and the y-axis in kilowatts of electrical power — in which case the curve gives power usage as a function of time — then the area of each rectangular strip (kilowatts × hours) represents a number of kilowatt-hours of energy. In that case, the total area under the curve gives you the total number of kilowatt-hours of energy consumption between two points in time.

Dealing with negative area

In the examples involving volume, distance, and energy (see previous two sections), you’re adding up positive bits of something. This is common with practical problems because you can’t, say, have a negative volume of water or use a negative number of kilowatt-hours. However, you will sometimes integrate functions that go into the negatives — that’s below the x-axis. Here’s what you do.

Math rules When using integration to calculate area, area below the x-axis counts as negative area. The total area between a and b for some curve math — given by the integral math — is really a net area where the total area below the x-axis (and above the curve) is subtracted from the total area above the x-axis (and below the curve).

Approximating Area

Before explaining how to calculate exact areas, I want to show you how to approximate areas. The approximation method is useful not only because it lays the groundwork for the exact method — integration — but because for some curves, integration is impossible, and an approximation of area is the best you can do.

Approximating area with left sums

Say you want the exact area under the curve math between 0 and 3. See the shaded area on the graph on the left in Figure 8-4.

Graphs depicting the exact area under the shaded area between 0 and 3 (left), which is approximated by the area of three rectangles (right).

FIGURE 8-4: The exact area under math between 0 and 3 (left) is approximated by the area of three rectangles (right).

You can get a rough estimate of the area by drawing three rectangles under the curve, as shown on the right in Figure 8-4, and then adding up their areas.

The rectangles in Figure 8-4 represent a so-called left sum because the upper left corner of each rectangle touches the curve. Each rectangle has a width of 1 and the height of each is given by the height of the function at the rectangle’s left edge. So, rectangle number 1 has a height of math; its area (math) is thus math, or 1. Rectangle 2 has a height of math, so its area is math, or 2. And rectangle 3 has a height of math, so its area is math, or 5. Adding the areas gives you math, or 8. This is an underestimate of the total area under the curve because of the gaps between the rectangles and the curve.

For a better estimate, double the number of rectangles to six. Figure 8-5 shows six “left” rectangles under the curve and also how they begin to fill up the three gaps you see in Figure 8-4.

Graphs depicting six rectangles to find the approximate area under the function f(x).

FIGURE 8-5: Six “left” rectangles approximate the area under math.

See the three small, darker shaded rectangles in the graph on the right in Figure 8-5? They sit on top of the three rectangles from Figure 8-4, and they represent how much the area estimate has improved by using six rectangles instead of three.

Now total up the areas of the six rectangles. Each has a width of 0.5 and the heights are math and so on. I’ll spare you the math. Here’s the total: math. This is a better estimate, but it’s still an underestimate because of the six small gaps you can see on the left graph in Figure 8-5.

Table 8-1 shows the area estimates given by 3, 6, 12, 24, 48, 96, 192, and 384 rectangles. You don’t have to double the rectangles each time — you can use any number of rectangles you want. I just like the doubling scheme because, with each doubling, the gaps are plugged up more and more in the way shown in Figure 8-5.

TABLE 8-1 Estimates of the Area under math Given by Increasing Numbers of “Left” Rectangles

Number of Rectangles

Area Estimate

3

6

12

24

48

96

192

384

8

9.875

~10.906

~11.445

~11.721

~11.860

~11.930

~11.965

Technicalstuff The Left Rectangle Rule: You can approximate the exact area under a curve between a and b, math, with a sum of left rectangles given by the following formula. In general, the more rectangles, the better the estimate.

math

Where n is the number of rectangles, math is the width of each one, and the function values are the heights of the rectangles.

Look back to the six rectangles shown in Figure 8-5. The width of each rectangle equals the length of the total span from 0 to 3 (which of course is math, or 3) divided by the number of rectangles, 6. That’s what the math does in the formula.

What about those xs with the subscripts? The x-coordinate of the left edge of rectangle 1 in Figure 8-5 is math, the right edge of rectangle 1 (the same as the left edge of rectangle 2) is at math, the right edge of rectangle 2 is at math, the right edge of rectangle 3 is at math, and so on up to the right edge of rectangle 6, at math. For the six rectangles in Figure 8-5, math is 0, math is 0.5, math is 1, math is 1.5, math is 2, math is 2.5, and math is 3. The heights of the six left rectangles in Figure 8-5 occur at their left edges, which are at math through math. You don’t use the right edge of the last rectangle, math, in a left sum. That’s why the list of function values in the formula stops at math.

Here’s how to use the formula for the six rectangles in Figure 8-5:

math

Had I distributed the width of 1/2 to each of the heights after the third line in that solution, you’d see the sum of the areas of the rectangles — seen just before Figure 8-5. The formula uses the shortcut of first adding up the heights and then multiplying by the width.

Approximating area with right sums

Now let’s estimate the same area under math from 0 to 3 with right rectangles. This method works just like the left sum method except that each rectangle is drawn so that its right upper corner touches the curve. See Figure 8-6.

Graph depicting three shaded right rectangles that are used to approximate the area under function f(x).

FIGURE 8-6: Three right rectangles used to approximate the area under math.

The heights of the three rectangles in Figure 8-6 are given by the function values at their right edges: math, and math. Each rectangle has a width of 1, so the areas are 2, 5, and 10, which total 17. Table 8-2 shows the improving estimates you get with more and more right rectangles.

TABLE 8-2 Estimates of the Area under math Given by Increasing Numbers of “Right” Rectangles

Number of Rectangles

Area Estimate

3

6

12

24

48

96

192

384

17

14.375

~13.156

~12.570

~12.283

~12.141

~12.070

~12.035

Technicalstuff The Right Rectangle Rule: You can approximate the exact area under a curve between a and b, math, with a sum of right rectangles given by the following formula. In general, the more rectangles, the better the estimate.

math

where n is the number of rectangles, math is the width of each, and the function values are the heights of the rectangles.

If you compare this formula to the one for a left rectangle sum, you get the complete picture about those subscripts. The two formulas are the same except for one thing. Look at the sums of the function values in both formulas. The right sum formula has one value, math, that the left sum formula doesn’t have, and the left sum formula has one value, math, that the right sum formula doesn’t have. All the function values between those two appear in both formulas. You can get a handle on this by comparing the three left rectangles from Figure 8-4 to the three right rectangles from Figure 8-6. Their areas and totals, which we calculated earlier, are

Three left rectangles:

math

Three right rectangles:

math

The sums of the areas are the same except for the left-most left rectangle and the right-most right rectangle. Both sums include the rectangles with areas 2 and 5. Look at how the rectangles are constructed — the second and third rectangles in Figure 8-4 are the same as the first and second rectangles in Figure 8-6.

Approximating area with midpoint sums

A third way to approximate areas with rectangles is to make each rectangle cross the curve at the midpoint of its top side. A midpoint sum is a much better estimate of area than either a left or a right sum. Figure 8-7 shows why.

Graph depicting three shaded midpoint rectangles providing a better estimate of the area under the function f(x).

FIGURE 8-7: Three midpoint rectangles give you a much better estimate of the area under math.

You can see in Figure 8-7 that the part of each rectangle that’s above the curve looks about the same size as the gap between the rectangle and the curve. A midpoint sum produces such a good estimate because these two errors roughly cancel out each other.

For the three rectangles in Figure 8-8, the widths are 1 and the heights are math, math, and math. The total area comes to 11.75. Table 8-3 lists the midpoint sums for the same number of rectangles used in Tables 8-1 and 8-2.

Graph depicting six shaded right rectangles for calculating the area under f(x) between 0 and 3.

FIGURE 8-8: Six right rectangles approximate the area under math between 0 and 3.

TABLE 8-3 Estimates of the Area under math Given by Increasing Numbers of “Midpoint” Rectangles

Number of Rectangles

Area Estimate

3

6

12

24

48

96

192

384

11.75

11.9375

~11.9844

~11.9961

~11.9990

~11.9998

~11.9999

~11.99998

Sorry to give away the ending, but you’ll soon see that the exact area is 12. And to see how much faster the midpoint approximations approach the exact answer of 12 than the left or right approximations, compare the three tables. The error with 6 midpoint rectangles is about the same as the error with 192 left or right rectangles!

Technicalstuff The Midpoint Rule: You can approximate the exact area under a curve between a and b, math, with a sum of midpoint rectangles given by the following formula. In general, the more rectangles, the better the estimate.

math

where n is the number of rectangles, math is the width of each, and the function values are the heights of the rectangles.

Math rules The left, right, and midpoint sums are called Riemann sums after the great German mathematician G. F. B. Riemann (1826–66).

Summation Notation

For adding up long series of numbers like the rectangle areas in a left, right, or midpoint sum, summation or sigma notation is handy.

Summing up the basics

Say you wanted to add up the first 100 multiples of 5 — that’s from 5 to 500. You could write out the sum like this:

math

But with sigma notation, the sum is much more condensed.

math

This notation just tells you to plug 1 in for the i in 5i, then plug 2 into the i in 5i, then 3, then 4, all the way up to 100. Then you add up the results. So that’s math plus math plus math, and so on, up to math. It’s the same thing as writing out the sum the long way. By the way, the letter i has no significance. You can write the sum with a j, math, or any other letter you like.

Here’s one more. If you want to add up math math, you can write the sum with sigma notation as follows:

math

Writing Riemann sums with sigma notation

You can use sigma notation to write out the right-rectangle sum for the curve math from the “Approximating Area” sections. Recall the formula for a right sum from the “Approximating area with right sums” section:

math

Here’s the same formula written with sigma notation:

math

Now work this out for the six right rectangles in Figure 8-8. You’re figuring the area under math between 0 and 3 with six rectangles, so the width of each, math. So now you’ve got

math

Now, because the width of each rectangle is math, the right edges of the six rectangles fall on the first six multiples of math: 0.5, 1, 1.5, 2, 2.5, and 3. These numbers are the x-coordinates of the six points math through math; they can be generated by the expression math, where i equals 1 through 6. You can check that this works by plugging 1 in for i in math, then 2, then 3, up to 6. So now you can replace the math in the formula with math, giving you

math

Our function, math so math, and so now you can write

math

If you plug 1 into i, then 2, 3, up to 6 and do the math, you get the sum of the areas of the rectangles in Figure 8-8. This sigma notation is just a fancy way of writing the sum of the six rectangles.

Are we having fun? Hold on, it gets worse. Now you’re going to write out the general sum for an unknown number (n) of right rectangles. The total span of the area in question is 3, right? You divide this span by the number of rectangles to get the width of each rectangle. With 6 rectangles, the width of each is math; with n rectangles, the width of each is math. And the right edges of the n rectangles are generated by math, for i equals 1 through n. That gives you

math

Or, because math,

math

For this last step, you pull the math and the math through the summation signs — you’re allowed to pull out anything except for a function of i, the so-called index of summation. Also, the second summation in the last step has just a 1 after it and no i. So there’s nowhere to plug in the values of i. No worries — all you do is add up n 1s, which equals n (I do this in a minute).

With sleight of hand, you’re now going to turn the previous Riemann sum into a formula in terms of n. The sum of the first n square numbers, math, equals math (a formula you might want to memorize). So, you can substitute that expression for math in the last line of the sigma notation solution, and at the same time substitute n for math:

math

The end. Finally! This is the formula for the area of n right rectangles between 0 and 3 under the function math. You can use this formula to produce the results given in Table 8-2. But once you’ve got such a formula, it’d be kind of pointless to produce a table of approximate areas, because you can use the formula to determine the exact area. I get to that in the next section.

But first, here are the formulas for n left rectangles and n midpoint rectangles between 0 and 3 under the function math. These formulas generate the area approximations in Tables 8-1 and 8-3.

math

Finding Exact Area with the Definite Integral

As you saw with the left, right, and midpoint rectangles in the “Approximating Area” sections, the more rectangles you have, the better the approximation. So, “all” you have to do to get the exact area under a curve is to use an infinite number of rectangles. Now, you can’t really do that, but with the fantastic invention of limits, this is sort of what happens. Here’s the definition of the definite integral that’s used to compute exact areas.

Technicalstuff The Definite Integral (“simple” definition): The exact area under a curve between a and b is given by the definite integral, which is defined as the limit of a Riemann sum:

math

Is that a thing of beauty or what? The summation above is identical to the formula for n right rectangles, math, from a few pages back. The only difference is that you take the limit of that formula as the number of rectangles approaches infinity.

This definition of the definite integral is a simple version based on the right rectangle formula. I’ll skip the more complicated real-McCoy definition because you’ll never need to use it. All Riemann sums have the same limit — it doesn’t matter what type of rectangles you use — so you might as well use this right-rectangle definition.

Here, finally, is the exact area under math between 0 and 3:

math

Big surprise.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.98.108