38
Unit #8 : The Integral Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite integral and area. Explore ways to estimate the definite integral. Textbook reading for Unit #8 : Study Sections 5.1, 5.2, 7.5, and (for enrich- ment) 7.6.

Unit #8 : The Integral Goals - mast.queensu.ca

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Unit #8 : The Integral Goals - mast.queensu.ca

Unit #8 : The Integral

Goals:

• Determine how to calculate the area described by a function.

• Define the definite integral.

• Explore the relationship between the definite integral and area.

• Explore ways to estimate the definite integral.

Textbook reading for Unit #8 : Study Sections 5.1, 5.2, 7.5, and (for enrich-ment) 7.6.

Page 2: Unit #8 : The Integral Goals - mast.queensu.ca

2

Distance and Velocity

Recall that if we measure distance x as a function of time t, the velocity is deter-mined by differentiating x(t), i.e. finding the slope of the graph.Alternatively, suppose we begin with a graph of the velocity with respect to time.How can we determine what distance will be traveled? Does it “appear” in thegraph somehow?Let’s begin with the simple case of constant velocity...

distance = velocity× time

Page 3: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 3

For a constant velocity, the distance traveled in a certain length of time was simplythe area of the rectangle underneath the velocity vs. time graph.

What if the velocity is changing?

We can’t determine the exact distance traveled, but maybe we can estimate it.Let’s assume that the velocity is not changing too quickly, so over a short amountof time its roughly constant. We know how to find the distance traveled in thatshort time...

Making many of these approximations, we could come up with a rough estimateof the total distance. How does this estimate relate to the graph?

Page 4: Unit #8 : The Integral Goals - mast.queensu.ca

4

Calculating Area

It appears that the distance traveled is the area under the graph of velocity, evenwhen the velocity is changing. We’ll see exactly why this is true very soon.If we are simply interested in the area under a graph, without any physical inter-pretation, we can already do so if the graph creates a shape that we recognize.Example: Calculate the area between the x-axis and the graph of y = x+ 1from x = −1 and x = 1.

Page 5: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 5

Example: Calculate the area between the x-axis and the graph of y =√1− x2 from x = −1 to x = 1.

−1 1

−1

1

What shapes do you know, right now, for which you can calculate the exactarea?

Page 6: Unit #8 : The Integral Goals - mast.queensu.ca

6

Unfortunately, many or most arbitrary areas are essentially impossible to find thearea of when the shape isn’t a simple composition of triangles, rectangles, or circles.In these cases, we must use less direct methods. We start by making an estimateof the area under the graph using shapes whose area is easier to calculate.

Suppose we are trying to find the area underneath the graph of the function f(x)given below between x = 1 and x = 4. Call this area A.

1 2 3 4 5

−1

1

2

3

4

5

Page 7: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 7

We can make a rough estimation of the area by drawing a rectangle that completelycontains the area, or a rectangle that is completely contained by the area.Calculate this overestimate and underestimate for the area A.

1 2 3 4 5

−1

1

2

3

4

5

Page 8: Unit #8 : The Integral Goals - mast.queensu.ca

8

The next step is to use smaller rectangles to improve our estimate the area. Wecan divide the interval from x = 1 to x = 4 into 3 intervals of width 1, and usedifferent size rectangles on each interval.

Estimate the area A by using 3 rectangles of width 1. Use the function valueat the left edge of the interval as the height of each rectangle.

1 2 3 4 5

−1

1

2

3

4

5

Page 9: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 9

We can repeat this process for any number of rectangles, and we expect that ourestimation of the area will get better the more rectangles we use. The method weused above, choosing for the height of the rectangles the function at the left edge,is called the left hand sum, and is denoted LEFT(n) if we use n rectangles.Suppose we are trying to estimate the area under the function f(x) from x = a tox = b via the left hand sum with n rectangles. Then the width of each rectangle

will be ∆x =b− a

n.

Page 10: Unit #8 : The Integral Goals - mast.queensu.ca

10

If we label the endpoints of the intervals to be a = x0 < x1 < · · · < xn−1 < xn = b,then the formula for the left hand sum will be

LEFT (n) =f(x0)∆x + f(x1)∆x + . . . + f(xn−1)∆x =n∑

i=1

f(xi−1)∆x.

Page 11: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 11

We have a similar definition for the right hand sum, or RIGHT(n), calculatedby taking the height of each rectangle to be the height of the function at the righthand endpoint of the interval.

