Examples of differentiable functions with bounded but discontinuous derivatives

612 Views Asked by At

I am looking for examples of functions $f:\mathbb{R} \rightarrow \mathbb{R}$ that:

  • are differentiable, and
  • have discontinuous but bounded derivatives.

I believe that a function satisfying these conditions must also be (globally) Lipschitz continuous.

The only example I know of is $f(x) = \left\{ \begin{array}{c l} x^2\cdot \sin\left(\frac{1}{x}\right) & ,\quad x\neq0\\ 0 & ,\quad x=0 \end{array} \right.$, so examples besides this one would be most helpful.

My question is inspired by having recently proven that if a differentiable function $f$ has a bounded derivative, then $f$ is Lipschitz. A differentiable function with a continuous derivative is also Lipschitz, but requiring $f'$ to be continuous is not necessary for Lipschitz continuity. This exercise made me curious about examples of differentiable functions that meet the bounded derivative requirement but not the (stricter) continuous derivative requirement.

Thanks in advance for any suggestions!

1

There are 1 best solutions below

2
On

An example is $f(x)=x^2\sin(1/x)$. Your claim is true, since for example Lagrange theorem doesn't require the derivative to be continous, and then the bound on the derivative is a suitable Lipschitz constant.