Differentiability in Real Analysis


Differentiability in Real Analysis

Michael
Welcome back. Today we’re taking our first serious look at differentiability, a major idea in Real Analysis 2. We’ll begin with the general definition for a function from R^n to R^m, connect it to the familiar derivative from single-variable calculus, work through an example from R^2 to R^3, and finish with two equivalent ways to state the same idea.

Anna
So we’re moving beyond just functions of one real variable. We’ll allow the input and output to both be vectors, which means the derivative can no longer simply be a number.

Michael
Exactly. Suppose f maps a domain A in R^n into R^m, and let p be a point in the domain. We assume A is open because that guarantees p is an interior point. Therefore, we can approach p from any direction while staying in the domain. The openness assumption is convenient rather than absolutely necessary, but it makes the limit easier to formulate.

Anna
And the derivative at p is supposed to be a linear transformation, not necessarily a scalar?

Michael
Right. We say f is differentiable at p if there exists a linear transformation Df(p) from R^n to R^m such that

Michael
the limit as x approaches p of the norm of f(x) minus f(p) minus Df(p) acting on x minus p, divided by the norm of x minus p, equals zero. In symbols, the condition is: the limit of ||f(x) - f(p) - Df(p)(x-p)|| divided by ||x-p|| equals 0.

Anna
Some books use Jf(p) instead of Df(p), correct?

Michael
Yes. A different text may call the associated linear transformation Jf(p), and that notation is completely fine. Since Df(p) is linear from R^n to R^m, it has an associated m-by-n matrix. We often blur the distinction and use Df(p) to refer either to the transformation itself or to its matrix representation.

Anna
Let’s check the dimensions carefully, because the formula looks abstract at first.

Michael
Good idea. Both f(x) and f(p) are vectors in R^m, so each can be viewed as an m-by-1 column vector. The difference x-p is a vector in R^n, or an n-by-1 column. The matrix for Df(p) is m-by-n, so multiplying it by x-p produces an m-by-1 vector in R^m. Therefore, the entire expression inside the numerator norm is a vector in R^m.

Anna
So the numerator uses a norm on R^m, while the denominator uses a norm on R^n.

Michael
Exactly. The denominator is simply the size of x-p, the distance from x to p in the input space. As x approaches p, that denominator always approaches zero, regardless of which function f we are studying.

Anna
That means the quotient has the familiar potential problem of being zero over zero.

Michael
Yes, and that is expected. If f is differentiable, the numerator must also approach zero, because at x=p the expression becomes f(p)-f(p)-Df(p)(0), which is zero. But merely having a numerator and denominator that both approach zero is not enough. The numerator must become small rapidly enough that the ratio itself approaches zero.

Anna
So when people casually say the numerator goes to zero faster than the denominator, the precise meaning is that their quotient goes to zero.

Michael
Exactly. Differentiability is about finding a linear transformation that captures the first-order behavior of f near p. Define the first-order approximation by Lp(x) = f(p) + Df(p)(x-p). It is often called the linear approximation, although technically it is affine because of the constant term f(p).

Anna
Why does this approximation match f at p automatically?

Michael
Because when x=p, the vector x-p is zero. Every linear transformation sends zero to zero, so Lp(p)=f(p). Near p, x-p is small, and linear transformations send small vectors to small vectors. The important question is whether this particular transformation makes Lp(x) approximate the actual value f(x) so well that the error becomes negligible compared with the distance from x to p.

Anna
That error is the remainder, right?

Michael
Right. Let R(x)=f(x)-Lp(x). Then R(x) is exactly the expression inside the numerator norm. Differentiability at p means there is a linear transformation Df(p) for which the remainder satisfies ||R(x)|| divided by ||x-p|| tending to zero. In other words, the error is much smaller than the first-order change represented by x-p.

Anna
Let’s connect that with the derivative everyone knows from Calculus 1.

Michael
Suppose f maps R to R. Then x and p are scalars, and the norms become absolute values. Also, every linear transformation from R to R is multiplication by a scalar, say m. The differentiability condition becomes the limit as x approaches p of the absolute value of [f(x)-f(p)-m(x-p)] divided by |x-p| equaling zero.

Anna
Since the numerator and denominator are scalar quantities, we can combine the absolute values and look at the absolute value of the quotient itself.

Michael
Yes. We rewrite the inside as [f(x)-f(p)] divided by (x-p), minus m. Since the limit of its absolute value is zero, the difference quotient must approach m. Therefore, m equals the familiar derivative f'(p), namely the limit of [f(x)-f(p)] divided by (x-p).

Anna
And then the first-order approximation becomes Lp(x)=f(p)+f'(p)(x-p), which is the equation of the tangent line through (p,f(p)).

