Limits

What does limxx0f(x)=L mean? It means f(x) can be made arbitrarily close to L, if x is sufficiently close to (but different from) x0. In other words, limxx0f(x)=L means if you give me any positive number ϵ>0, no matter how small, I can choose a number δ>0 such that if the distance between x (x0) and x0 is less than δ, then the distance between f(x) and L will be less than ϵ.

Similarly, the notation lim(x,y)(x0,y0)f(x,y)=L means we can get f(x,y) as close to L as we want, if we choose (x,y) sufficiently close, but not equal to, (x0,y0). Recall that in 1-space, the distance between x and x0 is given by |xx0|; in 2-space, the distance between two points (x,y) and (x0,y0) is given by |(x,y)(x0,y0)|=(xx0)2+(yy0)2. We express the informal idea for the limit of functions of two variables more precisely as follows.

Definition: Let f:UR, where UR2. We say f(x,y) approaches L as (x,y) approaches (x0,y0) and write
lim(x,y)(x0,y0)f(x,y)=L(or f(x,y)L,as (x,y)(x0,y0))
if

  1. every neighborhood of (x0,y0) contains at least one member of U other than (x0,y0),*
  2. given any number ϵ>0, there exists a number δ>0 such that |f(x,y)L|<ϵ holds for any (x,y) in U which satisfies 0<(xx0)2+(yy0)2<δ.

* Equivalently, we can say every neighborhood of (x0,y0) contains an infinite number of members of U.

In the above definition:

  • Condition (a) guarantees that (x0,y0) is not an isolated point. An isolated point is a point with a neighborhood that contains no other member of the domain.
  • Condition (a) lets us define the limit of the function at a boundary point of U.
  • (x0,y0) may or may not be in U.
  • Another notation for the limit defined above is:
    limxx0yy0f(x,y)=L
Example 1
Using Definition 1 (ϵδ definition), show
lim(x,y)(x0,y0)x=x0.
Solution
Assume ϵ>0 is given. We want to determine δ>0 such that if
0<(xx0)2+(yy0)2<δ,then|x0x|<ϵ. We note that
|xx0|=(xx0)2(xx0)2+(yy0)2<δ.
So if we choose δϵ, automatically we will have |xx0|<ϵ. Therefore, lim(x,y)(x0,y0)x=x0.
Example 2
Using the definition of a limit (ϵδ definition) to show
lim(x,y)(0,0)x2y2x2+y2=0.

Solution

Let (x,y) satisfy 0<(x0)2+(y0)2<δ. Because (x,y)(0,0), we can simplify |f(x,y)0 as 

|x2y2x2+y20|=|x2||y2x2+y2||x2||x2+y2|<δ2
Therefore, if we choose δ<ϵ, then
0<(x0)2+(y0)2<δ|f(x,y)0|=|x2y2x2+y2|<ϵ

Note that the function is not defined at (0,0).

Graph of f is shown below

Figure 1: Graph of z=x2y2x2+y2
Example 3
Given the function
f(x,y)=sin(x2+y2)x2+y2
find lim(x,y)(0,0)f(x,y) if it exists.

Solution
Let's use the polar coordinates:
x=rcosθ,y=rsinθ. Then x2+y2=r2 and
f(x,y)=f(r,θ)=sinr2r2 For simplicity we call r2=u and write f as sinu/u. In the calculus of a single variable, we learned that limu0sinuu=1. So we conclude lim(x,y)(0,0)f(x,y)=1.

Again note that the function is not defined at (0,0).

Graph of f is shown below. 

Figure 2: Graph of z=sin(x2y2)x2+y2

 

As the definitions of limits in the one-dimensional case and scalar fields are analogous, many familiar properties of limits can be extended to functions of several variables.

 

