I am looking for an example to help supplement my understanding of what a "smooth function" is. If possible could someone come up with an example with one variable and another where there are two variables?
-
10How about integrating a continuous but not differential function two times! – Ehsan M. Kermani Mar 09 '12 at 05:58
-
related: http://math.stackexchange.com/questions/22839/questions-about-derivative-and-differentiation – Mar 09 '12 at 06:05
-
Check out this post: http://math.stackexchange.com/q/113148/22405 The solution to your question is the same (and follows ehsanmo's suggestion), you just have to integrate twice instead of once. – Brett Frankel Mar 09 '12 at 06:09
2 Answers
It's very easy to come up with such functions. Suppose we have the function that is identically $0$ on all $\mathbb{R}$ except $[0,2]$, $1$ on $(0,1)$, and $2$ on $[1, 2)$. It's clearly integrable, and so is the integral of its integral.
But differentiating the integral of its integral would clearly give this very discontinuous function.
Or you could play with the example of functions like $f(x) = x^2 \sin(1/x)$, and $0$ at $0$ (which is differentiable, but not continuously differentiable at $0$).

- 91,687
Here's a very quick one-variable answer.
Let $$f(x) = \frac{1}{6} x^{3} \textrm{sgn}(x).$$
You can see a plot of it on WolframAlpha.
Then $$f'(x) = \frac{1}{2} x^{2} \textrm{sgn}(x)$$ and $$ f''(x) = |x|.$$
The second derivative is continuous, but not differentiable. The function $\textrm{sgn}(x)$ is $+1$ when $x$ is positive and $-1$ when $x$ is negative.

- 6,635