that is, a set where the function takes on a given constant value c.
When the number of variables is two, a level set is generically a curve, called a level curve, contour line, or isoline. So a level curve is the set of all real-valued solutions of an equation in two variables x1 and x2. When n = 3, a level set is called a level surface (see also isosurface), and for higher values of n the level set is a level hypersurface. So a level surface is the set of all real-valued roots of an equation in three variables x1, x2 and x3, and a level hypersurface is the set of all real-valued roots of an equation in n (n > 3) variables.
A level set is a special case of a fiber.
Level sets show up in great many applications, often under different names.
For example, a level curve is also called an implicit curve, emphasizing that such a curve is defined by an implicit function. The name isocontour is also used, which means a contour of equal height. In various applications, isobars, isotherm, isogons and isochrones are isocontours.
Analogously, a level surface is sometimes called an mplicit surface or an isosurface.
For example, given a specific radius r, the equation of a circle defines an isocontour.
If we choose then our isovalue is .
All points (x,y) that evaluate to 25 constitute the isocontour. This means that they are a member of the isocontour's level set. If a point evaluates to less than 25 the point is on the inside of the isocontour. If the result is greater than 25, it is on the outside.
Level sets versus the gradient
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; he does not want to either climb or descend, choosing a path which will keep him at the same height. In our analogy, the above theorem says that the two hikers will depart in directions perpendicular to one another.
Proof. Let be the point of interest and . The level set going through is . Consider for some a curve such that . We have
Now let us differentiate at t = 0 by using the chain rule. We find
Equivalently, the Jacobian of f at x0 is the gradient at x0
Thus, the gradient of f at x0 is perpendicular to the tangent γ′(0) to the curve (and to the level set) at that point. Since the curve γ(t) is arbitrary, it follows that the gradient is perpendicular to the level set. Q.E.D.
A consequence of this theorem is that if a level set crosses itself (more precisely, fails to be a smooth submanifold or hypersurface) then the gradient vector must be zero at all points of crossing. Then, every point in the crossing will be a critical point of f.
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).
is called a superlevel set of f. Sublevel sets are important in minimization theory. The boundness of some non-empty sublevel set and the lower-semicontinuity of the function implies that a function attains its minimum, by Weierstrass's theorem. The convexity of all the sublevel sets characterizes quasiconvex functions.
- Voitsekhovskii, M.I. (2001), "L/l058220", in Hazewinkel, Michiel, Encyclopedia of Mathematics, Springer, ISBN 978-1-55608-010-4
- Weisstein, Eric W., "Level Set", MathWorld.
- Kiwiel, Krzysztof C. (2001). "Convergence and efficiency of subgradient methods for quasiconvex minimization". Mathematical Programming (Series A) 90 (1) (Berlin, Heidelberg: Springer). pp. 1–25. doi:10.1007/PL00011414. ISSN 0025-5610. MR 1819784.