Derivative along a curve Created 2026-10-14 Updated 2026-10-20
If is differentiable at the point of a differentiable parametric curve, the multivariable chain rule gives
The gradient supplies the local spatial rates; the velocity vector supplies the direction and rate of movement. Their dot product is the change in the sampled scalar field per unit parameter. If the parameter is time, this is a rate per unit time; a directional derivative per unit distance instead uses a unit vector.
Take and the unit circle path . Along the path,
At , the gradient is , the velocity vector is , and their dot product is . The sampled value is and increases at rate one, even though one coordinate is decreasing. This is why a moving observation must combine every coordinate's contribution.
Figure 1.
The gradient and path velocity combine to give the rate of change along a curve
. Left: level curves of , the unit circle path, and arrows at for its velocity vector and a scaled gradient. Right: the sampled function and its tangent line, of slope one at that parameter. The displayed gradient arrow is scaled for readability, without changing its direction. Details.
For a level curve, is constant, so the derivative along a curve is zero and its velocity vector is orthogonal to the gradient. Along other paths, the same formula combines a field's geometry with the observer's motion. [ref].
For a continuously differentiable vector field and a twice continuously differentiable parametric curve , the product rule and multivariable chain rule give
where is the Jacobian matrix. Indeed, first differentiate the dot product to obtain , and then substitute .
The first term describes variation in the sampled vector field; the second records the changing velocity vector of the parametric curve. In three dimensions one may take for a sufficiently smooth vector field . The formula then involves first and second spatial partial derivatives of and the velocity and acceleration of the parametric curve. Omitting the second term would be valid only when its dot product vanishes, for example for a straight path with constant velocity.
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.
Gradient of a radial function Created 2026-10-18 Updated 2026-10-25
For , the multivariable chain rule gives
Indeed, . Thus the gradient points radially outward when , inward when it is negative, and vanishes when it is zero.
At the origin the displayed quotient does not apply. If has a finite right derivative at zero, the radial function is differentiable there exactly when , in which case its gradient is zero. Necessity follows by comparing opposite directional difference quotients: their linear parts cannot both equal a common nonzero radial slope. Sufficiency follows from , the definition of differentiability with zero linear part.
For planar parabolic coordinates and , the multivariable chain rule gives and . Differentiating once more and adding cancels the first partial derivatives and the mixed partial derivatives:
Consequently, on every local coordinate patch away from the origin, is a harmonic function if and only if is a harmonic function. The Laplacian changes by a positive scale factor, so solutions of the Laplace equation are preserved. The restriction away from the origin is needed to divide by the Jacobian determinant.
Logarithmic polar coordinate change Created 2026-10-20 Updated 2026-10-25
This change of variables replaces radius by its negative logarithm: . The angular convention in the title measures from the positive axis toward the positive axis. Its Jacobian determinant is , so it supplies local coordinates on the punctured plane. For a single-valued function , its expression is periodic in with period .
The multivariable chain rule gives
and, for a twice continuously differentiable function,
The first-order correction comes from differentiating the coefficients in the angular operator. Consequently the partial differential equation with the right-hand expression equal to zero becomes the heat equation , with the logarithmic radial coordinate acting as the evolution variable.
Multivariable chain rule 2026-10-14
For differentiable maps and , the multivariable chain rule multiplies their Jacobian matrices:
The outer matrix multiplies the inner matrix, producing an matrix. This order records that the inner linear map acts first. Componentwise, the matrix multiplication sums the contributions of all intermediate coordinates. Existence of separate partial derivatives alone is not the required differentiability hypothesis.
Following a parcel. Let be a fluid pathline, with . The multivariable chain rule gives the material derivative,
The first term measures change at fixed position; the advection term accounts for the parcel moving through spatial gradients. The derivative is also called the Lagrangian derivative.
The forces on a parcel. A material volume has mass . The pressure forces on its boundary sum to , while the gravitational acceleration is . Newton's second law therefore gives the Euler equations for an inviscid fluid,
This neglects viscosity and other body forces. The left side is the parcel's acceleration, not just the time derivative at a fixed spatial location.
Bernoulli conservation. The claimed streamline result needs steady flow and a barotropic fluid, , or an equivalent enthalpy relation along each isentropic streamline. These hypotheses are necessary; the unsteady Euler equation alone does not imply the stated conservation law. Define the barotropic enthalpy function
Dot the steady Euler equation with , using . This gives
Thus the Bernoulli function is
Every term has units of energy per mass, . Different streamlines can have different constants.
The spherical accretion equation. Write the inward speed as , so the velocity vector is and the positive mass accretion rate is
Assume a prescribed central potential and negligible gas self-gravity. The steady radial Euler equation is
For a barotropic equation of state, , with . Eliminate the density derivative to obtain
A smooth sonic point requires the right side to vanish where , hence
For a nonisothermal gas this is an implicit relation involving the local sound speed. In the isothermal case is constant and this is the Bondi sonic point.
The isothermal integral. For , choose the enthalpy reference so that . The reservoir is at rest at infinity and , making its Bernoulli constant zero. Thus
or
The logarithm has a dimensionless argument. Constant temperature during compression generally requires heat removal, so this is Isothermal Bondi accretion, rather than adiabatic accretion with .
The critical accretion rate. Select the smooth reservoir-connected transonic branch. Evaluate the last relation at and :
Mass conservation then gives the isothermal Bondi accretion rate,
The units are . Equivalently , with .
The inner-boundary selection of isothermal Bondi flow is important: a standard absorbing accretor inside the sonic radius selects this critical solution. The steady equations and alone also admit subcritical subsonic branches supported by a different inner boundary; they do not by themselves fix a unique rate. The usual answer presumes transonic capture.
Figure 1.
Original numerical transonic isothermal accretion profiles, normalized by the sonic radius and outer density; the speed becomes supersonic inside the sonic point
. Details.
Following a fluid element. Let be a pathline, satisfying . The material derivative, also called the Lagrangian time derivative, is the rate observed while following that element. The multivariable chain rule gives
The partial derivative holds position fixed; the advection term accounts for motion through a spatially varying field. For a vector field, the same formula applies component by component in fixed Cartesian axes.
Momentum balance. For an inviscid flow, pressure is the only surface stress. A small material volume has net pressure force , obtained by the divergence theorem. Its mass is and its material acceleration is . Applying Newton's second law gives the Euler equations for an inviscid fluid,
This is the local momentum conservation equation when viscosity and physical body forces are absent. A prescribed body force per unit mass would add on the right.
Changing to rotating coordinates. In a rotating frame with constant angular velocity , the lab acceleration is the rotating-frame material acceleration plus . Therefore
For uniform rotation,
With constant , this gives the Euler equation in a uniformly rotating frame,
The term subtracted from is the equilibrium centrifugal contribution. Dividing the bracket by defines a reduced pressure , with units . The Coriolis acceleration remains a velocity-dependent term.
Linear disturbances. Linearize about rest in the rotating coordinates, with the equilibrium part of removed. The advective acceleration is quadratic in disturbance amplitude, so the linearized Euler equations and incompressible flow condition are
Taking the curl removes the pressure gradient. The identity
gives the inertial-wave vorticity equation,
Plane-wave frequencies. Let and use the given plane wave convention. Incompressible flow requires , and the vorticity equation gives
For a nonzero frequency, apply again, using . It follows that
This is the inertial-wave dispersion relation. If is the angle of the wavevector to the rotation axis, the positive angular frequency is . It is largest, , for a parallel wavevector, decreases to zero for a perpendicular one, and is independent of the magnitude of the wavenumber at fixed direction. The two signs describe the two oscillatory polarization branches. When , the zero-frequency result is obtained directly from the linear equations rather than by dividing by ; it describes the nonoscillating balanced limit.
First method: substitute the trajectory. Along the parametric curve, the temperature is . The chain rule gives
Second method: use the spatial derivatives. The partial derivatives of the scalar field are and , while the velocity components are and . The multivariable chain rule therefore gives
which agrees with the first calculation. This is the gradient dotted with the velocity, rather than a partial derivative at a fixed position.
The Black-Scholes reflection symmetry becomes a weighted reflection after taking a logarithm. Put and . The multivariable chain rule transforms the equation into
For , its left-hand side, after removing the factor , is
evaluated at . Taking makes the derivative coefficient and the additional zeroth-order term zero. Thus
satisfies the same Black-Scholes equation.
The multivariable chain rule first gives
Taking a second partial derivative in each variable, with the partial derivatives of evaluated at , gives
The mixed partial derivatives cancel even without using their equality. Hence the Laplacians satisfy
Away from the origin the factor is positive, so is a harmonic function if and only if is a harmonic function on the corresponding local coordinate patch. This is the Laplacian in planar parabolic coordinates.
The multivariable chain rule gives and . Substitution into the differential equation yields
The coordinate transformation is invertible exactly when .
The multivariable chain rule gives and . Therefore
so . The terms cancel identically, independently of the particular function .
Assume are continuously differentiable near the point and . The implicit function theorem supplies a local function with
At an interior extremum of , the multivariable chain rule gives
Multiply these identities by and , respectively, and subtract. The terms containing cancel, giving
No assumption is needed for this elimination; dividing by would unnecessarily exclude valid cases. If , this particular local graph argument is unavailable and a different chart or the full Lagrange multiplier condition is needed.
For an oriented piecewise smooth parametric curve and a continuous vector field along it, the vector-field line integral is
For a piecewise smooth curve, sum these integrals over its smooth pieces. The dot product selects the component of the vector field in the direction of motion.
If for a smooth function , the multivariable chain rule gives
The fundamental theorem of calculus, with cancellation at intermediate endpoints, therefore proves the fundamental theorem for line integrals:
On a closed curve , so .
Solve the two algebraic constraints for the squared coordinates:
On any nonsingular real branch, implicit differentiation at fixed gives and . Differentiating with the other original coordinate fixed gives and . Therefore
This is the multivariable chain rule applied to . These formulas assume the relevant denominators are nonzero and the chosen variables are valid local coordinates.
Differentiate both algebraic constraints at fixed or fixed :
The multivariable chain rule for therefore gives
Divide the first identity by and the second by , and add. The terms cancel, leaving
The Jacobian determinant of is , so the calculation is valid on real branches with . This explicitly supplies the local independence assumption underlying the change of coordinates.
The coordinate partial derivatives are , , , and . Apply the multivariable chain rule to :
All partial derivatives of are evaluated at . This is a logarithmic polar coordinate change; its Jacobian determinant is , so it is locally invertible away from the origin. A full angular turn repeats the same point, as usual for polar coordinates.
Differentiate with respect to , remembering that its coefficients also depend on . The product rule and multivariable chain rule give
For a twice continuously differentiable , equality of mixed partial derivatives gives . Hence
The first-order terms come from differentiating and themselves; treating as an operator with constant coefficients would miss them.