Unit 3, lesson 14

Multivariable Limits and Continuity

What it means for a function of several variables to have a limit, why two disagreeing paths disprove a limit while agreeing paths prove nothing, and how bounds by distance settle it.

  • Theory part 27
  • Practice part 28
  • Functions, Limits, and Partial Derivatives

On a line you can approach a point from only two sides. In the plane you can come in along any line, along a parabola, or spiraling inward, and a function may behave differently on each route. A limit in several variables has to account for all of them at once. The way to do that is to stop thinking about routes and measure only distance.

Key terms

The epsilon-delta definition using distance

Definition Let ff be a function with domain D⊆R2D \subseteq \mathbb{R}^2, and let (a,b)(a, b) be a point such that every open disk about (a,b)(a, b) contains points of DD other than (a,b)(a, b) itself. Such a point is called a limit point of DD, and it need not belong to DD. We write

lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x, y) \to (a, b)} f(x, y) = L

if for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that ∣f(x,y)−L∣<ε\lvert f(x, y) - L \rvert < \varepsilon for every (x,y)(x, y) in DD with

0<(x−a)2+(y−b)2<δ.0 < \sqrt{(x - a)^2 + (y - b)^2} < \delta.

For three variables replace the distance by (x−a)2+(y−b)2+(z−c)2\sqrt{(x - a)^2 + (y - b)^2 + (z - c)^2}. When the limit exists it is unique.

In plain words However thin an output band around LL you choose, there is a small disk around the input point such that every allowed input inside it, other than the center, lands in that band.

Example To prove that x+y→3x + y \to 3 as (x,y)→(1,2)(x, y) \to (1, 2), write dd for the distance from (x,y)(x, y) to (1,2)(1, 2). Each of ∣x−1∣\lvert x - 1 \rvert and ∣y−2∣\lvert y - 2 \rvert is at most dd, so

∣x+y−3∣≤∣x−1∣+∣y−2∣≤2d.\begin{aligned} \lvert x + y - 3 \rvert &\le \lvert x - 1 \rvert + \lvert y - 2 \rvert \\[0.4em] &\le 2d. \end{aligned}

Given ε>0\varepsilon > 0, choose δ=ε/2\delta = \varepsilon / 2. Then d<δd < \delta gives ∣x+y−3∣<2δ=ε\lvert x + y - 3 \rvert < 2\delta = \varepsilon.

All approaches

Definition The definition controls every point of DD within distance δ\delta, regardless of how it was reached. Consequently, if the limit of ff at (a,b)(a, b) is LL and CC is any subset of DD that has (a,b)(a, b) as a limit point, the limit of ff restricted to CC is also LL. In particular, if r(t)\mathbf{r}(t) is a curve with r(t)∈D\mathbf{r}(t) \in D and r(t)≠(a,b)\mathbf{r}(t) \ne (a, b) for tt near t0t_0, t≠t0t \ne t_0, and r(t)→(a,b)\mathbf{r}(t) \to (a, b) as t→t0t \to t_0, then

lim⁡t→t0f(r(t))=L.\lim_{t \to t_0} f(\mathbf{r}(t)) = L.

In plain words A true limit is the same along every road into the point, straight or curved, fast or slow.

Example The limit of f(x,y)=x2+y2f(x, y) = x^2 + y^2 at the origin is 00, since ff is the squared distance. Along the spiral r(t)=⟨tcos⁡(1/t),tsin⁡(1/t)⟩\mathbf{r}(t) = \langle t \cos(1/t), t \sin(1/t) \rangle with t→0+t \to 0^+, which circles the origin infinitely often, the values are f(r(t))=t2f(\mathbf{r}(t)) = t^2, and these tend to 00 as the definition promises.

Path tests can disprove a limit

Definition Suppose C1C_1 and C2C_2 are two paths in DD that approach (a,b)(a, b), each having (a,b)(a, b) as a limit point, for example curves in DD that tend to (a,b)(a, b) without passing through it. If f(x,y)→L1f(x, y) \to L_1 along C1C_1 and f(x,y)→L2f(x, y) \to L_2 along C2C_2 with L1≠L2L_1 \ne L_2, then the limit of ff at (a,b)(a, b) does not exist. The same conclusion holds if the limit along a single path fails to exist.

