MATH U101 · First-time lesson · Module 3, lectures L6–L7

Functions of Several Variables, taught from zero

Thomas' Calculus (15th ed.) §14.1–14.2 — functions with two inputs, their domains and level curves, and what "limit" and "continuous" mean when you can approach a point from infinitely many directions. Budget 75–90 minutes, in two sittings.

🎧 Narrated walkthroughs for this module

Finding limits (6.5 min, Tutorial 5 Q1, Q6–Q9) · When limits fail, and continuity (7.9 min, Tutorial 5 Q2–Q5, Q10). Both are sound-on and pause for your next move.

Start here — the honest scope

Two facts to calm the "everyone is ahead" reflex. §14.1 is almost entirely vocabulary — domain, range, level curve, interior, boundary, open, closed, bounded — and nobody's 12th-class syllabus teaches it; classmates are learning these words this week too. §14.2 is the limits lesson generalised: the meaning of a limit is unchanged, the 0/0 tools are the same tools. The one genuinely new idea in the whole module is this: in one variable you could only approach a point from the left or the right; in two variables you can approach along infinitely many paths — and that single fact produces a new kind of exam question (the two-path test). Everything else is the old kit wearing a second variable.

How to use this page

First time → read in order, attempt every green "check yourself" box before opening it. Revising → the notes page has the compressed map, three exam-level worked examples (including a full Tutorial-4-style domain/range/level-curve workout) and the exercise table.

1 · A function of two variables: feed in a point, get out a height §14.1

Until now a function took one number and returned one number. A function of two variables takes a pair — a point (x, y) in the plane — and returns a single number:

z = f(x, y)

The picture that makes everything in §14.1 concrete: a landscape. Every location (x, y) on the map has an altitude f(x, y). Temperature over a room, pressure over a weather map, the depth of a lake at each spot — all functions of two variables. f(x, y) = x2 + y2 is a bowl whose floor is at the origin; f(x, y) = x + 2y is a tilted flat plane.

The domain is now a region of the plane

In one variable, "domain" was a set of allowed numbers — an interval or two. Now it's a set of allowed points: a shape drawn in the plane. The rules for what's forbidden haven't changed at all: no dividing by zero, no square root of a negative, no log of a non-positive number. What's new is that the answer is a picture. Two examples, done the way an exam wants them:

f(x, y) = √(y − x2). Need y − x2 ≥ 0, i.e. y ≥ x2. That's every point on or above the parabola y = x2. Sketch the parabola, shade the inside. The range — the set of outputs — is [0, ∞): a square root is never negative, it is 0 on the parabola itself, and it grows without bound as you go up.

