Multivariable Functions
A multivariable function maps several real inputs to one or more real outputs, . Its values depend jointly on all input variables, so it encodes surfaces, fields, and transformations rather than mere curves. Used across calculus, physics, economics, machine learning, and engineering wherever a quantity depends on more than one independent variable. Studied systematically since the 18th–19th centuries (Euler, Cauchy, Jacobi, Weierstrass).
A multivariable function assigns to each point of a subset (the domain) one value in . When we call it a scalar field; when it is a vector-valued function or vector field. These objects matter because almost every real quantity—temperature in a room, profit as a function of price and volume, the loss of a neural network—depends on multiple inputs simultaneously, and single-variable calculus cannot capture how they vary in different directions. A surprising fact: a function of two variables can be separately continuous in each variable along every axis yet fail to be continuous at the origin, revealing that "approaching along lines" is fundamentally insufficient in dimensions greater than one.
The Core Insight
The central conceptual leap from one variable to many is that there is no single "rate of change": variation depends on the direction in which you move. A scalar field over has infinitely many directional derivatives at each point, organized by a single linear object—the gradient or, more generally, the derivative (Jacobian) matrix. Local behavior is governed by linear approximation in all directions at once, and limits must respect every path of approach, not just coordinate lines.
Formal Statement
Multivariable Function
Let be nonempty. A multivariable function is a rule
Here:
- = number of independent variables (dimension of the domain),
- = number of output components (dimension of the codomain),
- each is a scalar component function,
- the range is .
When , is a scalar field and its graph is the set
Level Sets
For a scalar field and constant , the level set at value is
Limit of a Multivariable Function
Let be a limit point of . We write if
Continuity and Component Decomposition
A function is continuous at if and only if every component function is continuous at . Moreover iff for each . The vector limit (when it exists) is unique and must agree along every path approaching .
Component Reduction of Limits
We show vector convergence is equivalent to coordinatewise convergence.
- Forward direction. Suppose . For each , the projection satisfies . Hence given , the same from forces .
- Reverse direction. Suppose each . Given , choose so on the punctured -ball. Let .
- Then on the punctured -ball,
- Uniqueness follows from the Hausdorff property of : two distinct limits would force and both below , contradicting the triangle inequality.
Directional Derivative and Gradient
For scalar , the directional derivative at along a unit vector is
The gradient collects all first partials, and for differentiable ,
Best Linear Approximation / Differentiability
is differentiable at an interior point if there exists a linear map (the Jacobian) withThe Jacobian entries are the partials . Existence of all partials does not imply differentiability, but if the partials exist and are continuous near , then is differentiable there ( differentiable).
Augustin-Louis Cauchy | 1789–1857
Cauchy gave the modern rigorous footing for limits, continuity, and convergence that multivariable analysis rests upon. His insistence on the – spirit (later formalized by Weierstrass) turned vague talk of "infinitely small" multivariable increments into precise statements. Cauchy also contributed foundational results on systems of functions and the determinant theory that underlies the Jacobian, the key object measuring how a multivariable map distorts volume locally.
Building Intuition
Picture a scalar field as a landscape: the height above each point is the function value. The graph is the terrain surface. Level curves are the contour lines on a topographic map—walking along one keeps your altitude fixed. The gradient points in the direction of steepest ascent, and its magnitude tells you how steep. Crucially, the gradient is always perpendicular to the level curve through your point: along a contour the height doesn't change, so the "uphill" arrow can have no component tangent to it.
For a vector field , drop the landscape picture and imagine an arrow attached to every point—like wind velocity over a map. The Jacobian then tells you how a tiny disk of points near gets stretched, rotated, and sheared into a tiny ellipse near .
Graph, level curves, and gradient of $f(x,y)=x^2+y^2$
The Field Picture
Physicists meet multivariable functions as fields. A scalar field like temperature or electric potential assigns one number to each point of space; its gradient gives the electric field, a vector field. The recurring theme is that physical laws are statements about how fields vary in space and time: , , and all package directional rates of change of multivariable functions. The Jacobian's determinant appears when changing coordinates in integrals (e.g., to spherical coordinates) and measures local volume scaling.
Worked Examples
Computing a Gradient and Steepest-Ascent Rate
Given: (a dimensionless potential), evaluate at , and find the maximum rate of increase and its direction. Steps:- Partials: , .
- At : , .
- Gradient: via .
- Maximum directional derivative equals (achieved when ):
- Unit direction of steepest ascent: .
A Limit That Fails (Path Dependence)
Given: for . Does exist? Steps:- Along : , so the limit along the -axis is .
- Along : likewise gives .
- Along : for all .
- Compute the candidate values:
- Because two paths give different values, the joint limit cannot exist.
Common Misconceptions
Existence of all partial derivatives does NOT imply continuity or differentiability. Partials probe only the coordinate-axis directions. A function can have and defined everywhere yet not be continuous, let alone differentiable, at a point. The correct local linearization criterion is the limit , not the mere existence of partials. The reliable shortcut is the theorem: continuous partials guarantee differentiability.Partials Exist, Function Is Discontinuous
Let
Both partials at the origin exist:
Yet is not continuous at , since the limit along is . Existence of partials therefore fails to control behavior off the axes—the essential warning of multivariable calculus.
Connections
Multivariable functions sit at the crossroads of analysis and geometry. The single-variable theory of Differentiation generalizes to the Jacobian Matrix and the differentiability criterion . Integration extends to Multiple Integrals via Fubini's theorem, where the Change of Variables Theorem uses the Jacobian determinant. The directional structure launches the study of Gradient Vector Fields, Divergence and Curl, and ultimately Vector Calculus. Level sets connect to Implicit Function Theorem and the geometry of Manifolds. In optimization, characterizes critical points, linking to Lagrange Multipliers and the Hessian Matrix second-derivative test.
Real-World Applications
- Machine learning (gradient descent): A loss is a scalar field over millions of parameters; training follows to minimize error. Backpropagation is repeated Jacobian application via the chain rule .
- Thermodynamics: State functions like Gibbs free energy are multivariable; partial derivatives give entropy, volume, and chemical potential.
- Economics: A production function (capital, labor) uses partials for marginal products and the gradient for optimal input mixes under constraints.
- Computer graphics: Surfaces and parametric maps render terrain; normals come from .
- Meteorology: Pressure fields produce wind via the pressure gradient force ; isobars are level curves.
- Electromagnetism: Potential fields yield , and Maxwell's equations are differential statements on vector fields.
- Medical imaging: CT/MRI reconstruct a 3D density function ; level surfaces segment organs.
Historical Development
- 1667–1684: Newton and Leibniz develop single-variable calculus, laying the conceptual groundwork for rates of change later extended to many variables.
- 1734: Euler systematically studies functions of several variables and introduces notation for partial differentiation in mechanics and fluid problems.
- 1748: Euler's Introductio in analysin infinitorum treats functions abstractly, broadening the function concept beyond single inputs.
- 1797–1813: Lagrange develops the calculus of variations and the multiplier method for constrained multivariable optimization.
- 1821: Cauchy's Cours d'analyse gives rigorous limit and continuity definitions adaptable to multivariable settings.
- 1841: Jacobi publishes on functional determinants—the Jacobian—formalizing how multivariable maps transform volumes.
- 1854–1868: Riemann's work on manifolds and multivariable integration reframes functions on curved domains.
- 1870s: Weierstrass cements the – formalism, and pathological examples (nowhere-differentiable, path-dependent limits) sharpen the distinction between partial and total differentiability.
- 1900s: Fréchet and others generalize differentiability to abstract normed spaces, with as the template (the Fréchet derivative).
Subtleties & Limits
While the theory of multivariable functions is classical and complete, practical and computational frontiers remain open. High-dimensional optimization (where is in the millions) is dominated by the geometry of saddle points and non-convex loss landscapes, whose structure is not fully understood. The behavior of generic smooth functions in very high dimensions—where almost all critical points are saddles and the curse of dimensionality makes sampling intractable—drives active research in optimization theory and statistics. Even classifying singularities of smooth maps (catastrophe and singularity theory, following Whitney and Thom) yields rich, still-expanding taxonomies, and questions about the regularity of solutions to nonlinear PDEs involving multivariable fields (e.g., Navier–Stokes smoothness) remain among the deepest unsolved problems in mathematics.