Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 39 · Getting Started

Limits and Continuity in Several Variables

Understand limits in the plane, why approaching along different paths matters, the two-path test and continuity, with worked examples and Python experiments.

In one variable, x can approach a only from the left or the right. In the plane, (x, y) can approach (a, b) along infinitely many paths: straight lines, parabolas, spirals. For a limit to exist, every path must lead to the same value. This makes limits in several variables more delicate, and it is the main reason continuity needs care.

The definition, in words

We write lim (x,y)→(a,b) f(x, y) = L when f(x, y) can be made as close as we like to L by taking (x, y) close enough to (a, b), but not equal to it. Formally: for every ε > 0 there is a δ > 0 such that 0 < √((x-a)² + (y-b)²) < δ implies |f(x, y) - L| < ε.

The distance √((x-a)² + (y-b)²) replaces |x - a|. The disk of radius δ replaces the interval.

Easy limits: substitute

If f is built from polynomials, rational functions (with nonzero denominator), exponentials, logarithms, sines and cosines, the limit is found by substitution. For example:

Text
lim (x,y)→(1,2) (x² y + 3y) / (x + y) = (1·2 + 6) / 3 = 8/3

Showing that a limit does not exist

If two different paths to (a, b) give different limits, the limit does not exist. This is the two-path test.

Worked example 1: f(x, y) = (x² - y²)/(x² + y²) at (0, 0). Along the x axis (y = 0) we get x²/x² = 1. Along the y axis (x = 0) we get -1. The values differ, so the limit does not exist.

Worked example 2: f(x, y) = xy/(x² + y²). Along y = mx: f = m x² / (x² + m² x²) = m / (1 + m²), which depends on m. Different lines give different limits, so no limit.

Worked example 3 (a trap): f(x, y) = x² y/(x⁴ + y²). Along every line y = mx the limit is 0 (since f = m x³ / (x⁴ + m² x²) = m x / (x² + m²) → 0). But along the parabola y = x² we get x⁴ / (2x⁴) = 1/2. Checking only straight lines would have misled you.

Python Approach the origin along different paths

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The values along y = x² stay at 0.5 while the line paths shrink, which proves the limit does not exist.

Proving a limit exists: the squeeze

When the limit does exist, we often prove it by bounding |f - L| by something that tends to 0.

Worked example: f(x, y) = x² y/(x² + y²) at (0, 0). Since x² ≤ x² + y², we have x²/(x² + y²) ≤ 1, so |f| ≤ |y|. As (x, y) → (0, 0), |y| → 0, so f → 0 by the squeeze theorem.

Polar coordinates also help: with x = r cos θ, y = r sin θ, we have (x, y) → (0, 0) exactly when r → 0. Here f = r cos²θ sin θ, and |f| ≤ r → 0. If the limit depends on θ, it does not exist.

Python Polar test: does the value depend on the angle?

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The value stays the same as r shrinks but changes with the angle (it equals cos θ sin θ), so this limit does not exist.

Numerical experiments can suggest that a limit does not exist, but they never prove that it exists. To prove existence, use the definition, the squeeze theorem or polar coordinates.

Continuity

A function f(x, y) is continuous at (a, b) if f(a, b) is defined, the limit exists, and the limit equals f(a, b). Polynomials, exponentials and sums, products, quotients (denominator not zero) and compositions of continuous functions are continuous. For example f(x, y) = (x² - y²)/(x² + y²) is continuous everywhere except at the origin, where it is not even defined.

Sometimes we can repair a function. The function

Text
g(x, y) = x² y/(x² + y²) for (x, y) ≠ (0, 0),   g(0, 0) = 0

is continuous at the origin because we showed the limit is 0. Defining g(0, 0) = 5 instead would make it discontinuous there.

Python Look at a discontinuous function with a plot

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Every ray from the origin has its own constant color, which is the picture of a limit that depends on direction.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. To show that a limit at (0, 0) does not exist, it is enough to

    A limit must be the same along every path. Two paths with different values prove it fails.
  2. 2. What is lim (x,y)→(0,0) of (x² - y²)/(x² + y²) along the x axis?

    On y = 0 the function is x²/x² = 1.
  3. 3. For f(x, y) = x² y/(x⁴ + y²), the limit along every line y = mx is 0, but along y = x² it is

    On y = x², f = x⁴/(x⁴ + x⁴) = 1/2, so the overall limit does not exist.
  4. 4. A function f is continuous at (a, b) when

    All three conditions are needed: defined, limit exists, limit equals the value.

Summary

  • A limit in the plane requires the same value along every path to the point.
  • Two paths with different limits prove that a limit does not exist.
  • To prove a limit exists, use substitution, the squeeze theorem or polar coordinates.
  • Continuity means the limit exists and equals the function value; most formulas you meet are continuous where they are defined.

Next: Vectors in Space and the Dot Product