◀ Back to Note

Tony's Intertwingled Memex • Reference Manual

Clairaut's Theorem

Formulas & Definitions
Core Definition

Let f(x,y)f(x, y)f(x,y) be defined on an open disk DDD containing the point (a,b)(a, b)(a,b). If the mixed second-order partial derivative functions fxyf_{xy}fxy​ and fyxf_{yx}fyx​ are both continuous throughout DDD, then:

fxy(a,b)=fyx(a,b)f_{xy}(a, b) = f_{yx}(a, b)fxy​(a,b)=fyx​(a,b)
In Leibniz notation:
∂2f∂y∂x=∂2f∂x∂y\frac{\partial^2 f}{\partial y \partial x} = \frac{\partial^2 f}{\partial x \partial y}∂y∂x∂2f​=∂x∂y∂2f​
Furthermore, this symmetry extends to any order nnn for functions of CnC^nCn smoothness (having continuous nthn^{\text{th}}nth-order partial derivatives): the order in which partial derivatives are evaluated does not affect the final result (e.g., fxxy=fxyx=fyxxf_{xxy} = f_{xyx} = f_{yxx}fxxy​=fxyx​=fyxx​).

Concept Explanation

The Commutative Nature of Mixed Differentiation

In single-variable calculus, operations rarely commute. However, for sufficiently smooth surfaces z=f(x,y)z = f(x, y)z=f(x,y), measuring the rate of change of the xxx-slope as you move in the yyy-direction yields the exact same rate as measuring the change of the yyy-slope as you move in the xxx-direction. Geometrically, both expressions quantify the same local twisting (torsional) curvature of the surface patch over the xyxyxy-plane.

                  f(x, y)
                 /       \
        d/dx    /         \    d/dy
               v           v
              f_x         f_y
               \         /
        d/dy    \       /      d/dx
                 v     v
              f_{xy} = f_{yx}  (Clairaut Symmetry)

The Continuity Requirement (C2C^2C2 Smoothness)

Clairaut's Theorem is guaranteed for all elementary functions (polynomials, rational functions, exponentials, logarithms, and trigonometric functions) on their open domains of definition, because these functions have continuous partial derivatives of all orders (C∞C^\inftyC∞). Pathological counterexamples only occur when the mixed partials suffer jump or infinite discontinuities at isolated points (such as (0,0)(0, 0)(0,0) in certain piecewise rational functions).

Physical Foundations & Conservation Laws

The mathematical symmetry of Clairaut's Theorem is the direct reason why physical nature exhibits reciprocity:

  1. Thermodynamics (Maxwell Relations): The Helmholtz free energy F(T,V)F(T, V)F(T,V) satisfies dF=−SdT−PdVdF = -S dT - P dVdF=−SdT−PdV. Because FFF is a state function with continuous mixed partials:
    ∂2F∂V∂T=∂2F∂T∂V  ⟹  (∂S∂V)T=(∂P∂T)V\frac{\partial^2 F}{\partial V \partial T} = \frac{\partial^2 F}{\partial T \partial V} \implies \left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V∂V∂T∂2F​=∂T∂V∂2F​⟹(∂V∂S​)T​=(∂T∂P​)V​
    Engineers use this to measure entropy changes SSS purely through easily measurable pressure PPP and temperature TTT instruments.
  2. Conservative Forces: A 2D force field F⃗=⟨P,Q⟩\vec{F} = \langle P, Q \rangleF=⟨P,Q⟩ is conservative (meaning work is path-independent) if and only if it is the gradient of a potential function fff (∇f=F⃗\nabla f = \vec{F}∇f=F). By Clairaut's Theorem, fxy=fyxf_{xy} = f_{yx}fxy​=fyx​, which forces the curl condition:
    ∂P∂y=∂Q∂x\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}∂y∂P​=∂x∂Q​

Engineering Applications

  • Civil & Structural Engineering: In structural elasticity, Betti's Reciprocal Work Theorem states that the deflection at point A due to a load at point B equals the deflection at point B due to a load at point A. This symmetry is an immediate physical manifestation of Clairaut's equality of mixed partials of the strain energy potential (see Structural Column Strain Energy Stability (Civil & Mechanical Engineering)).
  • Thermal & Fluid Systems: Equations of state in power plant steam cycles use Maxwell relations to compute unmeasurable thermodynamic enthalpies from temperature and volume sensors.
  • Electrical Circuit Optimization: Hessian matrices in automated audio amplifier control loops are guaranteed to be symmetric by Clairaut's Theorem, cutting computation time in half during real-time matrix inversion (see Automated Audio Amplifier Loop Gain (Electrical & Computer Engineering)).

Example Problems

Example 1: Verifying Clairaut's Theorem for Transcendental Functions

Let f(x,y)=e2xcos⁡(3y)+x4y3f(x, y) = e^{2x} \cos(3y) + x^4 y^3f(x,y)=e2xcos(3y)+x4y3. Verify Clairaut's Theorem by computing both fxyf_{xy}fxy​ and fyxf_{yx}fyx​.

