Advanced Differentiation
Advanced Differentiation extends the basic derivative to multiple variables, higher orders, implicit and parametric forms, and abstract settings. Key result in words: the derivative is best understood as a linear approximation (the total derivative / Jacobian), from which gradients, directional derivatives, the chain rule, and Taylor expansions all follow. Where it applies: optimization, physics, differential geometry, numerical analysis, machine learning. Who/when: developed by Newton and Leibniz (1660s–1680s), formalized by Cauchy, Weierstrass, and Fréchet (19th–early 20th century).
The derivative at a point is not fundamentally a number or a slope — it is the best linear approximation to a function near that point. In one variable this linear map is multiplication by ; in variables it is multiplication by the Jacobian matrix. Every advanced rule (chain rule, implicit differentiation, Taylor expansion) is a statement about composing or refining these linear approximations.
Formal Statement
For , the partial derivative with respect to at is the ordinary derivative obtained by holding all other variables fixed:
where is the -th standard basis vector, , and .
Derivation hint: Restrict to the line and apply the single-variable derivative definition.
A function is differentiable at if there exists a linear map such that
Here , and denotes the Euclidean norm. The matrix of is the Jacobian.
Derivation hint: The condition says the error in the linear approximation vanishes faster than ; this is the multivariable version of .
For scalar , the gradient is the vector of partials:
For vector-valued , the Jacobian matrix is
The total derivative acts as .
Derivation hint: Expand in the standard basis; the -th column is , which equals the -th partial.
If is differentiable at , then is continuous at and all partial derivatives exist there, with given by the Jacobian. Converse warning: existence of all partials does not imply differentiability; a sufficient condition is that the partials exist and are continuous in a neighborhood ().
If is differentiable at and is differentiable at , then is differentiable at and
In matrix form this is a product of Jacobians.
Derivation hint: Compose the two linear approximations and show the cross-error terms are .
If has continuous second partial derivatives near , then
Derivation hint: Apply the mean value theorem twice to the second difference quotient and use continuity to interchange limits.
If near , then for small,
using multi-index notation , , , , and remainder . To second order:
where is the Hessian matrix of second partials.
Derivation hint: Restrict to the line , apply single-variable Taylor to , and use the chain rule to express in directional derivatives.
Why It Holds / Derivation
Step 1. Let . By differentiability of , write where .
Step 2. By differentiability of at , write where .
Step 3. Set . Then
Step 4. Group: the linear part is . The remainder is .
Step 5. Since is bounded linear, . Since , . Both vanish faster than , establishing differentiability of with derivative .
∎Step 1. Define the second difference .
Step 2. Fix and let . Then . By the MVT, for some .
Step 3. Apply the MVT again in to : .
Step 4. By a symmetric argument (differencing in the other order) .
Step 5. Divide by , let , and use continuity of both mixed partials to conclude .
∎Cauchy gave the limit-based definition of the derivative that underpins rigorous multivariable calculus, replacing Leibniz's intuitive infinitesimals with – precision. His work on functions of several variables and on convergence laid the groundwork for the modern Jacobian and the careful treatment of differentiability versus mere existence of partials. Cauchy's insistence on rigor made it possible to state precisely when the rules of advanced differentiation are valid.
Building Intuition
Picture standing on a hillside described by elevation . The partial derivative is the slope you feel walking due east; is the slope walking due north. The gradient points in the direction of steepest ascent, and its magnitude is that maximum slope. The total derivative bundles all directions together: it says that very close to your feet, the hill looks like a flat tilted plane — the tangent plane — and that plane is the derivative. The Hessian then captures the curvature: whether you're in a valley (positive definite), on a ridge (negative definite), or at a saddle (indefinite).
Worked Examples
Given: at the point . Find (a) the gradient, (b) the directional derivative in direction , (c) the direction of steepest ascent.
Step 1. Compute partials: , .
Step 2. Evaluate at : , . So .
Step 3. Directional derivative .
Step 4. Steepest ascent is along ; the unit direction is , with maximum rate .
Given: The level surface defines implicitly as a function of near the point . Find and there.
Step 1. Let . Compute , , .
Step 2. By the implicit function theorem, and .
Step 3. Evaluate at : , .
Step 4. Check: , so the implicit function theorem applies (the surface is non-vertical here).
Common Misconceptions
Existence of partial derivatives does not imply differentiability. A function can have both and at a point and still fail to have a tangent plane — it may not even be continuous there. Differentiability (equation [2]) is a stronger condition requiring a single linear map to approximate along all directions simultaneously, not just along the coordinate axes. The safe sufficient condition is : continuous partials in a neighborhood.
Consider
At the origin, and similarly , so both partials exist. Yet along the line , for all , so is not even continuous at the origin. By the theorem above, cannot be differentiable there despite having both partials.
For (and ), one computes but . The second mixed partials disagree because they are not continuous at the origin, violating the hypothesis of Clairaut's theorem. This shows equation [6] genuinely requires continuity.
Connections
Advanced differentiation is the engine of Multivariable Optimization: critical points where are classified by the Hessian via the second-derivative test. It underpins Lagrange Multipliers for constrained extrema, where gradients of objective and constraint must be parallel. The total derivative generalizes to Differential Forms and Differential Geometry, where it becomes the pushforward of tangent vectors. In analysis, it leads to the Implicit Function Theorem and Inverse Function Theorem, both proven via the contraction mapping principle applied to the linear approximation. The infinite-dimensional version is the Fréchet Derivative used in the calculus of variations.
Real-World Applications
Historical Development
Subtleties & Limits
The interplay between the order of differentiation and regularity remains subtle in infinite dimensions and in nonsmooth analysis. Functions arising in optimization (e.g., the max of finitely many smooth functions) are only piecewise differentiable, prompting the theory of generalized gradients (Clarke subdifferentials) and automatic differentiation correctness for non-differentiable points. In partial differential equations, the question of when weak (distributional) derivatives coincide with classical ones — and the regularity of solutions — connects to deep open problems, including the regularity question for the 3D Navier–Stokes equations. How to define and compute derivatives robustly for stochastic and non-smooth objects is an active research area.
See Also
Gradient · Jacobian Matrix · Hessian Matrix · Chain Rule · Taylor's Theorem · Fréchet Derivative · Implicit Function Theorem · Directional Derivative