- Level set
In
mathematics , a level set of a real-valued function "f" of "n" variables is a set of the form: { ("x"1,...,"x""n") | "f"("x"1,...,"x""n") = "c" }where "c" is a constant. That is, it is the set where the function takes on a given constant value.For example, given a specific radius r, the equation of a circle defines an isocontour.
r2=x2 + y2
If we choose r=5 then our isovalue is c=52=25.
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.
When the number of variables is two, this is a level curve (
contour line ), if it is three this is a level surface, and for higher values of "n" the level set is a levelhypersurface .More specifically, a "level curve" is the set of all real-valued roots of an equation in two variables "x"1 and "x"2. A "level surface" is the set of all real-valued roots of an equation in three variables "x"1, "x"2 and "x"3. A "level hypersurface" is the set of all real-valued roots of an equation in "n" ("n" > 3) variables.
A set of the form: { ("x"1,...,"x""n") | "f"("x"1,...,"x""n") ≤ "c" }is called a sublevel set of "f".
Alternative names
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,isobar s,isotherm s,isogon s andisochrone s are isocontours.Analogously, a level surface is sometimes called an implicit surface or an
isosurface .Lastly, a general level set is also called a fiber.
Level sets versus the gradient
Theorem . Thegradient of "f" at a point is perpendicular to the level set of "f" at that point.This theorem is quite remarkable. To understand what it 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 x0 be the point of interest. The level set going through x0 is {x | "f"(x) = "f"(x0)}. Consider a curve γ("t") in the level set going through x0, so we will assume that γ(0) = x0.We have
: f({mathbf gamma}(t)) = f({mathbf x_0}) = c.
Now let us differentiate at "t" = 0 by using the
chain rule . We find:J_f({mathbf x_0}) {mathbf gamma}'(0)=0.
Equivalently, the
Jacobian of "f" at x0 is the gradient at x0:abla f({mathbf x}_0) cdot {mathbf gamma}'(0)=0.
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 orhypersurface ) then the gradient vector must be zero at all points of crossing. Then, every point in the crossing will be acritical point of "f".See also
*
Isosurface
*Contour line
*Level set method
*Level set (data structures)
*Gradient descent
*Constraint (mathematics)
*Implicit function
*Metaballs
*HyperFun References
Wikimedia Foundation. 2010.