Multivariable Differential Calculus
Differentiability as local linearization, with gradients, chain rules, tangent geometry, Taylor models, and constrained optimization under explicit regularity conditions.
A derivative in several variables is not a list of slopes. It is the single linear map that best predicts the output change caused by every sufficiently small input change. Partial derivatives are coordinates of that map when the map exists; they are not, by themselves, proof that it exists.
Functions, domains, and limits #
A scalar field is a function . A vector-valued map has the form . Before differentiating, identify the actual domain. Roots, logarithms, denominators, and inverse trigonometric functions can create boundaries or holes that later affect tangent formulas and conservative-field tests.
The limit
means that every sufficiently near point of the domain, regardless of its direction of approach, gives a value near . Testing paths is therefore asymmetric:
- two paths with different limits disprove the multivariable limit;
- agreement along many selected paths does not prove the limit.
A reliable proof usually bounds by an expression depending only on .
For example,
satisfies
so as .
Differentiability is a linear approximation #
A map is differentiable at if there is a linear map such that
For a scalar field ,
For a vector-valued map, the matrix of is the Jacobian
A practical sufficient condition is that all first partial derivatives exist in a neighborhood of and are continuous at . This is sufficient, not necessary.
Why partial derivatives are weaker #
The function
has both coordinate partial derivatives equal to zero at the origin. Along , however, . It is not even continuous there, so it cannot be differentiable. Coordinate-axis behavior did not control all directions.
Chain rule and total differential #
If is differentiable at , and is differentiable at , then
This is matrix multiplication because a small increment is transformed twice:
For , , and ,
The total differential
is the linear part of the change, not an equality with the finite change . More precisely,
A sensitivity calculation with units #
For an ideal resistor, electrical power is
At and , the power is . The two partial derivatives at that operating point are
If the voltage rises by while resistance rises by , the total differential predicts
The exact new power is , a change of about . This is what the derivative does in an engineering model: it converts a vector of small input changes or tolerances into a first-order output change without re-evaluating every nearby case. A Jacobian does the same job for several outputs at once.
Gradient and directional derivatives #
For a unit vector , differentiability gives
Cauchy–Schwarz then yields
When , the steepest increase is in the gradient direction, the steepest decrease is opposite it, and the maximum rate is .
The unit-vector condition matters. If is not normalized, is the derivative per unit of the parameter multiplying , not per unit distance.
For a regular level surface , any tangent curve satisfies
Thus is normal to the surface only when . At singular points the usual tangent-plane formula can fail or cease to determine a unique plane.
Taylor models and the Hessian #
If is twice continuously differentiable near , then
where is the Hessian matrix.
At a stationary point, , the quadratic form gives the leading local shape:
- positive definite Hessian: strict local minimum;
- negative definite Hessian: strict local maximum;
- indefinite Hessian: saddle point;
- semidefinite or singular Hessian: the test is inconclusive.
“Inconclusive” does not mean “no extremum.” Both and have zero Hessian at the origin, but the first has a minimum and the second a saddle.
Unconstrained and constrained extrema #
For a differentiable function, an interior local extremum must satisfy . Absolute extrema on a compact domain require more work:
- find interior critical points;
- analyze every boundary component;
- include corners, endpoints, and singular boundary points;
- compare the function values.
The boundary step is essential. A Hessian test sees only local interior behavior.
For a smooth constraint , a constrained local extremum with satisfies
The reason is geometric: feasible velocities lie in the tangent space , and at an extremum for every such . Hence both gradients are normal to the same tangent space.
The multiplier equation is only a candidate condition. Classify candidates by comparing values or by restricting second-order changes to tangent directions.
Worked constrained example #
Interpret and as loads assigned to two channels whose required total is . Suppose their normalized losses are and , so the second channel penalizes additional load more strongly. Minimize subject to .
Set . Then
so , hence . Together with , this gives . Because the constraint is a closed affine line and is strictly convex, this candidate is the unique global minimum, with value .
The strict-convexity argument is stronger than merely solving the multiplier equations: it supplies global uniqueness.
The optimum assigns more load to the less costly channel. At the marginal losses, and , are equal. If they were unequal, moving a small amount of load from the higher-marginal-loss channel to the other would reduce the total. That marginal balance is the operational meaning of the multiplier condition.
Failure modes #
- Treating partial derivatives as proof of differentiability.
- Using several matching paths as proof of a limit.
- Writing a tangent plane to without checking .
- Calling a directional derivative without normalizing .
- Applying the Hessian test at a nonstationary point.
- Declaring “no extremum” when the Hessian test is inconclusive.
- Solving only for an absolute-extremum problem and ignoring the boundary.
- Using Lagrange multipliers where the constraint gradient vanishes, or applying a second-order test in all directions instead of feasible tangent directions.
Sources
- bookDifferential and Integral Calculus of Functions of Several Variables and Differential Equations: Lecture Notes and Practicumpdfnotes
- bookOpenStax Calculus Volume 3, Chapter 4
- bookTangent Planes and Linear Approximations
- bookThe Chain Rule
- bookMaxima/Minima Problems
- bookLagrange Multipliers
- bookOpenStax University Physics Volume 2 — Electrical Energy and Power