In plain words One road gives one answer and another road gives a different answer, so there is no single answer.

Example Let

f(x,y)=xyx2+y2,(x,y)≠(0,0).\begin{gathered} f(x, y) = \frac{xy}{x^2 + y^2}, \\[0.4em] (x, y) \ne (0, 0). \end{gathered}

Along the line y=mxy = mx with x≠0x \ne 0,

f(x,mx)=mx2x2+m2x2=m1+m2.f(x, mx) = \frac{m x^2}{x^2 + m^2 x^2} = \frac{m}{1 + m^2}.

Along the xx-axis (m=0m = 0) the values are 00, and along y=xy = x (m=1m = 1) they are 12\frac{1}{2}. So the limit at the origin does not exist.

Agreeing paths do not prove a limit

Definition Finding the same limit LL along some paths, even along every line through (a,b)(a, b), does not show that the limit is LL. A path test can only disprove. To prove a limit you need an argument that covers every point of DD near (a,b)(a, b) at once, such as the definition, a squeeze estimate or continuity.

In plain words Checking a thousand roads still leaves infinitely many unchecked, and the bad one might be curved.

Example Consider

f(x,y)=x2yx4+y2,(x,y)≠(0,0).\begin{gathered} f(x, y) = \frac{x^2 y}{x^4 + y^2}, \\[0.4em] (x, y) \ne (0, 0). \end{gathered}

Along the yy-axis f=0f = 0. Along a line y=mxy = mx, including the xx-axis m=0m = 0,

f(x,mx)=mx3x4+m2x2=mxx2+m2→0.\begin{aligned} f(x, mx) &= \frac{m x^3}{x^4 + m^2 x^2} \\[0.4em] &= \frac{m x}{x^2 + m^2} \to 0. \end{aligned}

So every line through the origin gives 00. But along the parabola y=x2y = x^2,

f(x,x2)=x42x4=12.f(x, x^2) = \frac{x^4}{2x^4} = \frac{1}{2}.

The limit at the origin does not exist.

Squeeze estimates

Definition Let (a,b)(a, b) be as in the definition of a limit. If there is a function gg with

∣f(x,y)−L∣≤g(x,y)\lvert f(x, y) - L \rvert \le g(x, y)

for all (x,y)(x, y) in DD in some punctured disk about (a,b)(a, b), and g(x,y)→0g(x, y) \to 0 as (x,y)→(a,b)(x, y) \to (a, b), then f(x,y)→Lf(x, y) \to L. The most useful bounds are functions of the distance r=(x−a)2+(y−b)2r = \sqrt{(x - a)^2 + (y - b)^2} alone, built from the inequalities ∣x−a∣≤r\lvert x - a \rvert \le r and ∣y−b∣≤r\lvert y - b \rvert \le r.

In plain words Trap the error between 00 and something you know shrinks to 00. A bound in terms of distance alone works for every approach at once.

Example Let

f(x,y)=x2yx2+y2,(x,y)≠(0,0).\begin{gathered} f(x, y) = \frac{x^2 y}{x^2 + y^2}, \\[0.4em] (x, y) \ne (0, 0). \end{gathered}

Since x2≤x2+y2x^2 \le x^2 + y^2, the fraction x2x2+y2\frac{x^2}{x^2 + y^2} is at most 11, so ∣f(x,y)∣≤∣y∣≤r\lvert f(x, y) \rvert \le \lvert y \rvert \le r. As r→0r \to 0 the bound goes to 00, so the limit is 00. In epsilon-delta form, δ=ε\delta = \varepsilon works.

Continuity relative to a domain

