Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017....

51
Calculus (Math 1A) Lecture 5 Vivek Shende September 5, 2017

Transcript of Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017....

Page 1: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Calculus (Math 1A)Lecture 5

Vivek Shende

September 5, 2017

Page 2: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Hello and welcome to class!

Last time

We discussed composition, inverses, exponentials, and logarithms.

Today

We talk about motion, Zeno’s paradox, tangent lines, and limits.

Page 3: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Zeno of Elea (450 b.c.)

Page 4: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Zeno’s paradox of the arrow

At each instant, the arrow occupies a single position in space.

Motion means changing position; as the arrow does not changeposition in any instant, it is not moving at any instant.

If it is not moving at any instant, when is it moving?

Page 5: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Lesson from Zeno

We should be careful discussing anything “at an instant”.

Answer to Zeno (?):

While the amount of motion at an instant is zero, it makes senseto discuss the rate of motion at an instant, and this is not zero.

The correct notion of being in motion at an instant is having anonzero rate of motion.

Page 6: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Rate

rate of change =amount of change

time it took

If what is changing is described by a number a varying with timeas a(t), then the rate of change over some interval [t0, t1] is

a(t1)− a(t0)

t1 − t0

I.e., the slope of the line through (t0, a(t0)) and (t1, a(t1)).

Page 7: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Secant line

A line connecting two points on the graph of a function is called asecant line. It has slope ∆f /∆x .

Page 8: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent line

The tangent line to through a point on a curve is the (?) linethrough that point meeting no other nearby points of the curve.

Page 9: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent line

Page 10: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent line

Page 11: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Nearby secant lines get closer and closer to the tangent line.

Page 12: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Nearby secant lines get closer and closer to the tangent line.

Page 13: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Nearby secant lines get closer and closer to the tangent line.

Page 14: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Nearby secant lines get closer and closer to the tangent line.

Page 15: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Nearby secant lines get closer and closer to the tangent line.

Page 16: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Let’s try with formulas. Consider f (x) = x3, and let’s find thetangent line through (2, 8).

We’ll do this by studying the secant lines passing through (2, 8)and (x , x3), when x is close to 2.

Since x is close to 2, we write it as 2 + h.

2 + h getting close to 2 is the same as h getting close to 0.

Page 17: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

The slope of the secant through (2, f (2) = 8) and (2 +h, f (2 +h)):

∆f

∆x=

f (2 + h)− f (2)

(2 + h)− 2=

(2 + h)3 − 2

h=

(h3 + 6h2 + 12h + 8)− 8

h= h2 + 6h + 12

Page 18: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

As h gets close to zero, h2 + 6h + 12 gets close to 12.

Page 19: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangents from secants

The slope of the tangent to the graph of f (x) = x3 at (2, 8) is 12.

The tangent line itself is given by (y − 8) = 12(x − 2)

Page 20: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Tangent from secants

Here we have f (x) = x3 and g(x) = 12(x − 2) + 8.

Page 21: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Try it yourself!

Using only these ideas (finding tangents from secants), find thetangent line to x2 + 2x + 3 at (1, 6).

Page 22: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

In order to compute the slope of the tangent line, we ended uptrying to understand how the quantities

f (x)− f (2)

x − 2

behave as x approaches 2.

To do this kind of thing in an organized way, it helps to introducethe notion of limit.

Page 23: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

For a function f (x), the question

limx→x0

f (x) = ?

asks about the behavior of f (x) near but not at x0.

In terms of the previous discussion, the near but not at distinctionis important because the secant through (x0, f (x0)) and (x , f (x))is not defined when x = x0. In terms of the formula, x = x0 is notin the domain of (f (x)− f (x0))/(x − x0).

Page 24: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

More precisely, we say

limx→x0

f (x) = y0

if, by restricting our attention to x very close to x0 we canguarantee that f (x) is very close to y0.

Page 25: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

Even more precisely, we say

limx→x0

f (x) = y0

if, for every ε > 0, there is some δ > 0, such that in order toguarantee that f (x) is within ε of y0, it suffices to take x0 within δover x .

Page 26: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

Page 27: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

We’ll return to these more precise definitions in a couple days.

For now, let’s look at examples to gain some intuition.

Page 28: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

limx→1

x2 = ?

We are asking: as x gets close to 1, what happens to x2?

Page 29: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

As x gets close to 1, what happens to x2?

