0

Let $n$ be a positive integer. Find a function $f$ over $\mathbb{R}$ that is $n$ times differentiable but $f^{(n)}$ is not continuous.

We know that all the derivatives $f',f'',...,f^{(n-1)}$ are all continuous, but how do we find a function where the last derivative is not continuous? The function we make up can't have absolute values obviously, so I was thinking it is going to have to be piecewise.

user19405892
  • 15,592

2 Answers2

4

Hint:

$$f(x)=\begin{cases}x^2\sin(1/x) & x\neq 0\\ 0 & x=0\end{cases}$$ is once differentiable. The derivative exists for all $x$, but the derivative is not continuous. Try higher powers of $x$ to get a function that is more times differentiable.

Plutoro
  • 22,730
  • 3
  • 41
  • 71
2

Consider $$ g(x) = \begin{cases} x^2 \sin(1/x) &\mbox{if } x \neq 0 \\ 0 & \mbox{if } x=0. \end{cases} $$ This is a differentiable function with discontinuous derivative (see Discontinuous derivative.). Then you can integrate $g$. (Check Prove that integral of continuous function is continuously differentiable)

In other words you find $f$ such that $f^{(n-1)}=g$. So $f$ is $n$ times differentiable and $f^{(n)}=g'$ is discontinuous.

Kal S.
  • 3,781