Solution
  1. Compute fxf_xfx​ and fxyf_{xy}fxy​:

    fx=∂∂x[e2xcos⁡(3y)+x4y3]=2e2xcos⁡(3y)+4x3y3f_x = \frac{\partial}{\partial x}[e^{2x} \cos(3y) + x^4 y^3] = 2e^{2x} \cos(3y) + 4x^3 y^3fx​=∂x∂​[e2xcos(3y)+x4y3]=2e2xcos(3y)+4x3y3
    fxy=∂∂y[2e2xcos⁡(3y)+4x3y3]=2e2x(−3sin⁡(3y))+4x3(3y2)=−6e2xsin⁡(3y)+12x3y2f_{xy} = \frac{\partial}{\partial y}[2e^{2x} \cos(3y) + 4x^3 y^3] = 2e^{2x} (-3\sin(3y)) + 4x^3 (3y^2) = -6e^{2x}\sin(3y) + 12x^3 y^2fxy​=∂y∂​[2e2xcos(3y)+4x3y3]=2e2x(−3sin(3y))+4x3(3y2)=−6e2xsin(3y)+12x3y2

  2. Compute fyf_yfy​ and fyxf_{yx}fyx​:

    fy=∂∂y[e2xcos⁡(3y)+x4y3]=−3e2xsin⁡(3y)+3x4y2f_y = \frac{\partial}{\partial y}[e^{2x} \cos(3y) + x^4 y^3] = -3e^{2x} \sin(3y) + 3x^4 y^2fy​=∂y∂​[e2xcos(3y)+x4y3]=−3e2xsin(3y)+3x4y2
    fyx=∂∂x[−3e2xsin⁡(3y)+3x4y2]=−3(2e2x)sin⁡(3y)+3(4x3)y2=−6e2xsin⁡(3y)+12x3y2f_{yx} = \frac{\partial}{\partial x}[-3e^{2x} \sin(3y) + 3x^4 y^2] = -3(2e^{2x}) \sin(3y) + 3(4x^3) y^2 = -6e^{2x}\sin(3y) + 12x^3 y^2fyx​=∂x∂​[−3e2xsin(3y)+3x4y2]=−3(2e2x)sin(3y)+3(4x3)y2=−6e2xsin(3y)+12x3y2

  3. Conclusion: Both expressions match identically:

    fxy=fyx=−6e2xsin⁡(3y)+12x3y2f_{xy} = f_{yx} = -6e^{2x}\sin(3y) + 12x^3 y^2fxy​=fyx​=−6e2xsin(3y)+12x3y2
    Since f(x,y)f(x, y)f(x,y) is a combination of smooth elementary functions, its second partials are continuous on R2\mathbb{R}^2R2, confirming Clairaut's Theorem.

Example 2: Higher-Order Clairaut Symmetry (n=3n = 3n=3)

For w=x3y2z4w = x^3 y^2 z^4w=x3y2z4, show that the mixed third-order partial derivatives wxyzw_{xyz}wxyz​, wxzyw_{xzy}wxzy​, and wzyxw_{zyx}wzyx​ are all equal.

Solution
  1. Compute wxyzw_{xyz}wxyz​ (order: xxx, then yyy, then zzz):
    • wx=3x2y2z4w_x = 3x^2 y^2 z^4wx​=3x2y2z4
    • wxy=6x2yz4w_{xy} = 6x^2 y z^4wxy​=6x2yz4
    • wxyz=24x2yz3w_{xyz} = 24x^2 y z^3wxyz​=24x2yz3
  2. Compute wxzyw_{xzy}wxzy​ (order: xxx, then zzz, then yyy):
    • wx=3x2y2z4w_x = 3x^2 y^2 z^4wx​=3x2y2z4
    • wxz=12x2y2z3w_{xz} = 12x^2 y^2 z^3wxz​=12x2y2z3
    • wxzy=24x2yz3w_{xzy} = 24x^2 y z^3wxzy​=24x2yz3
  3. Compute wzyxw_{zyx}wzyx​ (order: zzz, then yyy, then xxx):
    • wz=4x3y2z3w_z = 4x^3 y^2 z^3wz​=4x3y2z3
    • wzy=8x3yz3w_{zy} = 8x^3 y z^3wzy​=8x3yz3
    • wzyx=24x2yz3w_{zyx} = 24x^2 y z^3wzyx​=24x2yz3 All three evaluate to 24x2yz324x^2 y z^324x2yz3, verifying that Clairaut's symmetry holds for any permutation of differentiation orders.

Connections & References

  • Parent Concepts: Second-Order Partial Derivatives, Partial Derivatives
  • Thermodynamic Parallels: Maxwell Relations in Energy Systems
  • Vector Field Equivalents: Conservative Fields and Irrotational Flow
  • Course Sessions: Calc-3 Session 11