Level set
Definition and Notation
Formal Definition
In mathematics, the level set of a real-valued function at a level is defined as the preimage , where is the domain of .[9] This construction captures the locus of points in the domain where the function attains the constant value . The domain is most commonly taken to be a subset of Euclidean space , but the definition generalizes to scalar-valued functions defined on smooth manifolds or more abstract topological spaces, where level sets serve as fundamental objects in studying the geometry and topology of the function's behavior.[10] For to be nonempty, must belong to the image (range) of ; if lies outside this range, the level set is the empty set. If is continuous, then each level set is a closed subset of , as it arises as the preimage of the closed singleton set under a continuous function.[11] To obtain well-behaved level sets with additional structure, such as smooth hypersurfaces away from critical points, regularity assumptions are typically required; for instance, is often assumed to be continuously differentiable () and a regular value where the gradient is nowhere zero on .[10]Common Notations
The level set of a real-valued function $ f: \mathbb{R}^n \to \mathbb{R} $ at a constant value $ c $ is most commonly denoted using the preimage notation $ f^{-1}(c) $, which emphasizes the set-theoretic inverse under $ f $.[9] An equivalent and frequently used symbolic convention is $ L_c(f) = { (x_1, \dots, x_n) \in \mathbb{R}^n \mid f(x_1, \dots, x_n) = c } $, where the subscript $ c $ specifies the level and the set-builder notation clearly delineates the points satisfying the equality.[12] Alternative notations include the more compact set-builder form $ { \mathbf{x} \mid f(\mathbf{x}) = c } $, which prioritizes brevity in general mathematical discourse.[9] In contexts involving partial differential equations (PDEs), particularly those modeling interfaces or fronts, level sets are often symbolized as $ \Sigma_c $ for hypersurfaces where $ f = c $, or $ \Gamma_c $ to denote boundaries or codimension-one manifolds at that level.[13] The notation for level sets traces its origins to contour lines in 19th-century cartography, where lines of equal elevation were first systematically drawn by Charles Hutton in his 1774 survey of Schiehallion mountain in Scotland, marking an early visual representation of constant-value sets on functions of two variables.[14] This practical convention evolved into abstract mathematical notation in the 20th century, influenced by developments in multivariable calculus and analysis, where level sets formalized the generalization of contours to higher dimensions. Field-specific conventions further adapt these notations for clarity and application; for instance, in computer graphics and numerical simulations via level set methods, the zero level set representing an evolving interface is standardly denoted $ \phi^{-1}(0) $, with $ \phi $ serving as the signed distance function to the surface.[15] Multivariable calculus textbooks emphasize consistent use of $ f(\mathbf{x}) = c $ for level curves and surfaces to build intuitive understanding, avoiding overloaded symbols to maintain precision across pedagogical contexts.[16]Geometric and Topological Properties
Relation to the Gradient
The gradient vector of a smooth function at a point in the level set is orthogonal to the tangent space provided that .[17][18] This orthogonality arises because the directional derivative of along any tangent vector vanishes, satisfying .[17][19] Consequently, serves as a normal vector to the level set at such points, pointing in the direction of steepest ascent of .[18] Points where are termed regular points of the level set, and near these points, forms a smooth -dimensional manifold.[17][18] In contrast, critical points occur where , leading to potential singularities in the level set, such as cusps or isolated points, where the manifold structure may fail.[17][19] The absence of the gradient precludes a well-defined tangent space, disrupting the local smoothness guaranteed by the implicit function theorem at regular points.[18] This orthogonality has significant implications for the flow along the gradient vector field. Gradient lines, which are the integral curves of the vector field , intersect the level sets perpendicularly at every regular point, as their direction aligns solely with the normal to .[17] These curves trace paths of steepest ascent or descent, transversely crossing successive level sets without tangential components.[19]Implicit Surfaces and Manifolds
Level sets provide a fundamental way to define implicit surfaces and submanifolds in Euclidean space. The zero level set of a smooth function , denoted , constitutes a hypersurface, which is a codimension-one subset embedded in .[20] More generally, for any constant , the level set can be viewed as the zero level set of the translated function , effectively shifting the hypersurface in the function's range space.[21] Under suitable regularity conditions, these level sets inherit a smooth manifold structure. Specifically, if is a regular value of , meaning the gradient for all , then is a smooth submanifold of with dimension .[20] This result follows from the regular value theorem (or submersion theorem for the case where is a submersion onto its image), which leverages the implicit function theorem to locally parametrize the level set as a graph over hyperplanes transverse to .[21] The non-vanishing gradient ensures that the differential is surjective at each point, guaranteeing the local embedding properties required for a submanifold.[20] Topological properties of level sets, such as compactness and connectedness, are closely tied to the asymptotic behavior of at infinity. A smooth function is said to be coercive if as ; under this condition, every level set is compact, as it is closed (by continuity of ) and bounded (since unbounded sequences on would contradict the coercivity). For connectedness, the global topology of depends on the connectivity of sublevel sets and the distribution of critical points, influenced by how approaches its limiting values at infinity; for instance, if sublevel sets remain connected due to a connected set of weakly isolated local minima extending to infinity, the corresponding level sets inherit connectedness.[22] In contrast to parametric representations, where a submanifold is described explicitly via a map with coordinate parameters, implicit definitions via level sets use a single equation without requiring such a parametrization. This implicit approach offers advantages in dimensionality reduction, as it embeds the -dimensional object using an -variable function of codimension one, facilitating the representation of complex topologies that may be challenging to parametrize globally.[20]Examples and Visualizations
Simple Geometric Examples
In one dimension, consider the function defined on . The level set for a constant consists of the two points , representing symmetric locations where the function value equals . For , the level set is the single point , and for , it is empty.[23] In two dimensions, the level sets of for form circles centered at the origin with radius . For instance, when , the level set is the unit circle . This quadratic function illustrates how level sets can delineate concentric boundaries in the plane.[24] Extending to three dimensions, the level sets of for are spheres centered at the origin with radius . For , it yields the unit sphere , and larger values of produce spheres of increasing radius, demonstrating the codimension-one nature of level sets in higher dimensions. Such spherical level sets correspond to level surfaces (superficies de nivel) in physics, notably equipotential surfaces for spherically symmetric potentials, such as the electric potential around a point charge or the gravitational potential around a point mass, where the potential depends only on the radial distance from the center.[24][25] Level sets in two dimensions also appear as contour lines (also known as level curves or curvas de nivel) in graphical representations of functions, such as topographic maps where elevation is constant along curves depicting hills and valleys. These contours, like those on USGS maps with 10-foot intervals, provide intuitive visualizations of the function's variation across the domain. Close contour lines indicate steep slopes, aiding hikers in assessing terrain difficulty for navigation and safety, and engineers in planning infrastructure projects such as roads or buildings. Similarly, weather maps use level curves as isotherms (lines of constant temperature) and isobars (lines of constant pressure) to analyze and forecast weather patterns.[26] In three dimensions, level surfaces manifest in everyday phenomena related to gravity. The surface of still water in a container or a calm lake approximates an equipotential surface in the gravitational field. Locally, where gravity can be considered uniform, this surface is flat and horizontal, remaining perpendicular to the direction of gravity—explaining the common observation that water "finds its level." On planetary scales, mean sea level closely follows the geoid, an equipotential surface in Earth's gravitational and centrifugal field that is approximately spherical but slightly irregular due to variations in mass distribution.[25]Advanced Illustrative Cases
One advanced illustrative case of a level set arises in the geometry of the torus, a surface of revolution that exemplifies non-trivial topology. The standard ring torus, symmetric about the z-axis, is defined as the zero level set of the function , where are the major and minor radii, respectively. This implicit equation describes a surface homeomorphic to a doughnut shape, with the level set forming a closed manifold of genus one.[27] For visualization, when and , the level set traces a tube of radius 1 bent into a circle of radius 3, highlighting how level sets can capture rotational symmetry and embedded structures in . In two dimensions, the saddle function provides level sets that illustrate hyperbolic geometries. The level curves yield hyperbolas: for , they open along the x-axis as ; for , along the y-axis as ; and for , degenerate into the crossed lines . These curves emanate from the origin, a saddle point where the Hessian has eigenvalues of opposite signs, demonstrating how level sets near critical points can branch into distinct asymptotic behaviors.[24] Fractal-like level sets appear in complex dynamics, notably with the Mandelbrot set, which is the zero level set of the Green's function associated with the quadratic iteration . The Green's function , where is the Böttcher function conjugating the dynamics to near infinity, vanishes precisely on the Mandelbrot set , with the boundary exhibiting infinite complexity and self-similarity. This level set encodes the connectivity of Julia sets, revealing fractal dimensions around 2 and intricate filigree structures upon magnification.[28] Time-dependent level sets model evolving interfaces in partial differential equations, such as fronts propagating in reaction-diffusion systems. In the level set formulation, an interface is the zero level set , evolving via the Hamilton-Jacobi equation , where is the normal speed derived from the underlying reaction-diffusion PDE, like the Fisher-KPP equation . For instance, traveling wave fronts satisfy , with the minimal wave speed, allowing topological changes such as merging or pinching as the level set $ \phi(\mathbf{x}, t) = 0 $ deforms over time. This approach, robust to singularities, has been applied to simulate combustion waves and biological invasions.Variations and Extensions
Sublevel and Superlevel Sets
For a real-valued function defined on a topological space , the sublevel set at level is defined as , which consists of all points where the function value does not exceed . Similarly, the superlevel set is , capturing points where the function value is at least . These sets extend the concept of level sets by incorporating regions below or above a threshold rather than restricting to the exact value . If is continuous, both sublevel and superlevel sets are closed in . This follows from the fact that and are closed subsets of , and the preimage of a closed set under a continuous function is closed. Moreover, the family of sublevel sets forms a filtration of , meaning whenever , with inclusions that are nested and increasing as grows. Superlevel sets form an analogous reverse filtration, with for . The boundary of a sublevel set coincides with the level set when the latter separates the interior from the exterior, provided is a regular value of . The same holds for the boundary of the superlevel set . In Morse theory, the topology of sublevel sets changes precisely at critical values of , where the gradient vanishes; passing such a value attaches a cell of dimension equal to the index of the critical point, altering the homotopy type of the sublevel sets.[29]Families of Level Sets and the Coarea Formula
In the context of level sets, the family of level sets for a real-valued function and an interval collectively foliate or partition portions of the domain, excluding critical points where the gradient vanishes. This structure arises naturally in analyzing how level sets vary continuously with the parameter , providing a layered decomposition of the space that is particularly useful in integration theory.[30][31] The coarea formula quantifies integration over such families of level sets by relating the volume integral in the domain to integrals along the individual level sets. Specifically, for a Lipschitz continuous function with almost everywhere, and an integrable function ,
where denotes the -dimensional Hausdorff measure on the level sets, and is Lebesgue measure on .[30][31] This formula, originally established in the framework of geometric measure theory, holds under the assumption that is Lipschitz to ensure the almost everywhere existence of the gradient via Rademacher's theorem, and the non-vanishing gradient condition prevents degeneracy of the level sets.[30]
The coarea formula serves as a powerful change-of-variables tool, transforming integrals over the full domain into iterated integrals over the parameter and the corresponding level sets, thereby relating volumes in to the "areas" of the hypersurfaces .[30] For instance, setting yields the total volume as an integral of the Hausdorff measures of the level sets, which is instrumental in computing properties like the surface area of spheres or more general manifolds via their defining functions.[31]
Proofs of the coarea formula typically rely on extensions of Fubini's theorem to Lipschitz maps between rectifiable sets, employing partitions of unity and Jacobian estimates to handle the decomposition into fibers (level sets).[30] In geometric measure theory, this result underpins broader theorems on rectifiability and currents, with the Lipschitz assumption ensuring measurability and the use of Hausdorff measures capturing the intrinsic geometry of the level sets.[31]