Differentiability in Real Analysis
Differentiability in Rn and Rm
Differentiability is the mathematical idea that a function can be closely approximated near a point by a linear transformation. In single-variable calculus, this idea appears as the tangent-line approximation. In higher-dimensional analysis, the tangent line becomes a linear map between vector spaces, and the derivative becomes a matrix.
The central question is:
Near a point p, can the function f be modeled by a first-order approximation whose error becomes negligible compared with the distance from x to p?
This lesson develops that question carefully, connects it to the familiar derivative from calculus, and works through a function from R2 to R3.
The general setting
Consider a function
f:A⊆Rn⟶Rm,where A is the domain of the function. The domain is usually assumed to be open. This assumption is convenient because every point p∈A is then an interior point.
Being an interior point means that there is a small ball centered at p that lies entirely inside A. Therefore, points x can approach p from every direction while remaining in the domain. In R2, for example, x could approach p along a straight line, a curve, or a spiraling path.
The open-set assumption is not always strictly necessary, but it ensures that the multidimensional limit behaves naturally and that there are no restrictions caused by a boundary.
The definition of differentiability
A function f:A⊆Rn→Rm is differentiable at p∈A if there exists a linear transformation
Df(p):Rn→Rmsuch that
x→plim∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥=0.This is the fundamental definition.
The notation Df(p) represents the derivative of f at p. Some texts use Jf(p) instead, especially when emphasizing the Jacobian matrix. These notations refer to the same associated linear transformation when used in this context.
Because Df(p) is a linear transformation from Rn to Rm, it can be represented by an m×n matrix.
Understanding every part of the formula
The input x and the point p are vectors in Rn:
x,p∈Rn.Therefore,
x−p∈Rn.The values f(x) and f(p) are outputs of the function, so they lie in Rm:
f(x),f(p)∈Rm.The derivative Df(p) is a linear map from Rn to Rm. Its matrix has dimensions m×n. Multiplying this matrix by the n×1 vector x−p gives an m×1 vector:
Df(p)(x−p)∈Rm.Thus, the expression
f(x)−f(p)−Df(p)(x−p)is a vector in Rm. The norm in the numerator is therefore a norm on Rm.
The denominator contains
∥x−p∥,which is the distance between x and p in Rn.
The dimensions are therefore consistent:
- f(x) and f(p) are in Rm.
- Df(p)(x−p) is in Rm.
- The numerator measures an error in Rm.
- The denominator measures a distance in Rn.
What the limit means
As x approaches p, the denominator satisfies
∥x−p∥→0.This happens for every function because it depends only on x approaching p.
At the same time, differentiability requires
∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥→0.The numerator must therefore approach zero as well. However, merely having the numerator approach zero is not enough. Both numerator and denominator approach zero, so the expression initially has the indeterminate form
00.The numerator must approach zero rapidly enough that the ratio itself approaches zero.
In informal language, the error must go to zero faster than the distance ∥x−p∥. More precisely, the ratio between the error and the distance must vanish.
This is the key distinction between differentiability and simple continuity. Continuity requires that
f(x)−f(p)→0,but differentiability requires a much more precise form of approximation: the difference between f(x) and its linear model must be negligible relative to ∥x−p∥.
Differentiability means that the function’s error after subtracting its best linear approximation is small compared with the distance from the base point.
Think About It
A numerator and denominator both approaching zero does not automatically make a quotient approach zero. What extra requirement does differentiability impose on the numerator?
The first-order approximation
The expression
Lp(x)=f(p)+Df(p)(x−p)is called the first-order approximation of f centered at p.
It is also often called the linear approximation, although technically it is an affine function of x, not a linear function of x. The reason is that it contains the constant term f(p).
The map Df(p) itself is linear, but the entire expression Lp(x) generally is not linear in x because of the added vector f(p).
Why this approximation passes through f(p)
If x=p, then
x−p=0.Since every linear transformation sends the zero vector to the zero vector,
Df(p)(p−p)=Df(p)(0)=0.Therefore,
Lp(p)=f(p)+0=f(p).Thus, the first-order approximation agrees exactly with the function at the point p.
When x is close to p, the vector x−p is close to the zero vector. Linear transformations are continuous, so Df(p)(x−p) is close to zero. Consequently, Lp(x) is close to f(p).
The important question is whether this linear adjustment models the actual behavior of f(x) near p closely enough that the remaining error becomes negligible compared with ∥x−p∥.
The remainder or error term
Define the remainder by
Rp(x)=f(x)−Lp(x).Using the definition of Lp(x),
Rp(x)=f(x)−f(p)−Df(p)(x−p).This is exactly the expression inside the norm in the numerator of the differentiability definition.
The differentiability condition can therefore be written as
x→plim∥x−p∥∥Rp(x)∥=0.The remainder measures the gap between the actual function and its first-order approximation. Differentiability says that this gap is of smaller order than the distance from x to p.
In this sense, differentiability is not merely the existence of some matrix. It is the existence of a linear transformation that captures the function’s local behavior with exceptional accuracy.
Connection with the derivative from single-variable calculus
Consider the special case
f:R→R.Now both the input and output spaces are one-dimensional. The vectors are real numbers, and the norm on R is absolute value. The differentiability definition becomes
x→plim∣x−p∣∣f(x)−f(p)−Df(p)(x−p)∣=0.Every linear transformation from R to R has the form
t↦mtfor some real number m. Therefore,
Df(p)(x−p)=m(x−p).The definition becomes
x→plim∣x−p∣∣f(x)−f(p)−m(x−p)∣=0.Because the numerator and denominator are absolute values of real numbers, this can be rewritten as
x→plimx−pf(x)−f(p)−m=0.This says that
x−pf(x)−f(p)→mas x→p.The expression on the left is the familiar difference quotient. Therefore,
m=x→plimx−pf(x)−f(p)=f′(p).So, in one-variable calculus,
Df(p)=f′(p).The derivative as a linear transformation is simply multiplication by the usual derivative number.
The tangent-line formula
Substituting f′(p) for m in the first-order approximation gives
Lp(x)=f(p)+f′(p)(x−p).This is the equation of the tangent line to the graph of f at the point
(p,f(p)).The term f′(p) is the slope of that tangent line. Thus, the familiar tangent-line approximation is exactly the one-dimensional version of the general differentiability definition.
For a differentiable function, the tangent line and the graph agree at p, and the tangent line remains an increasingly accurate approximation as x moves close to p.
By contrast, if a graph has a sharp corner at p, a single tangent line cannot model the function well on both sides. The failure to obtain an appropriate first-order approximation reflects the failure of differentiability.
Think About It
In one dimension, the derivative is a number because every linear map R→R is multiplication by a scalar. What replaces that number for a map from Rn to Rm?
A worked example from R2 to R3
Consider
f:R2→R3defined by
f(x,y)=(x,y2,xy).The goal is to prove that f is differentiable at every point (a,b)∈R2.
The proposed derivative matrix is
Df(a,b)=10b02ba.This matrix has three rows and two columns, as required for a linear map from R2 to R3.
The error term is
R(a,b)(x,y)=f(x,y)−f(a,b)−Df(a,b)(x−ay−b).Compute each part
First,
f(x,y)=(x,y2,xy)and
f(a,b)=(a,b2,ab).The matrix-vector product is
10b02ba(x−ay−b)=x−a2b(y−b)b(x−a)+a(y−b).Therefore,
R(a,b)(x,y)=xy2xy−ab2ab−x−a2b(y−b)b(x−a)+a(y−b).Compute the coordinates separately.
The first coordinate is
x−a−(x−a)=0.The second coordinate is
y2−b2−2b(y−b).Factoring the difference of squares gives
y2−b2=(y−b)(y+b),so
y2−b2−2b(y−b)=(y−b)(y+b−2b)=(y−b)2.The third coordinate is
xy−ab−b(x−a)−a(y−b).Expanding the terms being subtracted,
b(x−a)+a(y−b)=bx−ab+ay−ab.Thus,
xy−ab−(bx−ab+ay−ab)=xy−bx−ay+ab.Factoring this expression,
xy−bx−ay+ab=(x−a)(y−b).Consequently, the remainder is
R(a,b)(x,y)=0(y−b)2(x−a)(y−b).This can also be factored as
R(a,b)(x,y)=(y−b)0y−bx−a.This factorization reveals why the differentiability limit will work: the remainder contains an extra factor of y−b, which approaches zero.
Evaluate the differentiability quotient
The numerator is
R(a,b)(x,y)=(y−b)0y−bx−a.A scalar can be pulled outside a norm using its absolute value:
R(a,b)(x,y)=∣y−b∣02+(y−b)2+(x−a)2.The denominator is the distance from (x,y) to (a,b):
(x−ay−b)=(x−a)2+(y−b)2.Hence, the differentiability quotient is
∥(x−a,y−b)∥R(a,b)(x,y)=(x−a)2+(y−b)2∣y−b∣(y−b)2+(x−a)2.Away from (a,b), the identical square-root factors cancel:
∥(x−a,y−b)∥R(a,b)(x,y)=∣y−b∣.As (x,y)→(a,b), one has y→b, so
∣y−b∣→0.Therefore,
(x,y)→(a,b)lim∥(x−a,y−b)∥R(a,b)(x,y)=0.This proves that f is differentiable at (a,b). Since (a,b) was arbitrary, f is differentiable at every point in R2.
The calculation also confirms that the proposed matrix is the correct derivative matrix.
What the example demonstrates
The example illustrates several important patterns:
- The numerator is a vector in R3.
- The denominator is the distance between two points in R2.
- Both numerator and denominator approach zero.
- The numerator has an additional factor that forces the quotient to zero.
- The remainder is smaller than the distance to the base point.
If the extra factor had not been present, the quotient might have approached a nonzero value such as 1, which would not satisfy the differentiability definition.
Think About It
Why is factoring expressions into terms such as x−a and y−b useful when studying behavior near (a,b)?
The epsilon-delta formulation
The limit definition can be translated directly into an epsilon-delta statement.
Starting with
x→plim∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥=0,the definition of a limit says that for every ε>0, there exists δ>0 such that whenever
0<∥x−p∥<δ,one has
∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥−0<ε.The quotient is nonnegative, so the absolute value can be removed:
∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥<ε.Multiplying by ∥x−p∥ gives
∥f(x)−f(p)−Df(p)(x−p)∥<ε∥x−p∥.Thus, an equivalent formulation is:
For every ε>0, there exists δ>0 such that if 0<∥x−p∥<δ, then
∥f(x)−f(p)−Df(p)(x−p)∥<ε∥x−p∥.
This version says that the error is bounded by an arbitrarily small multiple of the distance to p.
The right-hand side is not normally replaced by εδ. The quantity ε∥x−p∥ is more informative because it shows exactly how the error compares with the actual distance from x to p.
The remainder formulation
Another equivalent way to express differentiability is to define a remainder function R and write
f(x)=f(p)+Df(p)(x−p)+R(x).The function is differentiable at p precisely when
x→plim∥x−p∥∥R(x)∥=0.This form separates the function into two parts:
-
The first-order approximation:
f(p)+Df(p)(x−p). -
The error or remainder:
R(x).
The remainder satisfies
R(x)=f(x)−f(p)−Df(p)(x−p).Therefore, the two formulations are exactly equivalent. One emphasizes the limit of the quotient, while the other emphasizes the decomposition of f into an approximation plus a negligible error.
In informal terms, near p the function behaves like
f(x)≈f(p)+Df(p)(x−p),and the approximation becomes increasingly accurate in the precise sense that
R(x)=o(∥x−p∥).The notation o(∥x−p∥) expresses that the remainder is small compared with ∥x−p∥ as x→p.
How the three formulations are related
The same idea can be recognized in three forms.
Limit quotient form
x→plim∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥=0.This is often the most direct form for applying the definition.
Epsilon-delta form
For every ε>0, there exists δ>0 such that
0<∥x−p∥<δimplies
∥f(x)−f(p)−Df(p)(x−p)∥<ε∥x−p∥.This form is useful in formal proofs involving neighborhoods and estimates.
Approximation-plus-remainder form
f(x)=f(p)+Df(p)(x−p)+R(x),where
x→plim∥x−p∥∥R(x)∥=0.This form most clearly communicates the conceptual meaning: the function is its first-order approximation plus an error that is negligible compared with the displacement from p.
Comprehensive review
Differentiability generalizes the familiar derivative from one-variable calculus to functions between Euclidean spaces of arbitrary dimensions.
For a function
f:A⊆Rn→Rm,differentiability at p means that there is a linear transformation
Df(p):Rn→Rmsuch that
x→plim∥x−p∥∥f(x)−f(p)−Df(p)(x−p)∥=0.The expression
f(p)+Df(p)(x−p)is the first-order approximation to f at p. It agrees exactly with f at p, and differentiability requires its error to become negligible compared with ∥x−p∥.
When n=m=1, the linear transformation Df(p) is multiplication by a scalar f′(p), and the general definition becomes the usual derivative limit
f′(p)=x→plimx−pf(x)−f(p).In that setting, the first-order approximation is the tangent line
f(p)+f′(p)(x−p).For higher-dimensional functions, the derivative is represented by an m×n matrix. In the example
f(x,y)=(x,y2,xy),the derivative at (a,b) is represented by
10b02ba,and the remainder becomes
(y−b)0y−bx−a.The extra factor y−b ensures that the error divided by the distance to (a,b) approaches zero, proving differentiability at every point. Differentiability is therefore the existence of a first-order linear model whose relative error vanishes near the point.

Ask anything
We've read this whole study set, so questions about it get the best answers.