Recently I have seen two different definitions of continuous differentiability for a real-valued function of several variables $f(\mathbf{x}) = f(x_1,\ldots,x_n)$ on a set $E \subseteq \mathrm{int} \operatorname{dom} f \subseteq \mathbb{R}^n$:
-
Real-valued function of several variables $f(\mathbf{x}) = f(x_1,\ldots,x_n)$ is said to be continuously differentiable on a set $E \subseteq \mathrm{int} \operatorname{dom} f \subseteq \mathbb{R}^n$ if for each $\mathbf{x}_0 \in E$ the following holds: all first-order partial derivatives of $f$ are defined in some neighborhood $U(\mathbf{x}_0)$ and are continuous at $\mathbf{x}_0$.
-
Real-valued function of several variables $f(\mathbf{x}) = f(x_1,\ldots,x_n)$ is said to be continuously differentiable on a set $E \subseteq \mathrm{int} \operatorname{dom} f \subseteq \mathbb{R}^n$ if it is differentiable at every point of $E$ and its derivative $f'(\mathbf{x})$ is continuous at every point of $E$ (as vector function).
I guess that these two definitions are equivalent if the set $E$ is open (I think this basically follows from Theorem 9.21 from Rudin's Principles of Mathematical Analysis). But they don't seem to be equivalent if the set $E$ is not open.
So which of these two definitions is more correct and popular, especially in the context of mathematical optimization problems ?
(as far as I know, in optimization problems we often have a function $f(\mathbf{x})$ which is continuously differentiable on a set $E \subseteq \mathrm{int} \operatorname{dom} f \subseteq \mathbb{R}^n$, where the set $E$ is called the feasible set of the problem $\min_{\mathbf{x} \in E} f(\mathbf{x})$)
Edit. I think there exist two more definitions that seem reasonable. However, I have not seen them in textbooks (for the considered case of $E \subseteq \operatorname{int} \operatorname{dom} f \subseteq \mathbb{R}^n$).
-
Real-valued function of several variables $f(\mathbf{x}) = f(x_1,\ldots,x_n)$ is said to be continuously differentiable on a set $E \subseteq \mathrm{int} \operatorname{dom} f \subseteq \mathbb{R}^n$ if there is an open set $U$, such that $E \subseteq U \subseteq \operatorname{int} \mathrm{dom} f$ and $f \in C^1(U)$
-
Real-valued function of several variables $f(\mathbf{x}) = f(x_1,\ldots,x_n)$ is said to be continuously differentiable on a set $E \subseteq \mathrm{int} \operatorname{dom} f \subseteq \mathbb{R}^n$ if $f|_{\operatorname{int} E} \in C^1(\operatorname{int} E)$ and all first-order partial derivatives of $f|_{\operatorname{int} E}$ extend continuously up to $E$.