Before this section. 1.1 One variable mean value and Taylor proofs.
Several directional rates do not automatically assemble into a good linear approximation. The central analytical question is whether one linear map controls the error for every sufficiently small displacement, not just along a chosen line. This distinction is the foundation for chain rules, Taylor estimates and multivariable optimization.
1 Norms limits and the derivative
Use the Euclidean norm on finite-dimensional spaces. For an open set and , continuity at means as . A map is differentiable at if there is a linear map with
The map is the total or Fréchet derivative. It is unique: if and both work, substitute to obtain for every . For , linearity and the triangle inequality give . This proves boundedness directly in finite dimension. The derivative definition then implies continuity.
The Jacobian matrix has entries . Differentiability implies these partial derivatives exist and are the entries of , by testing . If all partial derivatives are continuous in a neighborhood, then is differentiable there. For scalar , split the increment into coordinate steps and apply the one-variable mean value theorem to each. The resulting coefficients are partial derivatives at points tending to ; continuity makes the error at most . Apply this componentwise for vector outputs.
2 Why line tests can fail
Define and
Because , it is continuous at zero. Both coordinate partials at zero are zero. If it were differentiable, its derivative would therefore be zero. But along , , and
which does not tend to zero. It is not differentiable. In fact every directional derivative exists, but their dependence on direction is not linear, another obstruction to a total derivative.
Concept lensGeometric
A graph made of lines is a cone, not a plane
The function of Section 2 is homogeneous of degree one: for every real . Its graph over each line through the origin is therefore a straight line through the origin of , and the slope of that line is the directional derivative. Every line test succeeds, because each one sees a straight line.
Differentiability asks for more: one plane through the origin containing all these lines, with the graph squeezed against it at a rate . The lines over the two coordinate axes are horizontal, so that plane could only be horizontal; but the line over the diagonal has slope . The graph is a cone made of non-coplanar lines. In algebraic terms, the unit-direction slope found in E2 is not linear in .
Worked example 1.2.1
(Differentiable at a point although a partial derivative fails nearby)
Let on and . Since and , both partial derivatives at the origin are , so the only possible derivative is . For ,
using . The quotient tends to zero, so is differentiable at the origin with .
Yet at any point with , the quotient equals for and for , so does not exist there. Thus the partials are not continuous, indeed not even defined, on any neighborhood of the origin. The continuous-partials criterion of Section 1 is sufficient for differentiability, not necessary; the definition itself decides.
3 The chain rule with error control
Theorem. If is differentiable at and is differentiable at , with the composition defined near , then
Proof. Write , with . This increment is . The second approximation gives , with . Hence the remainder after subtracting is . When , the second remainder is zero by definition, so no division-by-zero exception is needed.
For and , the derivative of the composition is , either by differentiating or by multiplying Jacobians.
Proof X-ray
How one small error stays small after composition
Differentiability of is used twice: for the linear part , and for the bound once is small, which also forces . The real step converts smallness relative to into smallness relative to : for , is the product of , which tends to zero, and , which stays bounded. The term is harmless, since a fixed linear map enlarges an error by at most .
Worked example 1.2.2
(A chain rule computed by Jacobians and checked directly)
Let and . Then
The chain rule gives . With and , the first entry is , and the second is . At this gives .
For a direct check, , whose partial derivatives are and , the same entries. The matrix product records the intermediate variables explicitly, which is why it remains usable when the composition has no convenient closed form.
4 Mean value along a segment
Scalar mean value theorem. If the segment lies in an open domain and is differentiable there, then some satisfies
Apply the one-variable theorem to . The chain rule gives its derivative. For vector outputs there need not be a single point giving an analogous vector equality: on has zero total increment but never zero derivative.
A valid vector statement is the estimate: if is along the segment and , then
Indeed, integrate the derivative of the path componentwise and use the norm inequality. If the same constant bounds for every in an open convex domain, the estimate applies to every joining segment and gives a global Lipschitz constant on that domain. A bound chosen separately on one segment is not a global bound. A disconnected or nonconvex domain may not contain the needed segment.
The segment bound without using integration
The preceding integral proof can be read after the fundamental theorem. Here is a proof using only the scalar mean value theorem already established in Section 1.1. Set . If , the norm estimate is immediate. Otherwise put and apply the scalar theorem to on . For some ,
The segment must remain in the open domain. This argument actually needs differentiability and the stated bound along the segment, not continuity of the derivative. It makes no vector equality with a common intermediate point. If , the difference is zero directly.
Proof X-ray
Why one well-chosen direction replaces a vector mean value point
The proof never looks for a common intermediate point for all components, which may not exist. The decisive move is to fix the unit vector after is known: in that one direction, the length of the increment is a scalar increment, and the chain rule makes differentiable, so the one-variable theorem applies. The Cauchy–Schwarz inequality and the operator norm then trade the derivative at the intermediate point for the bound . That point depends on , and nothing uniform about it is needed.
Worked example 1.2.3
(A Lipschitz constant from an operator-norm bound on a convex set)
Let on and . Its Jacobian is
To bound the operator norm, apply Cauchy–Schwarz to each row: for a matrix with rows , . Hence on . The square is convex, so every segment joining two of its points lies in , and is on the open plane containing it. The segment estimate gives
For instance, and give . The constant is valid but not sharp; its value comes from a bound holding at every point of the set, not from the derivative at one point.
A Jacobian prediction with the entire error visible
For at , the candidate derivative is . Expanding at displacement gives
With , the remainder has norm , so its ratio to is at most uniformly over directions. This proves total differentiability directly, rather than only computing partial derivatives. At displacement , the linear prediction is zero in both coordinates, but the actual change is . The absolute error is , below the bound .
Practice and full solution. Does a zero linear prediction imply the function is constant along that direction? No. Here , nonzero for . A kernel direction of the derivative removes first-order change, while higher-order change may remain.
Quick check
(For and , compute by multiplying Jacobians, and check the result directly.)
Evaluate at , not at .
Solution · Answer
Here and , so . Also , which is at . The product is . Directly, has gradient , equal to at .
Quick check
(Is differentiable at the origin?)
Find the only candidate derivative from the partial derivatives, then test a diagonal direction.
Solution · Answer
No. On both axes , so both partial derivatives at the origin are and the only candidate is . Along with , and , so the quotient does not tend to zero. The function is continuous at the origin and has zero partials there, yet it is not differentiable.
Quick check
(For on , is there one with ? What does the segment estimate give instead?)
Write the vector equation as two scalar equations.
Solution · Answer
The equation requires from the first component and from the second, which are different, so no common point exists. The valid estimate uses on : it gives . Each component separately has its own mean value point.
Exercises with complete solutions
E1 Foundation. Prove is differentiable at directly from the definition.
S1. The increment is at displacement . The linear part is and , so the remainder divided by tends to zero.
E2 Counterexample. For the function in Section 2, calculate the directional derivative along a unit vector and show it is not linear in .
S2. For , ; for a unit vector this is . It vanishes at both coordinate directions but not at , so it cannot be a linear functional. The formula extends to a homogeneous but nonadditive function of arbitrary nonzero directions.
E3 Estimate. For , prove is Lipschitz on the square with constant .
S3. With , the Jacobian is with operator norm at most . Every segment between two square points lies in the square, so the segment estimate applies. One can also bound each difference of squares directly and square-sum the bounds.
E4 Proof. If on a convex open set, prove is constant there, including vector-valued .
S4. For any in the set, restrict each component to their segment. Its one-variable derivative is zero, so the component has equal endpoint values by the mean value theorem. Hence .
Summary
Differentiability is a uniform first-order approximation by one linear map. Partial or directional derivatives alone do not guarantee it. Segment arguments transfer one-variable theorems carefully; scalar equalities and vector norm estimates must not be confused.