Let $f:\mathbb{R}^n \to \mathbb{R}$. Let $x_0 \in \mathbb{R}^n$. Assume $n-1$ partials exist in some open ball containing $x_0$ and are continuous at $x_0$, and the remaining $1$ partial is assumed only to exist at $x_0$. A well known result states that this implies $f$ is differentiable at $x_0$.
My question is whether or not this can be strengthened. Can we replace "$n-1"$ in the above theorem with some function $g(n)$ "smaller" than $n-1$, and replace "remaining $1$ partial" with "remaining $n-g(n)$ partials"?
Feel free to play with assumptions slightly. For instance, you can replace "continuous at $x_0$" with "continuous at $x_0$ and in some open ball containing $x_0$".
For $n = 2$ it is not sufficient to assume that the 2 partial derivatives merely exist.
This generalizes to abitrary $n$. Assume we could take $g(n) = n-2$. Consider any function $f : \mathbb{R}^2 \to \mathbb{R}$ and define $F : \mathbb{R}^n \to \mathbb{R}, F(x_1,\ldots,x_n) = f(x_1,x_2)$. We have $\frac{\partial F}{\partial x_i}(\xi^0) = 0$ for $i= 3,\ldots,n$ and could therefore conclude that $F$ is differentiable at $\xi^0$ if the first two partials exist at $\xi^0$. But this would imply that $f$ is differentiable at $(\xi_1^0,\xi_2^0)$ which is not true in general.