Assuming that (J(x,y)) is twice continuously differentiable (or satisfies the regularity conditions needed to apply Clairaut's theorem), then the mixed partial derivatives commute.
More precisely, let (x \in \mathbb{R}^n) and (y \in \mathbb{R}^m) so that:
- (\nabla_x \nabla_y J(x,y)) is an (n \times m) matrix whose ((i,j)) entry is
[
\left(\nabla_x \nabla_y J(x,y)\right)_{ij} = \frac{\partial^2 J}{\partial x_i \partial y_j}.
]
- (\nabla_y \nabla_x J(x,y)) is an (m \times n) matrix whose ((j,i)) entry is
[
\left(\nabla_y \nabla_x J(x,y)\right)_{ji} = \frac{\partial^2 J}{\partial y_j \partial x_i}.
]
By the equality of mixed partial derivatives (Clairaut's theorem), we have:
[
\frac{\partial^2 J}{\partial x_i \partial y_j} = \frac{\partial^2 J}{\partial y_j \partial x_i}.
]
This implies that:
[
\left(\nabla_x \nabla_y J(x,y)\right){ij} = \left(\nabla_y \nabla_x J(x,y)\right){ji},
]
which is exactly the statement that:
[
\nabla_x \nabla_y J(x,y) = \left(\nabla_y \nabla_x J(x,y)\right)^T.
]
Thus, yes, under the assumption that (J) is sufficiently smooth (specifically, that its mixed second derivatives exist and are continuous), (\nabla_x \nabla_y J) is the transpose of (\nabla_y \nabla_x J).