Altanis

2.4Basic Results and Chain Rule

Updated 23 Jun 2026Chapter (PDF)

[2.4.1]Theorem(Basic Differentiation Rules)#
  1. Let f:A→Rmf: A \to \bR^m, where A⊆RmA \subseteq \bR^m, be such that f(a)=v0f(a) = v_0 for every a∈Aa \in A, where v0∈Rmv_0 \in \bR^m is fixed. Then (Df)a≡0(Df)_a \equiv 0.

  2. Let T:Rn→RmT: \bR^n \to \bR^m be linear. Then (DT)a≡T(DT)_a \equiv T.

  3. The derivative of a function is additive and homogenous (i.e., linear).

Proof.
  1. Note that f(a+h)−f(a)−(Df)af(a + h) - f(a) - (Df)_a, where (Df)a(Df)_a, is equal to (Df)a(Df)_a. For (Df)a(Df)_a to be linear and o(h)o(h), we note that the derivative is forced to be the zero mapping.

  2. Let a∈Rna \in \bR^n. Then note T(a+h)−T(a)−(DT)a=T(h)−(DT)aT(a + h) - T(a) - (DT)_a = T(h) - (DT)_a must be o(h)o(h), but the subtraction of two linear maps is a linear map, and so (DT)a=T(h)(DT)_a = T(h) and so (DT)a≡T(DT)_a \equiv T.

  3. Suppose f:A→Rmf: A \to \bR^m, where A⊆RnA \subseteq \bR^n, is differentiable at a∈Int⁡(A)a \in \Int(A). We seek to show that λf\lambda f is differentiable at aa with derivative (Dλf)a=λ(Df)a(D \lambda f)_a = \lambda (Df)_a. Note that

    λf(a+h)−λf(a)−λ(Df)a=λ(f(a+h)−f(a)−(Df)a),\lambda f(a + h) - \lambda f(a) - \lambda (Df)_a = \lambda(f(a + h) - f(a) - (Df)_a),

    a scalar multiple of an o(h)o(h) map, which is also o(h)o(h) (since o(h)o(h) maps form a vector space and are thus closed under scalar multiplication).

    Now suppose g:B→Rmg: B \to \bR^m, where B⊆RnB \subseteq \bR^n, is also differentiable at our aforementioned a∈Int⁡(A)∩Int⁡(B)a \in \Int(A) \cap \Int(B). Then we seek to show [D(f+g)]a=(Df)a+(Dg)a[D(f + g)]_a = (Df)_a + (Dg)_a. Note that if a∈Int⁡(A)∩Int⁡(B)a \in \Int(A) \cap \Int(B), then a∈Int⁡(A∩B)a \in \Int(A \cap B), so f+gf + g is differentiable at aa. Then

    (f+g)(a+h)−(f+g)(a)−(Df)a−(Dg)a=[f(a+h)−f(a)−(Df)a]+[g(a+h)−g(a)−(Dg)a](f + g)(a + h) - (f + g)(a) - (Df)_a - (Dg)_a = [f(a + h) - f(a) - (Df)_a] + [g(a + h) - g(a) - (Dg)_a]

    is the sum of two o(h)o(h) maps, which is also o(h)o(h), completing the proof.

[2.4.2]Theorem(Chain Rule)#

Let f:A→Rmf: A \to \bR^m, where A⊆RnA \subseteq \bR^n be a mapping. Let g:B→Rℓg: B \to \bR^\ell, where B⊇f(A)B \supseteq f(A), be a mapping. Then the composition g∘f:A→Rℓg \circ f: A \to \bR^\ell is well defined. If ff is differentiable at some a∈Aa \in A, and gg is differentiable at f(a)∈Bf(a) \in B, then g∘fg \circ f is differentiable, such that

D(g∘f)a=D(g)f(a)∘D(f)a.D(g \circ f)_a = D(g)_{f(a)} \circ D(f)_a.

With a choice of basis, the Jacobian is such that

(g∘f)′(a)=g′(f(a))f′(a).(g \circ f)'(a) = g'(f(a)) f'(a).
Proof.

To avoid maintaining constant terms throughout multiple steps of algebra, we translate ff and gg such that aa is treated as the zero vector in Rn\bR^n and Rm\bR^m, as well as its image under ff and gg being the zero vector in Rm\bR^m and Rℓ\bR^\ell respectively.

