Module 1: Mathematical methods · Lesson 1.2 · about 45 min
Partial derivatives, Jacobians and exact differentials
How to differentiate functions of several variables, the chain rule, total differentials and error estimates, exact and inexact differentials (why heat and work depend on the path), the cyclic rule, Jacobians, maxima, minima and saddles, and Lagrange multipliers.
Module 1 · about 45 minutes. By the end you will be able to take partial derivatives and use the multivariable chain rule, estimate changes and experimental errors with the total differential, test whether a differential is exact and find its potential, use the reciprocal and cyclic rules that thermodynamics depends on, compute Jacobians, classify stationary points, and solve constrained problems with Lagrange multipliers.
1. Partial derivatives: freeze everything else
For , the partial derivative (also written ) is the ordinary derivative in with treated as a constant:
Geometrically, slice the surface with the plane : you get a curve, and is its slope. Slicing with gives . Move the point below and watch the two slices and their tangent lines.
Mixed partials commute. If the second partial derivatives are continuous, (Clairaut’s or Schwarz’s theorem). This innocent fact is behind exactness, Maxwell’s relations and .
In thermodynamics the variable held constant matters, so it is written as a subscript: means “change at fixed ”. For an ideal gas , but is something else entirely.
2. The total differential and the chain rule
If changes by and by , the change in is, to first order,
That is a two-variable Taylor series cut after the linear terms. Dividing by gives the chain rule: if and both depend on , then . Every path by which reaches contributes one term.
Implicit differentiation. On a curve , , so
On the circle at : .
Error propagation. Take logs before differentiating a product of powers. For :
For the maximum error the sizes always add (assume the worst signs). For independent random errors they add in quadrature instead: .
Worked example. is known to 0.5% and to 0.2%. Maximum error in : . The period counts double because it is squared.
3. Exact and inexact differentials
A differential is exact if it is for some function . Then its integral between two points is just , the same for every path, and zero round any closed loop.
Why: if and , the two sides are the two mixed partials of .
Worked example. Show that is exact and find with .
- Test: and . Exact.
- Integrate in : .
- Match with : . So .
The classic mistake is to integrate in , in , and add: the shared term is then counted twice.
- Exact (dF)
- the change of a state function: its integral depends only on the end points
- Inexact (đQ, đW)
- a small amount of something that depends on the path, not a change of anything
- Integrating factor
- a function that multiplies an inexact differential into an exact one
- Physical meaning
- Internal energy, entropy and enthalpy are state functions (exact). Heat and work are not: for an ideal gas đQ = CVdT + (RT/V)dV fails the test, but dividing by T gives dS, which passes. That 1/T is the integrating factor behind the second law.
“P dV is exact because P and V are state variables.” Wrong. Each of and is a state function, but is not the change of anything: with and as variables, fails the test. That is why the work done in a cycle (the area on a diagram) is not zero, and why engines work. By contrast is exact.
4. The reciprocal and cyclic rules
For three variables linked by one equation , any two can be chosen freely. Two rules follow, and thermodynamics uses them constantly:
The minus sign surprises everyone. Check it with : , , . The product is .
Worked example. For one mole of a van der Waals gas, . With : , so . The attraction between molecules makes the internal energy depend on volume; for an ideal gas it would be zero. More on this in thermodynamic potentials and Maxwell relations.
Euler’s theorem. If scaling every variable by multiplies by (homogeneous of degree ), then . For , .
5. Jacobians: how areas stretch
When you change variables from to , small areas stretch by the Jacobian:
For polar coordinates it is ; for spherical coordinates . Two facts save time: the Jacobian of the inverse map is the reciprocal, , and Jacobians chain like fractions. Lesson 1.3 puts them to work in integrals.
Worked example. For , : , so .
6. Maxima, minima and saddles
At a stationary point both first partials vanish. The second derivatives decide what kind it is, through :
| Condition | Type |
|---|---|
| , | local minimum |
| , | local maximum |
| saddle point | |
| test says nothing |
Worked example. . Stationary points: and , so . At : , , a minimum. At : , a saddle, even though along the -axis alone it looks like a maximum.
Lagrange multipliers. To make stationary while , set : at the best point the level curves of and touch. For the largest with : , so and the maximum is 64. The same method derives the Boltzmann distribution in statistical physics.
- A partial derivative holds every other variable fixed; in thermodynamics the subscript says which. Mixed partials commute when continuous.
- gives the chain rule, implicit slopes and error estimates (take logs; maximum errors add in size).
- is exact when ; then it has a potential and path-independent integrals. Heat and work are inexact; makes exact.
- Reciprocal rule, and the cyclic rule with its .
- Jacobians stretch areas: for polar, for spherical; the inverse map has the reciprocal Jacobian.
- Stationary points: sorts minimum, maximum and saddle. Constraints: .
Practise: exam questions on this lesson
They start easy and climb to top-rank level. Check each answer, then read the full solution. More on the partial derivatives practice page.
Before this: lesson 1.1, limits and Taylor series. Next: lesson 1.3, double and triple integrals, where Jacobians turn awkward regions into rectangles. The gradient, which packs all the partial derivatives into one vector, is the subject of lesson 1.5, and exact differentials return as state functions in the first law.
Go deeper: for GATE, partial derivatives drive Lagrangian mechanics and partial differential equations.
Check yourself
Sources
- M. L. Boas, Mathematical Methods in the Physical Sciences, 3rd ed. (2006), chapter 4: partial differentiation
- K. F. Riley, M. P. Hobson and S. J. Bence, Mathematical Methods for Physics and Engineering, 3rd ed. (2006), chapter 5
- H. B. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed. (1985), chapter 7 (Maxwell relations and Jacobians)
- IIT JAM Physics syllabus (Mathematical Methods section), published by the organising IIT each year
Your ticks stay in this browser. Save them as a file on the course home.
Updated 2026-11-22. Not affiliated with IIT or the JAM organising institute. Exam pattern as published for recent years: always check the official JAM website before the exam. All questions are original.