10

In calculus, I would presume that the notion of continuous differentiability is important, which is why we have classes $C^1, C^2,\ldots,C^n$ which are defined in terms of having a continuous $n$th derivative. But why? Why is the derivative being continuous relevant at all?

What is the motivation for defining $C^n$ in terms of not merely being $n$ times differentiable, but $n$ times continuously differentiable? For which (important) theorems in single and multivariable calculus is the hypothesis of continuous differentiability absolutely required?

It is not required for either the fundamental theorem of calculus or integration by substitution, though it is often presented as being such.

  • 3
    The implicit function theorem is extremely important –  Jul 05 '16 at 03:18
  • 2
    If it's $n$ times differentiable, then it's at least $n-1$ times continuously differentiable, since only continuous functions can be differentable. But that last derivative might fail to be continuous even if it's everywhere defined. $\qquad$ – Michael Hardy Jul 05 '16 at 03:46
  • It is important in different places. I remember now the change of variable in an integral, by example, where $\int_a^b (f\circ g)g'=\int_{g(a)}^{g(b)} f$ and $g'$ must be continuous. – Masacroso Jul 05 '16 at 03:50
  • 1
    @Masacroso I don't think so, see: http://math.stackexchange.com/questions/1734023/why-is-the-hypothesis-of-continuous-differentiability-necessary-for-integration/1734029#1734029 – MathematicsStudent1122 Jul 05 '16 at 03:51
  • @Masacroso: that is not true, either. But the proof of Taylor's formula is easier with the $C^n$ assumption, so plenty of books go that way. – Jack D'Aurizio Jul 05 '16 at 04:47

3 Answers3

8

For real functions, the difference between $C^n$ and $n$-times-differentiable is quite thin: see, for instance, Lebesgue differentiation theorem or Darboux's theorem. We may prove Taylor's formula in both contexts, but the strategy is a bit different: to use De l'Hopital theorem for $n$-times differentiable functions or just repeated integration by parts for $C^n$ functions (that is easier).
The continuity of a derivative plays a major role in the implicit function theorem, but if the destiny of the functions we are manipulating is to be put under an integral sign, we may essentially neglect such subtlety: if $f$ is a differentiable function and $f'$ is a weak derivative of $f$, $$ f(0)+\int_{0}^{x}f'\,d\mu $$ is a regularized version of $f(x)$ that equals $f(x)$ almost everywhere.

Jack D'Aurizio
  • 353,855
5

For subsequent use, define the function $$ \phi(x) = \begin{cases} x^{2} \sin(1/x^{2}) & x \neq 0, \\ 0 & x = 0, \end{cases} $$ which is differentiable on the entire line, but $\phi'$ is unbounded in every neighborhood of $0$ (and, in particular, is discontinuous at $0$).

  • The $x$-axis is tangent to the graph $y = \phi(x)$ at the origin. Arbitrarily close to the origin, however, there exist lines that are tangent to the same graph, but arbitrarily close to vertical (i.e., with arbitrarily large positive or negative slope). That's not exactly a violation of a theorem, but does violate naive expectations. (By contrast, if $f$ is of class $C^{1}$, then "nearby points have nearby tangent lines".)

  • Let $f$ be a differentiable real-valued function on some open interval containing $[a, b]$. Working with the Riemann integral, the conclusion of the second fundamental theorem $$ \int_{a}^{b} f'(x)\, dx = f(b) - f(a) \tag{1} $$ is not automatic, because $f'$ may fail to be Riemann integrable. (For example, take $f = \phi$ and $a < 0 < b$.) Equation (1) does hold, however, if $f$ is of class $C^{1}$.

  • If $M > 0$ is arbitrary, the function $f(x) = \phi(x) + Mx$ is differentiable and satisfies $f'(0) = M$, but there is no interval about $0$ on which $f' > 0$, and therefore (by the Mean Value Theorem) no interval about $0$ on which $f$ is increasing. This type of phenomenon does not occur for $C^{1}$ functions.

  • Similarly, with $f$ as in the preceding item, the function $F(x) = \int_{0}^{x} f(t)\, dt$ is twice-differentiable everywhere, but not of class $C^{2}$. Though $F''(0) = M > 0$, there is no neighborhood of $0$ on which $F$ is convex.

This shows a sampling of "well-known calculus facts" that hold for continuously-differentiable functions $f$, but that go awry when the first (or second) derivative is discontinuous at one point. In fact, there exist differentiable functions whose derivative is (e.g.) discontinuous on a set of full Lebesgue measure. See David Renfro's epic answer to Chris Janjigian's question How discontinuous can a derivative be? for details.

  • Is it accurate that "there exist lines that are tangent to the same graph, but arbitrarily close to vertical (i.e., with arbitrarily large positive or negative slope)"? According to Wikipedia, the derivative is $\phi'(x) = 2x \sin(1/x) - \cos(1/x)$, and we know that $\lvert\cos y| \leq 1$ and $\lvert\sin x| \leq |x|$, so $|\phi'(x)| = |2x \sin(1/x) - \cos(1/x)| \leq |2x \sin(1/x)| + \lvert\cos(1/x)| = 2|x| \lvert\sin(1/x)| + \lvert\cos(1/x)| \leq 2|x| |1/x| + 1 = 2|x/x| + 1 = 2 + 1 = 3$. – Sam Estep May 04 '18 at 12:24
  • @SamEstep Very belated response (just saw your comment): Yes, the assertion is correct. The example in this answer is not Wikipedia's example of a differentiable but not $C^1$ function; there is an extra factor of $1/x$ inside the sine, which makes the steepness arbitrarily large. – Andrew D. Hwang Nov 11 '22 at 21:20
5

One reason $C^1$ is important is its practicality. Namely, there is a theorem that if $f$ is $C^1$ on an open set $U$ then $f$ is differentiable at all points of $U$. It's usually pretty easy to check $C^1$: often you simply look at the form of the coordinate functions of $C^1$ and observe, from your knowledge of elementary calculus, that they are differentiable and their derivatives are continuous. And once you've completed that check, voila, you conclude that $f$ is differentiable.

$C^2$ is also practical, namely via the theorem on equality of mixed 2nd partials (and, similarly, $C^n$ implies equality of mixed $n$th partials).

Lee Mosher
  • 120,280