01 / 20

Limits & Continuity
Multivariable

Explore how limits work in two or more dimensions, why the path of approach matters, and what it means for a multivariable function to be continuous.

AP Calculus BC

What Is a Multivariable Limit?

In single-variable calculus, \(\displaystyle\lim_{x \to a} f(x) = L\) means that as \(x\) approaches \(a\) from the left or right, \(f(x)\) approaches \(L\). In multivariable calculus, we write:

The key difference: in \(\mathbb{R}^1\), there are only two directions. In \(\mathbb{R}^2\), there are infinitely many paths to a point.

Infinitely Many Paths to a Point

\(x\)
\(y\)
\((a, b)\)
along \(y = b\)
along \(x = a\)
\(y = x\)
\(y = x^2\)
spiral

Why Paths Matter

Consider \(\displaystyle f(x,y)=\frac{xy}{x^2+y^2}\) as \((x,y)\to(0,0)\).

Path \(y=0\)
\(\frac{x \cdot 0}{x^2+0^2}=0\)
Limit along path = 0
Path \(y=x\)
\(\frac{x \cdot x}{x^2+x^2}=\frac{x^2}{2x^2}=\frac{1}{2}\)
Limit along path = \(\frac{1}{2}\)
Path \(y=-x\)
\(\frac{x(-x)}{x^2+(-x)^2}=\frac{-x^2}{2x^2}=-\frac{1}{2}\)
Limit along path = \(-\frac{1}{2}\)

The \(\varepsilon\)-\(\delta\) Definition

\(\delta\)-disk
\(|f - L| < \varepsilon\)
\((a, b)\)
\(\delta\)
\((x, y)\)

The distance in \(\mathbb{R}^2\) uses the Euclidean norm: \(\sqrt{(x-a)^2+(y-b)^2}\). Every point inside the \(\delta\)-disk (except the center) must map to within \(\varepsilon\) of \(L\).

Continuity in Several Variables

A function \(f(x,y)\) is continuous at \((a,b)\) if three conditions hold:

1
\(f(a,b)\) is defined: the function has a value at that point.
2
\(\displaystyle\lim_{(x,y)\to(a,b)}f(x,y)\) exists: the limit is a single real number.
3
\(\displaystyle\lim_{(x,y)\to(a,b)}f(x,y)=f(a,b)\): the limit equals the function value.

Single-Variable vs. Multivariable

\(\displaystyle\lim_{x \to a} f(x)\) \(\displaystyle\lim_{(x,y)\to(a,b)} f(x,y)\)
Directions 2 (left, right) Infinitely many
To disprove Show left ≠ right Show two paths differ
To prove Direct evaluation or \(\varepsilon\)-\(\delta\) \(\varepsilon\)-\(\delta\), squeeze, or polar
Distance metric \(|x - a|\) \(\sqrt{(x-a)^2+(y-b)^2}\)
L'Hopital's Rule Applicable Not directly applicable

How to Evaluate a Multivariable Limit

1
Try direct substitution. If \(f\) is built from polynomials, exponentials, trig functions and is defined at \((a,b)\), just plug in.
2
Test two or more paths. Substitute \(y=mx\), \(y=x^2\), or \(x=0\). If any two paths give different values, the limit does not exist (DNE).
3
Try polar coordinates. Set \(x=r\cos\theta,\; y=r\sin\theta\). If the result depends only on \(r\) (not \(\theta\)) as \(r\to 0\), the limit exists.
4
Use the Squeeze Theorem. Bound \(|f(x,y)-L|\) by a function of \(r\) that goes to 0.

Example 1: Limit Exists

Find \(\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2 y}{x^2+y^2}\).

1
Convert to polar: \(x=r\cos\theta,\; y=r\sin\theta\). Then \(x^2+y^2=r^2\).
2
Substitute: \(\displaystyle\frac{r^2\cos^2\theta \cdot r\sin\theta}{r^2}=r\cos^2\theta\sin\theta\).
3
Bound: \(|r\cos^2\theta\sin\theta|\leq r\cdot 1\cdot 1=r\to 0\) as \(r\to 0\).

