Finding the Lipschitz Constant of a Function


We've already explored Lipschitz functions, which have a bounded rate of change. Now, let's focus on how to find the Lipschitz constant—the key parameter that determines how "steep" a function can be.


What is the Lipschitz Constant?

A function f:RnR is Lipschitz continuous with constant B if there exists a finite number B0 such that:

|f(x)f(y)|Bxy,x,yD(f).

The Lipschitz constant B is the smallest possible value that satisfies this inequality for all x,y. It essentially tells us how fast the function can change—a small B means slow growth, while a large B means faster variation.


Finding the Lipschitz Constant for a Function

There are different ways to compute the Lipschitz constant depending on whether we are dealing with:

  1. Lipschitz continuity of function values (B)
  2. Lipschitz continuity of the gradient (smoothness condition, L)

1. Lipschitz Constant for Function Values

To find the Lipschitz constant B for a function f, we evaluate:

B=supxy|f(x)f(y)|xy

This means that B is the maximum rate of change of the function over all possible pairs of points.

Recall:

The supremum (or least upper bound) of a set is the smallest number that is greater than or equal to all elements in the set.

Example 1

f(x)=x2 on R

To find the Lipschitz constant B, we compute:

B=supxy|x2y2||xy|

Using the difference of squares identity:

|x2y2||xy|=|x+y|.

Since |x+y| can be arbitrarily large as x,y, f(x)=x2 is not Lipschitz on R. However, on a bounded domain, say [a,a], we get:

B=supx,y[a,a]|x+y|=2a.

Thus, f(x)=x2 is Lipschitz on a bounded interval, with B=2a.


2. Lipschitz Constant for the Gradient (Smoothness Constant)

A function is L-smooth (i.e., its gradient is Lipschitz) if:

f(x)f(y)Lxy,x,yRn.

To find L, we compute:

L=supxJf(x)

where Jf(x) is the Jacobian (matrix of partial derivatives) of f at x.

Example 2

f(x)=12x2

  1. Compute the gradient:f(x)=x.
  2. Compute the Lipschitz constant of the gradient:L=supx|f(x)|.

Since |f(x)|=|x| grows indefinitely, f(x) is not smooth on R. But on a bounded domain [a,a], we get:

L=supx[a,a]|x|=a.

So, for a bounded interval, the function is a-smooth.


Lipschitz Constant from the Hessian

For twice-differentiable functions, the Lipschitz constant of the gradient can be found using the Hessian matrix Hf(x). The Lipschitz constant L is given by:

L=supxλmax(Hf(x)),

where λmax(Hf(x)) is the largest eigenvalue of the Hessian matrix.

Example 3

f(x)=x2+y2

The Hessian is:

Hf(x,y)=[2002].

The eigenvalues of this matrix are both 2, so:

L=2.

This means f(x)=x2+y2 is 2-smooth.


Summary

Type of Lipschitz Constant Formula Meaning
Lipschitz function values (B) B=supxy|f(x)f(y)||xy| Controls how fast function values change.
Lipschitz gradient (L-smoothness) L=supx|Jf(x)| Controls how fast the gradient changes.
Hessian-based Lipschitz constant L=supxλmax(Hf(x)) Controls the curvature of the function.