f(x, y) = ln(x2 + y2 − 1). Need x2 + y2 − 1 > 0, i.e. x2 + y2 > 1: everything strictly outside the unit circle (the circle itself excluded — ln 0 doesn't exist). Range: the argument of ln runs over (0, ∞), and ln of that is every real number, so the range is (−∞, ∞).

Classic trap

Finding the range without looking at the domain. "√(…) so the range is [0, ∞)" is only right if the inside actually reaches every non-negative value. For √(9 − x2 − y2) the inside is at most 9, so the range is [0, 3], not [0, ∞). Always ask: what values can the inside take on the domain? Then apply the outer function to that set.

Check yourself: domain and range of f(x, y) = 1/(x² + y²).

Only forbidden thing: dividing by zero, which happens only at the origin. Domain: the whole plane minus the point (0, 0). Range: x2 + y2 takes every positive value, so its reciprocal does too — range (0, ∞). (Not [0, ∞): the output never actually reaches 0.)

2 · Seeing the function: surfaces and level curves

The graph of z = f(x, y) is a surface floating over the domain — the landscape itself. Surfaces are hard to draw on paper, so §14.1 uses the trick every hiking map uses: contour lines. Fix a height c, and mark every point where the landscape is at exactly that height:

level curve at level c: { (x, y) : f(x, y) = c }

Draw these for several values of c and you have a contour map: closely spaced curves mean steep, widely spaced mean flat. Three examples — sketch each yourself before reading the answer, that's the skill being tested:

Slide the level c below and watch the level curves of f = x2 − y2 — a saddle surface — change family as c passes through zero. This is what "describe the level curves" means: name the curve family and say how it depends on c.

x y

Level curves x² − y² = c of the saddle f = x² − y². Faint: c = ±1, ±2, ±3 for context.

Check yourself: describe the level curves of f(x, y) = x − y², and of g(x, y) = √(x² + y²).

x − y2 = c ⟹ x = y2 + c: parabolas opening to the right, vertex at (c, 0), one for every real c. √(x2 + y2) = c: circles of radius c for c > 0 (the graph is a cone, so its contours are evenly spaced circles), the origin for c = 0, nothing for c < 0.

3 · The vocabulary of regions: interior, boundary, open, closed

Because domains are now shapes, the course needs words to describe shapes precisely — and tutorial/exam questions ask for them by name ("find the boundary; is the domain open, closed, or neither?"). There are only five words, and they're all built from one picture: a small disk drawn around a point.

WordDefinition (draw a small disk around the point)Picture
Interior pointSome disk around it lies entirely inside the region.A point comfortably inside
Boundary pointEvery disk around it, however small, contains points inside the region and points outside. (The point itself may or may not belong to the region.)A point on the edge
Open regionConsists only of interior points — contains none of its boundary.Dashed edge: x2 + y2 < 1
Closed regionContains all of its boundary points.Solid edge: x2 + y2 ≤ 1
BoundedFits inside some disk of finite radius. Otherwise unbounded.A disk: bounded. A half-plane: unbounded

The practical recipe: the boundary is almost always the curve you get by turning the domain's inequality into an equation. Then: strict inequality (<, >, ≠) ⟹ boundary excluded ⟹ open; non-strict (≤, ≥) ⟹ boundary included ⟹ closed. A region can be neither (it includes part of its boundary) — and, a genuine oddity worth knowing, the whole plane is both open and closed: it has no boundary at all.

Back to section 1's examples: the domain of √(y − x2) is y ≥ x2; boundary is the parabola y = x2, included, so closed; it stretches upward forever, so unbounded. The domain of ln(x2 + y2 − 1) is x2 + y2 > 1; boundary is the unit circle, excluded, so open; unbounded.

Check yourself: domain of f(x, y) = 1/(xy). Boundary? Open, closed, or neither? Bounded?

Need xy ≠ 0: the plane with both axes removed (four open quadrants). Boundary: the two axes (every disk around an axis point contains points off the axis — in the domain — and points on the axis — not in it). None of the boundary is included, so the domain is open. It contains points arbitrarily far out, so unbounded.

shaded = the region · dashed edge = boundary excluded · solid edge = boundary included

The tutorial's five questions, one routine

Tutorial-style §14.1 problems ask the same five things in the same order, and each has a mechanical starting move: (a) domain — write the inequality that keeps the formula legal (no ÷0, no ln of ≤0, no √ of negatives), then say it as a region; (b) range — ask what outputs the formula can actually reach on that domain (never answer the range before the domain); (c) level curves — set f = c and recognise the resulting school curve (line, parabola, circle, hyperbola) for each c; (d) boundary — the points you can approach from inside the domain but where the defining inequality turns into equality (or the formula dies); (e) open/closed — strict inequality that excludes its boundary → open; includes all of it → closed; some but not all → neither (and the whole plane is both). The notes page works this five-part routine in full, and the tutorial companion runs it on the actual sheet-4 functions.

4 · Three variables: level surfaces

Everything above extends to w = f(x, y, z), with one twist: the graph would need four dimensions, so we only have the contour idea. Setting f(x, y, z) = c gives a level surface in space. For f = x2 + y2 + z2 the level surfaces are spheres of radius √c; for f = x + 2y + 3z they're parallel planes. Domains become regions of space, "disk" becomes "ball" in the definitions of section 3, and the words interior/boundary/open/closed mean exactly the same things. That's all of §14.1's three-variable content.

5 · Limits in two variables: the same idea, infinitely many roads in §14.2

lim(x,y)→(a,b) f(x, y) = L means precisely what it meant before: the outputs get as close to L as anyone demands, provided the input point is close enough to (a, b) — the same ε–δ game, with "within δ of a" now meaning "inside a disk of radius δ around (a, b)". The limit still ignores what happens at the point itself.

Here is the new part. In one variable, "the outputs settle" had to be checked from two directions — left and right — and if they disagreed, no limit. In two variables you can approach (a, b) along the x-axis, the y-axis, any line, any parabola, any spiral. For the limit to exist, every one of those routes must give the same answer. That's an impossibly long list to check — but it makes disproving a limit easy:

The two-path test (for showing a limit does NOT exist)

Find two different paths into (a, b) along which f approaches two different values. Then the limit does not exist. Two paths that disagree is a complete proof.

Watch it on the standard example, f(x, y) = (x2 − y2)/(x2 + y2) as (x, y) → (0, 0). Plugging in gives 0/0, so dig:

Two roads, two answers: the limit does not exist. Three lines of working, full marks. Geometrically the surface has a cliff at the origin that runs at different heights in different directions.

When the axes agree: try the family y = mx

Sometimes both axes give the same value and you need to look harder. The standard second move is to approach along every line at once by substituting y = mx. If the result depends on m, different lines give different values — done. For f = xy/(x2 + y2), both axes give 0, but y = mx gives mx2/(x2 + m2x2) = m/(1 + m2) — ½ along y = x, 0 along y = 0. No limit. The notes page writes this one out as a model answer.

When even all lines agree: try curves

And sometimes every straight line gives the same answer and the limit still doesn't exist — the trap the examiners love. Take f = x2y/(x4 + y2). Along y = mx: mx3/(x4 + m2x2) = mx/(x2 + m2) → 0 for every m. Looks like the limit is 0. But the x4 downstairs is a hint: try the parabolas y = kx2, which make y2 and x4 the same size:

f(x, kx2) = kx4x4 + k2x4 = k1 + k2

— ½ along y = x2, 0 along y = 0. No limit after all. The lesson: choose the path that balances the powers in the denominator. If the denominator has x4 and y2, try y = kx2; if x2 and y2, lines suffice.

Classic traps

1) One path, and "so the limit is 0". A path can only ever show what the limit would have to be; it can never prove existence. 2) Two paths that agree, and "so the limit exists". Same error — agreement on two roads (or on all straight lines, as just shown) proves nothing. The two-path test is a disproof tool only. To prove a limit exists you need section 6.

