Jump to content

Level set

From Wikipedia, the free encyclopedia

Points at constant slices ofx2=f(x1).
Lines at constant slices ofx3=f(x1,x2).
Planes at constant slices ofx4=f(x1,x2,x3).
(n− 1)-dimensional level sets for functions of the formf(x1,x2,…,xn) =a1x1+a2x2+ ⋯ +anxnwherea1,a2,…,anare constants, in(n+ 1)-dimensional Euclidean space, forn= 1, 2, 3.
Points at constant slices ofx2=f(x1).
Contour curves at constant slices ofx3=f(x1,x2).
Curved surfaces at constant slices ofx4=f(x1,x2,x3).
(n− 1)-dimensional level sets of non-linear functionsf(x1,x2,…,xn) in(n+ 1)-dimensional Euclidean space, forn= 1, 2, 3.

Inmathematics,alevel setof areal-valued functionfofnreal variablesis asetwhere the function takes on a givenconstantvaluec,that is:

When the number of independent variables is two, a level set is called alevelcurve,also known ascontour lineorisoline;so a level curve is the set of all real-valued solutions of an equation in two variablesx1andx2.Whenn= 3,a level set is called alevelsurface(orisosurface); so a level surface is the set of all real-valued roots of an equation in three variablesx1,x2andx3.For higher values ofn,the level set is alevelhypersurface,the set of all real-valued roots of an equation inn> 3variables.

A level set is a special case of afiber.

Alternative names[edit]

Intersections of aco-ordinatefunction's level surfaces with atrefoil knot.Red curves are closest to the viewer, while yellow curves are farthest.

Level sets show up in many applications, often under different names. For example, animplicit curveis a level curve, which is considered independently of its neighbor curves, emphasizing that such a curve is defined by animplicit equation.Analogously, a level surface is sometimes called an implicit surface or anisosurface.

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 asisobar,isotherm,isogon,isochrone,isoquantandindifference curve.

Examples[edit]

Consider the 2-dimensional Euclidean distance:

A level setof this function consists of those points that lie at a distance offrom the origin, that make acircle.For example,,because.Geometrically, this means that the pointlies on the circle of radius 5 centered at the origin. More generally, aspherein ametric spacewith radiuscentered atcan be defined as the level set.

A second example is the plot ofHimmelblau's functionshown 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.

Log-spaced level curve plot ofHimmelblau's function[1]

Level sets versus the gradient[edit]

Consider a functionfwhose graph looks like a hill. The blue curves are the level sets; the red curves follow the direction of the gradient. The cautious hiker follows the blue paths; the bold hiker follows the red paths. Note that blue and red paths always cross at right angles.
Theorem:If the functionfisdifferentiable,thegradientoffat a point is either zero, or perpendicular to the level set offat 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 iffis differentiable, a level set is ahypersurfaceand amanifoldoutside thecritical pointsoff.At a critical point, a level set may be reduced to a point (for example at alocal extremumoff) or may have a singularitysuch as aself-intersection pointor acusp.

Sublevel and superlevel sets[edit]

A set of the form

is called asublevel setoff(or, alternatively, alower level setortrenchoff). Astrict sublevelset offis

Similarly

is called asuperlevel setoff(or, alternatively, anupper level setoff). And astrict superlevel setoffis

Sublevel sets are important inminimization theory.ByWeierstrass's theorem,theboundnessof somenon-emptysublevel set and the lower-semicontinuity of the function implies that a function attains its minimum. Theconvexityof all the sublevel sets characterizesquasiconvex functions.[2]

See also[edit]

References[edit]

  1. ^Simionescu, P.A. (2011). "Some Advancements to Visualizing Constrained Functions and Inequalities of Two Variables".Journal of Computing and Information Science in Engineering.11(1).doi:10.1115/1.3570770.
  2. ^Kiwiel, Krzysztof C. (2001). "Convergence and efficiency of subgradient methods for quasiconvex minimization".Mathematical Programming, Series A.90(1). Berlin, Heidelberg: Springer: 1–25.doi:10.1007/PL00011414.ISSN0025-5610.MR1819784.S2CID10043417.