Are constant functions Lipschitz?

1.8k Views Asked by At

Are constant functions Lipschitz? If they are, then how do we calculate the Lipschitz constant?

2

There are 2 best solutions below

0
On

Any $L$ with $|f(x)-f(y)|\le L|x-y|$ for all $x,y$ is a Lipschitz constant for $f$. So if $f$ is constant, any $L\ge0$ is a Lipschitz constant.

0
On

Yes, for, if $f$ is a constant function then every $C > 0$ is such that $|f(x) - f(y)| = 0 \leq C|x-y|$ for all suitable $x,y$.