Multivariable Calculus
Single-variable calculus lives on a line: one input, one output, one direction to move. But the real world rarely cooperates with that simplicity. Temperature depends on where you stand and how high you climb. The profit of a business depends on price, cost, and volume all at once. The gravitational pull on a spacecraft depends on three spatial coordinates simultaneously. Multivariable calculus is the mathematics of functions with several inputs — and its central surprise is that adding even one extra input doesn't just make things harder, it changes the rules. When you have more than one direction to approach a point from, questions like "what is the limit here?" suddenly have infinitely many possible answers, and you have to be much more careful about what you mean.
This page builds the foundations: what a function of several variables actually is, how we visualize it with level curves and surfaces, and why limits in higher dimensions are subtle enough to trip up even strong students. Get these ideas right, and the rest of the subject — partial derivatives, gradients, multiple integrals — becomes a natural extension rather than a wall of new symbols.
Learning Objectives
- Define a function of two or more variables and identify its domain, range, and graph.
- Visualize surfaces using level curves (contour maps) and level surfaces.
- Understand why a limit in higher dimensions requires the same value along every path of approach.
- Test whether a multivariable limit exists using path-based reasoning.
- Explain how the leap from one input to many changes continuity and geometric intuition.
- Connect these ideas to their origins in describing physical fields and surfaces.
Quick Answer
A function of several variables assigns one output to each combination of inputs, e.g. takes a point in the plane and returns a height, tracing out a surface in 3D space. We visualize such functions with level curves (slices where equals a constant, like elevation lines on a hiking map) and level surfaces for functions of three variables. A limit exists only if approaches along every possible path to , not just straight lines. This is the key difference from one dimension: with a single variable there are only two directions (left and right), but with two or more there are infinitely many, so a limit can fail even when every straight-line approach agrees. Continuity, derivatives, and integrals all rest on this more demanding notion of "approaching a point."
Where It Came From
Multivariable calculus was not invented for its own sake — it was forced into existence by physics. In the 1700s and 1800s, scientists needed to describe quantities that vary continuously through space: the temperature at every point in a heated metal plate, the velocity of every particle in a flowing fluid, the strength and direction of gravitational and electric pull at every point around a mass or charge. These are fields, and a field is precisely a function of several variables — you feed in a location and get back a number (or a vector).
The pioneers were the great mathematical physicists. Leonhard Euler (1707–1783) and Joseph-Louis Lagrange (1736–1813) developed partial differentiation to handle the mechanics of continuous bodies and vibrating strings. Pierre-Simon Laplace (1749–1827), studying gravitation and later potential theory, gave his name to the equation that governs steady-state fields — an equation that only makes sense for a function of several variables. Joseph Fourier (1768–1830), attacking the problem of how heat spreads through a solid, wrote down the heat equation, relating how temperature changes in time to how it curves in space. And James Clerk Maxwell (1831–1879) unified electricity and magnetism into four equations expressed entirely in the language of multivariable and vector calculus.
The through-line is clear: the moment you try to describe the world as a whole rather than a single moving point, you need functions of several variables, and you need a calculus that can differentiate and integrate them. The abstract theory — precise definitions of limits and continuity in higher dimensions — came afterward, in the late 1800s, as mathematicians like Weierstrass and others made rigorous the tools that physicists had been using successfully by intuition. Understanding this order helps: the concepts exist to answer real questions about surfaces and fields, and the formalism is there to keep us honest.
Functions of Several Variables: The Basic Object
A function of two variables, written , takes an ordered pair and returns a single real number . Its domain is the set of allowed input pairs (a region of the plane), and its graph is the set of points with — a surface floating above (or below) the -plane.
The domain matters more than in one dimension because a formula can fail on whole regions. Consider:
For the square root to be real we need , i.e. . So the domain is a filled disk of radius 3 centered at the origin. The output ranges from (at the edge, where ) up to (at the center, where ). The graph is the upper half of a sphere of radius 3.
Worked example — evaluating and finding the domain. Let .
- Evaluate at : .
- Domain: the expression is undefined when the denominator is zero, i.e. when . So the domain is all of the plane except the line .
Functions of three variables, , work the same way but can't be graphed directly — their graph would live in 4D space. Instead we study them through level surfaces (below).
Level Curves and Level Surfaces: Seeing in Lower Dimensions
Since a surface in 3D is hard to sketch, we use a trick borrowed from cartography: slice the surface at constant heights and project the slices onto the plane. A level curve of is the set of points where for a fixed constant . On a topographic map, these are the contour lines; points on one line are all at the same elevation. Where the lines bunch together, the surface is steep; where they spread out, it is gentle.
Worked example — level curves of a paraboloid. Take . Setting :
- For : just the single point — the bottom of the bowl.
- For : the circle , radius .
- For : the circle of radius .
- For : the circle of radius .
Notice the radii are : for . The gaps between successive levels shrink as we move outward (from radius 1 to 2 to 3, the circles get closer for equal jumps in height only if height jumps grow) — reading it the standard way, equally spaced heights give circles whose spacing shrinks outward, telling us the bowl gets steeper as we climb. That is the whole point of a contour map: spacing encodes steepness.
Level surfaces. For a function of three variables , the analog is a level surface . For , the level surfaces are spheres of radius centered at the origin — nested shells, each one a set of points where the function takes a single value. If represented temperature, these would be isothermal surfaces: every point on one shell is equally hot.
Limits in Higher Dimensions: Why More Inputs Change the Game
Here is where multivariable calculus earns its reputation. In one variable, exists only if the left-hand and right-hand limits agree — just two directions to check. In two variables, a point can be approached along infinitely many paths: straight lines from any angle, parabolas, spirals, anything. The limit
exists only if approaches the same value along every one of those paths. If two paths give different values, the limit does not exist.
Worked example — a limit that fails. Consider
near the origin. Approach along the -axis (set ): , so the limit along this path is . Approach along the -axis (set ): likewise. So far, so consistent — you might guess the limit is .
Now approach along the line :
Along this diagonal the function is constantly . Two paths, two different answers ( and ), so the limit does not exist — even though both axis-approaches agreed. This is the trap: checking a few paths is never enough to prove a limit exists; it can only prove one fails.
Worked example — a limit that exists. Consider
near the origin. Switch to polar coordinates: , , so . Then
As we have , and since , the whole expression is bounded by in absolute value. So regardless of the angle . The limit exists and equals . Polar coordinates are the workhorse trick here precisely because measures distance from the point along any direction at once.
A function is continuous at when the limit exists there and equals — the same definition as in one variable, but now resting on this far stricter limit.
Real-World Applications
- Weather and climate modeling. Temperature, pressure, and humidity are all functions of latitude, longitude, and altitude. The isobars and isotherms you see on a weather map are literally level curves of pressure and temperature fields.
- Engineering and heat transfer. Designing a heat sink or an engine block means solving the heat equation, a partial differential equation in a temperature function . The steady-state solutions are exactly the level-surface problems Laplace studied.
- Economics and optimization. A firm's output depends on labor, capital, and materials — a function of several variables. Indifference curves and isoquants in economics are level curves; finding maximum profit is a multivariable optimization problem.
- Computer graphics and terrain. Height maps for 3D landscapes are functions ; rendering realistic lighting requires gradients (a multivariable derivative) of these surfaces.
- Medical imaging. A CT or MRI scan reconstructs a density function throughout the body; the surfaces of constant density are level surfaces used to isolate organs and tumors.
Common Mistakes
1. Assuming a limit exists because a few paths agree. Many students check the -axis and -axis, see the same value, and declare the limit found. Why it's wrong: there are infinitely many paths, and a mismatch may only appear along a diagonal or curve (as in the example). Correction: agreement along some paths only suggests a candidate value. To prove existence, use polar coordinates or the squeeze theorem to bound the function for all directions at once; to prove non-existence, find two paths that disagree.
2. Confusing the graph of with its level curves. Students sometimes think the circles are the surface. Why it's wrong: the level curves live in the flat -plane; the actual graph is a surface rising into the third dimension. Correction: remember a level curve is the shadow of a horizontal slice — the surface is what you get by lifting each curve to its height .
3. Ignoring the domain when it's a whole region. In one variable, forbidden points are usually isolated (a single where you divide by zero). In several variables, entire curves or regions can be excluded, like the line for . Why it's wrong: treating the domain as "everywhere" leads to evaluating a function where it's undefined. Correction: always solve the domain condition explicitly and describe it as a region (disk, half-plane, complement of a line, etc.).
Comparison and Connections
The clearest way to internalize multivariable calculus is to hold it up against the single-variable version you already know.
| Feature | Single-variable calculus | Multivariable calculus |
|---|---|---|
| Input | One number, | A point, or |
| Graph | Curve in a plane | Surface in 3D (or higher) |
| Approaching a point | Two directions (left, right) | Infinitely many paths |
| Limit exists when | Left limit = right limit | Same value along every path |
| Visualization aid | The graph itself | Level curves / level surfaces |
| Derivative | Single slope | Partial derivatives, gradient vector |
Level curves connect directly to partial derivatives (how changes if you move in the -direction only) and to the gradient, which always points perpendicular to level curves toward steepest ascent. Limits here are the same foundational idea as one-variable limits — just applied in a space where "nearby" is far richer. And the surfaces you learn to read become the domains over which you'll later compute multiple integrals.
Practice Questions
Recall
Q: What is a level curve of a function , and how does it relate to the graph of ?
A: A level curve is the set of points in the plane where for a fixed constant . It corresponds to a horizontal slice of the surface at height , projected straight down onto the -plane. The full collection of level curves at different heights is a contour map of the surface.
Understanding
Q: Why does a multivariable limit require checking every path, when a single-variable limit only needs two?
A: In one dimension, the only ways to approach a point are from the left or the right — two directions. In two or more dimensions, a point can be reached along infinitely many paths (lines at any angle, parabolas, spirals). Since the function might behave differently along different paths, the limit is defined to exist only if all paths give the same value; otherwise "the value near the point" would be ambiguous.
Application
Q: Find the domain of and evaluate .
A: The logarithm requires a positive argument: , i.e. . The domain is the region of the plane to the right of the parabola . Evaluating: .
Analysis
Q: Determine whether exists.
A: Approach along the -axis (): . Approach along the -axis (): . The two paths give and , which differ, so the limit does not exist.
FAQ
Is multivariable calculus much harder than single-variable calculus? The individual computations (differentiating, integrating) are usually not harder — they reuse your single-variable skills. What's genuinely new is the geometry and the subtlety of limits. Once you accept that "approaching a point" now means from infinitely many directions, most of the difficulty dissolves. Invest your effort in visualizing surfaces and level curves early.
Why do we bother with level curves if we could just look at the 3D surface? Because 3D surfaces are hard to draw accurately and even harder to read quantitatively. A contour map is flat, precise, and instantly shows steepness (via line spacing), peaks, valleys, and saddle points. It's the same reason hikers use topographic maps instead of clay models.
What's the difference between a level curve and a level surface? A level curve comes from a function of two variables, , and is a curve in the plane. A level surface comes from a function of three variables, , and is a surface in space. Both are "sets where the function is constant"; the dimension of the input determines whether you get a curve or a surface.
If a limit gives the same answer along every straight line, does the limit exist? Not necessarily. There are functions where every straight-line approach gives but a parabolic path like gives a nonzero value. Straight lines are not enough — that's why we use polar coordinates or the squeeze theorem to check all directions at once.
When should I use polar coordinates for a limit? Whenever the point of interest is the origin and the function involves (which becomes a clean ). Substituting , turns the two-variable limit into a single limit as ; if the result is bounded by something going to zero independent of , the limit exists.
Quick Revision
- Function of several variables: maps a point to a number; graph is a surface. Always find the domain as a region.
- Level curve: , a contour in the plane; closely spaced lines = steep.
- Level surface: , a surface in space (e.g. isothermal shells).
- Limit exists same value along every path to the point.
- To disprove a limit: find two paths with different values (e.g. vs ).
- To prove a limit: use polar coordinates or the squeeze theorem to bound for all .
- Continuity at : limit exists there and equals .
- Key example: has no limit at origin; has limit .
Related Topics
Prerequisites
- Limits
- Continuity
- Derivatives
- Calculus branch overview: Calculus
Related Topics
- Partial Derivatives
- Vector calculus and the gradient (steepest ascent perpendicular to level curves)
Next Topics
- Multiple Integrals
- Optimization of functions of several variables (maxima, minima, saddle points)