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 , define
if 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]
For a differentiable real-valued function, the multivariable chain rule gives
Thus 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 gives
The 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.
Figure 1.
Directional derivatives compare directions; a total differential predicts small finite changes
. Left: for at , the rate in the unit direction is . Right: along the displacement , the exact height change is , compared with its linear approximation . All curves are exact calculations for the example, rather than measured data. Details.
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 limits
when 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]
For an original example, take the polynomial function
Holding 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 are
Dividing 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.
Figure 1.
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.
In canonical coordinates, Hamilton's equations are
A function is an integral of motion if it is constant along every Hamiltonian flow, equivalently
for 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 .
Differentiating the spherical coordinate system
gives the orthogonal decomposition
where
Thus the scale factors of orthogonal coordinates are
Since the total differential satisfies
comparison of coefficients gives the gradient
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 relation
The 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 gives
This 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 . Then
Substitute into the thermodynamic internal pressure identity. The term proportional to cancels , leaving
The 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, gives
where is independent of both and and fixes the reference for internal energy.
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 relation
Next use the total differential . Along a fixed-pressure path, divide by to get . Substitute the Maxwell relation to obtain
Multiplying by gives the usual difference between the heat capacity at constant pressure and the heat capacity at constant volume.
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 , proving
The 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 gives
Therefore
The 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 .
Assume is continuously differentiable near the point of interest on , and that the relevant denominators below are nonzero. The total differential on the surface is
Holding fixed gives , so the implicit function theorem gives
When , 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 is
Dividing by the positive value gives the particularly useful relative form
For 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 obtain
For 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 , so
The area of the right triangle is , so the product rule gives and
The 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
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 gives
Likewise because the system is right-handed. This cross product has zero divergence: . The divergence product rule applied to now gives
Cyclic permutation and linearity give the general component formulas described by divergence and curl from orthogonal coordinate gradients:
and
In cylindrical coordinates, . The specified field has no dependence or component, so
It 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 written
Here 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 is
The little o notation says the remaining approximation error becomes small relative to the input norm, across every direction of approach.[ref]
For at , . A simultaneous change gives the linear approximation
The exact algebra is
Consequently 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, gives
Dividing 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.