Recalling that f(a+h)=f(a)+D(f)a[h]+o(h)f(a + h) = f(a) + D(f)_a[h] + o(h), we may eliminate the constant term by subtracting f(a)f(a). With this in mind, define

f~(h)=f(a+h)−f(a)g~(k)=g(b+k)−g(b),\tilde f(h) = f(a + h) - f(a) \qquad \tilde g(k) = g(b + k) - g(b),

where b=f(a)∈Bb = f(a) \in B. Then note that f~(0n)=0m\tilde f(\vb{0}_n) = \vb{0}_m and g~(0m)=0ℓ\tilde g(\vb{0}_m) = \vb{0}_\ell. As a result,

f~(h)=D(f~)0n[h]+o(h)=f(a+h)−f(a)=D(f)a[h]+o(h),g~(k)=D(g~)0m[k]+o(k)=g(b+k)−g(b)=D(g)b[k]+o(k),\begin{align*} \tilde f(h) &= D(\tilde{f})_{\vb{0}_n}[h] + o(h) \\ &= f(a + h) - f(a) = D(f)_a[h] + o(h), \\ \\ \tilde g(k) &= D(\tilde{g})_{\vb{0}_m}[k] + o(k) \\ &= g(b + k) - g(b) = D(g)_b[k] + o(k), \\ \end{align*}

and so D(f~)0n=D(f)aD(\tilde{f})_{\vb{0}_n} = D(f)_a and D(g~)0m=D(g)bD(\tilde{g})_{\vb{0}_m} = D(g)_b. Now, note that

g~(f~(h))=g~(f(a+h)−f(a))=g(b+f(a+h)−f(a))−g(f(a))=g(f(a+h))−g(f(a))\begin{align*} \tilde g(\tilde f(h)) &= \tilde g(f(a + h) - f(a)) \\ &= g(b + f(a + h) - f(a)) - g(f(a)) \\ &= g(f(a + h)) - g(f(a)) \end{align*}

as desired, and an expansion analogous to our previous results reveal that D(g∘f)a=D(g~∘f~)0nD(g \circ f)_a = D(\tilde g \circ \tilde f)_{\vb{0}_n}.

As a little aside, these results signify that differentiation is essentially translation-invariant. It is best to work in local coordinates where the problem simplifies nicely (our f~,g~\tilde f, \tilde g functions work on a translated coordinate plane), as opposed to global coordinates. Global coordinates are great for absolute data, but it may contain irrelevant data that can prove to be a hindrance.

In any case, we want to write g~(f~(h))\tilde g(\tilde f(h)) in the form D(g~∘f~)0n[h]+o(h)D(\tilde g \circ \tilde f)_{\vb{0}_n}[h] + o(h). Expanding reveals

g~(f~(h))=g~(D(f~)0n[h]+o(h))=D(g~)0m[D(f~)0n[h]+o(h)]+o(D(f~)0n[h]+o(h))=[D(g~)0m∘D(f~)0n](h)+D(g~)0m(o(h))+o(o(h))=[D(g~)0m∘D(f~)0n](h)+o(h).\begin{align*} \tilde g(\tilde f(h)) &= \tilde g(D(\tilde f)_{\vb{0}_n}[h] + o(h)) \\ &= D(\tilde{g})_{\vb{0}_m}\left[ D(\tilde f)_{\vb{0}_n}[h] + o(h) \right] + o\left(D(\tilde f)_{\vb{0}_n}[h] + o(h)\right) \\ &= [D(\tilde g)_{\vb{0}_m} \circ D(\tilde f)_{\vb{0}_n}](h) + D(\tilde g)_{\vb{0}_m}(o(h)) + o(o(h)) \\ &= [D(\tilde g)_{\vb{0}_m} \circ D(\tilde f)_{\vb{0}_n}](h) + o(h). \end{align*}

Thus,

D(g∘f)a=D(g~∘f~)0n=D(g~)0m∘D(f~)0n=D(g)f(a)∘D(f)a.D(g \circ f)_a = D(\tilde g \circ \tilde f)_{\vb{0}_n} = D(\tilde g)_{\vb{0}_m} \circ D(\tilde f)_{\vb{0}_n} = \boxed{D(g)_{f(a)} \circ D(f)_a}.

The product and quotient rules may be proven by differentiating xyxy and x/yx/y, then using chain rule.