Lipschitz Continuity
Let be a set and . Then the following statements are equivalent: Let and . The function is called Lipschitz continuous if there exists an such that for all it holds that .
How to use the applet
- Drag the two orange points on the curve: they represent and .
- Move the slider to change the allowed Lipschitz constant.
- The red dashed line is the secant line through the two chosen points.
- The right triangle encodes the differences (horizontal) and (vertical), so the (absolute) secant slope is
- The arrows labeled and visualize the slope bounds .
- The shaded “cone” with vertex at the left point shows the region between the two lines of slope .
- Green: the Lipschitz inequality holds for the currently chosen points (the secant slope is in absolute value).
- Red: the inequality fails for the chosen points (you would need a larger ).
- For , choosing makes the condition succeed for all pairs of points (consistent with the Mean Value Theorem and ).
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Description
Reference: Lecture Notes Calculus 1 ( May22,2022 ) Definition 4.7 page 65
This applet represents the standard geometric interpretation of Lipschitz continuity.
Given the condition that for an
and that the slope of a linear function is “slope = vertical difference divided by horizontal difference,” the slope of the secant connecting the points and has slope . From the -condition we retrieve . The applets updates the color accordingly:
const isConditionMet = () =>
Math.abs(p2.Y() - p1.Y()) <=
lSlider.Value() * Math.abs(p2.X() - p1.X());
const color = () => (isConditionMet() ? COLORS.lightGreen : COLORS.lightRed);
Thus the absolute slope is constrained between , as shown.
I am aware that this touches on the concept of slope, not yet covered by the student at this point, and that this connection is even better explained using the MVT.
As a simple example I chose , whose derivative is . By the MVT we get that for some between and . But .