Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Continuity

Def: A function f (x) is continuous at x = a if the following three condi-


tions all hold:
(1) f (a) exists
(2) lim f (x) exists
x→a
(3) lim f (x) = f (a).
x→a
So: A function f (x) is discontinuous at x = a if any one of (1)-(3) fails.

Types of Discontinuities: Removable, Jump, Essential.

Theorem 1: The following are continuous at every point in their domains:


◦ Polynomials
◦ Rational functions
◦ Exponentials & Logarithms
◦ Trig functions & Inverse trig functions

Note: Piecewise functions may(not be continuous on their entire domains.


x if x 6= 0
Example: The function f (x) = has a domain of (−∞, ∞), but
2 if x = 0
it is not continuous at x = 0.

Theorem 2: Suppose both f (x) and g(x) are continuous at x = a. Then:


(a) f + g, f − g, and f g are continuous at x = a.
(b) If g(a) 6= 0, then f /g is continuous at x = a.

Theorem 3: If f is continuous at a, and if g is continuous at f (a), then f ◦ g


is continuous at a.

Intermediate Value Theorem (IVT): Suppose f is continuous on [a, b].


If k is any number between f (a) and f (b), then there exists a number
c ∈ [a, b] such that f (c) = k.

This theorem is intuitive (easy to believe), but not obvious (it is hard to
prove). The IVT is useful for proving that solutions to equations exist, but
does not tell us what those solutions are!
Example: Using the IVT to Prove Existence of Solutions
Problem: Prove that cos x = x has a solution x between 0 and π2 .

Strategy: Let f (x) = x − cos x. We want to show that there is some number
c ∈ (0, π2 ) such that f (c) = 0, because that will mean that cos(c) = c.

Solution: Let f (x) = x − cos x. Observe that f (x) is continuous (because it


is the difference of two continuous functions). Therefore, we can try to apply
the IVT to f (x) on the interval [0, π2 ]. Let’s do that.
Notice that

f (0) = 0 − cos(0) = −1 < 0


f ( π2 ) = π2 − cos( π2 ) = π2 > 0.

So:
f (0) < 0 < f ( π2 ).
Therefore, by the IVT (choosing k = 0), there exists c ∈ (0, π2 ) with
f (c) = 0, so c − cos(c) = 0, so cos(c) = c. This number c is our solution. ♦
Limits and Continuity
Intuition: The statement lim f (x) = L means:
x→a
◦ Roughly: As x approaches a, the function values f (x) approach L.
◦ More precisely: If x is sufficiently close to a, then the function values
f (x) can be made arbitrarily close to L.

Fact: The limit lim f (x) exists ⇐⇒ lim f (x) = lim f (x).
x→a x→a− x→a+

Def: A function f (x) is continuous at x = a if the following all hold:


(1) f (a) exists
(2) lim f (x) exists
x→a
(3) lim f (x) = f (a).
x→a
So: A function f (x) is discontinuous at x = a if any one of (1)-(3) fails.

Limit Laws
Theorem L1: Suppose that both lim f (x) and lim g(x) exist. Then:
x→a x→a
(a) lim [f (x) + g(x)] = lim f (x) + lim g(x)
x→a x→a x→a
(b) lim [f (x) − g(x)] = lim f (x) − lim g(x).
x→a x→a x→a
(c) lim [f (x)g(x)] = lim f (x) · lim g(x).
x→a x→a x→a
lim f (x)
f (x) x→a
(d) If lim g(x) 6= 0, then lim = .
x→a x→a g(x) lim g(x)
x→a

Theorem L2: If f (x) is continuous on R, and if lim g(x) exists, then


x→a
 
lim f (g(x)) = f lim g(x) .
x→a x→a

Corollary: If lim g(x) exists, then (for n ∈ Z+ )


x→a
 n p q
n n
lim (g(x)) = lim g(x) and lim g(x) = n lim g(x).
x→a x→a x→a x→a

Squeeze Theorem: If f (x) ≤ g(x) ≤ h(x) for all x near a (except possibly
for x = a), and if lim f (x) = L and lim h(x) = L, then lim g(x) = L.
x→a x→a x→a
Types of Discontinuities
Def: A function f (x) is continuous at x = a if the following all hold:
(1) f (a) exists
(2) lim f (x) exists
x→a
(3) lim f (x) = f (a).
x→a
So: A function f (x) is discontinuous at x = a if any one of (1)-(3) fails.

Def: Suppose f (x) is discontinuous at x = a. The discontinuity is called:


Removable: If lim f (x) exists. (That is: (2) holds, but (1) or (3) fails.)
x→a
Jump: If both lim f (x) and lim f (x) are finite, but not equal.
x→a− x→a+
Essential: If one of lim f (x) or lim f (x) is infinite or does not exist.
x→a− x→a+

Optional: The Definition of a Limit


Q: What is the precise meaning of lim f (x) = 5?
x→2
The statement “As x approaches 2, the function values f (x) approach 5”
is vague and imprecise. Let’s clarify it.

Idea: “If x is sufficiently close to 2, then the function values f (x) can be
made arbitrarily close to 5.” Let’s clarify this even further:

Precisely: For any (arbitrarily small) open interval (5 − , 5 + ) around


y = 5, there is a (sufficiently small) open interval (2 − δ, 2 + δ) around x = 2
such that: If x ∈ (2 − δ, 2 + δ), then f (x) ∈ (5 − , 5 + ).

In general, the mathematical definition of “limit” is as follows:

Def: The statement lim f (x) = L means:


x→a
“For every open interval (L − , L + ) around y = L, there exists an open
interval (a − δ, a + δ) around x = a such that:
If x ∈ (a − δ, a + δ), then f (x) ∈ (L − , L + ).”

This is the technical definition that one uses to establish the limit laws,
the theorems about continuity, the Intermediate Value Theorem, etc.
Vertical Asymptotes
Def: A line x = a is a vertical asymptote of f (x) if any of the following
holds:
lim f (x) = −∞ or lim f (x) = −∞ or
x→a− x→a+
lim f (x) = ∞ or lim f (x) = ∞.
x→a− x→a+
Again: If any one of these holds, then x = a is a vertical asymptote.

Horizontal Asymptotes
Def: A line y = b is a horizontal asymptote of f (x) if any of the following
holds:
lim f (x) = b or lim f (x) = b.
x→∞ x→−∞
So: A function can have 0, 1, or 2 horizontal asymptotes.

Examples:
1
◦ f (x) = , for n > 0, has a horizontal asymptote y = 0:
xn
1 1
lim n = 0 and lim n = 0.
x→−∞ x x→+∞ x
x
◦ g(x) = a , for a > 1, has a horizontal asymptote y = 0:
lim ax = 0 whereas lim ax = ∞.
x→−∞ x→∞
Careful: If instead 0 < a < 1, then lim a = ∞, whereas lim ax = 0.
x
x→−∞ x→∞

Indeterminate Forms
Indeterminate Forms: The following expressions are “indeterminate”:
0 ∞
, , 0 · ∞, ∞ − ∞.
0 ∞

N.B.: The following are not indeterminate. Here, a, b ∈ R with b 6= 0.


b a
, , b · ∞, a + ∞, a − ∞.
0 ∞
Derivatives: Introduction
Def: The average rate of change of f (x) on the interval [a, a + h] is:
∆y f (a + h) − f (a)
=
∆x h
Geometrically: This is the slope of the secant line to y = f (x) on [a, a + h].

Def: The derivative of f (x) at x = a is the instantaneous rate of change


of f (x) at x = a:

0 dy f (a + h) − f (a)
f (a) = = lim
dx x=a h→0 h
Geometrically: This is the slope of the tangent line to y = f (x) at x = a.

The equation of the tangent line to y = f (x) at the point (a, f (a)) is (from
Point-Slope Formula):
y − f (a) = m(x − a).
We now know that m = f 0 (a).

Derivatives as Functions
We can talk about the derivative at any point x:
dy f (x + h) − f (x)
f 0 (x) = = lim .
dx h→0 h
That is: The derivative f 0 (x) is a function giving the slope of the tangent
line to y = f (x) at (x, f (x)).

Linearity Property: For differentiable functions f (x), g(x) and constants


c ∈ R:
d d
[cf (x)] = c f (x)
dx dx
d d d
[f (x) + g(x)] = f (x) + g(x).
dx dx dx
Derivatives: An Alternate Formula
Recall: The derivative of f (x) at x = a is the instantaneous rate of
change of f (x) at x = a:

f 0 (a) =
dy = lim f (a + h) − f (a)

(?)
dx x=a h→0 h

Interpretations: The derivative of f (x) at x = a describes the:


◦ Instantaneous rate of change of f (x) at x = a.
◦ Slope of tangent line to f (x) at x = a.
◦ Best linear approximation to f (x) at x = a.

In the formula (?), set x = a + h. Then h → 0 means x → a. This gives


an alternate definition of the derivative
at x = a:
dy f (x) − f (a)
f 0 (a) = = lim .
dx
x=a
x→a x−a
This formula for the derivative is sometimes useful.

Differentiability (Introduction)
The derivative is defined in terms of the limit (?). This limit may or may
not exist, meaning that derivatives may or may not exist. This leads to:

Def: A function f (x) is differentiable at x = a if its derivative f 0 (a) exists.


That is:
f (a + h) − f (a)
f (x) is differentiable at x = a ⇐⇒ The limit lim exists.
h→0 h

Theorem: If f (x) is differentiable at x = a, then f (x) is continuous at x = a.

N.B.: The converse is false! Continuous does not imply differentiable.


Again: Differentiable functions are continuous. Not the other way around.

Failure of Differentiability:
◦ Discontinuities (Removable, Jump, Essential)
◦ Cusps
◦ Vertical tangent lines
Derivatives of Common Functions
Derivative of Power Functions:
d n
(x ) = nxn−1 .
dx
Derivative of Exponential and Logarithmic Functions:
d x d 1
(e ) = ex ln |x| =
dx dx x
d x d 1
(a ) = ax ln a loga (x) = .
dx dx x ln a
Derivatives of Trigonometric Functions:
d d d
(sin x) = cos x (tan x) = sec2 x (sec x) = sec x tan x
dx dx dx
d d d
(cos x) = − sin x (cot x) = − csc2 x (csc x) = − csc x cot x.
dx dx dx
Derivatives of Inverse Trig Functions:
d 1 d 1
(arcsin x) = √ (arctan x) = .
dx 1 − x2 dx 1 + x2

Differentiation Laws
Product Rule:
d
[f (x)g(x)] = f (x)g 0 (x) + f 0 (x)g(x)
dx
Quotient Rule:
g(x)f 0 (x) − f (x)g 0 (x)
 
d f (x)
=
dx g(x) g(x)2
Chain Rule:
d
f (g(x)) = f 0 (g(x)) g 0 (x).
dx
Differentiability
The derivative of f (x) at x = a is defined in terms of a limit:
f (a + h) − f (a)
f 0 (a) = lim
h→0 h
This limit may or may not exist, meaning that the derivative at x = a may
or may not exist. This leads to:

Def: A function f (x) is differentiable at x = a if its derivative f 0 (a) exists.


That is:
f (a + h) − f (a)
f (x) is differentiable at x = a ⇐⇒ The limit lim exists.
h→0 h

Q: Which functions are differentiable? Here are two important theorems.

Theorem: Let f (x), g(x) be differentiable at x = a. Then:


(a) f + g and f − g and f g are differentiable at x = a.
(b) If g(a) 6= 0, then f /g is differentiable at x = a.
(c) f ◦ g and g ◦ f are differentiable at x = a.

Theorem: If f (x) is differentiable at x = a, then f (x) is continuous at x = a.

The converse is false! Differentiable functions are continuous, not the other
way around. Again: A continuous function may or may not be differentiable.

Failure of Differentiability:
◦ Discontinuities (Removable, Jump, Essential)
◦ Cusps
◦ Vertical tangent lines

Examples:
|x| is continuous on R, but has a cusp at x = 0.
(a) f (x) = √
3
(b) g(x) = x2 is continuous on R, but has a cusp at x = 0.

(c) h(x) = 3 x is continuous on R, but has a vertical tangent line at x = 0.
Linear Approximation
Suppose f (x) is differentiable at x = a. Its derivative at x = a is:
f (a + h) − f (a)
f 0 (a) = lim .
h→0 h
So, when h ≈ 0 is small, we have
f (a + h) − f (a)
f 0 (a) ≈
h
and therefore:
f (a + h) ≈ f (a) + f 0 (a)h.
Moral: Given f (a) and f 0 (a), we can approximate f (a + h) for small h.

Linear Approximation: Another View


Here is another point of view. The derivative of f (x) at x = a is:
f (x) − f (a)
f 0 (a) = lim .
x→a x−a
So, when x ≈ a, we have
f (x) − f (a)
f 0 (a) ≈
x−a
and therefore:
f (x) ≈ f (a) + f 0 (a)(x − a).
Moral: Near x = a, the function f is approximately its tangent line at x = a.

Def: Suppose f (x) is differentiable at x = a.


The linear approximation (or linearization) to f (x) at x = a is the
linear function
L(x) = f (a) + f 0 (a)(x − a).
The above says: For x ≈ a, we have
f (x) ≈ L(x).
Moral: Near x = a, the function f is approximately the linear function L.
The graph y = L(x) is the tangent line to f (x) at x = a.
Optional: Quadratic Approximation
Approximating a complicated function f (x) by a linear function L(x) is
rather crude. Better idea: Approximate f (x) by a quadratic function Q(x).

Def: Suppose f (x) is twice-differentiable at x = a.


The quadratic approximation to f (x) at x = a is the quadratic func-
tion
1
Q(x) = f (a) + f 0 (a)(x − a) + f 00 (a)(x − a)2 .
2

Although it is not obvious to us at the moment, this function Q turns out


to be the quadratic that best approximates f . So, for x ≈ a, we have:

f (x) ≈ Q(x).

Moral: Near x = a, the function f is approximately the quadratic function


Q. The graph y = Q(x) is the “tangent parabola” to f (x) at x = a.

Remark: Higher-Order Approximation


As one might guess, there is also a notion of cubic approximation (involving
3rd derivatives), quartic approximation (involving 4th derivatives), etc.
Geometrically: There are corresponding notions of “tangent cubic” and
“tangent quartic,” etc.
These ideas lead to the notion of a Taylor series, which is typically the
last topic in a year-long calculus course. We won’t pursue this today.
Example: Using Linear Approximation
Problem: Approximate (2.01)5 using linear approximation. Is your approx-
imation larger or smaller than the actual value?

Idea: The number (2.01)5 is close to 25 , which we know how to calculate.


This suggests taking f (x) = x5 and a = 2 and h = 0.01.

Solution: Let f (x) = x5 , so f 0 (x) = 5x4 . Let a = 2 and h = 0.01. The


formula for linear approximation is

f (a + h) ≈ f (a) + f 0 (a)h
f (2 + 0.01) ≈ f (2) + f 0 (2)(0.01).

Since f (2) = 25 = 32 and f 0 (2) = 5(2)4 = 80, we have

f (2.01) ≈ 32 + (80)(0.01) = 32 + 0.8 = 32.800

Since the graph of f (x) = x5 is concave up, it lies above its tangent lines.
Therefore, our approximation of 32.800 is smaller than the actual value.

Fun fact: The actual value is roughly 32.808. Our approximation is pretty
close!
Mean-Value Theorem
Mean-Value Theorem (MVT): If f (x) is a differentiable function on [a, b],
then there exists a number c ∈ (a, b) such that
f (b) − f (a)
f 0 (c) =
b−a

That is: There is a point (c, f (c)) on the graph y = f (x) such that: The
tangent line at (c, f (c)) has slope equal to that of the secant line on [a, b].

Why is this important? Answer: The MVT is the main tool used in
proving several major theorems in calculus. Two of these are listed below.

Consequences
Def: Let f (x) be a function on an interval I.
• f (x) increasing on I: If x1 , x2 ∈ I with x1 < x2 , then f (x1 ) < f (x2 ).
• f (x) decreasing on I: If x1 , x2 ∈ I with x1 < x2 , then f (x1 ) > f (x2 ).

Def: We say x = c is a turning point of f (x) if: At x = c, the function


f (x) changes from increasing to decreasing, or from decreasing to increasing.

Theorem: Suppose that f (x) is differentiable on an interval I.


(a) If f 0 (x) > 0 on I, then f is increasing on I.
(b) If f 0 (x) < 0 on I, then f is decreasing on I.

Theorem: Suppose that f (x) is differentiable on an interval I. If f 0 (x) = 0


on I, then f (x) is constant on I.

Curve Sketching: Overview


To sketch the graph of y = f (x), we need to identify:

(a) Vertical and horizontal asymptotes of f , if any.


(b) Intervals on which f is increasing/decreasing, and any turning points.
(c) Local maxima and local minima of f .
(d) Intervals on which f is concave up/down, and any inflection points.
The First Derivative
Def: Let f (x) be a function on an interval I.
• f (x) increasing on I: If x1 , x2 ∈ I with x1 < x2 , then f (x1 ) < f (x2 ).
• f (x) decreasing on I: If x1 , x2 ∈ I with x1 < x2 , then f (x1 ) > f (x2 ).

Def: We say x = c is a turning point of f (x) if: At x = c, the function


f (x) changes from increasing to decreasing, or from decreasing to increasing.

Theorem: Suppose that f (x) is differentiable on an interval I.


(a) If f 0 (x) > 0 on I, then f is increasing on I.
(b) If f 0 (x) < 0 on I, then f is decreasing on I.

The First Derivative Test: Suppose that f (x) is differentiable near x = c.


If f 0 (c) = 0 or f 0 (c) d.n.e., then:
(a) If f 0 changes from + to − at x = c, then x = c is a local max.
(b) If f 0 changes from − to + at x = c, then x = c is a local min.
(c) If f 0 does not change sign at x = c, then x = c is not a local max or min.

The Second Derivative


Def: Let f (x) be a (differentiable) function on an interval I.
• f (x) concave up on I: The graph of f (x) lies above its tangent lines.
• f (x) concave down on I: The graph of f (x) lies below its tangent lines.

Def: We say x = c is an inflection point of f (x) if: At x = c, the function


f (x) changes from concave up to down, or from concave down to up.

Theorem: Suppose that f (x) is twice-differentiable on an interval I.


(a) If f 00 (x) > 0 on I, then f is concave up on I.
(b) If f 00 (x) < 0 on I, then f is concave down on I.

The Second Derivative Test: Suppose that f 00 (x) is continuous near x = c.


(a) If f 0 (c) = 0 and f 00 (c) > 0, then x = c is a local min.
(b) If f 0 (c) = 0 and f 00 (c) < 0, then x = c is a local max.
Optimization: Theory
Def: Let f (x) be a function.
• We say x = c is a local max of f if: f (c) ≥ f (x) for all x near c.
• We say x = c is a local min of f if: f (c) ≤ f (x) for all x near c.

Def: Let f (x) be a function on an interval I.


• Say x = c is an absolute max of f on I if: f (c) ≥ f (x) for all x ∈ I.
• Say x = c is an absolute min of f on I if: f (c) ≤ f (x) for all x ∈ I.

Example: The function f (x) = x3 has no absolute max/min on (−1, 1).


However, f (x) = x3 has both an absolute max and an absolute min on [−1, 1].

Example: The function f (x) = tan( π2 x) has no absolute max/min on [−1, 1].

Extreme Value Theorem (EVT): If f (x) is continuous on a closed inter-


val [a, b], then f (x) has an absolute max and an absolute min on [a, b].

Optimization: Method
Def: A critical point of f (x) is a number x = c in the domain of f (x) such
that: f 0 (c) = 0 or f 0 (c) d.n.e.

Theorem: If x = c is a local max/min of f , then x = c is a critical point of f .

Warning: The converse is false! Not every critical point is a local max or
min. (For example, it could be an inflection point.)

Method: Given a continuous function f (x) on a closed interval [a, b]. To


find the absolute max/min values of f (x) on [a, b]:
(1) Calculate the values f (c) for all critical points c ∈ (a, b).
(2) Calculate f (a) and f (b).

Conclusion: The largest of the values in Steps 1-2 is the absolute max of f (x)
on [a, b]. The smallest is the absolute min of f (x) on [a, b].
L’Hopital’s Rule
L’Hopital’s Rule applies to limits of the form 0/0 and ∞/∞.

L’Hopital’s Rule 1: Suppose f and g are differentiable, and that g 0 (x) 6= 0


near x = a (except possibly at x = a). If

lim f (x) = 0 and lim g(x) = 0


x→a x→a

then
f (x) f 0 (x)
lim = lim 0 .
x→a g(x) x→a g (x)

L’Hopital’s Rule 2: Suppose f and g are differentiable, and that g 0 (x) 6= 0


near x = a (except possibly at x = a). If

lim f (x) = ±∞ and lim g(x) = ±∞


x→a x→a

then
f (x) f 0 (x)
lim = lim 0 .
x→a g(x) x→a g (x)

Indeterminate Forms
Indeterminate Forms: The following symbols are “indeterminate”:
0 ∞
0·∞ ∞−∞ 1∞ 00 ∞0
0 ∞
A limit taking any of these indeterminate forms could potentially be any real
number, or possibly +∞ or −∞.

Warning: The following symbols are not indeterminate:


1 ∞ 1
1·∞ ∞+∞ 1+∞ 0∞
0 0 ∞

You might also like