Consider the 2-dimensional Euclidean distance: d(x, y) = \sqrt{x^2 + y^2} A level set L_r(d) of this function consists of those points that lie at a distance of r from the origin, that make a
circle. For example, (3, 4) \in L_5(d), because d(3, 4) = 5. Geometrically, this means that the point (3, 4) lies on the circle of radius 5 centered at the origin. More generally, a
sphere in a
metric space (M, m) with radius r centered at x \in M can be defined as the level set L_r(y \mapsto m(x, y)). 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 L_x, the curve directly "within" represents L_{x/10}, and the curve directly "outside" represents L_{10x}. ==Level sets versus the gradient==