Looks like it gets close to 1.

Page 30: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

More quantitatively: writing x = 1 + h, we have

x2 = (1 + h)2 = 1 + 2h + h2

x2 − 1 = (1 + 2h + h2)− 1 = 2h + h2

That is, the difference between x2 and 1 becomes small as h→ 0,i.e., as x → 1.

The above formula in fact tells us how small, which we will usewhen we return to the precise ε− δ definition.

Page 31: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Try it yourself

limx→4

(x2 + 3x + 2) = ?

Page 32: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

We will see (next week) that for any polynomial, rational,algebraic, trigonometric, exponential function, f , or for functionsthat are combinations of these, and for any point x0 in the domainof f , one has

limx→x0

f (x) = f (x0)

But this is not true for all functions!

Page 33: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

Consider the function with the following graph:

Page 34: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

In symbols we might write

h(x) =

1 x > 0

1/2 x = 0

0 x < 0

Sometimes this is called the “Heaviside function”

Page 35: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Heaviside

Page 36: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

What’s the limit of this function as x → 0?

Page 37: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

There is no limit as x → 0. Indeed, a limit would have to be equalto both 0 because numbers arbitrarily close to zero but smallerhave h(x) = 0, and 1 because numbers arbitrarily close to zero butlarger have h(x) = 1.

Page 38: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

At which x0 does limx→x0 f (x) exist? What is it?

The limit exists except when x = −1, 1, 2. When defined, the limitis given by the value of the function.

Page 39: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

At which x0 does limx→x0 f (x) exist? What is it?

The limit always exists, and is given by the value of the function.

Page 40: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

At which x0 does limx→x0 f (x) exist? What is it?

The limit exists except at x = 2, and is given by the value of thefunction.

Page 41: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits

At which x0 does limx→x0 f (x) exist? What is it?

The limit always. It is given by the value of the function except atx = 1, where it is 2.

Page 42: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits at infinity

We saylimx→x0

f (x) =∞

when, (roughly), as x gets close to x0, the quantity f (x) becomesincreasingly large and positive.

Similarly, we saylimx→x0

f (x) = −∞

when f (x) becomes very negative near x0.

Page 43: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits at infinity

Example: For small x near 0, the quantity 1x2

is large and positive:

limx→0

1

x2=∞

Page 44: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

Limits at infinity

Example: For small x near 0, the quantity 1x has large absolute

value, but can be either positive or negative.

limx→0

1

xis undefined

Page 45: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

One-sided limits

We saylim

x→x+0

f (x) = y

when, roughly, as x gets close to x0 while remaining larger than it,the quantity f (x) approaches y .

We saylim

x→x−0

f (x) = y

when, roughly, as x gets close to x0 while remaining smaller thanit, the quantity f (x) approaches y .

Page 46: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

One-sided limits

If limx→x0 f (x) exists, then

Conversely, if limx→x−0f (x) and limx→x+0

f (x) exist and are equal,

then also limx→x0 f (x) exists and is equal to both.

However, it is possible that limx→x−0f (x) and limx→x+0

f (x) exist

but are not equal. In this case limx→x0 f (x) does not exist.

Page 47: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

One-sided limits

Which one-sided limits limx→x+0f (x) and limx→x−0

f (x) exist?

What are they? When are they equal?

Except at x = 0, the usual limit limx→x0 f (x) exists and is equal tof (x0); hence the same for both one-sided limits.

We also have limx→0+ = 1 and limx→0− = 0.

Page 48: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

One-sided limits

At which x0 does limx→x+0f (x) or limx→x−0

f (x) exist? What is it?

Already the ordinary limit existed except at x = −1, 1, 2. At thesevalues, the one-sided limits exist, but are different. E.g.:

limx→1−

f (x) = 1 limx→1+

f (x) = 2

Page 49: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

One-sided limits at infinity

limx→0+

1

x=∞ lim

x→0−

1

x= −∞

Page 50: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

sin(1/x)

The function sin(1/x) can be made to assume any value between−1 and 1 for x arbitrarily close to zero (on either side).

Thus it has no limit as x → 0 (or one-sided limits).

Page 51: Calculus (Math 1A) Lecture 5vivek/1A/5.handout.pdf · Lecture 5 Vivek Shende September 5, 2017. Hello and welcome to class! Last time We discussed composition, inverses, exponentials,

(1/x) sin(1/x)