Theorem: If lim(x,y)(x0,y0)f(x,y)=L, lim(x,y)(x0,y0)g(x,y)=M, and c is a real number then

  1. lim(x,y)(x0,y0)(f(x,y)±g(x,y))=L±M

  2. lim(x,y)(x0,y0)(cf(x,y))=cL

  3. lim(x,y)(x0,y0)(f(x,y)g(x,y))=LM

  4. lim(x,y)(x0,y0)f(x,y)g(x,y)=LMprovided M0.

  5. If h(x) is a continuous function at x=L, then lim(x,y)(x0,y0)h(f(x,y))=h(L).

  6. lim(x,y)(x0,y0)|f(x,y)|=|L|.
  • If the limit of a function exists, then it is unique.

    In fact, this property is obvious, because lim(x,y)(x0,y0)f(x,y)=L means that for all points (x,y) near (but not equal to) (x0,y0), the value of f(x,y) is very close to L. So it is impossible for the value of f(x,y) to be very close to two different numbers L and L when (x,y) is sufficiently close to (x0,y0).

  • Remember that when the limit of a function of a single variable at x0 exists, the function should approach the same value as x approaches x0 from either left or right.
    limxx0f(x)=Llimxx0+f(x)=limxx0f(x)=L
    For functions of several variables, if lim(x,y)(x0,y0)f(x,y)=L, then f(x,y) should approach the same value no matter how (x,y) approaches (x0,y0) in the domain of f. Therefore:

If f(x,y) approaches L1 as (x,y) approaches (x0,y0) along a path, and if f(x,y) approaches L2 as (x,y) approaches (x0,y0) along a different path, and L1L2, then lim(x,y)(x0,y0)f(x,y) does not exist.

A special case of two different paths is when (x,y) approaches (x0,y0) along the the vertical line x=x0 or the horizontal line y=y0. In this case, we have two single variable limits:
limyy0f(x0,y),
and
limxx0f(x,y0).

Example 4

Does the following limit exist?
lim(x,y)(0,0)x+yxy

Solution
Because
limx0f(x,0)=limx0(xx)=1
limy0f(0,y)=limy0(yy)=1
are not equal, the limit does not exist. Graph of this function is shown in the following figure.

Figure 3: Graph of z=x+yxy

Example 5
Investigate
lim(x,y)(0,0)xyx2+y2.

Solution
At first, because
limx0f(x,0)=limx00=0
limy0f(0,y)=limy00=0
we might think that the limit exists and is equal to zero. But if we let (x,y) approach (0,0) along y=mx, we will realize
limx0x(mx)x2+m2x2=limx0mx2(1+m2)x2=m1+m2
depends on m. Therefore lim(x,y)(0,0)xyx2+y2 does not exist. The graph of this function is shown in the following figure.

Figure 4: Graph of z=xyx2+y2

Example 6
Investigate  lim(x,y)(0,0)xy2x2+y4.

Solution
If (x,y) approaches (0,0) along the lines y=mx, we will obtain
limx0mx3(1+m2)x4=0. Can we conclude the limit exists and is equal to zero? Let's take another path to the origin: y=x2. Along this path to the origin, we have
limx0x4x4=1.
Because xy2x2+y4 approaches two different values 0 and 1 along two different paths to the origin, the limit does not exist.

Figure 5: Graph of z=xy2x2+y4

 

Similar to the limit of functions of a single variable, we can use the sandwich theorem. According to this theorem (also called the squeeze theorem), if a function f is sandwiched between two functions g and h and functions g and h approach to the same limit L as (x,y)(x0,y0), then f also approaches to L as (x,y)(x0,y0). More precisely:

Theorem2  (Sandwich Theorem): If g(x,y)f(x,y)h(x,y) for all points (x,y) close to (x0,y0) and
lim(x,y)(x0,y0)g(x,y)=lim(x,y)(x0,y0)h(x,y)=L
then
lim(x,y)(x0,y0)f(x,y)=L

This theorem is graphically shown in Figure 6.

 

Figure 6: Sandwich theorem

 

Example 7

Consider the function
f(x,y)=x5x4+y4.
Find lim(x,y)(0,0)f(x,y) if it exists.

Solution
We note that
|x5x4+y4|=|x||x4x4+y4||x|.
Because lim(x,y)(0,0)x=lim(x,y)(0,0)(x)=0, we conclude that
lim(x,y)(0,0)f(x,y)=0.

The graph of f is shown in the following figure.

Figure 7: Graph of z=x5x4+y4, z=x, and z=x

 

Example 8
Consider the function
g(x,y)=xsin(1x2+y).
Find lim(x,y)(0,0)g(x,y) if it exists.

Solution
Again because:
|xsin(1x2+y)||x|
we conclude lim(x,y)(0,0)g(x,y)=0.

 

Continuity

 

Remember that a function g:URR is continuous at x=a if limxag(x)=g(a). Similarly, we define the continuity of multivariable functions.

