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

1
⟳a function is a set of ordered pairs with , , in which each appears at most once; the component form follows by projecting onto coordinates.

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

2
⟳replace the last output coordinate of the codomain with the function value; this generalizes to a hypersurface of dimension .

Level Sets

For a scalar field and constant , the level set at value is

3
⟳take the preimage of a single point under ; in this is a level curve (contour), in a level surface.

Limit of a Multivariable Function

Let be a limit point of . We write if

4
⟳replace absolute values in the single-variable – definition by the Euclidean norm ; the punctured ball of radius must lie entirely inside 's relevant neighborhood for every direction simultaneously.

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.

  1. Forward direction. Suppose . For each , the projection satisfies . Hence given , the same from forces .
  1. Reverse direction. Suppose each . Given , choose so on the punctured -ball. Let .
  1. Then on the punctured -ball,
5
⟳square and sum the componentwise bounds, then take the square root; the bound is chosen precisely so the sum of terms collapses to .
  1. 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

6
⟳restrict to the line , producing a one-variable function whose ordinary derivative at is .

The gradient collects all first partials, and for differentiable ,

7
⟳apply the multivariable chain rule to ; , which is the dot product.

Best Linear Approximation / Differentiability

is differentiable at an interior point if there exists a linear map (the Jacobian) with
8
⟳this demands the error of the affine approximation vanish faster than ; it is the exact multivariable analogue of .

The 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$

Level curves of f(x,y)=x²+y² with gradient arrow x y f=c (level curve) c↑ ∇f (steepest ascent) a tangent ⟂ ∇f

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:
  1. Partials: , .
  2. At : , .
  3. Gradient: via .
  4. Maximum directional derivative equals (achieved when ):
9
⟳ is maximized at , giving .
  1. Unit direction of steepest ascent: .
Answer:

A Limit That Fails (Path Dependence)

Given: for . Does exist? Steps:
  1. Along : , so the limit along the -axis is .
  2. Along : likewise gives .
  3. Along : for all .
  4. Compute the candidate values:
10
⟳substitute the path equation into to reduce it to a single-variable limit; differing path limits violate uniqueness from the Continuity and Component Decomposition theorem.
  1. Because two paths give different values, the joint limit cannot exist.
Answer:

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

11
⟳this is the function of with the value assigned at the origin.

Both partials at the origin exist:

12
⟳along each axis , so the difference quotient defining each partial is identically zero.

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

  1. 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 .
  2. Thermodynamics: State functions like Gibbs free energy are multivariable; partial derivatives give entropy, volume, and chemical potential.
  3. Economics: A production function (capital, labor) uses partials for marginal products and the gradient for optimal input mixes under constraints.
  4. Computer graphics: Surfaces and parametric maps render terrain; normals come from .
  5. Meteorology: Pressure fields produce wind via the pressure gradient force ; isobars are level curves.
  6. Electromagnetism: Potential fields yield , and Maxwell's equations are differential statements on vector fields.
  7. 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.

See Also

Partial Derivatives · Gradient Vector Fields · Jacobian Matrix · Chain Rule (Multivariable) · Implicit Function Theorem · Hessian Matrix · Vector Calculus · Change of Variables Theorem

Before this

Where this leads