Definition Let ff have domain DD and let (a,b)(a, b) be a point of DD. The function ff is continuous at (a,b)(a, b) if for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that ∣f(x,y)−f(a,b)∣<ε\lvert f(x, y) - f(a, b) \rvert < \varepsilon for every (x,y)(x, y) in DD with (x−a)2+(y−b)2<δ\sqrt{(x - a)^2 + (y - b)^2} < \delta. Only points of DD are tested, so at a boundary point of DD that belongs to DD the inputs come from inside DD only. If (a,b)(a, b) is an isolated point of DD, meaning a point of DD that is not a limit point of DD, then a small enough disk contains no other point of DD and ff is automatically continuous there. When (a,b)(a, b) is a limit point of DD the definition says exactly that

lim⁡(x,y)→(a,b)f(x,y)=f(a,b).\lim_{(x, y) \to (a, b)} f(x, y) = f(a, b).

The function is continuous on DD if it is continuous at every point of DD. Sums, differences and products of continuous functions are continuous, quotients are continuous where the denominator is not zero, and if ff is continuous at (a,b)(a, b) and a function gg of one variable is continuous at f(a,b)f(a, b), then the composition g(f(x,y))g(f(x, y)) is continuous at (a,b)(a, b). So polynomials in xx and yy are continuous on R2\mathbb{R}^2, and rational functions are continuous on their domains.

In plain words A continuous function has no jumps or holes within its own domain, and its limit at each such point is simply its value there.

Example The function ln⁡(x+y)/(xy)\ln(x + y)/(xy) is built from continuous pieces and is continuous wherever x+y>0x + y > 0 and xy≠0xy \ne 0, which includes (1,2)(1, 2). So its limit there is found by substitution,

lim⁡(x,y)→(1,2)ln⁡(x+y)xy=ln⁡32.\lim_{(x, y) \to (1, 2)} \frac{\ln(x + y)}{xy} = \frac{\ln 3}{2}.

The function 1−x2−y2\sqrt{1 - x^2 - y^2} is continuous on its domain, the closed unit disk, including the boundary circle, where only inputs from the disk count. In contrast, setting f(0,0)=0f(0, 0) = 0 for f(x,y)=xy/(x2+y2)f(x, y) = xy/(x^2 + y^2) gives a function on all of R2\mathbb{R}^2 that is not continuous at the origin, because its limit there does not exist.

Check yourself

  1. Show that the limit of x2−y2x2+y2\dfrac{x^2 - y^2}{x^2 + y^2} as (x,y)→(0,0)(x, y) \to (0, 0) does not exist.
Show the answer

Along the xx-axis the function equals x2/x2=1x^2/x^2 = 1, and along the yy-axis it equals −y2/y2=−1-y^2/y^2 = -1. Two paths give different limits, so the limit does not exist.

  1. Find the limit of xyzx2+y2+z2\dfrac{xyz}{x^2 + y^2 + z^2} as (x,y,z)→(0,0,0)(x, y, z) \to (0, 0, 0).
Show the answer

Let r=x2+y2+z2r = \sqrt{x^2 + y^2 + z^2}. Each of ∣x∣\lvert x \rvert, ∣y∣\lvert y \rvert, ∣z∣\lvert z \rvert is at most rr, so ∣xyz∣≤r3\lvert xyz \rvert \le r^3 and

∣xyzx2+y2+z2∣≤r3r2=r.\left\lvert \frac{xyz}{x^2 + y^2 + z^2} \right\rvert \le \frac{r^3}{r^2} = r.

The bound tends to 00, so the limit is 00 by the squeeze estimate.

  1. Let f(x,y)=3x2yx2+y2f(x, y) = \dfrac{3x^2 y}{x^2 + y^2} for (x,y)≠(0,0)(x, y) \ne (0, 0). Which value of f(0,0)f(0, 0) makes ff continuous on R2\mathbb{R}^2?
Show the answer

Away from the origin ff is a rational function with nonzero denominator, so it is continuous there. At the origin, ∣f(x,y)∣≤3∣y∣≤3r\lvert f(x, y) \rvert \le 3 \lvert y \rvert \le 3r, so the limit is 00. Setting f(0,0)=0f(0, 0) = 0 makes ff continuous everywhere.

How this lesson connects

It also uses Functions of several variables, Euclidean distance and Single-variable limits.