7
$\begingroup$

I'm taking a intro to mathematical analysis course and I'm having trouble understanding this definition.

They are talking about how it can be interesting to see what happens if you take the derivative of a function multiple times (this is discussed in the intro to Taylor polynomials). They throw this definition at us, which they call $C^kfunctions$:

A function $f: I \rightarrow \mathbb{R} $ belongs to $C^k(I)$ if it is possible to take the derivative of the function k times on $I$ and if $f^{(k)}(x)$ is continuous on $I$

I'm a little confused by this. Aren't all functions $C^\infty$ then? Can't you just keep taking the derivative of a function even if it becomes $0$? Specifically I'm on a chapter now where they are discussing curve integrals and they keep mentioning that it is a $C^2$ function. What does this mean? Can you only take the derivative 2 times?

I'm confused and can't wrap my mind around it. I would love if anyone was able to explain it in such a way that I could understand and apply it. Thanks in advance.

$\endgroup$
7
  • $\begingroup$ Most functions are differentiable infinite many times, at least in a suitable interval. Of course, one can construct "pathological" functions for nearly every property. Still a big class of functions are differentiable on $\mathbb R$ infinite many often, like the sine-function, the cosine-function, $e^x$ , the polynomials and any composition of those functions. $\endgroup$
    – Peter
    Commented Jun 18, 2019 at 7:44
  • 4
    $\begingroup$ @Peter Depends on what you mean by "most". $\endgroup$ Commented Jun 18, 2019 at 17:21
  • 7
    $\begingroup$ @Peter Most mathematicians would say most functions are not differentiable at all $\endgroup$
    – Bananach
    Commented Jun 18, 2019 at 18:31
  • $\begingroup$ See here for an example of a function where the derivative of a function isn't differentiable. $\endgroup$ Commented Jun 18, 2019 at 20:19
  • $\begingroup$ @JohnColeman It also depends on what your definition of "is" is. $\endgroup$ Commented Jun 18, 2019 at 20:20

4 Answers 4

31
$\begingroup$

As an example:

  • $f(x)=6|x|$ does not have a derivative at $x=0$
  • $g(x)=3x|x|$ does have a first derivative everywhere of $f(x)$ but not a second derivative at $x=0$
  • $h(x)=x^2|x|= |x^3|$ has a first derivative everywhere of $g(x)$ and a second derivative of $f(x)$ but not a third derivative at $x=0$
$\endgroup$
0
10
$\begingroup$

I'll address your points one by one. If you have further questions, please ask away:

Aren't all functions $C^\infty$ then? No. Examples of functions whose $k$-th order derivative is not continuous abound for every $k$. It is true that $C^1$ functions are very similar to $C^\infty$ functions, but for the time being it is better to focus on the ones we will encounter.

There are even functions that are continuous but not derivable at any point. One of them is the Weierstrass function, and I'm pretty sure you'll encounter it further down the road in this course. If you find this read difficult to follow, don't worry, I'm sure your lecturer will give you great explanations (and you are of course welcome to ask).

Can't you just keep taking the derivative of a function even if it becomes $0$? $0$ is just another value a derivative can take. There are some functions that lack a derivative. Some do have a derivative. Of these, some are zero; some are not.

Specifically I'm on a chapter now where they are discussing curve integrals and they keep mentioning that it is a $C^2$ function. What does this mean? Can you only take the derivative 2 times? Not exactly. It means that the second derivative is continuous, but it says nothing about the third one, because it doesn't really matter. $C^3$ functions are also $C^2$: note that if you can do something like taking derivatives three times you can also do it twice, but being able to do it twice is no guarantee you can go on and do it a third time.

$\endgroup$
3
  • $\begingroup$ It didn't even cross my mind that there existed functions where you couldn't take the derivative but of course that makes sense! I already had all the information to make this conclusion myself but it just hadn't clicked in my mind. This suddenly makes way more sense, thank you so much! $\endgroup$
    – VictorVH
    Commented Jun 18, 2019 at 7:41
  • $\begingroup$ You're welcome! Also, look at the other answers (esp. @Henry's), where you have some of the most common isolating examples, i.e. of functions that are $C^k$ but not $C^{k+1}$ for a certain $k\in\mathbb N$. $\endgroup$ Commented Jun 18, 2019 at 7:47
  • $\begingroup$ @VictorVH: Another thing to bear in mind is that you might take a derivative and get a function which is not continuous. The classic example is $f(x)=x^{2}\sin(1/x),$ with $f(0)=0.$ $\endgroup$
    – Will R
    Commented Jun 18, 2019 at 20:20
7
$\begingroup$

Some functions have a derivative that cannot be further differentiated.

For example, consider the function $f(x) = |x|$. It is not differentiable but it can be integrated. Any antiderivative $F(x)$ of $f(x)$ will be differentiable and we have $F'(x) = f(x)$. Since $f$ is continuous, $F \in C^1$ but since $f$ is not differentiable, $F \notin C^2$.

$\endgroup$
0
7
$\begingroup$

I think a picture can help explain what's going on here. Below is a graph of a function (red) and its derivative (blue). The original function is differentiable, which we can see by its lack of "sudden turns". However, the derivative is not, as evidenced by the "pointy turn" at $(0,0)$.

\begin{align} \text{(red)} \qquad f(x) &= x \cdot |x| \qquad\qquad \qquad \\ \text{(blue)} \quad\,\,\, f'(x) &= 2 \cdot |x| \qquad\qquad \qquad \end{align}

Example of C1 Function with its derivative

Part of the reason why this idea can be confusing is that the original (red) function looks smooth, but it's not smooth by the math definition since its first derivative isn't differentiable. While $f(x)$ has no pointy bits, it has the spirit of one inside, just waiting to be released.

(By the way, if you're wondering how we derive $f'(x)$ you can see that here.)

$\endgroup$

Not the answer you're looking for? Browse other questions tagged .