Directional derivative Created 2026-09-24 Updated 2026-10-14
The directional derivative tests a function along a chosen straight line, including lines that follow neither coordinate axis. For a fixed vector and a point in an open subset of , defineif the limit exists. With a unit vector , the parameter measures signed distance in the input Euclidean space, so the directional derivative is change per unit distance. For a general , it is change per unit parameter; the norm of also sets the rate of travel.[ref]
4.6 Directional Derivatives and the Gradient. Calculus Volume 3, §4.6, definition (4.36), unit-direction convention
For a differentiable real-valued function, the multivariable chain rule givesThus one gradient predicts the local response in every direction. This formula requires differentiability, rather than merely separate partial derivatives.[ref]
Return to at . Its gradient is . In the unit direction ,One can check this without invoking the gradient formula: substitution givesThe difference quotient is , whose limit is . This calculation separates the exact change along a finite path from its first-order rate at the starting point.
Changing the travel speed changes the parameter rate. Taking gives , because the input travels five distance units per parameter unit. For a differentiable function, for any real : negative reverses the orientation as well as scaling the rate. Normalizing before comparing different slopes avoids confusing direction with speed.
The Cauchy-Schwarz inequality bounds the rate in any unit direction by . Here the largest rate is , attained in the direction ; the chosen gives the slightly smaller rate . The perpendicular unit direction gives zero. That means no first-order height change, rather than no change at all: along this direction the example has .
This is useful for following a height or temperature scalar field, choosing a local search direction in mathematical optimization, and distinguishing a coordinate sensitivity from a response along an actual path. For a curved path, derivative along a curve uses its instantaneous tangent vector. Even existence of all directional derivatives does not guarantee one common linear approximation; directional derivatives do not imply differentiability gives a concrete counterexample.
The direct product of integrable Hamiltonian systems is integrable. Pull each family's commuting integrals of motion back to the product phase space. Integrals from different factors have zero Poisson bracket because they use disjoint canonical coordinates, and their differentials are independent wherever the differentials within each factor are independent.
Partial derivative Created 2026-09-24 Updated 2026-10-14
A partial derivative measures the local response of a function to one input while its other inputs stay fixed. For a function on an open subset of , its partial derivatives at are the limitswhen the respective limits exist. Each is an ordinary derivative of a one-variable slice: or . This is why the other variable is treated as a constant during partial differentiation.[ref]
4.3 Partial Derivatives. Calculus Volume 3, §4.3, definitions (4.12)–(4.13) and the one-variable slice interpretation
For an original example, take the polynomial functionHolding fixed gives , while holding fixed gives . At , the height is and the two partial derivatives are and . The values answer different experiments on the same mathematical model: change alone, or change alone.
The two exact slices through that point areDividing either height change by gives or ; taking the limit recovers the two slopes. At , the finite height changes are and , although their linear approximations are and . A derivative measures the limiting response, rather than an exact finite change.
Two coordinate slices through one point give different partial derivatives
. Original contour plot of , with the point and coordinate paths. The right panel compares the exact slice height changes and with their tangent line predictions and . Both slices pass through height . Details.For a function of variables, varies only its th coordinate: it is the same difference quotient along , the th standard basis vector. This gives a practical sensitivity analysis: one can compare how a mathematical model responds to changes in its individual inputs, provided the chosen system of units and the quantities held fixed are stated. Comparing the numerical sizes of two partial derivatives in different units does not by itself identify a physically preferable input.
Existence of the partial derivatives at one point is weaker than differentiability. The example under partial derivatives do not imply continuity shows how both coordinate tests can miss a bad diagonal approach. When the first partial derivatives are continuous in a neighborhood, they do give differentiability there, allowing the total differential to combine all small input changes.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 32C a Solution Created 2026-09-24 Updated 2026-09-29
In canonical coordinates, Hamilton's equations areA function is an integral of motion if it is constant along every Hamiltonian flow, equivalentlyfor a time-independent . The system is an integrable Hamiltonian system when it has first integrals whose differentials are linearly independent almost everywhere and which are in mutual Poisson involution: for all .
Past exam of the mathematics course of the University of Cambridge 2022 ia Paper 3 9A b Solution Created 2026-09-24 Updated 2026-09-25
Differentiating the spherical coordinate systemgives the orthogonal decompositionwhereThus the scale factors of orthogonal coordinates are
If for a twice continuously differentiable potential , then and . Equality of mixed partial derivatives gives the necessary condition for an exact differential:This condition alone does not ensure global exactness on a domain with holes.
For the Helmholtz free energy , use the stated identity for internal energy and the product rule:Thus and . Equality of mixed partial derivatives yields the Maxwell relationThe temperature and volume are the independent variables here, with composition and amount of gas fixed.
Next express and substitute its total differential into :Matching the coefficient of givesThis is the thermodynamic internal pressure identity: an equation of state determines how internal energy changes under an isothermal change of volume.
For the Dieterici equation, set while differentiating at fixed . ThenSubstitute into the thermodynamic internal pressure identity. The term proportional to cancels , leavingThe physical gas domain has and .
For the ideal gas instead, gives . Therefore is independent of volume at fixed amount of gas. Integrating the remaining condition , with constant heat capacity at constant volume, giveswhere is independent of both and and fixes the reference for internal energy.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2005 Paper 2 7 a Solution Created 2026-10-18 Updated 2026-10-20
The required Legendre transform is the Helmholtz free energy, up to an additive constant. Its differential is , so and . Equality of mixed partial derivatives for a smooth thermodynamic state gives the Maxwell relationNext use the total differential . Along a fixed-pressure path, divide by to get . Substitute the Maxwell relation to obtainMultiplying by gives the usual difference between the heat capacity at constant pressure and the heat capacity at constant volume.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2005 Paper 2 7 b Solution Created 2026-10-18 Updated 2026-10-20
At fixed entropy, the total differential in coordinates is . Dividing by along that path gives . The same argument in coordinates gives . These are the two required intermediate identities.
To prove the final result without cancelling a possibly vanishing thermal-expansion derivative, write , , , . In a regular thermodynamic region with , fixed pressure gives , while fixed entropy gives . The chain rule then gives and . Both cross-products equal , provingThe heat-capacity and compressibility ratio identity rewrites this as : keeping entropy fixed rather than temperature fixed changes the mechanical stiffness by the same factor as the two thermal responses.
Let and work where both and are nonzero, so the required inverse partial derivatives exist. At fixed , the total differential gives , hence . At fixed , . Their product with is : this is the cyclic partial derivative identity.
For explicit verification in this example, put and . Direct differentiation givesThereforeThe identity is local to regular branches: for these explicit formulas require . At singular points one cannot justify cancellation of nonexistent inverse derivatives merely by writing a formal product.
Treat and as constants and use the total differential in the independent variables :Each coefficient differentiates with respect to its displayed variable while holding the other two fixed; the formula applies where .
The two coefficients are the corresponding partial derivatives of . Therefore the differential form is exact, withThe arbitrary constant does not change the total differential.
Assume is continuously differentiable near the point of interest on , and that the relevant denominators below are nonzero. The total differential on the surface isHolding fixed gives , so the implicit function theorem givesWhen , their product proves the reciprocity rule for constrained partial derivatives:Similarly, holding or fixed gives and . With , multiply the three ratios:This is the cyclic partial derivative identity. Nonzero denominators and local differentiable coordinate representations are substantive assumptions: at a singular coordinate representation, a formal cancellation of zero or infinite factors is not a valid proof.
Take the total differential of the logarithm of the relativistic energy, with the speed of light fixed:Using the chain rule,Every term is a dimensionless fractional change. The differential relation is exact; applying it to finite small changes is a first-order Taylor expansion.
Set in the relative total differential and use the two equal mass increases:Thus the separation must increase by . In this special case the result is also exact: the mass product increases by , and preserving the inverse-square force requires , hence .
For the force magnitude in Newton's law of universal gravitation, the total differential isDividing by the positive value gives the particularly useful relative formFor finite small changes this gives the first-order approximation to the fractional change; higher-order products of increments are omitted.
The stated total differential is that of , so . The zero-volume condition gives . For positive , divide the total differential by this volume to obtainFor the specified small changes, , so the volume increases by approximately . The fractional expression requires ; at a degenerate zero-volume state it is undefined. For finite changes, the exact multiplier is , whose difference from is ; the total differential gives its first-order approximation.
The Pythagorean theorem gives . Taking a total differential gives , soThe area of the right triangle is , so the product rule gives andThe prescribed small changes therefore give : the area decreases by approximately . For comparison, retaining the product of the two finite percentage changes gives , an exact decrease of ; the total differential retains only the first-order terms.
The chain rule gives , so the given total differential is exact. Thus ; two such functions differ by a constant because their gradient difference vanishes on the connected plane. The assigned value at the origin forces , giving
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2004 Paper 1 1 Solution Created 2026-10-18 Updated 2026-10-20
Compare the total differential with and . The orthonormality of the coordinate basis gives the gradient in orthogonal coordinates:To obtain the curl without neglecting the variation of the basis vectors, write . The curl of a gradient vanishes, and the product rule givesLikewise because the system is right-handed. This cross product has zero divergence: . The divergence product rule applied to now givesCyclic permutation and linearity give the general component formulas described by divergence and curl from orthogonal coordinate gradients:andIn cylindrical coordinates, . The specified field has no dependence or component, soIt is an irrotational vector field for every exactly when . This statement is local to an angular coordinate chart: the component proportional to is not single-valued under .
Total differential Created 2026-09-24 Updated 2026-10-14
The total differential is the linear map that combines the first-order responses to simultaneous changes in all coordinates. For a differentiable real-valued function at , it can be writtenHere is an input vector; denotes the coordinate linear functional . The coordinate formula and the Fréchet derivative describe the same linear map. The defining approximation isThe little o notation says the remaining approximation error becomes small relative to the input norm, across every direction of approach.[ref]
4.4 Tangent Planes and Linear Approximations. Calculus Volume 3, §4.4, differentiability definition (4.26) and total differential (4.27)
For at , . A simultaneous change gives the linear approximationThe exact algebra isConsequently the exact change is , and the approximation error is . If both input changes are halved, the linear prediction becomes and the error becomes : the first-order response halves, while the quadratic error falls by a factor of four. The right panel under directional derivative displays this comparison as the displacement is scaled.
For a quick check of differentiability, givesDividing by makes this bound tend to zero. The same calculation proves that the tangent plane to the graph of a function at is . It approximates the entire local surface, rather than only two coordinate slices.
The total differential is useful for estimating the combined effect of small input changes without reevaluating a complicated function. For example, if and , then . The exact remainder bound from the displayed polynomial is at most , so this example has throughout that input rectangle. These are deterministic bounds; a variance calculation additionally needs a joint probability distribution and its covariances. A first-order estimate is also local: large changes require control of the remainder, not merely knowledge of the partial derivatives at one point.

