50
AUGUST 2 AUGUST 2

AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Embed Size (px)

Citation preview

Page 1: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

AUGUST 2AUGUST 2

Page 2: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

MATH 104MATH 104Calculus ICalculus I

Review of previous material….

…methods and applications of integration, differential equations ………..

Page 3: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

A differential equation of the form

gives geometric information about the graph of y(x).

It tells us:

),( yxfdx

dy

Geometry of Differential EquationsGeometry of Differential Equations

If the graph of y(x) goes through the point (x,y), then the slope of the graph at that point is equal to f(x,y).

),( yxfdx

dy

Page 4: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

An example:An example:

We can draw a picture of this as follows. For the

differential equation , we have: xydx

dy

If the graph goes through (2,3), the slope must be 1 there.

If the graph goes through (0,0), the slope must be 0 there.

If the graph goes through (-1,-2), the slope must be -1 there.

Page 5: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Put it on a graph...Put it on a graph...

The slope of the arrow at any point is equal to y - x at that point. This kind of picture is called a "direction field" for the differential equation dy/dx = y - x .

We can use this to solve the differential equation geometrically and recover the graph of the function.

Page 6: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

The idea is to startThe idea is to start

The idea is to start somewhere on the

direction field and simply follow the arrows:

This graphical technique is useful for getting qualitative information about solutions of differential equations, especially

when they cannot be integrated.

Page 7: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Here are a couple for you to try...Here are a couple for you to try...

y ' = 2 ( y - y2)

Page 8: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

y ' = 3 x sin(2y)

Page 9: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Another way to gain insight into solutions of differential equations is to use numerical methods for their solution. The simplest numerical method is called Euler's method.

Euler's method is easy to understand if you relate it to two things you already know:

1. The left endpoint (rectangle) method for estimating integrals, and

2. The fundamental theorem of calculus.

Or, you can think of Euler's method in terms of differentials:

Numerical methodsNumerical methods

)(')( xyxxyxxy

Page 10: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Euler’s methodEuler’s method

You can algebraically manipulate most first-order equations, until they are in the form:

y'(x) = f(x,y)

Euler's method then combines the differential formula with the differential equation:

In Euler's method, we simply ignore the small errors and repeatedly use the resulting equation with a small value of to construct a table of values for y(x) (that can then be graphed, for instance).

),()( yxfxxyxxy

x

Page 11: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

y ' = y - x, y(0) = 2

(this is the example we graphed before).

We'll use x = 0.1 The choice of x is usually dictated by the problem or the situation. The smaller x is the more accurate the approximated solution will be, but of course you need to do more work to cover an interval of a given length.

For the first step, we can use that x=0 and y=2, therefore

y ' = 2. Euler's method then tells us that:

y(x + x) = y(x) + f(x,y) x

y(0.1) = 1 + (2 - 0) 0.1 = 1.2

An example...An example...

Page 12: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Continue...Continue...For the second step, we have x = 0.1, y = 2.2, therefore y' = 2.1. Euler's method then gives:

y(0.2) = 2.2 + 2.1(0.1) = 2.41

We continue in this manner and fill in the following table

x y f (x,y ) = y - x0 2 2

0.1 2.2 2.10.2 2.41 2.210.3 2.631 2.3310.4 2.8641 2.46410.5 3.11051 2.610510.6 3.371561 2.7715610.7 3.6487171 2.94871710.8 3.94358881 3.143588810.9 4.257947691 3.3579476911 4.59374246 3.59374246

Page 13: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Maple...Maple...

Maple tells us that the exact solution of the equation

y ' = y - x that has y(0) = 2 is y(x) = x + 1 + ex

and so we have y(1) = 4.718281828.

So the Euler method result is pretty close (within 10%). We could do better by decreasing x, but of course then we'd need more steps to reach x = 1.

You'll get to try a couple of these on this week's homework.

Page 14: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

L’HospitalL’HospitalAnother useful technique for computing limits

is L'Hospital's rule:

Basic version:

0)(lim)(lim

xgxfaxax

)(lim)(lim xgxfaxax

)('

)('lim

)(

)(lim

xg

xf

xg

xfaxax

If , then

provided the latter exists.

This also applies if

Page 15: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Fancy L’HospitalFancy L’Hospital

s.often work rule sHospital'L' applying

then and logarithm thegthen takin

,1or or 0 like lookslimit theIf 00

You can use “Basic L’Hospital” for #4, 6, 8 and 10 of the top ten limit list. But for limits like #9, you need...

Page 16: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Top ten famous limits:Top ten famous limits:

1

lim0 xx

1

lim0 xx

0 1

lim xx

1.

2.

Page 17: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

3. (A) If 0 < x < 1 then 0lim

n

nx

(B) If x > 1, then

n

nxlim

4. and1sin

lim0

x

xx

0cos1

lim0

x

xx

0 e lim

x

x5. and

e lim x

x

Page 18: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

6-106-10

6. For any value of n,

and for any positive value of n,

7.

1sin lim

0

xx

does not exist!

0lim x

n

x e

x

0ln

lim nx x

x

Page 19: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

0)ln( lim0

xxx

ex

xx

11 lim

8.

9.

)(')()(

lim afax

afxfax

10. If f is differentiable at a, then

Page 20: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

20

cos1lim

x

xx

564

32lim

2

2

xx

xxx

xxxx

1lim 2

Here are three more:Here are three more:

A challenge:

Page 21: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

How about this one?How about this one?

2/1

0x

sinlim

x

x

x

A.

B. 0

C. -

D. 1

E.

F.

G.

H.

2e

2

6/1e

4/1e

Page 22: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Last one Last one (for now)...(for now)...

A.

B. 1/2

C.

D. 3

E. F. undefined

G.

H. 22e

2e2e

22 e

23e

xtx

xdtexe

0

22

lim

Page 23: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Improper Improper integralsintegrals

These are a special kind of limit. An improper integral is one where either the interval of integration is infinite, or else it includes a singularity of the function being integrated.

Page 24: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Examples of the Examples of the first kind are:first kind are:

dxx

dxe x

0 -21

1 and

Page 25: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Examples of the second kind:Examples of the second kind:

32

4

tan and 11

0

dxxdxx

The second of these is subtle because the singularity of tan x occurs in the interior of the interval of integration rather than at one of the endpoints.

Page 26: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Same methodSame methodNo matter which kind of improper integral (or combination of improper integrals) we are faced with, the method of dealing with them is the same:

b

x

b

x dxedxe00

lim as thingsame themeans

Page 27: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Calculate the limit!Calculate the limit!What is the value of this limit

(and hence, of the improper integral )?

A. 0

B. 1

C.

D.

E.

ebe

dxe x

0

Page 28: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Another improper integralAnother improper integral

?1

1 of value theisWhat

.arctan1

1 that Recall

-2

2

dxx

Cxdxx

A. 0

B.

C.

4

2

D.

E.

Page 29: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Area between the x-Area between the x-axis and the graphaxis and the graph

The integral you just worked represents all of the area

between the x-axis and the graph of 211x

Page 30: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

The other type...The other type...For improper integrals of the other type, we make the same kind of limit definition:

.1

lim be todefined is 1 1

0

1

0

dxx

dxx a

a

Page 31: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Another example:Another example:What is the value of this limit, in

other words, what is

A. 0

B. 1

C. 2

D.

E.

2

?11

0

dxx

Page 32: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

A divergent improper integralA divergent improper integral

It is possible that the limit used to define the improper integral fails to exist or is infinite. In this case, the improper integral is said to diverge . If the limit does exist, then the improper integral converges. For example:

1

00

ln1ln lim1

adxx a

so this improper integral diverges.

Page 33: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

One for you:One for you:

3

2

4

diverge?or converge )tan( Does

dxx

A. Converge

B. Diverge

Page 34: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Sometimes it is possible...Sometimes it is possible...

to show that an improper integral converges without actually evaluating it:

So the limit of the first integral must be finite as b goes to infinity, because it increases as b does but is bounded above (by 1/3).

.1 allfor 3

11

7

1

thathave we,0 allfor 1

7

1 Since

331

1 144

44

bb

dxx

dxxx

xxxx

b b

Page 35: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

A puzzling example...A puzzling example...Consider the surface obtained by rotating the graph

of y = 1/x for x > 1 around the x-axis:

Let’s calculate the volume contained inside the surface:

units. cubic 1 lim 1

1

21

bbx dxV

Page 36: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

What about the surface area?What about the surface area?This is equal to...

1

41

2 11

2)('1)(2 dx

xxdxxfxfSA

This last integral is difficult (impossible) to evaluate directly, but it is easy to see that its integrand is bigger than that of the divergent integral

Therefore it, too is divergent, so the surface has infinite surface area.

This surface is sometimes called "Gabriel's horn" -- it is a surface that can be "filled with water" but not "painted".

dxx

1

2

Page 37: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

SequencesSequences

The lists of numbers you generate using a numerical method like Newton's method to get better and better approximations to the root of an equation are examples of (mathematical) sequences .

Sequences are infinite lists of numbers, Sometimes it is useful to think of them as functions from the positive integers into the reals, in other words,

,...,, 321 aaa

forth. so and ,a(2) ,a(1) 21 aa

Page 38: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

The feeling we have about numerical methods like the bisection method, is that if we kept doing it more and more times, we would get numbers that are closer and closer to the actual root of the equation. In other words

where r is the root.

Sequences for which exists

and is finite are called convergent, other sequences are called divergent

Convergent and DivergentConvergent and Divergent

nn

a lim

rann

lim

Page 39: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

For example...For example...

The sequence

1, 1/2, 1/4, 1/8, 1/16, .... , 1/2 , ... is convergent (and converges to zero, since

), whereas:

the sequence 1, 4, 9, 16, .…n , ... is divergent.

2

n

0 lim21

n

n

Page 40: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

PracticePractice

The sequence

...,2

1,......,

5

4,

4

3,

3

2

n

n

A. Converges to 0

B. Converges to 1

C. Converges to n

D. Converges to ln 2

E. Diverges

Page 41: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Another...Another...

The sequence

...,2

1)1(,......,

5

4,

4

3,

3

2

n

nn

A. Converges to 0

B. Converges to 1

C. Converges to -1

D. Converges to ln 2

E. Diverges

Page 42: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

A powerful existence theoremA powerful existence theoremIt is sometimes possible to assert that a sequence is convergent even if we can't find the limit right away. We do this by using the least upper bound property of the real numbers:

If a sequence has the property that a <a <a < .... is called a "monotonically increasing" sequence. For such a sequence, either the sequence is bounded (all the terms are less than some fixed number) or else it increases without bound to infinity. The latter case is divergent, and the former must converge to the least upper bound of the set of numbers {a , a , ... } . So if we find some upper bound, we are guaranteed convergence, even if we can't find the least upper bound.

1 2 3

1 2

Page 43: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Consider the sequence...Consider the sequence...

222,22 ,2

To get each term from the previous one, you add 2 and then take the square root.

It is clear that this is a monotonically increasing sequence. It is convergent because all the terms are less than 2. To see this, note that if x>2, then

So our terms can't be greater than 2, since adding 2 and taking the square root makes our terms bigger, not smaller.

Therefore, the sequence has a limit, by the theorem.

etc.

.2 so and ,222 xxxxx

Page 44: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

QUESTION:QUESTION:

What is the limit?

...,222,22 ,2

Page 45: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Newton’s MethodNewton’s MethodA better way of generating a sequence of numbers that are (usually) better and better solutions of an equation is called Newton's method.

In it, you improve a guess at the root by calculating the place where the tangent line drawn to the graph of f(x) at the guess intersects the x-axis. Since the tangent line to the graph of y = f(x) at x = a is y = f(a) + f '(a) (x-a), and this line hits the x-axis when y=0, we solve for x in the equation f(a) + f '(a)(x-a) = 0 and get x = a - f(a)/f '(a).

)('

)(

old

oldoldnew xf

xfxx

Page 46: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Let’s try itLet’s try it

on the same function we used before,

with the guess that the root x1 = 2. Then the next guess is

This is 1.8. Let's try it again. A calculator helps:

22)( 3 xxxf

5

9

10

22

)('

)(

1

112

xf

xfxx

76995.1)8.1('

)8.1(8.1

)('

)(

2

223

f

f

xf

xfxx

Page 47: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

We’re already quite close...We’re already quite close...

with much less work than in the bisection method! One more time:

And according to Maple, the root is

fsolve(f(x)=0);

So with not much work we have the answer to six significant figures!

1.769292354

769292663.1)76005.1('

)76995.1(76995.1

)('

)(

3

334

f

f

xf

xfxx

Page 48: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Your turn…Your turn…

Try Newton's method out on the equation

First make a reasonable guess, then iterate. Report your answer when you get two successive iterations to agree to five decimal places.

0325 xx

Page 49: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

FractalsFractals

Fractals are geometric figures constructed as a limit of a sequence of geometric figures.

Koch Snowflake

Sierpinski Gasket

Newton's method fractals

Page 50: AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………

Good night!Good night!

See you on WednesdySee you on WednesdyCheck the web!Check the web!

Turn in homework!Turn in homework!Have a great week!Have a great week!