Check yourself: does lim(x,y)→(0,0) x⁴/(x⁴ + y²) exist?

Along y = 0: x4/x4 = 1. Along x = 0: 0/y2 = 0. Different — no limit. (The axes were enough here; you only reach for y = mx or y = kx2 when they agree.)

6 · Showing a limit does exist — the four tools

If you suspect the limit exists (all your test paths agree), you need one argument that covers all paths at once. There are four, and the first two are the old §2.4 toolbox verbatim.

Tool 1: substitute. If the formula is built from polynomials, roots, exponentials, logs and trig by sums, products, quotients and compositions, it is continuous wherever it's defined (section 7), so the limit is the value: lim(x,y)→(1,2) (x2y + 3) = 1·2 + 3 = 5. The 0/0 cases below are the only real work.

Tool 2: simplify algebraically — factor and cancel, or multiply by a conjugate, exactly as in one variable. For example,

lim(x,y)→(0,0) x2 − 2xy + y2x − y = lim (x − y)2x − y = lim (x − y) = 0

(valid for the approach along any path with x ≠ y — the points where the function is defined). After cancelling, the leftover is continuous, so substitution finishes it — for every road at once.

Tool 3: switch to polar coordinates. This is the tool that's new, and it's the most powerful for limits at the origin. Put x = r cos θ, y = r sin θ. Then x2 + y2 = r2, and "(x, y) → (0, 0) along any path" becomes simply "r → 0, with θ doing whatever it likes". If you can show the expression → L as r → 0 no matter what θ does, you have covered every path. Example:

lim(x,y)→(0,0) x3x2 + y2 = limr→0 r3 cos3θr2 = limr→0 r cos3θ = 0

because |r cos3θ| ≤ r — whatever θ is, the size is at most r, and r → 0. That last inequality is the whole proof; write it. (Numerically: along y = x the values are 0.05, 0.005, 0.0005 at x = 0.1, 0.01, 0.001 — collapsing to 0 as promised.)

