In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a level set of a
real-valued function
In mathematics, a real-valued function is a function whose values are real numbers. In other words, it is a function that assigns a real number to each member of its domain.
Real-valued functions of a real variable (commonly called ''real ...
of
real variables is a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
where the function takes on a given
constant value , that is:
:
When the number of independent variables is two, a level set is called a level curve, also known as ''
contour line
A contour line (also isoline, isopleth, isoquant or isarithm) of a Function of several real variables, function of two variables is a curve along which the function has a constant value, so that the curve joins points of equal value. It is a ...
'' or ''isoline''; so a level
curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
is the set of all real-valued solutions of an equation in two variables and . When , a level set is called a level surface (or ''
isosurface''); so a level
surface
A surface, as the term is most generally used, is the outermost or uppermost layer of a physical object or space. It is the portion or region of the object that can first be perceived by an observer using the senses of sight and touch, and is ...
is the set of all real-valued roots of an equation in three variables , and . For higher values of , the level set is a level hypersurface, the set of all real-valued roots of an equation in variables (a
higher-dimensional hypersurface).
A level set is a special case of a
fiber
Fiber (spelled fibre in British English; from ) is a natural or artificial substance that is significantly longer than it is wide. Fibers are often used in the manufacture of other materials. The strongest engineering materials often inco ...
.
Alternative names
Level sets show up in many applications, often under different names. For example, an
implicit curve is a level curve, which is considered independently of its neighbor curves, emphasizing that such a curve is defined by an
implicit equation
In mathematics, an implicit equation is a relation of the form R(x_1, \dots, x_n) = 0, where is a function of several variables (often a polynomial). For example, the implicit equation of the unit circle is x^2 + y^2 - 1 = 0.
An implicit func ...
. Analogously, a level surface is sometimes called an implicit surface or an
isosurface.
The name isocontour is also used, which means a contour of equal height. In various application areas, isocontours have received specific names, which indicate often the nature of the values of the considered function, such as
isobar,
isotherm,
isogon,
isochrone,
isoquant
An isoquant (derived from ''quantity'' and the Greek word ', , meaning "equal"), in microeconomics, is a contour line drawn through the set of points at which the same quantity of output is produced while changing the quantities of two or more in ...
and
indifference curve
In economics, an indifference curve connects points on a graph representing different quantities of two goods, points between which a consumer is ''indifferent''. That is, any combinations of two products indicated by the curve will provide the c ...
.
Examples
Consider the 2-dimensional Euclidean distance:
A level set
of this function consists of those points that lie at a distance of
from the origin, that make a
circle
A circle is a shape consisting of all point (geometry), points in a plane (mathematics), plane that are at a given distance from a given point, the Centre (geometry), centre. The distance between any point of the circle and the centre is cal ...
. For example,
, because
. Geometrically, this means that the point
lies on the circle of radius 5 centered at the origin. More generally, a
sphere
A sphere (from Ancient Greek, Greek , ) is a surface (mathematics), surface analogous to the circle, a curve. In solid geometry, a sphere is the Locus (mathematics), set of points that are all at the same distance from a given point in three ...
in a
metric space
In mathematics, a metric space is a Set (mathematics), set together with a notion of ''distance'' between its Element (mathematics), elements, usually called point (geometry), points. The distance is measured by a function (mathematics), functi ...
with radius
centered at
can be defined as the level set
.
A second example is the plot of
Himmelblau's function shown in the figure to the right. Each curve shown is a level curve of the function, and they are spaced logarithmically: if a curve represents
, the curve directly "within" represents
, and the curve directly "outside" represents
.
Level sets versus the gradient
:
Theorem
In mathematics and formal logic, a theorem is a statement (logic), statement that has been Mathematical proof, proven, or can be proven. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to esta ...
: If the function is
differentiable
In mathematics, a differentiable function of one real variable is a function whose derivative exists at each point in its domain. In other words, the graph of a differentiable function has a non- vertical tangent line at each interior point in ...
, the
gradient
In vector calculus, the gradient of a scalar-valued differentiable function f of several variables is the vector field (or vector-valued function) \nabla f whose value at a point p gives the direction and the rate of fastest increase. The g ...
of at a point is either zero, or perpendicular to the level set of at that point.
To understand what this means, imagine that two hikers are at the same location on a mountain. One of them is bold, and decides to go in the direction where the slope is steepest. The other one is more cautious and does not want to either climb or descend, choosing a path which stays at the same height. In our analogy, the above theorem says that the two hikers will depart in directions perpendicular to each other.
A consequence of this theorem (and its proof) is that if is differentiable, a level set is a
hypersurface and a
manifold
In mathematics, a manifold is a topological space that locally resembles Euclidean space near each point. More precisely, an n-dimensional manifold, or ''n-manifold'' for short, is a topological space with the property that each point has a N ...
outside the
critical points of . At a critical point, a level set may be reduced to a point (for example at a
local extremum of ) or may have a
singularity such as a
self-intersection point or a
cusp
A cusp is the most pointed end of a curve. It often refers to cusp (anatomy), a pointed structure on a tooth.
Cusp or CUSP may also refer to:
Mathematics
* Cusp (singularity), a singular point of a curve
* Cusp catastrophe, a branch of bifu ...
.
Sublevel and superlevel sets
A set of the form
:
is called a sublevel set of ''f'' (or, alternatively, a lower level set or trench of ''f''). A strict sublevel set of ''f'' is
:
Similarly
:
is called a superlevel set of ''f'' (or, alternatively, an upper level set of ''f''). And a strict superlevel set of ''f'' is
:
Sublevel sets are important in
minimization theory. By
Weierstrass's theorem, the
boundness of some
non-empty sublevel set and the lower-semicontinuity of the function implies that a function attains its minimum. The
convexity of all the sublevel sets characterizes
quasiconvex function
In mathematics, a quasiconvex function is a real number, real-valued function (mathematics), function defined on an interval (mathematics), interval or on a convex set, convex subset of a real vector space such that the inverse image of any ...
s.
See also
*
Epigraph
*
Level-set method
*
Level set (data structures)
Level or levels may refer to:
Engineering
*Level (optical instrument), a device used to measure true horizontal or relative heights
*Spirit level or bubble level, an instrument designed to indicate whether a surface is horizontal or vertical
*Ca ...
References
{{Reflist
Multivariable calculus
Implicit surface modeling