Multivariable Calculus · Undergraduate

Limits and Continuity of Functions of Two Variables

Quick answer

In two variables, a point can approach (a, b) along infinitely many paths: lines, parabolas, spirals. The limit of f(x, y) exists only if every path gives the same value. So two paths with different limits prove the limit does not exist, as for xy/(x² + y²), which is 0 along the axes and 1/2 along y = x. Straight lines alone are never enough. To prove a limit exists, bound |f − L| by something that goes to 0, often using polar coordinates. Polynomials are continuous everywhere.

What you'll learn

  • Evaluate limits of continuous functions by substitution
  • Show a limit does not exist with two paths
  • Prove a limit exists with polar coordinates or a bound
  • Describe where a function of two variables is continuous

Approaching from every direction

In one variable, xx can approach aa from only two sides. In the plane, (x,y)(x, y) can approach (a,b)(a, b) along any path: a line, a parabola, a spiral. The limit

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

means ff gets close to LL however (x,y)(x, y) approaches. This gives two tools:

  • To show the limit does not exist: find two paths with different limits.
  • To show the limit is LL: bound ∣f(x,y)−L∣|f(x, y) - L| by a quantity that goes to 00, as in the ε-δ definition.

A function is continuous at (a,b)(a, b) when its limit there equals f(a,b)f(a, b). Polynomials are continuous everywhere, and quotients are continuous wherever the denominator is not 00, so most limits are found by substitution.

Why straight lines are not enough

For f(x,y)=x2yx4+y2f(x, y) = \tfrac{x^2y}{x^4 + y^2} near the origin, along any line y=mxy = mx:

f(x,mx)=mx3x4+m2x2=mxx2+m2→0f(x, mx) = \frac{mx^3}{x^4 + m^2x^2} = \frac{mx}{x^2 + m^2} \to 0

But along the parabola y=x2y = x^2, f(x,x2)=x42x4=12f(x, x^2) = \tfrac{x^4}{2x^4} = \tfrac{1}{2}. Every line agrees, yet the limit does not exist, because a curved path finds a different value. No finite list of paths can prove a limit exists; only an inequality covering all points near (a,b)(a, b) can.

xy/(x² + y²) along four lines through the origin The value of xy/(x² + y²) plotted against x along four lines through the origin. Along y = 0 it is always 0; along y = 2x it is 2/5; along y = x it is 1/2; along y = −x it is −1/2. Each line is flat, with an open circle at x = 0, so each path approaches a different value. −11xf
  • along y = x
  • along y = 2x
  • along y = 0
  • along y = −x
xy/(x² + y²) along four lines through the origin

Worked examples

Common mistakes

Practice problems

  1. Find lim⁡(x,y)→(2,−1)(x2+xy)\displaystyle\lim_{(x, y) \to (2, -1)} (x^2 + xy).

    Answer

    22

    Full solution

    A polynomial is continuous: 4+2(−1)=24 + 2(-1) = 2.

  2. Show that lim⁡(x,y)→(0,0)x2−y2x2+y2\displaystyle\lim_{(x, y) \to (0, 0)} \frac{x^2 - y^2}{x^2 + y^2} does not exist.

    Answer

    Along the xx-axis it is 11; along the yy-axis it is −1-1.

    Full solution

    Two paths, two different limits.

  3. Find lim⁡(x,y)→(0,0)3x2y2x2+y2\displaystyle\lim_{(x, y) \to (0, 0)} \frac{3x^2y^2}{x^2 + y^2}.

    Answer

    00

    Full solution

    In polar form it is 3r2cos⁡2θsin⁡2θ3r^2\cos^2\theta\sin^2\theta, at most 3r23r^2 in size.

  4. Find lim⁡(x,y)→(0,0)sin⁡(x2+y2)x2+y2\displaystyle\lim_{(x, y) \to (0, 0)} \frac{\sin(x^2 + y^2)}{x^2 + y^2}.

    Answer

    11

    Full solution

    With u=x2+y2→0u = x^2 + y^2 \to 0, this is lim⁡u→0sin⁡uu=1\lim_{u \to 0} \tfrac{\sin u}{u} = 1.

  5. Where is f(x,y)=1x−yf(x, y) = \tfrac{1}{x - y} continuous?

    Answer

    Everywhere except on the line y=xy = x

    Full solution

    It is a quotient of polynomials, continuous wherever the denominator is not 00.

  6. Show that lim⁡(x,y)→(0,0)xy2x2+y4\displaystyle\lim_{(x, y) \to (0, 0)} \frac{xy^2}{x^2 + y^4} does not exist.

    Answer

    Along y=0y = 0 it is 00; along x=y2x = y^2 it is 12\tfrac{1}{2}.

    Full solution

    On x=y2x = y^2: y42y4=12\tfrac{y^4}{2y^4} = \tfrac{1}{2}.

  7. Along which line y=mxy = mx does xyx2+y2\tfrac{xy}{x^2 + y^2} have the value −12-\tfrac{1}{2}?

    Answer

    y=−xy = -x

    Full solution

    On y=mxy = mx the value is m1+m2\tfrac{m}{1 + m^2}, which equals −12-\tfrac{1}{2} when m=−1m = -1.

  8. A student checks x2yx4+y2\tfrac{x^2y}{x^4 + y^2} along every line through the origin, gets 00 each time, and concludes the limit is 00. What is wrong?

    Answer

    The parabola y=x2y = x^2 gives 12\tfrac{1}{2}, so the limit does not exist.

    Full solution

    A limit must agree along every path, including curved ones. Lines alone never prove a limit exists.

Frequently asked questions

What does lim_(x,y)→(a,b) f(x, y) = L mean?

f(x, y) gets as close as we like to L whenever (x, y) is close enough to (a, b), no matter from which direction or along which path it approaches.

How do you show a two-variable limit does not exist?

Find two paths into the point along which f approaches different values. One disagreement is enough.

Is checking all straight lines enough to prove a limit exists?

No. For x²y/(x⁴ + y²), every line through the origin gives 0, but the parabola y = x² gives 1/2.

How do polar coordinates help?

Near the origin, write x = r cos θ and y = r sin θ. If |f − L| ≤ g(r) with g(r) → 0 for every θ, the limit is L.

Which functions are continuous?

Polynomials everywhere, quotients of polynomials where the denominator is not 0, and compositions of continuous functions.

What to learn next