The structure of Maxwell relations is a statement of equality among the second derivatives for continuous function. It follows directly from the fact that the order of differentiation of an analytic function of two variables is irrelevant (Schwarz theorem). In the case of Maxwell relations the function considered is a thermodynamic potential and xi and xj are two different natural variables for that potential