Exact Equations and Entropy
M dx + N dy = 0 is exact when it is dF for some F. Then solutions are level curves of F, and Clairaut's theorem gives the test M_y = N_x. Entropy is the thermodynamic example: dQ is not exact, but dQ/T is.
The equation
Consider
Suppose there is a function with and . Then the left side is the total differential of :
So the equation says . When such an exists, the equation is called exact.
Why solutions are level curves
Write a step along a curve as , where . Then
This is a directional derivative, but is not a unit vector, so it gives the change over the step rather than the rate per unit distance .
The step is always perpendicular to , so never changes along the curve. The solution curves are the level curves .
The test: Clairautโs theorem
If the equation is exact, then and , so and . When has continuous second partials, Clairautโs theorem gives , so
Clairaut only gives this direction: exact implies . So the condition is necessary but not sufficient on its own. If the test fails, no exists. If it passes, is guaranteed only when the region is simply connected (no holes). On a region with a hole, such as the plane minus the origin, can hold with no . On a simply connected region, you find by integrating in and matching the result against .
Entropy
Heat is not an exact differential: there is no function whose differential is . So is not a state function. The heat absorbed is path dependent: two processes between the same endpoints can absorb different amounts of heat. Dividing by temperature fixes this, and acts as an integrating factor. The result is the differential of a state function, the entropy:
The last form holds when the heat goes into raising the temperature, with heat capacity . For constant , .
Why exactness matters:
- An exact differential means the vector field is conservative: it is the gradient of a potential function .
- Then for every path, and around every loop. That is path independence.
- Path independence makes (from a fixed reference ) depend only on the state . That is a state function. In thermodynamics, the potential function is the state function.
- When a differential is not exact, there is no function to differentiate: is just the small amount of heat absorbed over a step (like work along a displacement), and the field is not conservative. Physicists often write or to flag this.
- fails this test: a cycle can absorb net heat, so heat is path dependent. For reversible processes passes, giving .
Why the log:
- weighs heat by the relative change in temperature, not the absolute change. Heat added at low counts for more than the same heat at high .
- Summing relative changes gives a log, since . Going from 100 K to 200 K adds the same entropy as going from 200 K to 400 K.
- The same pattern shows up elsewhere. Each binary search step halves what remains, so the step count is . Information (the term in cross-entropy) counts surprise by proportion: halving always adds one bit. Perceived intensity, and arguably perceived time, scales with ratios (the WeberโFechner law).
Example: ideal gas
For a reversible step in coordinates, an ideal gas obeys
so the underlying vector field is :
- is the heat absorbed per degree at constant volume.
- is the heat absorbed per unit volume at constant temperature. For an ideal gas, internal energy depends only on , so along an isothermal step all absorbed heat goes into work .
Clairautโs test fails:
The field has nonzero curl and is not conservative, so no state function exists and a cycle can absorb net heat.
Dividing by gives
Now the cross-partials match:
The rescaled field is conservative, so it is the gradient of the entropy state function .