Michael
Exactly. For a function from R to R, differentiability means the graph is well approximated near p by its tangent line. A corner illustrates what fails: a line may pass through the point, but as soon as you move away from it, the line does not approximate the function well enough. For a differentiable curve, the tangent-line error is small enough relative to |x-p| that the quotient goes to zero.

Anna
So the multivariable definition is not a completely new idea. It generalizes tangent-line approximation, replacing the tangent line with an affine first-order approximation determined by a linear map.

Michael
That’s the central connection. Now let’s test the definition on a concrete vector-valued example. Consider f from R^2 to R^3 defined by f(x,y)=(x,y^2,xy). We want to prove that f is differentiable at every point (a,b). We are given the candidate matrix for Df(a,b):

Michael
the 3-by-2 matrix with rows (1,0), (0,2b), and (b,a).

Anna
The dimensions make sense: the input is in R^2, the output is in R^3, so the derivative matrix must have three rows and two columns.

Michael
Let’s calculate the remainder. It is f(x,y)-f(a,b) minus the matrix above multiplied by the column vector (x-a,y-b). Substituting the function gives the vector (x-a, y^2-b^2, xy-ab), minus the matrix product.

Michael
The matrix product is (x-a, 2b(y-b), b(x-a)+a(y-b)). Therefore, the remainder is the difference between those two vectors.

Anna
Now the useful algebra is to expose factors of x-a and y-b, because both approach zero as (x,y) approaches (a,b).

Michael
Exactly. Factor y^2-b^2 as (y-b)(y+b), and simplify the third coordinate as well. After subtracting the matrix product, the remainder becomes (0,(y-b)^2,(x-a)(y-b)). Equivalently, we can factor out y-b and write it as (y-b)(0,y-b,x-a).

Anna
That form makes the extra small factor visible.

Michael
Now form the differentiability quotient. The norm of the remainder is |y-b| times the norm of (0,y-b,x-a). Using the Euclidean norm, that is |y-b| times the square root of (y-b)^2+(x-a)^2. The denominator is the norm of (x-a,y-b), which is the same square root.

Anna
So the square roots cancel, leaving the limit of |y-b| as (x,y) approaches (a,b).

Michael
And that limit is zero because y approaches b. Therefore, f is differentiable at (a,b). Since (a,b) was arbitrary, f is differentiable at every point in R^2. This calculation also confirms that the proposed 3-by-2 matrix really is the correct associated linear transformation.

Anna
It also illustrates why zero over zero is only the starting point. Both numerator and denominator go to zero, but the numerator has an additional factor |y-b| after cancellation, which forces the quotient to zero. Without that extra factor, the limit could instead be one or some other nonzero value.

Michael
Exactly. Now let’s translate the definition into an epsilon-delta statement. The original limit equals zero if, for every epsilon greater than zero, there exists a delta greater than zero such that whenever 0<||x-p||<delta, we have

Michael
||f(x)-f(p)-Df(p)(x-p)|| divided by ||x-p|| less than epsilon.

Anna
And multiplying by the positive denominator gives the equivalent inequality

Anna
||f(x)-f(p)-Df(p)(x-p)|| < epsilon ||x-p||.

Michael
Right. This version says that the approximation error is bounded by epsilon times the distance from x to p, whenever x is sufficiently close to p. It often appears naturally in proofs involving neighborhoods and epsilon-delta arguments. Notice that we usually keep ||x-p|| on the right rather than replacing it with delta, because the pointwise distance gives the sharper and more informative statement.

Anna
What is the other equivalent formulation?

Michael
We can write f directly as its first-order approximation plus an error term. Specifically, f(x)=f(p)+Df(p)(x-p)+R(x), where the remainder satisfies

Michael
the limit as x approaches p of ||R(x)|| divided by ||x-p|| equals zero.

Anna
So this is not a different mathematical condition. It simply names the numerator expression R(x) and emphasizes that f is the approximation plus a very small error.

Michael
Exactly. The three presentations are equivalent: the quotient limit, the epsilon-delta inequality, and the approximation-plus-remainder form. They all express the same central idea: near p, f behaves like f(p)+Df(p)(x-p), with an error that becomes negligible compared with ||x-p||.

Anna
And the key objects to keep straight are the dimensions: f(x) and f(p) live in R^m, x-p lives in R^n, and Df(p) is a linear map from R^n to R^m represented by an m-by-n matrix.

Michael
That’s the essential first picture of differentiability. Memorize the main expression, recognize the first-order approximation, and remember that differentiability means the remainder vanishes faster than the input displacement in the precise sense that their ratio tends to zero.

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