1013L1 Chapter2
1013L1 Chapter2
2.1.1 Definition The limit of the function f (x) as x approaches a is the number L, written as
lim f (x) = L, (2.2)
x!a
provided that f (x) is arbitrarily close to L for all x sufficiently close to, but not equal to, a.
L L L
h(a)
x x x
0 a 0 a 0 a
The functions f , g and h all approach the limit L when x approaches a. Note that g(x) is not defined at
Figure 2.1: graphs of f , g and h
x = a and both g(x) and h(x) have a point of discontinuity at x = a (indicated by the hollow dot in the
figures). However, both functions g(x) and h(x) still get closer and closer to the value L as x gets closer and
According
closer to a from the lefttoand
thefrom
graph,
the when approaches a, the value f (x) approaches L. Using limit
right. xThus,
notations, we can write:
lim f (x) = L, lim g(x) = L, lim h(x) = L.
x!a x!a lim f (x) = L.x!a
x!a
The crucial point here is that each limit depends on the values of the function sufficiently close but not equal
A natural
to a. The function question
value at x =isathat
itselfhow
hasisno
it influence
different from
at all simply
on the writing
limit. f (a) = L? The key difference
2
is that lim f (x) concerns about the value of f when x is near a, whereas f (a) is the value of
x!a
f (x) when
In summary x isare
there exactly equal to a.points
three important The limit
aboutlim
limits of is
f (x) telling us what f (x) is close to, when x
functions.
x!a
is close to (but not yet equal) to a.
1. Saying that the limit of f (x) approaches L as x approaches a means that the value of f (x) may be
In Figure 2.1 (left), lim f (x) and f (a) are both the same. When move x toward a, the value
made arbitrary close to the
x!anumber L by choosing x closer and closer to a.
of f (x) moves toward L. Also when x is exactly at a, the value of f (x) is also exactly L.
2. For a limit to exist, you must allow x to approach a from either side of a. If f (x) approaches a
di↵erent number as x approaches a from the left than it does as x approaches a from the right,
then the limit does not exist.
3. The value of f (x) when x = a has no influence on the existence or non-existence of the limit of f (x)
as x approaches a. In fact, a may not even be in the domain of f . However, the function must be
defined on both sides of a.
32
40 Limit of Functions
However, it is different in the middle and right figures. Consider the function in the middle
graph: g(x) which is not defined at x = a. When x is approaching a but not yet equal to a, the
value of g(x) is still approaching L even though g(a) is not defined. Therefore, we can also write:
lim g(x) = L.
x!a
When we determine the value of a limit lim f (x), the function f (x) is not required to be
x!a
defined at x = a, and even if the function is defined at x = a, the limit and f (a) can be different
too! See the two examples below.
Even if the function is defined at x = a, its limit when x ! a can also be different from its
value at x = a. Consider this piecewise defined function (see Figure 2.1 (right))
(
f (x) if x 6= a
h(x) =
L 1 if x = a
Again, h and f coincide when x 6= a, but f (a) = L while h(a) = L 1. The value of lim h(x)
x!a
is determined by h(x) near x = a, but not at x = a. Therefore, we still have:
lim h(x) = L.
x!a
x2 4
f (x) =
x 2
Is f (2) defined? How about lim f (x)?
x!2
x2 4 (x 2)(x + 2)
f (x) = = = x + 2.
x 2 x 2
We can cancel out the x 2 factor as x 2 is close to, but not equal to, 0. Clearly, when x is
approaching to 2, we have x + 2 approaching to 2 + 2 =. This shows lim f (x) = 4.
x!2
We explain the reasons in the above paragraph just to clarify the concepts. In practice, we
may simply write down:
x2 4 (x 2)(x + 2)
lim f (x) = lim = lim
x!2 x!2 x 2 x!2 x 2
= lim (x + 2) (by cancelling x 2)
x!2
= 4.
⌅ Solution It is clear from the definition of f that f (2) = 10. For lim f (x), we only need to
x!2
look into the values of f (x) when x is close to, but not equal to 2. Therefore, the value of f (2)
is irrelevant.
When x 6= 2, we have f (x) = x + 2, so
x3 8
f (x) =
x 2
Is f (2) defined? How about lim f (x)?
x!2
We can make use of the following rules to compute its limit. We will omit the proofs here,
as it involve the rigorous ", -definition of limits, which will be covered formally in MATH
2033.
Proposition 2.1 If the limits lim f (x) and lim g(x) both exist, then we have:
x!a x!a
1. lim f (x) ± g(x) = lim f (x) ± lim g(x)
x!a x!a x!a
2. lim f (x)g(x) = lim f (x) · lim g(x)
x!a x!a x!a
3. lim cf (x) = c lim f (x) where c is any real constant.
x!a x!a
f (x) limx!a f (x)
4. lim = if limx!a g(x) 6= 0
x!a g(x) limx!a g(x)
5. lim f (x) = lim f (x) for any positive integer n
n n
x!a x!a
q
p
6. lim n f (x) = n lim f (x) for any odd positive integer n, and for any even positive
x!a x!a
integer n if limx!a f (x) 0.
In MATH 2033, we will define rigorous what is meant by “limit exists”. Meanwhile, you may
simply make sense of it through examples and by taking some given facts for granted. Here are
some examples that the limit does not exist:
42 Limit of Functions
1 1
lim does not exist (since when x is approaching to 0, approaches to infinity)
x
x!0 x
lim sin x does not exist (since sin x is oscillating between 1 and 1 as x increases)
x!+1
However, the limit of many elementary functions (such as polynomials, square roots) can be
shown (in MATH 2033) to exist, and so we can simply compute its limit by directly applying the
above rules. For instance, consider the limit:
⌅ Example 2.3 Compute the following limit, and explain what rules have been used in Proposi-
tion 2.1. p
lim 3x2 + x
x!9
⌅ Solution As x ! 9, we have lim x2 = 92 by Rule #5, and so lim 3x2 = 3 lim x2 = 3 · 92 = 243
x!9 px!9 x!9
p
by Rule #3. Furthermore, by Rule #6, we have lim x= 9 = 3. Now that both limits
x!9
p
lim 3x2 and lim x
x!9 x!9
i After having enough practice of using these limit rules, it is not necessary to always mention
what limit rules have been used. You could simply check by yourself that limit exists before
you apply the above rules, and simply write:
p p p
lim 3x2 + x = lim 3x2 + lim x = 3(9)2 + 9 = 246.
x!9 x!9 x!9
However, all these limit rules do not apply when the required condition is not met. For
example, it is NOT correct to apply Rule #4 like the following:
It is because the condition lim g(x) 6= 0 is needed when using the rule
x!a
In such case, some algebraic manipulations in order to find out the limit. See the examples
below:
⌅ Example 2.4 Compute the following limits:
(3 + x)2 9
1. lim
x!0 p x
x2 + 9 3
2. lim
x!0 x2
4x2 + 2x
3. lim1 2
x! 2 4x 8x + 3
2.1 Limit: Intuitive Meaning and Computations 43
⌅ Solution The denominators of all three functions approach 0, so we cannot simply apply the
limit rules #4 stated in Proposition 2.1. They can be computed as follows:
1.
(3 + x)2 9 9 + 6x + x2 9
lim = lim (expansion)
x!0 x x!0 x
6x + x2
= lim
x!0 x
x(6 + x)
= lim (factorization)
x!0 x
= lim 6 + x
x!0
=6
2.
p
x2 + 9 3
lim
x!0 x2
p p
x2 + 9 3 x2 + 9 + 3
= lim · p
x!0 x2 x2 + 9 + 3
p 2
x2 + 9 32
= lim p using (a b)(a + b) = a2 b2
x!0 x2 x2 + 9 + 3
x2 + 9 9
= lim p
x!0 x2 x2 + 9 + 3
x2
= lim p
x!0 x2 x2 + 9 + 3
1
= lim p
x!0 2
x +9+3
1
=p
02 + 9 + 3
1
= .
6
3.
4x2 + 2x 2x( 2x + 1)
lim1 2
= lim1 (factorization)
x! 2 4x 8x + 3 x! 2 (2x 1)(2x 3)
2x(2x 1)
= lim1
x! 2 (2x 1)(2x 3)
2x
= lim1
x! 2 2x 3
2( 12 )
=
2( 12 ) 3
1 1
= = .
2 2
i The identity (a b)(a + b) = a2 b2 is often helpful for computing limits which involve
square roots.
44 Limit of Functions
i The notations a and a+ simply refer to left or right toward a, and do not mean whether a
is positive or negative.
One-sided limits appear often when the function is piecewise defined. See the example below:
Let: 8
<3x + 1 if x < 1
>
f (x) = 3 if x = 1 (2.1)
>
: 2
2x 1 if x > 1
4
3
1
x
1
The graph of f can be found in Figure 2.2. As you can see from the graph, the function f (x)
approaches to 4 if x comes close to 1 from the left, but it approaches to 1 if x tends to 1 from the
left. We denote:
lim f (x) = 4
x!1
lim f (x) = 1.
x!1+
Mark your answers on the Multiple Choice Item Answer Sheet provided.
Do not forget to put your name, student ID number, and the color
version of your exam paper on the Multiple Choice Item Answer Sheet.
x
-3 3
(a) What
0 are f (2), lim
(b)x!23 x!2(c)
+
1 and lim f (x)? How
1 f (x), lim f (x)
2 x!2 (d) 23 about f(e)
(0), Does
lim fnot
x!0
(x), exist
lim f (x)
x!0+
and lim f (x)?
x!0
⌅ Solution The solid dot at the point (2, 0) indicates that f (2) = 0. When x ! 2 from the left,
f (x) is approaching 2, so
lim f (x) = 2.
x!2
⇣ 1 3 ⌘⇣ 1⌘
When
3. Find the x ! 2 from
horizontal the right,
asymptote (x) is
offthe approaching
function so
y = 3,cos 1 + x sin .
2x x2 x
lim f (x) = 3.
(a) 0 (b) 1 (c) 2 x!2+ (d) 3 (e) Does not exist
Since lim f (x) 6= lim+ f (x), the limit lim f (x) does not exist.
x!2 x!2 x!2
However, when x = 0, the value of f (x) is exactly 3, so f (0) = 3. Also, when x ! 0 either
from the left or from the right, we see that f (x) approaches 3, so we have
Since the left and right limits are equal and finite, we can say lim f (x) exists, and lim f (x) = 3.
x!0 x!0
⌅ Exercise 2.4 Consider the graph y = f (x) is the above example. Discuss what are f ( 2),
lim f (x), lim f (x) and lim f (x)?
x! 2 x! 2+ x! 2
46 Limit of Functions
⌅ Example 2.6 Consider the graph y = f (x) in Example 2.5, determine whether
lim f (f (x))
x!2
exists or not.
lim f (f (x)) = 2.
x!2
On the other hand, when x ! 2+ (from the right), f (x) ! 3 from below. We can see that
when z ! 3 , we have f (z) ! 1.2 (approximately). So we conclude that
lim f (f (x))
x!2
⌅ Exercise 2.5 Consider the graph y = f (x) in Example 2.5, fill in the following table:
where a is an unknown real number. Find the value(s) of a such that lim f (x) exists.
x!2
⌅ Solution This limit exists if and only if the left- and right-hand limits are equal. Let’s first
compute them out: As x ! 2 (from the left), x is regarded as less than 2. Therefore,
On the other hand, as x ! 2+ (from the right), x is regarded as greater than 2, and so:
9 = (2 a)2 =) 2 a = 3 or 3 =) a = 1 or 5.
(
x2 x + 2 if x 1
⌅ Exercise 2.7 Define f (x) = .
x
2 + 3
2 if x < 1
(a) Draw the graph of y = f (x) for 3 x 1.
(b) Determine whether the limit of lim f (x) exists.
x! 1
f (x)
Find the value(s) of a such that lim exists.
x!0 g(x)
The graph of f is shown in Figure 2.3. As you can see, as x is getting closer to 0 from the
48 Limit of Functions
1
lim = +1.
x!0+ x
Here, +1 should be regarded as a symbol rather than an ordinary number. Some arithmetic
rules of real numbers may not apply to the infinity.
Likewise, as x ! 0 , the value of x1 becomes more and more negative indefinitely, and so we
say:
1
lim = 1.
x!0 x
Our convention would be 1 (without the sign) means +1, but please note that other authors
may have different conventions. When either one of the left- or right-hand limits is 1 or 1,
we say that the limit does not exist. Graphically, having an infinite limit when x ! a means the
graph of the function is almost “touching” the vertical line x = a. Formally, we say:
Definition 2.3 — Vertical Asymptotes. The vertical line x = a is called a vertical asymptote of
the function f (x) if either one of lim f (x) or lim f (x) is +1 or 1.
x!a x!a
x2
lim = lim x = 0
x!0 x x!0
2
2x
lim = lim 2 = 2
x!0 x2 x!0
x 1
lim = lim 2 = +1.
x!0 x3 x!0 x
Recall that when lim f (x) = ±1, we say the limit does not exist. Therefore, all limit rules
x!a
listed in Proposition 2.1 cannot be used. If lim f (x) = +1 and lim g(x) = +1, it is also
x!a x!a
incorrect to write:
The limits below are all of the form 1 1, but the outcomes are different:
✓ ◆
1 1 x4 1
lim 2 2 4
= lim 2 2 = lim =1
x!0 x x +x x!0 x (x + x4 ) x!0 1 + x2
✓ ◆
1 2 1 1
lim = lim 2 = + = 1
x!0 x2 x2 x!0 x 0
✓ ◆
2 1 1 1
lim = lim 2 = + = +1
x!0 x2 x2 x!0 x 0
You can see that all three possibilities: finite, +1, and 1 could happen in case the limit is of
the form 1 1.
To summarize, if the limit is of the form 00 , 1 1 , or 1 1, we cannot determine its limit
directly and some algebraic manipulation is needed to find its value. We call any of these limits
to be of indeterminate form.
It is incorrect to write, for instance, that
r ! r
1 1 1 1
lim 1+ 2 = lim 1 + 2 lim WRONG!
x!0 x |x| x!0 x x!0 |x|
r
1 1
because the limits lim and lim
1+ are infinity, so they do not exist.
x!0 x2 x!0 |x|
Instead, one should perform some “rationalization” trick in order to compute this limit:
r ! r ! q
1 1 1 1 1 + x12 + |x|
1
lim 1+ 2 = lim 1+ 2 ·q
x!0 x |x| x!0 x |x| 1+ 1 + 1 x2 |x|
1 1
1+ x2 x2
= lim q
x!0 1 1
1+ x2 + |x|
1
= lim q .
x!0 1 1
1+ x2 + |x|
r
1 1
When x ! 0, we have 1
|x| ! +1, so the denominator, 2
+1+ , which is even larger than
x |x|
finite
|x| , would tend to +1 too. Therefore, the limit is of the form +1 , so we conclude that
1
r !
1 1 1
lim 1+ 2 = lim q = 0.
x!0 x |x| x!0
1+ 1
+ 1
x2 |x|
even thought it looks similar to the previous example. By the similar rationalization trick, we get
r !
1 1 1
lim 1+ 2 = lim q .
x!0 x x x!0
1+ 1 + 1 x2 x
Let’s show that the limit does not exist by looking into its left and right limits.
p
As x ! 0 , we have x12 ! +1, so 1 + x12 ! +1 as well. Since the square root sign always
refers to the positive square root, we conclude that
r
1
lim 1 + 2 = +1.
x!0 x
50 Limit of Functions
1
However, we have lim = 1 since 1
x < 0 when x approaches 0 from the left. Therefore, the
x!0 x
denominator r
1 1
1+ 2
+
x x
is of indeterminate form 1 1 as x ! 0 . We cannot conclude what is the limit
1
lim q .
x!0 1 1
1+ x2 + x
r !
1 1
lim 1+ 2 = +1.
x!0 x x
Hence, even the left-limit does not exist. It is already even though to argue that
r !
1 1
lim 1+ 2
x!0 x x
⌅ Exercise 2.12 Find the following limits, or show that they do not exist:
x 1
(a) lim p
x!1
✓x 1 ◆
1 2
(b) lim +
x!0 x x(x 2) ◆
✓
1 2
(c) lim +
x!0 x
✓ x |x 2| ◆
1 2
(d) lim
x!0 x x |x 2|
2.1 Limit: Intuitive Meaning and Computations 51
⌅ Exercise 2.13 Evaluate the following limit. If it is infinite, indicate whether it is +1 and 1.
1
(a) lim =
x!1 x 1
1
(b) lim =
x!1+ x 1
2
(c) lim =
x!1 x2 1
2
(d) lim =
x!1+ x2
✓ 1 ◆
2 1
(e) lim 2
+ =
x!1
✓x 1 x 1◆
2 1
(f) lim+ 2
+ =
x!1
✓x 1 x 1◆
2 1
(g) lim 2
=
x!1
✓x 1 x 1◆
2 1
(h) lim =
x!1+ x2 1 x 1
In many practical applications, we need to talk about the trend of a function f (x) when x is very
large or very negative. These applications include the analysis of computational complexity (in
CS) and the study of equilibrium states. In this regards, we have:
Definition 2.4 — Limit at Infinity. Let f : R ! R be a function, we say:
• lim f (x) = L if f (x) tends to L when x increases indefinitely
x!+1
• lim f (x) = M if f (x) tends to M when x decreases indefinitely
x! 1
Geometrically, lim f (x) = L means that the graph y = f (x) is getting closer and closer to
x!+1
the horizontal line y = L as x increases indefinitely; and lim f (x) = M means that y = f (x)
x! 1
gets closer and closer to the line y = M as x decreases indefinitely. In either case, we call that
horizontal line to be a horizontal asymptote.
Figure 2.4: the two dotted lines are horizontal asymptotes of the function
Easy examples of limit at infinity include the following (recall that 1 means +1):
1
• lim = 0 where p is any positive number.
xp
x!1 p
• lim x=1
x!1
• lim a = 1 (where a > 1)
x
x!1
• lim ax = 0 (where 0 < a < 1)
x!1
52 Limit of Functions
Some typical techniques of finding limits at infinity of rational functions (i.e. polynomial
divided by polynomial) are illustrated in the example below:
⌅Solution A standard technique for evaluating these limits is so-called division by highest
power of x:
1.
x2 1
x2 1 x2
lim 2 = lim x2 +2
(division by x2 )
x!1 x + 2 x!1
x2
1
1 x2
= lim 2
x!1 1 +
x2
1 0 1
= (since ! 0 as x ! 1)
1+0 x2
=1
2.
x 1
x x2 x
lim = lim x2 +1
= lim 1
x!1 x2 + 1 x!1 x!1 1+
x2 x2
0
= =0
1+0
3.
x3 1
x3 1 x3
lim = lim x2 +1
x!1 x2 + 1 x!1
x3
1
1 x3
= lim
x!1 1 + 1
x x3
⌅Solution We employ similar technique as in the previous example, by dividing both numerator
and denominator by the largest term, which is 5x in this example:
2x + 3x
x x
2 +3 5x
lim = lim
x!1 1 5x x!1 1 5x
5x
( ) + ( 3 )x
2 x
= lim 5 1 x 5
x!1 ( ) 1
5
Since 15 , 25 , 3
5 are all in (0, 1), we have
✓ ◆x ✓ ◆x ✓ ◆x
1 2 3
lim = 0, lim = 0, and lim = 0.
x!1 5 x!1 5 x!1 5
2x + 3x ( 52 )x + ( 35 )x 0+0
lim x
= lim 1 x
= = 0.
x!1 1 5 x!1 (5) 1 0 1
When handling the limit when x ! 1, we need to bare in mind that we would have instead
(
x 0 if a > 1
lim a = .
x! 1 +1 if 0 < a < 1
1 1
lim ax = lim = = 0.
x! 1 y!+1 ay +1
When 0 < a < 1, we then have ay ! 0 as y ! +1. As ay is positive, we can conclude that
1 1
lim ax = lim = + = +1.
x! 1 y!+1 ay 0
⌅ Exercise 2.14 Suppose p(x) = am xm +am +· · ·+a1 x+a0 and q(x) = bn xn +bn 1 xn 1 +
1x
m 1
Here is an important fact concerning limit at infinity and the Euler’s number e:
Definition 2.5 — Euler’s Number. ✓ ◆x
1
e = lim 1+
x!1 x
In MATH 1014 (L1) or MATH 1023, we will explain why this limit exists, but let’s assume so
for this course. By putting a very large number into x, we can find that
e ⇠ 2.71828183 . . .
⌅ 2.10 Evaluate
Example ✓ ◆ the limits:
x
2
1. lim 1+
x!1
✓ x◆
x
1
2. lim 1
x!1 x
2. The second limit is actually trickier than it seems. The key trick is to do a substitution
y = x 1. As x ! 1, we also have y ! 1.
✓ ◆x ✓ ◆x ✓ ◆y+1
1 x 1 y
lim 1 = lim = lim (Let y = x 1)
x!1 x x!1 x y!1 y+1
1 1
= lim ⇣ ⌘y+1 = y!1
lim ⇣ ⌘y+1
y!1 y+1 1
y 1+ y
1
= lim ⇣ ⌘y ⇣ ⌘
y!1 1
1+ · 1 + y1
y
1 1
= = .
e·1 e
2.1 Limit: Intuitive Meaning and Computations 55
⌅
✓ Find
Exercise 2.17 ◆ the limits below
x+1
x+1
(a) lim
x!1 x
✓ ◆x 2
1
(b) lim 1+
x!1
✓ x ◆
x
1
(c) lim 1 + 2
x!1
✓ x◆
x
x+3
(d) lim
x!1 x + 4
y = ln x () x = ey .
lim ln x = 1.
x!0+
It can be rigorously proven in MATH 1023/2033, yet we will omit the formal proof here.
Likewise, by the fact that lim ex = +1, we also expect that
x!+1
lim ln x = +1,
x!+1
to be the restricted sine function, i.e. SIN(x) = sin x for any x 2 [ ⇡/2, ⇡/2]. Then, SIN is a
bijective function. The symbol sin 1 is actually introduced with abuse of notations. It is NOT the
inverse function of sin x, but is the inverse function of SIN(x).
Since sin 1 is in fact SIN 1 in disguise, the domain and range of sin 1 is:
1
sin : [ 1, 1] ! [ ⇡/2, ⇡/2].
Therefore, the value of sin 1 x is always in the range [ ⇡/2, ⇡/2]. For instance, sin 1 (1/2) =
⇡/6 because sin(⇡/6) = 1/2. However, even if we have sin(3⇡/2) = 1, it does NOT imply
sin 1 ( 1) = 3⇡/2. Instead, sin 1 ( 1) is the value c 2 [ ⇡/2, ⇡/2] such that sin(c) = 1. This
value c can be easily seen to be ⇡/2. Therefore, sin 1 ( 1) = ⇡/2. Similarly, cos x is not
injective when its domain is R, but when we restrict the domain to be [0, ⇡], then it becomes
injective. Define
COS : [0, ⇡] ! [ 1, 1]
with COS(x) = cos x for any x 2 [0, ⇡], then COS is a bijective function. By what we meant cos 1
is the inverse function of COS. Therefore, the domain and range of cos 1 is:
1
cos : [ 1, 1] ! [0, ⇡].
Figure 2.5: although sin x and cos x are not injective on the whole real line, they would become
injective if one restricts their domains on the yellow region in the above diagram.
For tan x, it becomes injective if we restrict its domain on ( ⇡/2, ⇡/2). The inverse tangent
tan 1
is in fact the inverse function of the restricted tangent:
where TAN(x) = tan(x) for any x 2 ( ⇡/2, ⇡/2). The domain and range of tan 1
is
1
tan : R ! ( ⇡/2, ⇡/2).
2.1 Limit: Intuitive Meaning and Computations 57
1 ⇡
lim tan x= .
x!+1 2
An informally explanation for sin x and cos x are that they are oscillating between 1 and 1 so
they do not approach to a specific number when x ! 1. It can be proven more rigorously in
MATH 1023/2033.
58 Limit of Functions
2.2 Continuity
2.2.1 What is a continuous function?
Loosely speaking, continuity of a function f means that the graph y = f (x) is not broken.
Formally, it is defined using limit:
Definition 2.6 — Continuous Functions. Given a function f :
• f is said to be continuous at x = a if
1. lim f (x) exists; and
x!a
2. f (x) is defined at x = a (in particular, f (a) needs to be finite); and
3. lim f (x) = f (a).
x!a
• f is said to be continuous on an interval I if it is continuous at every point in I
• f is said to be continuous (everywhere) if it is continuous at every point in R.
• If f is not continuous at x = a, we say f is discontinuous at x = a.
⌅ Example 2.11 For each function below, find all value(s) of a (if any) such that the function is
continuous at x = 0:
1. (
1
if x 6= 0
f (x) = x
a if x = 0
2. (
3x2 + x + a if x 6= 0
g(x) =
a2 if x = 0
3. 8
> 2
<x + 1 if x < 1
h(x) = a if x = 1
>
:
2x if x > 1
⌅ Solution 1. Since
1
lim f (x) = lim = +1.
x!0+ x!0+ x
The limit lim f (x) does not exist. The function f cannot be continuous at x = 0 no matter
x!0
what value a is.
2.
lim g(x) = lim 3x2 + x + a = 3(0)2 + 0 + a = a
x!0 x!0
a2 =
|{z} a
|{z}
g(0) limx!0 g(x)
Therefore, the left- and right-hand limits do not match and the limit lim h(x) does not exist.
x!0
There is no a such that h(x) is continuous at x = 0.
Using this proposition, one can see quickly that a complicated function like:
1
ln x + tan x
f (x) =
x2 1
is continuous on (1, 1) for instance – since at every a in (1, 1), the functions ln x, tan 1 x and
x2 1 are all continuous, and the denominator x2 1 is non-zero. However, as x ! 1, we have
1 1 1 ⇡
lim (ln x + tan x) = lim ln x + lim tan x = 0 + tan (1) = ,
x!1 x!1 x!1 4
finite
but lim (x2 1) = 12 1 = 0. Therefore, f is of the form 0 as x ! 1, hence lim f (x) = ±1.
x!1 x!1
The function f is not continuous at x = 1.
Yet, f is continuous on (0, 1), since ln x and tan 1
x are so, and lim (x2 1) = a2 1 6= 0 if
x!a
a 2 (0, 1). Also, the function ln x is not defined at any point in ( 1, 0], so f is not continuous at
any point in ( 1, 0].
To summarize, f is continuous on (0, 1) [ (1, 1)
⌅ Exercise 2.18 Determine the maximum possible set on which the following functions is
continuous.
x2 + 2
(a) f (x) =
x2 4
|x|
(b) f (x) =
x
(c) f (x) = ln
p |x|
4 + x2 2
(d) f (x) =
x
⌅ Exercise 2.19 Consider the function f whose graph is given as in Example 2.5. Which of the
following functions is/are continuous at x = 2? How about continuous at x = 2?
The following theorem tells us that we can do that if the functions is continuous.
Theorem 2.3 If lim g(x) = b and f is continuous at b, then
x!a
⇣ ⌘
lim f (g(x)) = f lim g(x) = f (b).
x!a x!a
The result also holds for left- and right-limits lim , and for limits at infinity lim .
x!a± x!±1
✓ ◆
lim tan (sin x) = tan lim sin x = tan 1.
x!⇡/2 x!⇡/2
We know that ✓ ◆x
1
lim 1+ =e
x!1 x
and ln is continuous at e, so:
✓ ◆ ✓ ◆x ✓ ◆x
1 1 1
lim x ln 1 + = lim ln 1 + = ln lim 1 + = ln e = 1.
x!1 x x!1 x x!1 x
The second part is quite tricky. The key trick is to let y = ah 1, then
ln(y + 1)
h = loga (y + 1) = .
ln a
As h ! 0, y ! 0 too. Hence
ah 1 y
lim = lim
h!0 h y!0 ln(y+1)
ln a
y
= lim · ln a.
y!0 ln(1 + y)
In particular, we have
eh 1
lim = ln e = 1. (2.2)
h!0 h
You are probably being “told” about this result in DSE M1/M2. Now you know the proof of it.
Using the fact that ln x is continuous on (0, 1), one can find the limit of functions of the form
f (x)g(x) :
2
⌅ Solution Let y = (1 + x3 )1/x , then ln y = 1
x2 ln(1 + x3 ). As x ! 0+ , we have
1
lim ln y = lim+ ln(1 + x3 ).
x!0+ x!0 x2
By letting z = x3 ,
1
then z ! 1, and so
✓ ◆ ✓ ◆
1 3 1 1 2/3 1
lim+ ln(1 + x ) = lim q ln 1 + = lim z ln 1 +
x!0 x2 z!1 3 1 2
( ) z z!1 z
z
which looks quite✓similar◆(but not exactly) to the previous example, except that the previous
1
result is lim z ln 1 + . To tackle this, we relate z 2/3 with z:
z!1 z
✓ ◆ ✓ ◆
1 1 1
lim z 2/3 ln 1 + = lim 1/3 · z ln 1 + = 0 · 1 = 0.
z!1 z z!1 z
| {z } | z
{z }
!0 !1
Remember that our goal is to find lim+ y. Using the fact that ln is continuous on (0, 1), we
x!0
have ✓ ◆
ln lim y = lim ln y = 0.
x!0+ x!0+
Show that ⇣ ⌘
lim f (sin2 x) 6= f lim sin2 x .
x!0 x!0
Here a can be +1 or 1. For finite a, all the above limits can be one-sided.
Evaluate
lim f (x).
x!0
1
1 sin 1
x
64 Limit of Functions
lim f (x) = 0.
x!0+
A similar argument can be applied to show lim f (x) = 0. However, one needs to be
x!0
careful that when x < 0, we have instead:
1
x x sin x.
x
A useful fact about limit of trigonometric functions stated below can be proved using squeeze
theorem:
Proposition 2.5
sin x
lim =1
x!0 x
Clearly, we have [4OBC] < [sector OBC] < [4OBD]. Here [ ] denotes the area. By elementary
trigonometry, we get
1 1 1
sin x < x < tan x.
2 2 2
sin x
The left inequality implies < 1. The right inequality can be written as
x
sin x sin x
x< =) > cos x.
cos x x
To summarize, we have
sin x
cos x < < 1.
x
Since lim+ cos x = 1 = lim+ 1, by squeeze theorem, we can conclude that
x!0 x!0
sin x
lim = 1.
x!0+ x
sin x
Since is an even function, we also have
x
sin x
lim = 1,
x!0 x
completing the proof of the proposition. ⌅
2.2 Continuity 65
⌅ Solution 1.
sin 2x sin y
lim = lim y (Let y = 2x)
x!0 x y!0
2
sin y
= 2 lim
y!0 y
=2·1=2
2.
1 cos x sin2 x2
lim = lim (Half-angle formula)
x!0 x2 x!0 x2
sin2 y x
= lim (Let y = )
y!0 (2y)2 2
sin2 y
= lim
y!0 4y 2
✓ ◆2
1 sin y
= lim
y!0 4 y
1 2 1
= ·1 =
4 4
3.
tan x sin x
lim = lim
x!0 x x!0 x cos x
sin x 1
= lim ·
x!0 x cos x
1
=1·
cos 0
1
=1· =1
1
⌅ Solution If m2 = n2 , then m = n or m =
n. When m = n, clearly we have cos mx = cos nx.
When m = n, we recall that cos is an even function, so we also have cos mx = cos( nx) =
cos nx. Therefore, when m2 = n2 , we have
cos mx cos nx 0
lim = lim 2 = 0.
x!0 x2 x!0 x
Note that as x ! 0, we shall assume x is just very close to, but not equal to 0. Therefore 0
x2 is
66 Limit of Functions
sin (m+n)x
2 sin (m+n)x
2 m+n
lim = lim (m+n)x · .
x!0 x x!0 2
2
sin (m+n)x
2 m+n
lim = .
x!0 x 2
Likewise, we can also show
sin (m 2n)x m n
lim = .
x!0 x 2
Combining all the above results, we finally can conclude that when m2 6= n2 , we have
⌅ Exercise 2.25 — HKAL Pure Math 2008, Paper II Q1. Answer the following questions:
1
(a) Prove that lim x cos = 0.
x!0 x
(b) Find the limit
x2 cos x1
lim .
x!0 tan x
Exercise 2 .
24
( a) Fiud l( e
lixt s ∞
刘
) ox ( tos
similarly 箱 像
xsin
弛)
golution : ≤ sinx ≤ 1 -
1 sinx 1
≤≤
O ≤ sin ( x) ≤ 1
) ≤ s坊 |
-
1 x 1 ≤ x sin
^
( x) ≤ x1
: ∞⼀⽚ |= x |= 它
o ∵ 1 。
-
1x 1
=01 xl = 0
∴∞= On . ∴ 。 x ( 1- os = )
0
λ sin
=
(x) =
06
( bxxsin 1 1
H
怎⼼
(⽚ )
s timly
Put =
⽅
y ,
λ→∞ → 0
,
y
“ “
品 x m 忙
吃
= 1
,
( gasiua 2 c
“
)s
0 s
《
Find ) xsin (
(
Solontion sin ≤ 1
⼆
2 ws ()
xsm 吃
x≤
∵ 1 。
-
1 x |= 。 1
x1 = 0
∴ 。xsin () =
oa
@
xx 1 - ( 以⽂ )
我 sinosimo氢
xx ano cs)
=
oso
2
os
(
_
= -
⼆⾄ gimx
xxsin
Patg 就
⼆蕊 smx 范 sx 立 xsinyx
=
立 xsin 。
, 0
→∞ f
=
-
-
1 × 当 x 0
= O
4
2.2 Continuity 67
n
!2 n
!2
X X 1 cos nx
sin kx + cos kx =
1 cos x
k=1 k=1
A quick example of using the IVT is to show that the polynomial f (x) = x3 + 2x 1 has at least
one real root. That is because f (0) = 03 + 2(0) 1 = 1 < 0 and f (1) = 13 + 2(1) 1 = 2 > 0.
Therefore, the value 0 is between f (0) and f (1). Any polynomial is continuous, so by the IVP
there exists at least one c in (0, 1) such that f (c) = 0.
⌅ Exercise 2.27 Show that the equation x3 + 2 = sin x has at least one solution.
⌅ Exercise 2.28 Let f : [0, 1] ! [0, 1] be a continuous function. Show that there exists c 2 [0, 1]
such that f (c) = c.
f 10) = 0 +2 -
0 = 2 > 0
f( ) -
2 = -
8 + 2 -
siaE -
2 ]
=
-
6+ sin 2 < 0
∴ 雪 c ε ( -
2
,
0
) that f[ c
) = 0
has
'
The x siux at least solutin
eqhation
∴ 4 2 =
one .
2.3 Toward Understanding Rigorous Definition of Limits 69
i Will the content in this section be in the test of L1? Yes, but not too much. Math majors will
need to understand this section well, sooner or later.
“8" > 0, 9 > 0 such that if 0 < |x a| < , then |f (x) L| < ".”
It is very helpful to think of “(x, f (x)) in the blue strip” means “x is close to a”, and “(x, f (x))
in the red strip” means “f (x) is close to L”. In the above diagrams, we see that:
“no matter how narrow the red strip we draw around L, we can always draw a
small blue strip around a, such that if (x, f (x)) is in the blue strip, then (x, f (x)) is in
the red strip.”
70 Limit of Functions
Let’s try to translate the above verbal sentence into mathematical language:
verbal mathematical
no matter how narrow the red strip 8" > 0 (which is the width of the red strip)
we can draw a small blue strip 9 > 0 (which is the width of the blue strip)
if (x, f (x)) is in the blue strip if 0 < |x a| <
then (x, f (x)) is in the red strip then |f (x) L| < "
tE > 0 雪 S 70 ,
suchthd 0 < 1x a
-
|<δ→| f (x) -
L| Kε
,
i 0 < |x a| < is just equivalent to |x a| < and x 6= a. Note that the limit of a function
is irrelevant to the value f (a), so we exclude the consideration of x = a.
a 2 =
To find such a , we usually first leave it blank, and adjust its value later.
If 0 < |x 2| < ??, then
|f (x) 3| = x2 1 3
2
= x 4 = |x 2| |x + 2|
< ?? |x + 2| .
2.3 Toward Understanding Rigorous Definition of Limits 71
Note that 0 < |x 2| < ?? implies ?? < x 2 < ??, and so ?? + 4 < x + 2 < ?? + 4. If we
choose ?? so that ?? < 4 , then 0 < x + 2 < 8 and so |x + 2| < 8. This will give
|f (x) 3| < ?? ⇥ 8.
1
|f (x) 3| < ⇥ 8 = 0.1
80
|f (x) 3| = x2 1 3
2
= x 4 = |x 2| |x + 2|
1
< |x + 2| .
100
1 1
|f (x) 3| < |x + 2| < ⇥ 8 = 0.08 < 0.1
100 100
i Attention: In order to find such a , do NOT start by solving the inequality |f (x) 3| < 0.1
to show that 0 < |x 2| < certain number, and then taking that number to be . In so
doing, you are attempting to prove the converse “if |f (x) 3| < 0.1, then 0 < |x 2| < ”,
which is not logically the same.
Now if we take an even smaller ", say " = 0.01, then how shall we choose a suitable ?
As before, if 0 < |x 2| < 4, then |x + 2| < 8 and so
|f (x) 3| = |x 2| |x + 2| < 8 |x 2| .
If we further have 8 |x 2| < 0.01, then it would imply |f (x) 3| < 0.01 as desired.
Now we are clear about the choice of a suitable , we need both of these hold:
0.01
0 < |x 2| < 4 and |x 2| < .
8
We pick = 0.01
10 = 0.001, which is both less than 4 and 8 . Now if 0 < |x
0.01
2| < = 0.001,
then 0 < |x 2| < 4 and |x 2| < 8 , and it implies |x + 2| < 8, and so
0.01
0.01
|f (x) 3| = |x 2| |x + 2| < 8 |x 2| < 8 ⇥ = 0.01
8
To summarize, we have proved that given " = 0.01, we can let = 0.001 so that
⌅ Exercise 2.29 Let f (x) = x2 1 again. Now given " = 0.005, find a suitable > 0 such that
悠 flx)
,
= 0
E
⼀
=
0 01
.
8 i ks
suchthart
号
if oit -
Gx
<δ→
<
-
1 -
→ 2 -
∴
fx)
|= -
1
x ≡1 |=| x +1 ① lfl 1
<δ 1 x +1 |=δ [ x+1 ) < 48 =
Q 04
-
5 < 0 01
- .
1 fx )
-
o< Qo 1
P )
(
- 1 3
嘴 x2 =
Pe
θ E> 0 .
⽇
8 = min ( 4 信) ,
suchthol O < 1
x
- 21 <
-
δ< x- 22
→ 4 -
≤ 8 。
哥 =ε
if 0 < lx 21
-
<δ= min (4 , λ ) then,
|(-
x
-
31 <ε
∴ 1洲
x2
[x ≡ 1 ) =
3 .
72 Limit of Functions
⌅ Example 2.18 Let f (x) = x2 1. Prove, using the rigorous definition of limit, that
lim f (x) = 3.
x!2
⌅ Solution Rough work: Let’s do some rough work first. Given any " > 0, we need to find a
number ?? such that if 0 < |x 2| < ??, then |f (x) 3| < ".
Recall that |f (x) 3| = |x 2| |x + 2| < ?? · |x + 2|. If we can bound |x + 2| by a constant
C, then |f (x) 3| < ?? · C. In such case, in order for ?? · C < ", we just need ?? < C" . Then
how to bound |x + 2| by a constant? We have discussed that before, namely by choosing ?? < 4,
then |x + 2| < 8. Overall, we need
"
?? < 4 and ?? < .
8
One such as choice is ?? = min{3, 10
"
}, then we have both
|f (x) 3| = x2 1 3 = |x 2| |x + 2|
"
< 8 |x 2| < 8 8 ·
10
< ".
⌅ Example 2.19 Let f (x) = x3 1. Prove, using the rigorous definition of limits, that
lim f (x) = 0.
x!1
⌅ Solution Now we skip the “rough work” and present the formal proof. In practice, you
should first do the “rough work” to get a hint of how to choose a suitable .
8" > 0, we let = min{1, 8" } such that if 0 < |x 1| < , then we first have
Then, we have
|f (x) 0| = x3 1 = |x 1| x2 + x + 1
< x2 + x + 1
= ( x2 + |x| + 1) (triangle inequality)
2
< (2 + 2 + 1) (since 0 < x < 2)
"
= 7 7 · < ".
8
To conclude, we have lim f (x) = 0.
x!1
As x ! 1, we are considering 0 < |x 1| < , so the numerator is a good term because it can
2
be as small as we wish by adjusting the . Now that we want to bound |x|x|1| from above, we
should bound the denominator |x| from below (Recall that the larger the denominator, the
smaller the fraction). If 0 < |x 1| < 12 , then 12 < x 1 < 12 , and so 12 < x < 32 . This give
|x| = x > 12 , and so |x|
1 1
< 1/2 = 2. That would make
✓ ◆ 2
1 |x 1|
x+ 2 = < 2 2.
x |x|
p
To make 2 2
< ", we simply require < "/2. To summarize, we need both
1 p
< and < "/2.
2
p"
Now we get to the formal proof: 8" > 0, we take = 1
2 min{ 12 , 2} such that 0 < |x 1| <
74 Limit of Functions
r
1
⌅ Exercise 2.32 Let f (x) = . x+
x p
(a) Find a suitable > 0 such that if 0 < |x 1| < , then f (x) 2 < 0.1
p
(b) Find a suitable > 0 such that if 0 < |x 1| < , then f (x) 2 < 0.05
p
(c) Prove, using the rigorous definition of limits, that lim f (x) = 2.
x!1
It is helpful to think about the phrase “9 > 0 such that if 0 < |x a| < , then something
holds” to be:
Then, we can rephrase the rigorous definition of limits as follows, by lim f (x) = L it means
x!a
“8" > 0, we have |f (x) L| < " when x is sufficiently close to a and x 6= a.”
In other words, it means f can be as close to L as we wish when x is sufficiently close to a and
x 6= a.
(a 3 θε= 0 .
1 雪 δ < 0 .
1
,
( la 多
-
与 < x -
1 <δ
. { 10
< x <δ
fx 分部了⼀下不
11 = x
州
“
*
(坏 )》
<01
:
州
“
∴
Ifo <1 x- 1 |<δ< 0 . 1 ,
then | f [ x ) ☆|<
-
0 .
1
( Similor
3 froom (a ,
H FE >
0 ,雪 位
min δ
⼀系是 λ -
1 <δ
ax
当 1 δ -
-
. 8 + -
Fomld , |f )
-p 1
xllx
=|
π← 可 ∵ 安可 x
π<ε
+
6
If 0 < 1 x -
1 |<δ= min ( , )位
,
then 1 f[ x ) -
☆ I <ε
∴ 在 fla ) = 可
Example :Prove that悠比 +÷) = 2
θε> 0
,
雪 δ= mim 位 ] ,
if o < lx -
1 lag
=☆| x
- 19 a δ
主
⼀定 ≤λ - 1 往
⼆当会 λ≤ 童
到 =| ^|
x
→| ( x +÷)
-
=警
= 28 < E
2.3 Toward Understanding Rigorous Definition of Limits 75
To explain part (a), it’s best to look at some diagrams. For simplicity we denote
From the last diagram, we see that if x is sufficiently close to a so that x is still within the
dark blue strip, then f (x) > g(x). This proves (a).
To prove (b), we are given that g(x) f (x) when x is sufficiently close to a and x 6= a, we
need to show lim g(x) lim f (x). We prove by contradiction. Assume on the contrary that
x!a x!a
Then from (a), we have f (x) > g(x) when x is sufficiently close to a and x 6= a. However, it clearly
contradicts to the given condition of part (b). Therefore, our assumption lim g(x) < lim f (x) is
x!a x!a
false, and it shows we must have
In particular,
0.99x < sin x < 1.01x when x is sufficiently close to 0, and x > 0,
and the reverse inequalities hold when x is sufficiently close to 0 and x < 0. No wonder some
non-math majors (especially engineering majors) could treat “sin x = x” when x is very small.
Proposition 2.7 can also be applied when x ! 1, but then “x is sufficiently close to a” will be
replaced by “x is sufficiently large”. Consider an odd degree polynomial say p(x) = x11 5x9 100.
With the negative terms 5x9 and 100, it is not true that p(x) > 0 for all x > 0. However, one
can show p(x) > 0 when x is sufficiently large using Proposition 2.7.
Consider the limit:
✓ ◆
x11 5x9 100 5 100
lim = lim 1 = 1.
x!1 x11 x!1 x2 x11
Therefore, we have
1 x11 5x9 100
< lim < 2.
2 x!1 x11
Then, part (a) of Proposition 2.7 shows when x is sufficiently large (say when x C when C > 0
is a very big number), we have
⌅ Exercise 2.33 Show that there exists a constant B < 0 such that x1014 + 1013x1013
1003x 1012
> 0 when x < B.
⌅ Exercise 2.34 Show that for any odd degree polynomial p(x), there exist constants B < 0 <
C such that p(x) has different signs on the intervals ( 1, B) and (C, 1). Hence, deduce
that any odd degree polynomial must have at least one real root.
sin x 1 8x 2 R.
2.3 Toward Understanding Rigorous Definition of Limits 77
In fact, the above statement is meaningless since lim sin x does not exist.
x!1
Moreover, even if we have f (x) > g(x) when x is sufficiently close to a and x 6= a, and that
both lim f (x) and lim g(x) exist, the best one can argue is that
x!a x!a
The counterexample below shows that even if f (x) > g(x) when x is sufficiently close to a
and x 6= a, it could still happen that
Consider ( (
x2 if x 6= 0 x2 if x 6= 0
f (x) = g(x) = .
1 if x = 0 1 if x = 0
Clearly, no matter whether x 6= 0 or x = 0, we have f (x) > g(x). However, we have both