RIGHT (n) =f(x1)∆x + f(x2)∆x + . . . + f(xn)∆x =n∑

i=1

f(xi)∆x.

Page 12: Unit #8 : The Integral Goals - mast.queensu.ca

12

Calculate LEFT(6) and RIGHT(6) for the function shown, between x = 1and x = 4. You will need to estimate some rectangle heights from the graph.

1 2 3 4 5

−1

1

2

3

4

5

1 2 3 4 5

−1

1

2

3

4

5

Page 13: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 13

In general, when will LEFT(n) be greater than RIGHT(n)?

When will LEFT(n) be an overestimate for the area?

When will LEFT(n) be an underestimate?

Page 14: Unit #8 : The Integral Goals - mast.queensu.ca

14

Area estimations like LEFT (n) and RIGHT (n) are often called Riemann

sums, after the mathematician Bernahrd Riemann (1826-1866) who formalizedmany of the techniques of calculus. The general form for a Riemann Sum is

f(x∗1)∆x + f(x∗

1)∆x + . . . + f(x∗n)∆x =

n∑i=1

f(x∗i )∆x

where each x∗i is some point in the interval [xi−1, xi]. For LEFT (n), we choosethe left hand endpoint of the interval, so x∗i = xi−1; for RIGHT (n), we choosethe right hand endpoint, so x∗i = xi.

Page 15: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 15

The common property of all these approximations is that they involve

• a sum of rectangular areas, with

• widths (∆x), and

• heights (f(x∗i ))

There are other Riemann Sums that give slightly better estimates of the areaunderneath a graph, but the often require extra computation. We will examinesome of these other calculations a little later.

Page 16: Unit #8 : The Integral Goals - mast.queensu.ca

16

The Definite Integral

We observed that as we increase the number of rectangles used to approximatethe area under a curve, our estimate of the area under the graph becomes moreaccurate. This implies that we want to use a limit if we want to calculate theexact area.

The area underneath the graph of f(x) between x = a and x = b is equal to

limn→∞

LEFT (n) = limn→∞

n∑i=1

f(xi−1)∆x, where ∆x =b− a

n.

This limit is called the definite integral of f(x) from a to b, and is equal to thearea under curve whenever f(x) is a non-negative continuous function. The definiteintegral is written with some special notation.

Page 17: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 17

Notation for the Definite Integral

The definite integral of f(x) between x = a and x = b is denoted by the symbol∫ b

a

f(x) dx

We call a and b the limits of integration and f(x) the integrand. The dx

denotes which variable we are using; this will become important for using sometechniques for calculating definite integrals. Note that this notation shares thesame common structure with Riemann sums:

• a sum (

∫sign)

• widths (dx), and

• heights (f(x))

Page 18: Unit #8 : The Integral Goals - mast.queensu.ca

18

Example: Write the definite integral representing the area underneath thegraph of f(x) = x + cosx between x = 2 and x = 4.

Page 19: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 19

We might be concerned that we defined the area and the definite integral usingthe left hand sum. Would we get the same answer for the definite integral if weused the right hand sum, or any other Riemann sum? In fact, the limit using anyRiemann sum would give us the same answer.

Let us look at the left and right hand sums for the function 2x on the interval fromx = 1 to x = 3.

Calculate LEFT (2)−RIGHT (2)

Calculate LEFT (4)−RIGHT (4)

Page 20: Unit #8 : The Integral Goals - mast.queensu.ca

20

Calculate LEFT (n)−RIGHT (n).

Page 21: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 21

What will the limit of this difference be as n → ∞? What does this tell usabout what would happen if we defined the definite integral in terms of theright hand sum?

Page 22: Unit #8 : The Integral Goals - mast.queensu.ca

22

More on the Definite Integral and Area

We can use the definite integral to calculate other areas, as well. Suppose we wantto find the area between the curves y = x2 and the line y = 2 − x. It is easy tosee that the two intersect as shown in the following graph.

−3 −2 −1 0 1 2

−1

1

2

3

4

5

6

We can again calculate this area by estimating via rectangles and the taking thelimit to get the definite integral.

Page 23: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 23

−3 −2 −1 0 1 2

−1

1

2

3

4

5

6

If we estimate this area using the left hand sum, what will be the height of therectangle on the interval [xi−1, xi]?

Page 24: Unit #8 : The Integral Goals - mast.queensu.ca