Example 2: Limit Does Not Exist

Show that \(\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2 - y^2}{x^2+y^2}\) does not exist.

Path \(y=0\)
\(\frac{x^2}{x^2}=1\)
Limit = 1
Path \(x=0\)
\(\frac{-y^2}{y^2}=-1\)
Limit = \(-1\)

In polar: \(\frac{r^2\cos^2\theta - r^2\sin^2\theta}{r^2}=\cos 2\theta\), which depends on \(\theta\): another way to see DNE.

Example 3: A Trickier Case

Find \(\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2 y}{x^4+y^2}\).

1
Path \(y=0\): \(\frac{0}{x^4}=0\). Limit = 0.
2
Path \(y=mx\): \(\frac{mx^3}{x^4+m^2x^2}=\frac{mx}{x^2+m^2}\to 0\). Limit = 0.
3
Path \(y=x^2\): \(\frac{x^2\cdot x^2}{x^4+x^4}=\frac{x^4}{2x^4}=\frac{1}{2}\). Limit = \(\frac{1}{2}\)!

The Polar Coordinates Technique

\(x\)
\(y\)
\(O\)
\(r\)
\((x, y)\)
\(\theta\)
\(x = r \cos \theta\)
\(y = r \sin \theta\)
\(x^2 + y^2 = r^2\)

The Squeeze Theorem in 2D

Common bounds used:

\(|\cos\theta|\leq 1\)
Bound trig terms by 1 to remove \(\theta\)
\(|xy|\leq \frac{x^2+y^2}{2}\)
AM-GM inequality bounds products
\(x^2\leq x^2+y^2\)
Any single squared term is at most \(r^2\)

The strategy: replace all \(\theta\) terms with their maximum, leaving only powers of \(r\). If the power is positive, the limit is 0.

Continuity of Composed Functions

Many multivariable functions are built from compositions. The following composition rule saves time:

Polynomials
Continuous everywhere in \(\mathbb{R}^2\)
Rational functions
Continuous on their domain (denominator \(\neq 0\))
Compositions (\(e^u, \sin u\), etc.)
If \(u=g(x,y)\) is continuous, so is the composition.

So \(\sin(x^2+y^2)\), \(e^{xy}\), and \(\ln(1+x^2+y^2)\) are all continuous everywhere they are defined: just plug in to evaluate the limit.

Common Mistakes

✕ Testing Only Linear Paths
Two linear paths agreeing does not prove the limit exists. A parabolic path \(y=x^2\) might give a different value.
✕ Using L'Hopital's Rule
L'Hopital's applies to single-variable limits only. You cannot differentiate \(\frac{0}{0}\) in two variables this way.
✕ Ignoring the Domain
The limit requires \((x,y)\) to approach from within the domain of \(f\). Points where \(f\) is undefined are not considered.

Summary of Techniques

Technique Purpose Result
Direct Substitution Continuous functions Exact limit value
Two-Path Test Show limit DNE DNE if paths disagree
Polar Coordinates Limits at origin Exists if no \(\theta\) remains
Squeeze Theorem Prove limit exists Bound by \(r^n \to 0\)
Composition Rules Composed expressions Continuity preserved

Question 1 of 5

What is \(\displaystyle\lim_{(x,y)\to(1,2)} (x^2 + 3y)\)?

Question 2 of 5

Does \(\displaystyle\lim_{(x,y)\to(0,0)}\frac{xy}{x^2+y^2}\) exist?

Question 3 of 5

After converting \(\displaystyle\frac{x^3}{x^2+y^2}\) to polar coordinates, what do you get?

Question 4 of 5

Which of the following is not a valid technique for proving a multivariable limit exists?

Question 5 of 5

For \(\displaystyle f(x,y)=\begin{cases}\frac{\sin(x^2+y^2)}{x^2+y^2} & (x,y)\neq(0,0)\\1 & (x,y)=(0,0)\end{cases}\), is \(f\) continuous at the origin?