Definition 2: A function f is said to be  continuous at (x0,y0) if

  1. f is defined at (x0,y0).*
  2. lim(x,y)(x0,y0)f(x,y)=f(x0,y0)

We say f is continuous on a set U if it is continuous at all points of U.

* In other words, (x0,y0) is in the domain of f.

In Example 2, we saw that f(x,y)=x2y2x2+y2 is not defined at (0,0). Therefore f is discontinuous at (0,0). However, we can remove this discontinuity if we define f(0,0) equal to its limit there, i.e.:
f(x,y)={x2y2x2+y2if x00if x=0
Similarly, we can remove the discontinuity of the function given in Example 3.

In general, if f is not defined at (x0,y0), but lim(x,y)(x0,y0)f(x,y) exists, we can remove the discontinuity by defining f at this point as being equal to lim(x,y)(x0,y0)f(x,y). In this case, we say f has a removable discontinuity at (x0,y0).

Theorem 3: If f(x,y) and g(x,y) are two continuous functions at (x0,y0) and c is a scalar, then the following functions are continuous:

  1.  f(x,y)±g(x,y)
  2. cf(x,y)
  3. f(x,y)g(x,y)
  4. f(x,y)/g(x,y)               provided g(x0,y0)0

If h(x) is continuous at f(x0,y0), then hf(x,y)=h(f(x,y)) is continuous at (x0,y0); that is,
lim(x,y)(x0,y0)h(f(x,y))=h(f(x0,y0)).

 

Limits and Continuity in n-space

To gain a better intuition, we focused on the concept of a limit on functions of two variables. However, what we studied in this section can be extended to functions of three or more variables if we consider the meaning of distance in Rn (for n=1,2,3,). If a=(a1,,an) and b=(b1,,bn) are two points in Rn, the distance between them is given by:
|ab|=(a1b1)2+(a2b2)2++(anbn)2.
Therefore, for f:UR3R, the notation lim(x,y,z)(x0,y0,z0)f(x,y,z)=L means (a) every neighborhood of (x0,y0,z0) has points in the domain of f other than (x0,y0,z0), and (b) for every ϵ>0, there exists δ>0 such that
(x,y,z)Uand0<|(x,y,z)(x0,y0,z0)|=(xx0)2+(yy0)2+(zz0)2<δ
|f(x,y,z)L|<ϵ.
Also, we say f is continuous at (x0,y0,z0) if lim(x,y,z)(x0,y0,z0)f(x,y,z)=f(x0,y0,z0).

Definition 3: Let f:UR, where URn. We say f(x) approaches L as x=(x1,,xn) approaches x0=(a1,,an) and write
limxx0f(x)=L(or f(x)L,as xx0)
if

  1. every neighborhood of x0 contains at least one member of U other than x0,
  2. given any number ϵ>0, there exists a number δ=δ(ϵ)>0 such that |f(x)L|<ϵ holds for any x in U which satisfies 0<|xx0|<ϵ.

f is called continuous at x0 if 

limxx0f(x)=f(x0).

Again, the limit of a function at a point is unique; if along two paths to x0 the function approaches two different values, then its limit at x0 does not exist. The previous theorems in this section hold true when we switch from functions of two variables to functions of multiple variables. To determine the limit of functions of multiple variables, techniques similar to those for functions of two variables may be helpful. For example:

 
Example 9
Consider the function
f(x,y,z)=xyzx2+y2+z2
Find lim(x,y,z)(0,0,0)f(x,y,z) if it exists.
Solution
Let’s use spherical coordinates (see Figure 8). Remember that in spherical coordinates:
x=ρcosθsinϕ,y=ρsinθsinϕ,z=ρcosϕ

Figure 8: Spherical coordinates.

So we can rewrite f(x,y,z) in spherical coordinates as
f(x,y,z)=xyzx2+y2+z2=ρ3sin2ϕcosϕcosθsinθρ2=ρ(sin2ϕcosϕcosθsinθ)
Because the sine and cosine function always vary between 1 and 1, we have
ρρ(sin2ϕcosϕcosθsinθ)ρ
and because lim(x,y,z)(0,0,0)ρ=limρ0ρ=0, it follows from the squeeze theorem that lim(x,y,z)(0,0,0)f(x,y,z)=0