Unpack this step: why "no matter what θ does" covers every path

Any path into the origin is a sequence of points whose distance from the origin, r, goes to 0 — that's what "approaches the origin" means. The angle θ may wobble however it likes. So a bound like |expression| ≤ r, true for every θ, forces the expression to 0 along any path. Conversely, if the r → 0 limit depends on θ (e.g. you get cos 2θ), different straight lines give different values: no limit.

Tool 4: the squeeze (sandwich). Same theorem as §2.4: trap the function between two things that both go to L. In two variables the trap is usually an inequality like x2/(x2 + y2) ≤ 1 (a part is at most the whole). For 3x2y/(x2 + y2): |3x2y/(x2 + y2)| = 3|y| · x2/(x2 + y2) ≤ 3|y| → 0. The notes page does this one both ways (polar and squeeze) as a model answer.

Check yourself: lim(x,y)→(0,0) (x² + y²)/(√(x² + y² + 1) − 1). Which tool, and what's the answer?

0/0 with a square root: conjugate. Multiply top and bottom by √(x2 + y2 + 1) + 1; the bottom becomes (x2 + y2 + 1) − 1 = x2 + y2, which cancels the top. Left with √(x2 + y2 + 1) + 1 → 1 + 1 = 2. (Polar also works: r2/(√(r2+1) − 1), same conjugate.)

Check yourself: lim(x,y)→(0,0) sin(x² + y²)/(x² + y²) = ?

Polar: x2 + y2 = r2, so this is sin(r2)/r2 — θ has vanished entirely — and with u = r2 → 0 it's the one limit you memorised, sin u/u → 1.

7 · Continuity — same three-part check

f is continuous at (a, b) if (1) f(a, b) is defined, (2) the limit exists, and (3) they're equal — the identical checklist from the limits lesson. And the same theorems carry over: sums, products, quotients (nonzero denominator) and compositions of continuous functions are continuous, so every formula you'll meet is continuous on its domain. The only places to inspect are points outside the natural domain that the problem has patched by hand.

The exam pattern: "f(x, y) = (x2 − y2)/(x2 + y2) for (x, y) ≠ (0, 0), and f(0, 0) = 0. Is f continuous at the origin?" Away from the origin it's a quotient of polynomials with nonzero denominator — continuous. At the origin, condition (1) holds by the patch, but section 5 showed the limit doesn't exist, so (2) fails: not continuous there, and no choice of f(0, 0) could fix it. Compare x3/(x2 + y2) patched with 0: the limit is 0 (section 6) and equals the patch, so that one is continuous everywhere.

Check yourself: g(x, y) = xy/(x² + y²) for (x, y) ≠ (0, 0), g(0, 0) = c. Is there a value of c making g continuous at the origin?

No. Section 5: along y = mx the values are m/(1 + m2), which varies with m, so the limit does not exist — and continuity needs the limit to exist before anything else. No c can help.

Your minimal prerequisite kit for this lesson

Everything above used: (a) reading an inequality as a region (y ≥ x2: above the parabola; x2 + y2 < 1: inside the circle); (b) recognising circles, parabolas and hyperbolas from their equations; (c) where √ and ln are defined; (d) the §2.4 tools — factor/cancel, conjugate, sin u/u, squeeze; (e) polar conversion x = r cos θ, y = r sin θ, x2 + y2 = r2 (Module 1). The notes page's kit says where to patch each.

8 · You're ready — what to do next

Still stuck on something? Ask an AI well

Pin it to §14.1–14.2 so it doesn't run ahead into partial derivatives. Prompts that work:

"I'm learning Thomas' Calculus 15th ed. §14.2. Give me a function whose limit at the origin is 0 along every straight line but does not exist — then let me try to find the curve that breaks it before you reveal it."

"Using only §14.1 of Thomas, walk me through domain, range, level curves, boundary and open/closed for f(x, y) = √(x2 + y2 − 4), one part at a time, checking my answer to each before the next."

"Show me how to convert lim (x2y)/(x2 + y2) at the origin to polar coordinates and finish the proof with an inequality in r. Stay within §14.2."

One caution: AI answers can contain confident errors — cross-check any computed number against the textbook's answers in the back.