I have seen many "variations" of Schwarz's theorem on mixed partial derivatives. I found one in a lecture note that states that:
Given f: $A \subseteq \mathbb{R}^n \longrightarrow \mathbb{R}$. A is an open set. $x \in A$
If the following statements are true:
- f is differentiable at x.
- Given $i, j = 1,2,...,n$ (i,j are fixed now). These two derivatives: $\frac{\partial f^2}{\partial x_i\partial x_j}$ and $\frac{\partial f^2}{\partial x_j\partial x_i}$ exist at any point in a neighborhood of x, and they are continuous at x.
then $\frac{\partial f^2}{\partial x_i\partial x_j} = \frac{\partial f^2}{\partial x_j\partial x_i}$
I want to know if the theorem above is correct. Is the existence at all points in a neightborhood of x and the continuity at x of all second derivatives a necessary condition for the theorem to hold?