← Back to Blog

Lipschitz and constant

math > linear-algebra

2025-11-272 min read

#linear-algebra #math #vectors #lipschitz

Lipschitz Function

A function ff is called Lipschitz continous (or just Lipschitz) if there exists a constant L0L \geq 0 such that for all points xx and yy in the domain

f(x)f(y)Lxy\|f(x) - f(y)\| \leq L \cdot \|x - y\|

(or more generally, f(x)f(y)Lxy\|\|f(x) - f(y)\|\| \leq L \cdot \|\|x - y\|\| in higher dimensions).

The output of the function can't change faster than a fixed multiple of how much the input changes. In other words, the function is not allowed to have infinitely steep slopes.

Lipschitz Constant

The number LL in the inequality above is called the Lipschitz constant of the function.

Examples

FunctionIs it Lipschitz?Lipschitz Constant (example)
f(x)=5x+2f(x) = 5x + 2YesL=5L = 5
f(x)=sin(x)f(x) = \sin(x)YesL=1L = 1 (because the derivative ≤ 1)
f(x)=x2f(x) = x^2 on [1,1][-1, 1]YesL=2L = 2 (on this interval)
f(x)=x2f(x) = x^2 on all real numbersNoNot bounded (gets steeper as |x| grows)
f(x)=xf(x) = \sqrt{x} on [0, ∞)NoSlope becomes infinite near 0