Calculus Iii Limits and Continuity of Functions of Two or Three Variables
Calculus Iii Limits and Continuity of Functions of Two or Three Variables
Calculus Iii Limits and Continuity of Functions of Two or Three Variables
prepared by
Antony Foster
Department of Mathematics (office: NAC 6-273)
The City College of The City University of New York
Convent Avenue At 138th Street
New York, NY 10031
afoster00@ccny.cuny.edu
afoster1955@gmail.com
LIMITS AND CONTINUITY
In this discussion we will introduce the notions of limit and continuity for functions of two aor more variables.
We will not go into great detail— our objective is to develop the basic concepts accurately and to obtain
results needed in later discussions. A more extensive study of these topice is usually given in a course in
advanced calculus.
For a function of a single variable there are two one-sided limits at a point x0 , namely,
reflecting the fact that there are only two directions from which x can approach x0 , the right or the left.
For functions of two or three variables the situation is more complicated because there are infinitely many
different curves along which one pont can approach another. Our first objective in this discussion is to define
the limit of f (x, y) as (x, y) approaches a point (x0 , y0 ) along a curve C (and similarly for functions of three
variables).
are defined by
lim f (x, y) = lim f (x(t), y(t)) (1)
(x,y)→(x0 ,y0 ) t→t0
In these formulas the limit of the function of t must be treated as a one-sided limit if (x0 , y0 ) or (x0 , y0 , z0 )
is an endpoint of C.
A geometric interpretation of the limit along a curve for a function of two variables. As the point (x(t), y(t))
moves along the curve C in the xy-plane towards (x0 , y0 ) , the point (x(t), y(t), f (x(t), y(t))) moves directly
above it along the graph z = f (x, y) with f (x(t), y(t)) approaching the limiting value L.
i
Brief Discussion of Limits LIMITS AND CONTINUITY
Example -1.1 Consider the function f (x, y) of two variables x and y defined as
xy
f (x, y) = − .
x2 + y 2
Find the limit along the following curves as (x, y) → (0, 0).
Solution (a) The x-axis has parametric equations x = t, y = 0, with (0, 0) corresponding to t = 0,
so ! "
0
lim f (x, y) = lim f (t, 0) = lim − 2 = lim 0 = 0.
(x,y)→(0,0) t→0 t→0 t t→0
Solution (b) The y-axis has parametric equations x = 0, y = t, with (0, 0) corresponding to t = 0,
so ! "
0
lim f (x, y) = lim f (0, t) = lim − 2 = lim 0 = 0.
(x,y)→(0,0) t→0 t→0 t t→0
Solution (c) The line y = x has parametric equations x = t, y = t, with (0, 0) corresponding to
t = 0, so ! " ! "
t2 1 1
lim f (x, y) = lim f (t, t) = lim − 2 = lim − = − .
(x,y)→(0,0) t→0 t→0 2t t→0 2 2
Solution (d) The line y = −x-axis has parametric equations x = t, y = −t, with (0, 0) corresponding
to t = 0, so ! 2 "
t 1 1
lim f (x, y) = lim f (t, −t) = lim 2
= lim = .
(x,y)→(0,0) t→0 t→0 2t t→0 2 2
Solution (e) The parabola y = x2 has parametric equations x = t, y = t2 , with (0, 0) corresponding
to t = 0, so
! " ! "
2 t3 t
lim f (x, y) = lim f (t, t ) = lim − = lim − = 0.
(x,y)→(0,0) t→0 t→0 t2 + t4 t→0 1 + t2
ii
Brief Discussion of Limits LIMITS AND CONTINUITY
Although limits along specific curves are useful for many purposes, they do not always tell the complete
story about the limiting behavior of a function at a point; what is required is a limit concept that accounts
for the behavior of the function in an entire vicinity of a point, not just along smooth curves passing through
the point. For this purpose, we start introducing some terminology.
Let C be a circle in 2-space that is centered at (x0 , y0 ) and has positive radius δ. The set of points that are
enclosed by the circle, but do not lie on the circle, is called the open disk of radius δ centered at (x0 , y0 ),
and the set of points that lie on the circle together with those enclosed by the circle is called the closed disk
of radius δ centered at (x0 , y0 ). Analogously, if S is a sphere in 3-space that is centered at (x0 , y0 , z0 ) and
has positive radius δ, then the set of points that are enclosed by the sphere, but do not lie on the sphere, is
called the open ball of radius δ centered at (x0 , y0 , z0 ), and the set of points that lie on the sphere together
with those enclosed by the sphere is called the closed ball of radius δ centered at (x0 , y0 , z0 ). Disks and
balls are the two-dimensional and three-dimensional analogs of intervals on a line.
The notions of “open” and “closed” can be extended to more general sets in 2-space and 3-space. If D is
a set of points in 2-space, then a point (x0 , y0 ) is called an interior point of D if there is some open disk
centered at (x0 , y0 ) that contains only points of D, and (x0 , y0 ) is called a boundary pont of D if every
open disk centered at (x0 , y0 ) contains both points in D and points not in D. The same terminology applies
to sets in 3-space, but in that case the definitions use balls rather than disks.
For a set D in either 2-space or 3-space, the set of all interior points is called the interior of D and the set
of all boundary points is called the boundary of D. Moreover, just as for disks, we say that D is closed
if it contains all of its boundary points and open if it contains none of its boundary points. The set of all
points in 2-space and the set of all points in 3-space have no boundary points (why?), so by agreement they
are regarded to be both open and closed.
iii
Brief Discussion of Limits LIMITS AND CONTINUITY
Let me begin with the question that you wanted to ask, but were afraid to ask it:
lim f (x, y) = L ?
(x,y)→(x0 ,y0 )
By the statement, we mean to convey the idea that the values of f (x, y) can be made as “close as we like”
to the number L by restricting points (x, y) in the domain of f to be “sufficiently close” to (but different
from) the point (x0 , y0 ). This idea has a formal expression in the following definition.
The number L ∈ R is said to be the limit of f (x) as x ∈ D approaches x0 if and only if given any real number
ε > 0, we can find a corresponding real number δ > 0 (usually depends on ε) such that f (x) satisfies
| f (x) − L | < ε
whenever the distance between x and x0 satisfies 0 < ∥ x − x0 ∥ < δ and we will write
iv
Brief Discussion of Limits LIMITS AND CONTINUITY
Definition: Let f : D ⊆ R2 → R be a function of two variables x and y defined for all ordered pairs (x, y)
in some open disk D ⊆ R2 centered on a fixed ordered pair (x0 , y0 ), except possibly at (x0 , y0 ).
We will say that the number L ∈ R is the limit of f (x, y) as (x, y) ∈ D approaches (x0 , y0 ) if and only if
given any real number ε > 0, we can find a real number δ > 0 (usually depends on ε) such that f (x, y)
satisfies
| f (x, y) − L | < ε
#
whenever the distance between (x, y) and (x0 , y0 ) satisfies 0 < (x − x0 )2 + (y − y0 )2 < δ and we will
write
lim f (x, y) = L or lim | f (x, y) − L | = 0.
(x,y)→(x0 ,y0 ) (x,y)→(x0 ,y0 )
Definition: Let f : E ⊆ R3 → R be a function of three variables x, y, and z defined for all ordered triples
(x, y, z) in some open sphere E ⊆ R3 centered on a fixed ordered triple (x0 , y0 , z0 ), except possibly at
(x0 , y0 , z0 ).
We will say that the number L ∈ R is the limit of f (x, y, z) as (x, y, z) ∈ E approaches (x0 , y0 , z0 ) if and
only if given any real number ε > 0, we can find a real number δ > 0 (usually depends on ε) such that
f (x, y, z) satisfies
| f (x, y, z) − L | < ε
whenever the distance between (x, y, z) and (x0 , y0 , z0 ) satisfies
#
0 < (x − x0 )2 + (y − y0 )2 + (z − z0 )2 < δ and we will write
Important: In using the definitions above, you must have some idea of what the number L is before hand.
Once you have some idea of L then the definitions above can be used to verify that L is the limit.
v
Brief Discussion of Limits LIMITS AND CONTINUITY
4x2 y
Example -1.2 Let f : D ⊆ R2 → R be the function f (x, y) = of two variables x and y defined
x2 + y 2
on the region D = {(x, y) ∈ R2 : (x, y) ̸= (0, 0)} = R2 /{(0, 0)}. Use the definition of limits to show that
4xy 2
lim = 0.
(x,y)→(0,0) x2 + y 2
Solution
Preliminary discussion: According to the definition of limits given above for two variables, given any real
number ε > 0 whatsoever, we must “find a corresponding real number δ > 0 (usually depends on ε and
also on the point (0, 0))” such that f (x, y) satisfies the inequality | f (x,
# y) − 0 | < ε whenever (x, y) ∈ D
and the distance between (x, y) and (0, 0) satisfies the inequality 0 < x2 + y 2 < δ:
So here is what we do to find the corresponding real number δ (in terms of ε): Suppose you are given ε > 0
arbitrarily. You must to find a corresponding real number δ > 0 (but you don’t know how to you are
2
going to choose it yet!) such that f (x, y) = x42 x+ yy2 satisfies the inequality
$ $
$ 4x2 y $
$ − 0 $ < ε
$ x2 + y 2 $
#
whenever the distance between (x, y) ∈ D and (0, 0) satisfies the inequality 0 < x2 + y 2 < δ or equiva-
lently,
y2 #
4|x| · 2 < ε whenever 0 < x2 + y 2 < δ.
x + y2
Let us pretend for a brief moment that we have found the corresponding real number δ, then since we know
2
that y 2 ≤ x2 + y 2 for all (x, y) ̸= (0, 0) implies that x2 y+ y2 ≤ 1 for all (x, y) ̸= (0, 0) we can write the
following statement (very important): This is where you get to discover how the corresponding real number
δ > 0 should be chosen (recall that you only pretended to have chosen it, so now you get to choose it for
real).
$ $
$ 4 x2 y $ y2 √ #
$
| f (x, y) − 0 | = $ 2 − 0 $ = 4|x| · ≤ 4 | x | · 1 = 4 x 2 ≤ 4 x2 + y 2 < 4 δ.
x + y2 $ x2 + y 2
#
So if (x, y) is in D and 0 < x2 + y 2 < δ, we see that you should choose the corresponding positive real
number δ to be ε/4 (or smaller) and we get that
$ $ % &
$ 4 x y2 $ #
$ − 0 $ ≤ 4 x2 + y 2 < 4 δ = 4 ε = ε
$ x2 + y 2 $ 4
vi
Brief Discussion of Limits LIMITS AND CONTINUITY
or equivalently, that $ $
$ 4 x2 y $
| f (x, y) − 0 | = $$ 2 2
− 0 $ < 4 δ = ε.
$
x +y
ε
Now that you have found δ = 4 > 0, you can now give your answer to the question as follows:
2
The answer: The number 0 is the limit of the function f (x, y) = x4x y
2 + y 2 as (x, y) in D approaches
(0, 0) because for any given number ε > 0, we have shown that we can produce a corresponding number
2
δ = ε/4 > 0 so that f (x, y) = x42 x+ yy2 satisfies the inequality
$ $
$ 4 x2 y $
$ $
$ x2 + y 2 − 0 $ < ε
#
whenever the distance between (x, y) and (0, 0) satisfies 0 < x2 + y 2 < ε/4 = δ. So we can write
4 x2 y
lim = 0.
(x,y)→(0,0) x2 + y2
Notice: The answer to limit questions such as above are usually very short compared to the amount of work
required to discover your answer.
vii
Brief Discussion of Limits LIMITS AND CONTINUITY
Solution Let us suppose that f (x, y) has a limit L, as (x, y) → (0, 0). If (x, y) → (0, 0) along a vertical
path, e.g., if x = 0 and y ↓ 0, then L = 0 (because f (0, y) = 0 for all y ̸= 0). If (x, y) → (0, 0) along
a “diagonal” path, e.g., if y = x and x ↓ 0, then L = 1 (because f (x, x) = 1 for all x ̸= 0). Since
L = 0 ̸= 1 = L (a function cannot have two different limits at the same point), f (x, y) has no limit at
(0, 0).
The Example above and example 1.1 provides us with a way to show that a function of two variables has no
limit at a particular point. We shall call this procedure the “Two-Path Test”:
The two-path Test (used for showing that the limit does not exist at a particular point)
(a) If lim(x,y)→(x0 ,y0 ) f (x, y) = L, then lim(x,y)→(x0 ,y0 ) f (x, y) = L along any smooth curve or path.
(b) If the limit of f (x, y) fails to exist as (x, y) → (x0 , y0 ) along some smooth curve or path, or if f (x, y) has
different limits as (x, y) → (x0 , y0 ) along two different smooth curves or path, then the limit of f (x, y)
does not exist as (x, y) → (x0 , y0 ).
Example -1.4 Determine whether the function f : D ⊆ R2 → R of two variables x and y defined for
all (x, y) ̸= (0, 0) given as
x y2
f (x, y) =
x2 + y4
has a limit as (x, y) → (0, 0).
Solution The vertical path x = 0 gives f (0, y) = 0 = L even before we take the limit as y → 0. On the
other hand, the parabolic path x = y 2 gives
y4 1
f (y 2 , y) = 4
= L = ̸= 0.
2y 2
Therefore, the two-path test tells us that f (x, y) cannot have a limit at (0, 0) as (x, y) → (0, 0).
viii
Brief Discussion of Limits LIMITS AND CONTINUITY
Suppose that g(x, y), f (x, y) and h(x, y) are functions of two variables all defined for all (x, y) ̸= (x0 , y0 )
in some open disk D centered on (x0 , y0 ). If g(x, y) ≤ f (x, y) ≤ h(x, y) for all (x, y) ̸= (x0 , y0 ) and that
L = lim(x,y)→(x0 ,y0 ) g(x, y) = lim(x,y)→(x0 ,y0 ) h(x, y), then
lim f (x, y) = L.
(x,y)→(x0 ,y0 )
Corollary
Suppose that | f (x, y) − L | ≤ g(x, y) for all (x, y) in the interior of some disk centered at (x0 , y0 ), exept
possibly at (x0 , y0 ). If lim(x,y)→(x0 ,y0 ) g(x, y) = 0, then lim(x,y)→(x0 ,y0 ) f (x, y) = L.
A third path through (1, 0) is the line y = x − 1 (note that in this case, we must have y → 0 as x → 1).
We have
(x − 1)2 ln(x) (x − 1)2 ln(x) ln(x)
lim 2 2
= lim = lim = 0.
(x,x − 1)→(1,0) (x − 1) + (x − 1) x→1 2(x − 1)2 x→1 2
It seems like 0 could be the limit, but we are not sure about it, or we could try to find a path through (1, 0)
where the limit does not exists or the limit exists and is different from 0. To show this, we consider
$ $
$ (x − 1)2 ln(x) $
| f (x, y) − L | = $$ $.
(x − 1)2 + y 2 $
Notice that if the y 2 term were not resent in the denominator, then we could cancel the (x − 1)2 terms. We
have $ $ $ $
$ (X − 1)2 ln(x) $ $ (x − 1)2 ln(x) $
| f (x, y) − L | = $$ $ ≤ $$ $ = | ln(x) |.
(x − 1)2 + y 2 $ (x − 1)2 $
Since lim(x,y)→(0,0) | ln(x) | = 0, it follows by the squeeze theorem that
(x − 1)2 ln(x)
lim = 0.
(x,y)→(1,0) (x − 1)2 + y 2
ix
Brief Discussion of Limits LIMITS AND CONTINUITY
lim f (x, y)
(x,y)→(0,0)
in rectangular coordinates, you could try changing domain of f to polar coordinates instead. Substitute
x = r cos θ, y = r sin θ and investigate the limit of the resulting expression as r → 0. In other words, try
to decide whether there exists a number L satisfying the following criterion:
Given any positive real number ε whatsoever, we can find a corresponding positive real number δ (usually
depending on ε) such that for all r and θ, F (r, θ) = f (r cos θ, r sin θ) satisfies
| F (r, θ) − L | < ε
Solution After evaluating the limit to be 0 on several paths through the origin (0, 0), we believe that the
limit might be 0 (but we can never be sure! It requires verification).
r 3 cos3 θ
Let F (r, θ) = f (r cos θ, r sin θ) = r2 = r cos3 θ.
x3 r3 cos3 θ
lim = lim = lim r cos3 θ = 0.
(x,y)→(0,0) x2 + y 2 r→0 r2 r→0
Suppose that ε > 0 is given arbitrarily. Choose δ = ε so that for all r and θ, F (r, θ) = r cos3 θ satisfies
x
Brief Discussion of Limits LIMITS AND CONTINUITY
Continuity
Stated informally, a function of a single variable is continuous if its graph is an unbroken curve without
jumps or holes. To extend this idea to functions of two variables, imagine that the graph of z = f (x, y) is
molded from a thin sheet of clay that has been hollowed or pinched into peaks and valleys. We will regard
f as being cntinuous if the clay surface has no tears or holes.
The precise definition of continuity at a point for functions of two variables is similar to that for functions
of one variable—we require the limit of thefunction an the value of the function to be the same at the point.
Let f : D ⊆ R2 → R be defined for all (x, y) in some open region D ⊆ R2 which contains a fixed ordered
pair (x0 , y0 ).
We will say that the function f (x, y) is continuous at the point (x0 , y0 ) if and only if given any real number
ε > 0, there is a real number δ > 0 (usually depends on ε) such that
#
| f (x, y) − f (x0 , y0 ) | < ε whenever (x, y) ∈ D and (x − x0 )2 + (y − y0 )2 < δ.
to express the fact that f (x0 , y0 ) is the limit of f (x, y) as (x, y) approaches (x0 , y0 ) and the f (x, y) is
continuous at (x0 , y0 ). In addition, if a function is continuous at each point in its domain D, then we say
that the function is continuous on D, and if f is continuous at every point in the xy-plane, then we say that
f is continuous everywhere.
xi
Brief Discussion of Limits LIMITS AND CONTINUITY
Let f : D ⊆ Rn → R be defined for all x = (x1 , x2 , . . . , xn ) in some open region D ⊆ Rn which contains a
fixed ordered pair x0 = (x10 , x20 , . . . , xn0 ).
We will say that the function f (x) is continuous at the point x0 if and only if given any real number ε > 0,
there is a real number δ > 0 (usually depends on ε) such that
to express the fact that f (x0 ) is the limit of f (x) as x approaches x0 and the f (x) is continuous at the point
x0 . In addition, if a function f (x) is continuous at each point x0 in its domain D, then we say that the
function is continuous or is continuous on D.
xii
Brief Discussion of Limits LIMITS AND CONTINUITY
Example -1.7 In the previous example, you showed that the function
4 x2 y
f (x, y) =
x2 + y2
has limit 0 at the origin (0, 0). You also noticed that f (0, 0) is undefined (that is, (0, 0) is not in the domain
of the function). We now ask this question: Is f (x, y) continuous at (0, 0)? If not, how can we make it into
a continuous function at (0, 0)?
Solution: The definition of continuity says that the limit 0 of f (x, y) as (x, y) approaches the origin (0, 0)
and the value of the function, f (0, 0), at (0, 0) must be the same. Since f (0, 0) is undefined the function
cannot be continuous at (0, 0). However, the function as limit at the origin given by lim(x,y)→(0,0) f (x, y) = 0
and so we can define f (x, y) to be continuous at (0, 0) as:
⎧ 2
⎨ x42 x+ yy2 if (x, y) ̸= (0, 0)
f (x, y) =
⎩
0 if (x, y) = (0, 0).
The following theorem, which we state without proof, illustrates some of the ways in which continuous
functions can be combined to produce new continuous functions.
Theorem
(a) If g(x) is continuous at x0 and h(y) is continuous at y0 , then f (x, y) = g(x)h(y) is continuous at
(x0 , y0 ).
(b) If h(x, y) is continuous at (x0 , y0 ) and g(u) is continuous at u = h(x0 , y0 ), then the composition
f (x, y) = g(h(x, y)) is continuous at (x0 , y0 ).
(c) If f (x, y) is continuous at (x0 , y0 ), and if x(t) and y(t) are continuous at t0 with x(t0 ) = x0 and
y(t0 ) = y0 , then the composition f (x(t), y(t)) is continuous at t0 .
xiii
Problem #1
Find the limit of f as (x, y) → (0, 0) or show that the limit does not exist.
x3 − x y 2
(a) f (x, y) =
x2 + y 2
! "
x3 − y 3
(b) f (x, y) = cos
x2 + y 2
! "
|x| + |y|
(c) f (x, y) = tan−1
x2 + y 2
You may use any of the methods discussed above to verify our answer.
xiv
Section 1
Problem #2
2 x y2
(b) f (x, y) =
x2 + y 2
x2 − y 2
(c) f (x, y) = x y
x2 + y 2
1
Section 2
Problem #3