I know this question has been asked a lot, but please bare with me as there is a nuance that has confused me.
I thought I understood the definition of $C^1([0,1])$. However, I recently asked a question here and the comments made me realise I may have a fundamental misunderstanding. I have always thought that $f \in C^1([0,1])$ meant that $f$ is continuous on $[0,1]$ and is continuously differentiable on $[0,1]$.
However, as noted to me in the comments on the referenced question, I've realised I don't understand what it means to say a function is continuously differentiable on a closed set. Which of the following does it mean:
- $f$ is continuously differentiable on $(0,1)$ and the left and right derivatives of $f$ exist at $0$ and $1$, respectively, and the resulting derivative is continuous on $[0,1]$.
- There is an open set $U$ containing $[0,1]$, over which $f$ is continuously differentiable.
Or, are the statements $(1)$ and $(2)$ equivalent? The reason I ask is that I always assumed the former definition was correct, and therefore I thought that for an arbitrary compact set, $T\subset \mathbb{R}^N$, you could say something similar like:
$$\textbf{(1*)} \quad f \in C^1(T) ~\text{ iff } ~f \text{ is continuously differentiable on Int}(T) \text{ and, for any}$$
$$\text{ sequence of points tending to }\partial T\text{ the limit of the}$$
$$\text{ derivative at those points is well defined and is a continuous$$ $$\text{ extension of the derivative on Int(}T) $$
with the statement being vacuously true for isolated points of $T$. However, I now realize this isn't standard, and the texts I have been referring to have been a little ambiguous on this point (for instance in page 22 of this text). An alternative notion for compact $T$ based on statement $2$ above could have been given by:
$$\textbf{(2*)} \quad f \in C^1(T) ~\text{ iff } ~\exists \text{ an open }T'\supset T, \text{ such that }f \in C^1(T')$$
Would $\textbf{(1*)}$ and $\textbf{(2*)}$ be equivalent (and if not, what is a counterexample)? It seems to me that $\textbf{(1*)}$ resembles the conditions of Whitney's Extension Theorem in some way, and $\textbf{(2*)}$ in some way resembles how differentiability is defined on a smooth manifold with boundary that is a subset of $\mathbb{R}^N$ (in the sense of John Lee's Introduction to Smooth Manifolds).
You are close, but not quite there (or perhaps you just took too many shortcuts in writing $1$ and $2$). Replace $1$ by this:
Also, replace $2$ by this:
With those corrections, $1'$ and $2'$ are equivalent, and each of them is (by definition in the case of $1'$) equivalent to $f \in C^1[0,1]$.
Other equivalent variations are possible. For example in $2'$ the closing clause could be replaced by "$f' : U \to \mathbb R$ is continuous" in this position, and the statement would still be equivalent.