For a continuously differentiable vector field on all of , the necessary and sufficient condition for a conservative vector field is . Necessity follows from equality of mixed partial derivatives of a potential; sufficiency uses the being a simply connected space. On a general domain the topology cannot be omitted.
Here the relevant mixed partial derivatives are
Thus the curl vanishes. Integrating the first component in gives . Matching the second component gives , hence . Matching the last component forces . A potential of a conservative vector field with the convention is consequently
If a physical potential is defined instead through , it is .
Fix and a sufficiently small rectangle inside . Its rectangular increment
can be evaluated twice using the fundamental theorem of calculus, giving
Divide by and let . Continuity of the mixed partial derivatives makes the two limits and . They are equal everywhere on .
Repeated interchange of adjacent partial derivatives reduces every order- derivative of a smooth function to , . Hence there are at most distinct functions. This maximum is attained by , whose listed partial derivatives are the distinct functions . The answer is , rather than the possible written orders.
For the supplied , for , whereas . It is not even continuous at the origin, so is neither differentiable nor infinitely differentiable there.
For , . Thus , proving Fréchet differentiability at the origin with derivative zero. However,
including zero at the origin. Therefore and . is differentiable but not infinitely differentiable at the origin: it cannot have continuous second partial derivatives near that point.
Use the inverse change of variables and . The chain rule gives the differential operators
The mixed partial derivatives cancel, assuming the twice continuously differentiable solution appropriate here. Consequently .
The transformed equation is
The factors of belong to the inverse Jacobian matrix; using the forward transformation instead would give an incorrect factor.