Notes 4
Notes 4
37
4.1. FINDING THE SLOPE OF A TANGENT LINE MATH1012 Calculus IA
The equation of the tangent line to the graph of y = x2 at the point (1, 1) is then give by
y−1
= 2 ⇐⇒ y = 2x − 1
x−1
In fact, it is easy to check that the straight line given by y = 2x − 1 intersects the graph of y = x2 at
exactly the point (1, 1) by solving the equation
x2 = 2x − 1 ⇐⇒ x2 − 2x + 1 = (x − 1)2 = 0 ⇐⇒ x = 1 .
Example 2. One condition that determines the number e, which is the base of the natural logarithmic
function, is that the slope of the tangent line to the graph of the natural logarithmic function y = loge x = ln x
at (1, 0) is 1. Express this in term of the limit notation.
y
Suppose that the slope of the tangent line to the graph of y =
loge x at the point (1, 0) is 1. Then the trending behavior of the 4
slope of the secant line passing through the point (1, 0) and a y = x−1
nearby point (1 + h, loge (1 + h)) on the graph as h → 0 should y = ln x
2
be
loge (1 + h) − 0 1
msec = = loge (1 + h) x
(1 + h) − 1 h
−1 1 2 3 4 5 6 7
1
= loge (1 + h) h −→ 1 as h → 0
−2
Using the limit notation, e is the number which satisfies
1
lim loge (1 + h) h = 1
h→0
In particular, the equation of the tangent line to the graph of y = ln x at the point (1, 0) is y = x − 1.
Noting that loge e = 1, one way to define the number e is
1
e = lim (1 + h) h .
h→0
10
Putting in h = 10−10 , we have (1 + 10−10 )10 = 2.718282053 · · · ≈ e = 2.718281828 · · ·.
38
4.2. LIMIT DEFINITION OF DERIVATIVE - THE “1ST PRINCIPLE” MATH1012 Calculus IA
Example 3. Find the slope of the tangent line to the graph of the natural exponential function y = ex at
the point (0, 1).
Just recall that the graph of y = ex can be found by reflecting the graph of its inverse function y = ln x
across the line y = x.
eh − 1
lim = 1. −2
h→0 h
Note that the slope of the tangent line to the graph of y = ex at the point (a, ea ) can then be found by
the trending behavior of the slope of the secant line through (a, ea ) and (a + h, ea+h )
ea+h − ea ea (eh − 1) eh − 1
lim = lim = ea · lim = ea · 1 = ea .
h→0 h h→0 h h→0 h
Example 4. Find the slope of the tangent line to the graph of the function y = sin x at the point (0, 0).
By considering the slope of the secant line through the points
y
3
(0, 0) and (h, sin h), the slope of the tangent line to the graph
of the function y = sin x at the point (0, 0) is given by 2
sin h −π π
By calculating a few function values of h as h → 0, it is −1
sin h
reasonable to guess that lim = 1.
h→0 h −2
The slope of the tangent line to the graph of y = sin x at the origin (0, 0) is then equal to 1. The equation
of the tangent line is y = x.
sin h
A precise explanation for lim = 1 would require more understanding on the limits of function
h→0h
values. We shall look at this limit again later.
f (a + h) − f (a) denoted
as
lim = f ′ (a) , whenever the limit exists.
h→0 h
39
4.3. UNDERSTANDING THE CONCEPT OF LIMITS OF FUNCTION VALUES MATH1012 Calculus IA
y y=f(x)
(a+h, f(a+h))
f(a+h)-f(a)
secant line
tangent line
(a, f(a))
h
x
Slope of the secant line will approach the
slope of the tangent line as h approaches 0
1
Example 5. Let f (x) = . Find the derivative f ′ (2).
x
1 1 2−(2+h)
f (2 + h) − f (2) 2+h − 2 (2+h)2 −1 −1 1
f ′ (2) = lim = lim = lim = lim = =−
h→0 h h→0 h h→0 h h→0 (2 + h)2 2·2 4
where f ′ (2) = − 14 can be interpreted as the slope of the tangent line to the graph of y = 1
x at the point
(2, 12 ).
f (a + h) − f (a)
Remark is usually considered as the average rate of change of the function values of f
h
over the interval [a, a + h], and hence the limit f ′ (a) is considered as the instantaneous rate of change of f
at a.
Example 6. Let s(t) = t2 (in meters) be the position of a particle moving along the s-axis at time t (in
seconds). Then the average rate of change
(1 + 0.05)2 − 1
= 2.05 (m/s)
0.05
is the usual average velocity of the particle on the time interval [1, 1.05].
The instantaneous rate of change of s = t2 at t = 1 is called the instantaneous velocity of the particle at
time t = 2:
(1 + h)2 − 1 h(2 + h)
s′ (1) = lim = lim = 2 (m/s)
h→0 h h→0 h
Derivative is based on the limit of certain function expression, and hence it is important to understand the
concept of limits of function values, and some basic computational skills.
An important point to keep in mind is that finding lim f (x) is NOT the same as
x→a
finding the function value f (a).
x2 −1
Example 7. Consider f (x) = x−1 and g(x) = x + 1.
40
4.3. UNDERSTANDING THE CONCEPT OF LIMITS OF FUNCTION VALUES MATH1012 Calculus IA
and
1 1
(x − 1)(x + 1)
lim f (x) = lim = lim (x + 1) = 1 + 1 = 2
x→1 x→1 x−1 x→1
Remark In other words, lim F (x) may exist even if the function value F (a) is not well-defined.
x→a
Graphically speaking, finding limits of function values is like riding along the graph.
Example 8.
6
−6 −4 −2 2 4 6
−2
−4
−6
where x → −3− means that x is approaching −3 from the left (i.e. x < −3), and x → −3+ means that
x is approaching −3 from the right (i.e. x > −3).
Moreover, lim f (x) does not exist since
x→−3
• What happens as x → 2− , or x → 2+ ?
lim f (x) = 4 = f (2), but lim+ f (x) = 2 6= f (2) = 4.
x→2− x→2
The (two-sided) limit lim f (x) does not exist!.
x→2
41
4.4. ASYMPTOTES AND LIMITS AT INFINITY MATH1012 Calculus IA
−1 if x < 0
For example, if f (x) = 0 if x = 0 , then f (0) = 0, and
1 if x > 0
Since the two one-sided limits are not equal, lim f (x) does not exist.
x→0
and find the one-sided limits lim f (x) and lim f (x). Does lim f (x) exist?
x→3− x→3+ x→3
Example 9. The function f (x) = sin πx does not have any one-sided limit as x → 0− or x → 0+ .
1
0.8
The function value f (x) keeps running up and 0.6
π -0.4
1 1 4
y
(a) lim+ = +∞. (b) lim−= −∞.
x→0 x x→0 x 3
1
y =
1 1 x
(c) lim = 0. (d) lim = 0. 2
x→+∞ x x→−∞ x
1
1 1
(e) lim = for all real number a 6= 0 x
x→a x a −4 −3 −2 −1 1 2 3 4
−1
−3
function.
In general, we may consider the limiting behavior of f (x) as x → ∞ or x → −∞, or consider some one-sided
limits to see if f (x) is approaching ∞ or −∞ as x → a+ or a → a− .
42
4.4. ASYMPTOTES AND LIMITS AT INFINITY MATH1012 Calculus IA
• y = L is a horizontal asymptote of the function f (x) if either lim f (x) = L or lim f (x) = L.
x→∞ x→−∞
• x = b is a vertical asymptote of the function f (x) if at least one of the following holds:
1
Example 11. Find the following limits of the function f (x) = by running along its graph.
x−2
1 1
(a) lim = 0. (b) lim = 0. y
x→+∞ x−2 x−2
x→−∞
4
1
1 1 3 y = x−2
(c) lim+ = +∞. (d) lim− = −∞.
x→2 x − 2 x→2 x − 2 2
1 1
(e) lim = for all real number a 6= 2 1
x→a x − 2 a−2 x
−3 −2 −1 1 2 3 4 5
Horizontal asymptote: y = 0 −1
−2
Vertical asymptote: x = 2
−3
−4
x−1 1
Example 12. Find the following limits of the function f (x) = = 1 − by inspecting its graph.
x x
x−1 x−1 y
(a) lim = 1. (b) lim = 1. 4
x→+∞ x x→−∞ x
x−1 x−1 y = x−1
x
3
x→0 x x→0 x y =1
x−1 a−1 1
−1
Horizontal asymptote: y = 1 −2
Vertical asymptote: x = 0 −3
−4
Remark
f (x)
• Given a function of the form , the vertical line defined by x = a is a vertical asymptote as long as
g(x)
f (a) 6= 0 but lim− g(x) = 0 or lim+ g(x) = 0.
x→a x→a
x2 + 2x + 3 3
Example 13. (Slant Asymptote) f (x) = = x+2+ .
x x
43
4.5. BASIC TECHNIQUES IN LIMIT COMPUTATION MATH1012 Calculus IA
10 y
2 +2x+3
y =x
x = 0 is a vertical asymptote of f . x
5 y = x+2
y = x + 2 is a slant asymptote of f since
x
3 −5 5 10
lim (f (x) − (x + 2)) = lim =0
x→∞ x→∞ x
−5
3
lim (f (x) − (x + 2)) = lim =0
x→−∞ x→−∞ x
√
Exercise Show that y = −x and y = x are two slant asymptotes of the function f (x) = 1 + x2 .
(vi) lim [f (x)]p = ( lim f (x))p for any rational exponent p when ( lim f (x))p exists.
x→a x→a x→a
Example 14. Apply limit laws and the intuitively obvious limit lim x = a to work out the following limits.
x→a
x→2 x→2
Several algebraic tricks, mostly about factor canceling, are often needed in order to find limits of the
form 00 or ∞
∞.
x2 − 4
Example 15. Find the limit lim . (A 00 -type limit.)
x→2 x − 2
Note that if we directly substitute x = 2 into the expression, we will get some undefined expression 00 .
This suggests that (x − 2) is a factor of both the numerator and the denominator. After factoring, we have
x2 − 4 (x − 2)(x + 2)
lim = lim = lim (x + 2) = 2 + 2 = 4
x→2 x − 2 x→2 x−2 x→2
44
4.5. BASIC TECHNIQUES IN LIMIT COMPUTATION MATH1012 Calculus IA
√
x−3
Example 16. Find the limit lim . . (A 00 -type limit.)
x→9 x − 9
0
It is also a 0 type limit. By suitable factor cancellation, we have
√ √
x−3 x−3 1 1
lim = lim √ √ = lim √ = √
x→9 x − 9 x→9 ( x − 3)( x + 3) x→9 x+3 9+3
Example 17. Here are some more examples of 00 -type limits, found by algebraic manipulation:
√ √ √
2x + 1 − 1 2x + 1 − 1 2x + 1 + 1 2x 2
(i) lim = lim ·√ = lim √ = lim √ =1
x→0 x x→0 x 2x + 1 + 1 x→0 x( 2x + 1 + 1) x→0 2x + 1 + 1
√ √
x2 x2 x2 + 4 + 2 x2 ( x2 + 4 + 2)
(ii) lim √ = lim √ ·√ = lim =4
x→0 x2 + 4 − 2 x→0 x2 + 4 − 2 x2 + 4 + 2 x→0 x2
2x2 − x + 3 ∞
Example 18. Find the limit lim .. (A ∞ -type limit.)
x→+∞ 3x2 + x − 1
1
It is just a matter of understanding the behavior of the function x as x → +∞:
1 3 1 3
2x2 − x + 3 x2 (2 − x + x2 ) 2− x + x2 2−0+3·0 2
lim 2
= lim 2 1 1 = lim 1 1 = =
x→+∞ 3x + x − 1 x→+∞ x (3 + − 3+0−0 3
x2 )
x→+∞ 3 + −
x x x2
since
1 1 1 1
lim = 0, lim 2
= lim · lim = 0·0 = 0 .
x→+∞ x x→+∞ x x→+∞ x x→+∞ x
2x2 −x+3
In particular, y = 0 is a horizontal asymptote of the function 3x2 +x−1 .
∞
Example 19. Here are some more examples of ∞ -type limits, found by rewriting the function in terms of
1
x.
√ √ q
x 2 + x1 − √1x
2x + 1 − 1 1 hr 1 1 i
(i) lim = lim = lim √ · lim 2+ − √
x→+∞
√ x x→+∞ x x→+∞ x x→+∞ x x
= 0 · [ 2 − 0] = 0 .
√ hr 2
2x + 1 − 1 1 1i
(Or, lim = lim − 2− = 0.)
x→+∞ x x→+∞ x x x
x2 x
(ii) lim √ = lim q = +∞
x→+∞ 2
x +4−2 x→+∞
1 + x42 − 2
x
2x 2x 2
(iii) lim √ = lim q = lim q =2
x→+∞ x2 + 4 − 2 x→+∞ 4 2
x( 1 + x2 − x )
x→+∞
1 + x42 − 2
x
45
4.5. BASIC TECHNIQUES IN LIMIT COMPUTATION MATH1012 Calculus IA
√ √
p
2
( x2 + x − x)( x2 + x + x)
(iii) lim ( x + x − x) = lim √
x→+∞ x→+∞ ( x2 + x + x)
x 1 1
= lim √ = lim q =
x→+∞ ( x2 + x + x) x→+∞
1+ +11 2
x
Remark When computing limits of the form lim (f (x) − g(x)), where both f and g are approaching ∞
x→∞
as x is approaching ∞, one is actually looking at the trending behaviour of the gap between the graph of f
and g, i.e., how f (x) − g(x) behaves as x → ∞.
x2 − x + 1 x2 − x + 1
Example 21. Compute the following one-sided limits: (i) lim , (ii) lim
x→1− x2 − 1 x→1+ x2 − 1
(i)
x2 − x + 1 x2 − x + 1 1 1
lim 2
= lim · = · (−∞) = −∞
x→1− x −1 x→1 − x+1 x−1 2
(ii)
x2 − x + 1 x2 − x + 1 1 1
lim lim · = · (+∞) = +∞
x→1+ x2 − 1 x→1+ x + 1 x−1 2
2
x −x+1
Hence x = 1 is a vertical asymptote of the function .
x2 − 1
x2 − x + 1 x2 − x + 1
Exercise Find (i) lim − , (ii) lim + . Can you find all vertical asymptotes of
x→−1 x2 − 1 x→−1 x2 − 1
x2 − x + 1
the function ? Any horizontal asymptotes?
x2 − 1
1 1
Exercise Compute the limit lim+ ( √ − )
x→0 x x
Exercise Compute the following limits.
s
x2 − 5x + 6 (ln x)3 − 8 1 + sin x
(a) lim 2
(b) lim2 (c) lim
x→2 x −4 x→e (ln x)2 − 4 x→0 cos2 x
whenever these limits exist. (The same is true for one-sided limits.)
Example 22. Suppose 1 − 2x2 ≤ f (x) ≤ 1 + 3x2 for −1 < x < 1. Then by the Squeeze Theorem, we have
and hence
lim f (x) = 1 .
x→0
1
Example 23. lim x sin = 0, which is just a matter of applying the Squeeze Theorem to
x→0 x
0.2
1
−|x| ≤ x sin ≤ |x| 0.1
x
i.e., 0
1
0 = − lim |x| ≤ lim x sin ≤ lim |x| = 0 .
x→0 x→0 x x→0 -0.1
-0.2
-0.2 -0.1 0 0.1 0.2
46
4.5. BASIC TECHNIQUES IN LIMIT COMPUTATION MATH1012 Calculus IA
Note that we cannot apply the limit law about product to write
1 1
lim x sin = lim x · lim sin
x→0 x x→0 x→0 x
1
since lim sin does not exist!
x→0 x
Example 24. lim e−t/2 sin 5t = 0 .
t→+∞
where
-0.5
lim e−t/2 = 0
t→+∞
-1
0 2 4 6 8 10
sin θ
Example 25. lim= 1.
θ
θ→0
π
By the Squeeze Theorem, this limit follows easily from the following inequalities: for 0 < θ < 2,
sin θ
cos θ < <1
θ
Hence
sin θ
1 = lim cos θ ≤ lim ≤ lim 1 = 1
θ→0+ θ→0+ θ θ→0+
sin θ
lim =1
θ→0+ θ
sin θ
Note that θ is an even functions. Hence
sin θ sin θ
lim− = lim+ =1.
θ→0 θ θ→0 θ
To find the inequalities aabove, compare the areas of the following triangles and circular sector:
C
Area of △OAB < Area of circular sector OAB < Area of △OAC B
tan θ
1 1 1
sin θ < θ < tan θ sin θ
2 2 2 θ
O A
sin θ 1
cos θ < <1
θ
sin kθ
Example 26. Using lim = 1 for any non-zero constant k, we have
θ→0 kθ
tan 2θ sin 2θ 2 sin 2θ 2
(i) lim = lim · = lim · lim = 1·2 =2
θ→0 θ θ→0 2θ cos 2θ θ→0 2θ θ→0 cos 2θ
sin 3x sin 3x 3 3
(ii) lim = lim · =
x→0 2x x→0 3x 2 2
cos h − 1 −2 sin2 h
2 h sin h
(iii) lim = lim = − lim sin · lim h 2 = 0 · 1 = 0
h→0 h h→0 h h→0 2 h→0 2
47
4.6. SUMMARY OF SOME BASIC LIMITS MATH1012 Calculus IA
x x 1
0 ≤ lim ≤ lim = lim x 1 =0
x→∞ ex x→∞ x2
+ x + 1 x→∞
4 4 +1+ x
x
lim =0.
x→∞ ex
xn
More generally, lim = 0 for any positive integer n.
x→∞ ex
x2 (ln t)2
Exercise Show that lim = 0, and hence lim = 0 by letting x = ln t.
x→∞ ex t→∞ t
x −π π
−1
−π π
2 2
−1 1 2 3 4 5 6 7 −1
−2
−2
−3
−2
−3
−4
1 1
lim =0 lim =0
x→∞ x x→−∞ x
1 1
lim =∞ lim = −∞
x→0 x
+ x→0− x
lim ex = ∞ lim ex = 0
x→∞ x→−∞
lim ln x = ∞ lim ln x = −∞
x→∞ x→0+
π π
lim tan−1 x = lim tan−1 x = −
x→∞ 2 x→−∞ 2
48