Functions of Several Variables
Multivariate Functions
In one-dimensional calculus, we studied functions that take a single real number as input and produce a single real number as output, i.e., functions of the form:
where we have a function that maps elements from a domain (a subset of the real numbers) to the real numbers. The notation indicates that the function takes an input and produces an output . Here, is a real number from the domain , and is the output of the function for that input.
In multivariate/multi-dimensional calculus, we extend this concept to functions that can take multiple inputs and produce multiple outputs, called multivariate functions or vector-valued functions.
A multivariate function takes a vector of inputs and produces a vector of outputs:
where is a vector in (the domain), and is a vector in (the codomain — not to be confused with the image, which is the subset of actually reached by ). Each component function maps the input vector to a single real number, and together they form the output vector in . The notation indicates that the function takes an input vector and produces an output vector .
The one-dimensional case is a special case of this more general framework, where .
To distinguish between scalars and vectors, we will use boldface letters (e.g., ) to denote vectors, while regular letters (e.g., ) will denote scalars. In handwriting, we will denote vectors by underlining the letter (e.g., ) to differentiate them from scalars.
As can be seen above with , when we say “vector,” we mean a column vector, which is a common convention in mathematics. A column vector is a matrix with a single column and multiple rows, representing a point in multi-dimensional space.
Common Types of Multivariate Functions
We can define various types of multivariate functions based on the dimensions of their domain and codomain:
Curves
A spaghetti/noodle shape in 2D or 3D space. The input is a single parameter (e.g., time) that traces out a path in space.
and
The symbol stands for the natural (counting) numbers . This notation specifies that a curve is traced over a single input dimension (, representing time), but the resulting path can exist in a 1D, 2D, 3D, or any higher integer-dimensional space because the output dimension must be a solid counting number.
Plane curves (curves in 2D)
A plane curve takes a single real parameter and produces a point in 2D space, tracing a path through the plane as varies:
In the example above, the function takes a real number (which can be thought of as time) and maps it to a point in 2D space. The -coordinate is given by and the -coordinate by . As varies from to , the point traces out a curve in the plane, which in this case is an ellipse.
Space curves (curves in 3D)
A space curve takes a single real parameter and produces a point in 3D space, tracing a path through three-dimensional space as varies:
In the example above, and create circular motion in the - plane, while the exponential term causes the radius of that circle to shrink over time — the spiral gets tighter and tighter. The -coordinate increases linearly with , so the curve also climbs upward as it spirals.
Surfaces
Surfaces are intrinsically two-dimensional objects that can be embedded in three-dimensional space. For example, the surface of a ball is itself a 2D area embedded in a 3D volume.
A parametric surface is defined by a map that takes two free parameters and produces a point in 3D space. As varies continuously over the domain , the output traces out a 2D surface embedded in 3D. Unlike an explicit surface — where the surface is directly the graph of a function — a parametric surface uses two auxiliary parameters with no inherent geometric meaning, which makes it possible to describe shapes like spheres or tori that cannot be expressed as a single function of and .
The two input parameters act like coordinates on the surface itself — by varying them over the domain , we trace out every point on the surface.
In the example above, the function takes two parameters and and maps them to a point in 3D space. The domain is given by the Cartesian product of the intervals and . This notation indicates a combination of all possible inputs: can be any real number from to and can independently be any real number from to . Rather than representing just four corner points, this domain forms a solid, filled-in 2D rectangular “piece of paper.” The function then rolls this rectangle into a 3D cylinder. The circular cross-section is mapped out by and , creating a default unit radius of 1, making the angle parameter while the height of the cylinder is directly mapped from .
The radius of the cylinder is constant (equal to 1) in this example because and are bounded by 1 and not multiplied by any expanding factor. However, we can create more complex surfaces by allowing the radius to vary with and . For instance, in the next example, we have a surface where the radius changes based on the cosine of , creating a wavy pattern around the cylinder.
Scalar Fields
Assigns a single real number to each point in space. Intuitively, imagine walking around a room with a thermometer or a light meter: at every specific coordinate in the room, there is exactly one temperature or brightness value. Every point is mapped to a single scalar.
A scalar field assigns a single real number to each point in an -dimensional space:
Vector Fields
Assigns a vector to each point in space. Intuitively, imagine holding a small wind-vane at every coordinate in a room to measure airflow. A single number isn’t enough; you need multiple numbers to describe both the speed and the direction of the wind. The function effectively attaches a directional arrow to every single point in that space.
A vector field assigns a vector to each point in space:
The strict requirement for vector fields is that the output must live in the exact same dimensionality space as the input (), meaning every point in the domain gets an arrow pointing somewhere within that same geometric space.
Topology in Higher Dimensions
The familiar notions of open, closed, and half-open intervals from 1D calculus — , , , — generalize naturally to higher-dimensional spaces.
Complement of a Set
Let be some domain. Its complement in is
Euclidean Norm
To state the remaining definitions precisely, we need two building blocks: the Euclidean norm and the notion of an -ball.
The Euclidean norm is the standard “ruler distance” — it measures the straight-line length (magnitude) from the origin to a coordinate point :
In this is just the Pythagorean theorem: the distance from the origin to the point is .
The ε-Ball
The -ball of radius centered at is the set of all points within distance of :
Think of an -ball as a “bubble” or a “safety zone” drawn around a specific center point. It is the higher-dimensional analogue of an open interval: in it reduces to the line segment , in it is a flat, filled-in circular disk, and in it is a solid 3D sphere. Crucially, because the formula uses a strict inequality (, not ), the boundary or the “peel” of the ball (enclosing surface) is explicitly excluded. This missing peel is exactly what makes it an open ball.
Inner Points
A point is called an inner point of if there exists some such that — that is, we can place an open ball around that fits entirely within , without touching or crossing its boundary.
Because real number spaces are perfectly continuous and not constructed from fixed pixels, there is no such thing as a “closest point” to a boundary. If you pick a point near an excluded boundary, there is always a microscopic gap between your point and the edge. Therefore, you can always choose an small enough so that your -ball squeezes perfectly into that gap without spilling outside the domain.
Interior
The set of all inner points of is called the interior of , denoted .
Open Sets
A set is called open if it equals its own interior:
In plain terms: every point in is an inner point. There are no “edge” points that belong to — every point inside has some breathing room, meaning you can move a little in any direction and still stay inside .
Boundary Points
A point is called a boundary point of if every open ball around it, no matter how small, contains points both inside and outside :
In other words, no matter how small we make , the ball will always be partially inside and partially outside — we can shrink it as much as we want, and it will still cross the edge. This is possible because we are working in : we can always zoom in further, there is no limit to how small a ball we can draw. No matter how close we look, is always right on the edge, and therefore can never be an inner point.
Note that a boundary point need not belong to itself — it is simply a point that straddles (has one foot inside and one foot outside) the edge of , and may lie either inside or outside it.
In , the open interval is an open set. Take any point — it sits somewhere strictly between and , so it has some breathing room on both sides. Setting
picks the smaller of the two distances to the endpoints, guaranteeing that the ball stays fully inside without poking out either side. Since we can do this for every , every point is an inner point, confirming that is open.
The endpoints and are boundary points: any ball around them, no matter how small, reaches into on one side and outside it on the other — they sit right on the edge. Note that neither nor belongs to , which is consistent with being open.
Boundary
The set of all boundary points of is called the boundary of , denoted .
The boundary represents the outer geometric shell of a shape. It is often intuitively referred to as the “peel” or the “hull” (frequently used by German mathematicians translating the word Hülle).
Closure
The closure of is the set — that is, together with all of its boundary points.
Conceptually, taking the closure is the mathematical command to take a domain and forcefully glue its entire peel back onto it. It “seals off” by including every point that sits on its edge, regardless of whether those points were originally in or not. If is already a closed set, its peel is already there, meaning the closure operation does absolutely nothing to it. If is open, the closure plugs the holes at the boundary.
Closed Sets
A set is called closed if it contains all of its boundary points: , or equivalently, .
A closed set is the complement of an open set — and conversely, an open set is the complement of a closed set. Note that “open” and “closed” are not opposites — they are independent properties a set may or may not have. A set can be:
- both open and closed: itself (no boundary at all) and (vacuously satisfies both definitions),
- neither open nor closed: the half-open interval in — it contains one boundary point () but not the other (), so it fails both definitions.
The closed interval in is a closed set. Its boundary points are and , and both belong to . Compare this with the open interval : same boundary , but neither endpoint belongs to the set — so is open, not closed.
Bounded Sets
A set is called bounded if there exists some such that for all .
Recall that is the Euclidean distance from the origin to the point . So boundedness simply says: every point in lies within distance of the origin — equivalently, fits entirely inside some -ball of finite radius.
Intuitively, a shape is bounded if you can construct a giant, finite box or cage that completely encloses it. No vector in can be “infinitely long” or shoot off to infinity in any direction. A set is unbounded if it escapes any cage you try to build around it, stretching off infinitely like a laser beam, a standard parabola, or the entire real line .
Compact Sets
A set is called compact if it is both closed and bounded.
Convex Sets
A set is called convex if for any two points , the entire line segment connecting them also lies in :
The expression is called a convex combination of and . As the scalar varies continuously from to , this mathematical formula traces the straight line segment connecting the two points: at you are exactly at , at you are at , and at you are precisely at the midpoint.
Convexity mathematically dictates that for any two points chosen inside , this entire connecting line segment must remain completely within . Intuitively, this can be visualized as a “line-of-sight” test: if a domain is convex, you can stand at any coordinate inside it, and a friend can stand at any other coordinate, and you will always have a direct, unobstructed line of sight to each other that never crosses outside the boundary. Consequently, a convex shape has no “dents”, “holes”, or “concave bays.”
A filled disk is convex: any straight line between two points inside the disk stays inside the disk. A crescent moon, a donut shape, or an “L-shaped” room, on the other hand, is not convex — one can easily find two points within the shape whose connecting line segment passes through the empty space outside of it.
Continuity
Continuity on multi-dimensional domains is defined via the convergence of vector sequences.
Convergence of Vector Sequences
In , we work with vector sequences of the form , where each element is a vector:
Convergence of a Vector Sequence
A sequence of vectors converges to the limit vector if the distance between and vanishes as :
In other words, a vector sequence converges to if and only if the real-valued sequence of distances converges to zero — reducing vector convergence to the familiar notion of scalar convergence.
We can express this convergence in several ways depending on how formal the context requires. The following are all equivalent ways to write the exact same limit behavior:
The first notation is explicit, detailing precisely what variable is moving to infinity. The second is a common shorthand adopted when is mathematically obvious from the context. The third is the classic, highly formal algebraic limit notation.
Convergence of a vector sequence is equivalent to convergence of all its components simultaneously — none of them can diverge. Formally:
Continuity of Vector Functions
Given a vector function , we say that is:
-
continuous at if, for every sequence in with , the corresponding output sequence in converges to . In short, there is no “teleporting” allowed. As the input smoothly approaches a specific destination , the output must smoothly approach the actual output at that destination without sudden jumps or glitches.
-
continuous on if it is continuous at every point .
Continuity in multi-dimensional spaces is equivalent to componentwise continuity. A vector function
is effectively a stack of scalar fields. is continuous at or on if and only if each individual component scalar field
is properly continuous at or on . Think of a drone flying through the air: for the drone’s overall 3D trajectory to be continuous, its left/right movement, its forward/backward movement, and its up/down movement must all be perfectly continuous. If even a single component teleports, the whole trajectory breaks.
The standard continuity-preservation rules from 1D carry over directly to multi-dimensional functions. If and are continuous on , so are all functions built from them via the usual operations.
Suppose and are continuous on . Then the following composite operations produce new functions that are also continuous on :
- Linear combination:
- Product:
- Composition:
- Division:
For division, there is one strict condition: the divisor function on the bottom must be non-zero () for all . If the denominator hits exactly zero at any point, the fraction explodes to infinity, generating a mathematical hole or vertical jump that immediately destroys the function’s continuity.