A model with two products needs two marginal rates. Changing one output while holding the other fixed is different from changing both along a production constraint. Partial derivatives describe coordinate changes; the total derivative combines them; constrained optimization restricts which changes are feasible.
1 Partial and total derivatives
Definition 3.1.1
(Partial derivative at a point)
Let be open, let , and let . The th partial derivative is the limit
when that finite limit exists. We also write . For two variables, and .
Definition 3.1.2
(Gradient and repeated partial derivatives)
When all first partial derivatives exist at , the gradient is
We use the convention : first differentiate with respect to , then with respect to . A function is of class on an open set if all partial derivatives of orders at most exist and are continuous there.
Theorem 3.1.3
(Algebra of partial derivatives)
If and have an th partial derivative at , then so do and , with
If also , the quotient is defined along the coordinate line sufficiently near and
Definition 3.1.4
(Differentiability: linear approximation with a little-o remainder)
Let be open and . We say is differentiable at if there is a linear map such that
The map is the derivative, denoted . The notation abbreviates the displayed limit.
Definition 3.1.5
(Linearization and total differential)
The linearization of at is the affine function
For a scalar-valued differentiable function ,
The first-order predicted change is called the total differential:
Theorem 3.1.6
(Consequences and uniqueness of a derivative)
If is differentiable at , it is continuous at . Its coordinate partial derivatives exist there and are the columns of . The linear map satisfying the differentiability definition is unique.
Proof
(Continuity, coordinate derivatives and uniqueness)
A linear map in finite-dimensional Euclidean spaces has a bound for some constant . The defining expansion therefore gives
Thus is continuous at . Set in the expansion and divide by . The remainder tends to zero after division, so the th coordinate derivative is .
If both and satisfy the definition, subtraction gives . Taking shows for every basis vector. A linear map is determined by its values on a basis, so .
Theorem 3.1.7
(Continuous first partial derivatives are sufficient)
Let be defined on an open set. If all first partial derivatives exist on a neighbourhood of and are continuous at , then is differentiable at . In particular, every function on an open set is differentiable there. The same statement applies component by component to a vector-valued function.
Proof
(Why continuous partial derivatives control every direction)
For two variables, write the change from to as two coordinate changes:
The one-variable mean value theorem gives intermediate coordinates between and , and between and , so the change equals
After subtracting , divide the absolute remainder by . Since each coordinate increment has absolute value at most this norm, the ratio is at most
Both terms tend to zero by continuity. Zero coordinate increments simply omit the corresponding difference. In more variables, telescope along the coordinate directions in the same way.
Worked example 3.1.8
(A continuous function with partial derivatives but no derivative)
Define
The inequality gives , so is continuous at zero. Both coordinate restrictions vanish, hence both partial derivatives at zero are zero.
If a derivative existed, its coordinate columns would force it to be the zero map. Its remainder would then be itself. Along ,
for every nonzero . The required ratio does not tend to zero. Thus the function is continuous and has both coordinate derivatives, but is not differentiable at the origin.
Definition 3.1.9
(A derivative in a specified direction)
Let be defined on an open neighbourhood of , and let be a unit vector. The directional derivative is
when the finite two-sided limit exists. Because , the parameter measures signed distance along the line.
Theorem 3.1.10
(Matrix chain rule)
Let be differentiable at , and let be differentiable at . Assume are open and the composite is defined near . Then
The matrix sizes are .
Proof
(Composing two linear approximations)
Write , and . For a small input displacement,
Put . The outer expansion is
Substitution gives the linear term and remainder . A linear-map bound shows that for all sufficiently small . Consequently , and the outer remainder estimate gives as well. At this remainder is zero. Thus the composite has the required linear approximation with derivative .
Theorem 3.1.11
(Rates along curves and the gradient)
If is differentiable at and is differentiable at , then
In particular, for a unit vector ,
If , the maximum unit directional rate is , attained in the direction ; the minimum is its negative, attained in the opposite direction.
For unit direction , the directional derivative is . By Cauchy–Schwarz it is at most , attained in the gradient direction when the gradient is nonzero. A direction must be normalized if the question asks for change per unit distance.
Unit directions and the steepest rate: proof
Assume is differentiable at an interior point of an open subset of , and put . For a real unit vector , differentiability gives , so .
The needed Cauchy–Schwarz bound follows directly from a square:
Thus . Equality holds precisely when is a scalar multiple of . If , the maximum is , at , and the minimum is , at the opposite unit vector. If , every unit direction gives zero; there is no distinguished steepest direction. For nonzero , change per unit distance uses ; the unnormalized rate is per unit path parameter and scales with its speed.
2 Curvature and unconstrained extrema
For a twice continuously differentiable , the Hessian is
At a stationary point , a second-order expansion is . A positive-definite Hessian gives a strict local minimum, negative definite a strict local maximum, and an indefinite Hessian a saddle. Singular semidefinite cases (semidefinite but neither positive definite nor negative definite) require further work: and have the same zero Hessian at zero but different behavior.
A symmetric matrix is positive definite if its upper-left entry and determinant are positive. Completing the square proves this: .
3 Worked product-mix example
Consider the invented profit model
Stationarity gives , , hence . The Hessian is . More strongly, expanding about gives
Since away from zero, this is the unique global maximum even before restricting to the nonnegative domain. It is feasible, so it also solves the stated constrained problem.
Now impose . Substitute with . Then , maximized at , , with value 109. The equality constraint changes the optimal point.
Alternatively, at a regular interior constrained optimum, for . Indeed, every tangent direction satisfying must have , making the gradients parallel. This is a necessary condition, not a guarantee of a maximum. If inequalities or boundary corners are present, substitution and explicit boundary checks may be simpler than an unqualified multiplier calculation.
Counterexample mode
A constrained optimum without a multiplier
Claim: every constrained optimum satisfies for some . Maximize subject to . On the constraint , so , and the maximum value occurs only at . There but , so no works. The failed hypothesis is regularity, : at this cusp the constraint has no tangent line, and the argument through tangent directions has nothing to act on.
4 Graded practice
E1 Foundation. For , find the gradient and Hessian and estimate the change from to .
E2 Chain rule. If , , , compute in two ways.
E3 Constraint. Maximize subject to and . Explain why checking only fails.
E4 Curvature. Classify the origin for and for .
5 Full solutions
S1. , so . The Hessian is . The linear estimate is . The exact change adds , so is .
S2. Composition gives , whose derivative is . The chain rule gives , the same expression.
S3. Substitute : . The unique maximum is 36 at ; endpoints give zero. The unconstrained gradient vanishes only at , which is not feasible. Feasible directions, not all plane directions, govern the constrained problem.
S4. takes both signs arbitrarily near zero, so the origin is a saddle. is nonnegative, so the origin is a global but non-strict minimum; every point on has the same value. Its semidefinite Hessian does not give a strict minimum.
Summary
Partial derivatives measure coordinate effects; differentiability justifies combining them into a linear approximation. Hessians analyze curvature, while constraints restrict feasible directions. A complete application checks feasibility, boundaries and sufficient evidence for optimality, rather than stopping at stationary equations.