24

Write the formula for LEFT (n), using this height as the function value. Whatwill ∆x be?

Write the definite integral representing the area of this region.

Page 25: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 25

Negative Integral Values

So far we have only dealt with positive functions. Will the definite integral still beequal to the area underneath the graph if f(x) is always negative? What happensif f(x) crosses the x-axis several times?

Example: Suppose that f(t) has the graph shown below, and that A, B, C,D, and E are the areas of the regions shown.

If we were to partition [a, b] into small subintervals and construct a correspondingRiemann sum, then the first few terms in the Riemann sum would correspond tothe region with area A, the next few to B, etc.

Page 26: Unit #8 : The Integral Goals - mast.queensu.ca

26

Which of these sets of terms have positive values?

Which of these sets have negative values?

Page 27: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 27

Express the integral

∫ b

a

f(t)dt in terms of the (positive) areas A, B, C, D,

and E.

If f(t) represents a velocity, what do the “negative areas” represent?

Page 28: Unit #8 : The Integral Goals - mast.queensu.ca

28

Better Approximations to Definite Integrals

To prepare for this topic, you should read Section 7.5 in the textbook.

• We saw how to approximate definite integrals using left and right hand Riemannsums. Unfortunately, these estimates are very crude and inefficient

• Even when we have sophisticated techniques for evaluating integrals, thesemethods will not apply to all functions, for example:

·∫

e−x2 dx - used in probability

·∫

sin(x)

xdx - used in optics

Page 29: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 29

• To evaluate definite integrals of such functions, we could use left or right handRiemann sums. However, it would be preferable to develop more accurateestimates.

• But more accurate estimates can always be made by using more rectangles

• More precisely, we want to develop more efficient estimates: estimates that aremore accurate for similar amounts of work.

[In Section 7.6, there is a discussion on the relative accuracy of the methods whichfollow.]

Page 30: Unit #8 : The Integral Goals - mast.queensu.ca

30

Midpoint Rule

The accuracy of a Riemann sum calculation will usually improve if we choose themidpoint of each subdivision rather than the right or left endpoints.Sketch 3 copies of a diagram for a short interval of an arbitrary functionf(x).

Compare the accuracy of the left-hand, right-hand and midpoint rules forestimating the area on the interval. [See also H-H, p. 361.]

Page 31: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 31

For what kinds of functions f will the midpoint rule always give a value thatis exactly equal to the integral?

Page 32: Unit #8 : The Integral Goals - mast.queensu.ca

32

Try to sketch a function, and a subdivision of an interval, for which the mid-point rule gives a less accurate answer than either the right-hand sum or theleft-hand sum.

Would the midpoint still be less accurate if you doubled the number of intervalsin your example?

Page 33: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 33

The Trapezoidal Rule

The Midpoint Rule is only one possible variation on Riemann sums. Anotherapproach is to use a shape other than a rectangle to estimate the area on aninterval. For the appropriately named Trapezoidal Rule, we use a trapezoid oneach interval.Sketch one interval of a function, and a trapezoidal approximation to the areaunder the graph.

Write a formula for the area of the single trapezoid. [See also H-H p.362-363.]

Page 34: Unit #8 : The Integral Goals - mast.queensu.ca

34

Write a formula for the full Trapezoid Rule (written TRAP (n)), estimatingthe entire area under a graph with multiple intervals.

Page 35: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 35

Express the trapezoidal rule in terms of the left and right hand Riemann sums(LEFT (n) and RIGHT (n)).

Page 36: Unit #8 : The Integral Goals - mast.queensu.ca

36

‘The trapezoidal rule is especially accurate for functions f for which |f ′′(x)| issmall for all x.’ Explain from an intuitive point of view why you would expectthis statement to be correct.

Page 37: Unit #8 : The Integral Goals - mast.queensu.ca

Unit 8 – The Integral 37

Use the trapezoidal rule to estimate

∫10

0

f(x) dx, if we have measured the

values in the following table for f(x).

x 0 2 4 6 8 10f(x) 1 3 4 5 4 2

Page 38: Unit #8 : The Integral Goals - mast.queensu.ca

38

Sketch the graph of a function, f(x), on the interval 0 ≤ x ≤ 1 for which

1. f(x) is decreasing on [0, 1] andfor any number of intervals we choose,

2. MID(n) >

∫1

0

f(x) dx

3. TRAP (n) <

∫1

0

f(x) dx