Mathematics · Book 4 · Bachelor Year 2

University Mathematics — Year 2

University Mathematics — Year 2 · Bachelor Year 2

15Differential Calculus

The two-variable calculus of the Year 1 volume matures into the differential calculus of maps between normed spaces: the differential as the best linear approximation, the chain rule in full generality, Schwarz’s symmetry theorem proved, Taylor formulas, and the complete second-order analysis of extrema. The inverse function theorem, crown of the theory, is stated with its proof strategy — a Banach fixed point — made explicit.

Throughout, UU is an open subset of Rn\R^n (or a normed space; the finite-dimensional case carries all the ideas), f ⁣:URmf \colon U \to \R^m.

15.1 The differential

Definition 15.1

ff is differentiable at aa when there is a (continuous) linear map  ⁣dfa ⁣:RnRm\dd f_a \colon \R^n \to \R^m with

f(a+h)=f(a)+ ⁣dfa(h)+o(h)(h0).f(a + h) = f(a) + \dd f_a(h) + o(\norm h) \qquad (h \to 0).

The map  ⁣dfa\dd f_a, the differential of ff at aa, is unique; its matrix in the canonical bases is the Jacobian matrix Jf(a)=(fixj(a))J_f(a) = \bigl(\frac{\partial f_i}{\partial x_j}(a)\bigr). Differentiability implies continuity and the existence of all directional derivatives  ⁣dfa(v)=limt0f(a+tv)f(a)t\dd f_a(v) = \lim_{t\to0}\frac{f(a + tv) - f(a)}{t}; the converse fails (Exercise 15.2). For m=1m = 1,  ⁣dfa(h)=f(a),h\dd f_a(h) = \langle \nabla f(a), h\rangle: the gradient of Year 1, now understood as the vector representing the differential.

Theorem 15.2 (C1C^1 criterion)

If all partial derivatives of ff exist on UU and are continuous at aa, then ff is differentiable at aa. “C1C^1 on UU” — continuous partials — therefore implies differentiability everywhere, with continuous differential.

Proof. Component by component (m=1m = 1 suffices). The Year 1 proof for two variables — move one coordinate at a time, apply the one-variable mean value theorem on each leg, and use continuity of the partials at aa — generalizes verbatim to nn legs:

f(a+h)f(a)=j=1n(f(a+h(j))f(a+h(j1)))=jhjfxj(ξj),f(a + h) - f(a) = \sum_{j=1}^{n} \bigl(f(a + h^{(j)}) - f(a + h^{(j-1)})\bigr) = \sum_j h_j\,\frac{\partial f}{\partial x_j}(\xi_j),

where h(j)h^{(j)} freezes the first jj coordinates of hh and ξj\xi_j lies on the jj-th leg; continuity turns each fxj(ξj)\frac{\partial f}{\partial x_j}(\xi_j) into fxj(a)+o(1)\frac{\partial f}{\partial x_j}(a) + o(1), and the error is o(h)o(\norm h).

Theorem 15.3 (Chain rule)

If ff is differentiable at aa and gg at f(a)f(a), then gfg \circ f is differentiable at aa with

 ⁣d(gf)a= ⁣dgf(a) ⁣dfa,Jgf(a)=Jg(f(a))Jf(a):\dd(g \circ f)_a = \dd g_{f(a)} \circ \dd f_a , \qquad J_{g\circ f}(a) = J_g\bigl(f(a)\bigr)\,J_f(a) :

Jacobians multiply.

Proof. Write f(a+h)=f(a)+ ⁣dfa(h)+hε1(h)f(a + h) = f(a) + \dd f_a(h) + \norm h\,\varepsilon_1(h) and g(b+k)=g(b)+ ⁣dgb(k)+kε2(k)g(b + k) = g(b) + \dd g_b(k) + \norm k\,\varepsilon_2(k) with b=f(a)b = f(a), k=k(h)= ⁣dfa(h)+hε1(h)k = k(h) = \dd f_a(h) + \norm h \varepsilon_1(h). Substituting,

g(f(a+h))=g(b)+ ⁣dgb( ⁣dfa(h))+h ⁣dgb(ε1(h))+kε2(k),g(f(a+h)) = g(b) + \dd g_b\bigl(\dd f_a(h)\bigr) + \norm h\,\dd g_b(\varepsilon_1(h)) + \norm{k}\,\varepsilon_2(k),

and both error terms are o(h)o(\norm h): the first since  ⁣dgb\dd g_b is continuous and ε10\varepsilon_1 \to 0; the second since kCh\norm k \leq C\norm h (bounded linear map plus small term) and ε2(k)0\varepsilon_2(k) \to 0 as h0h \to 0.

Example 15.4 (Radial functions, once and for all)

Let r(x)=x2r(x) = \norm x_2 on Rn{0}\R^n\setminus\{0\} and f=grf = g \circ r with gg a C1C^1 function of one variable. First, rr is differentiable away from 00: from r2=xi2r^2 = \sum x_i^2,

rxi=xir,i.e.r(x)=xx,\frac{\partial r}{\partial x_i} = \frac{x_i}{r}, \qquad\text{i.e.}\qquad \nabla r(x) = \frac{x}{\norm x} ,

the unit radial vector (differentiate r2r^2 and divide — or apply the chain rule to \sqrt{\cdot}). Then the chain rule gives, for every radial function,

f(x)=g(x)xx.\nabla f(x) = g'\bigl(\norm x\bigr)\,\frac{x}{\norm x} .

Worked instance: g(r)=1rg(r) = \frac1r yields 1x=xx3\nabla\frac{1}{\norm x} = -\frac{x}{\norm x^3}, the inverse-square field of gravitation and electrostatics — direction radial, magnitude 1x2\frac{1}{\norm x^2}. Closing insight: gradients of radial functions are radial because the level sets are spheres and the gradient is orthogonal to level sets; at x=0x = 0, by contrast, rr is not differentiable (no candidate linear map matches h\norm h from all directions) — smooth radial profiles need g(0)=0g'(0) = 0 to cross the origin gracefully.

Theorem 15.5 (Mean value inequality)

Let ff be differentiable on UU and let the segment [a,b]={a+t(ba)}\intcc{a}{b} = \{a + t(b-a)\} lie in UU. Then

f(b)f(a)basupx[a,b] ⁣dfx.\norm{f(b) - f(a)} \leq \norm{b - a}\, \sup_{x \in \intcc{a}{b}} \vertiii{\dd f_x} .

In particular, a differentiable map with zero differential on a connected open set is constant.

Proof. The function φ(t)=f(a+t(ba))\varphi(t) = f(a + t(b-a)) is differentiable on [0,1]\intcc{0}{1} with φ(t)= ⁣dfa+t(ba)(ba)\varphi'(t) = \dd f_{a + t(b-a)}(b - a) (chain rule), of norm Mba\leq M\norm{b-a} with MM the displayed sup. For R\R-valued ff the one-variable mean value inequality concludes; for vector values apply it to tu,φ(t)t \mapsto \langle u, \varphi(t)\rangle with uu the unit vector along f(b)f(a)f(b) - f(a). Constancy: locally constant (segments in balls) plus connectedness (the set where ff equals a given value is open and closed: Chapter 4).

Example 15.6 (A Lipschitz constant from the MVI)

Is f(x,y)=sinxsinyf(x, y) = \sin x\,\sin y Lipschitz on R2\R^2, and with which constant? Its gradient is f=(cosxsiny, sinxcosy)\nabla f = (\cos x\sin y,\ \sin x\cos y), of squared norm

cos2xsin2y+sin2xcos2ysin2y+cos2y1=1\cos^2x\sin^2y + \sin^2x\cos^2y \leq \sin^2 y + \cos^2y\cdot 1 = 1

(bound cos2x\cos^2x and sin2x\sin^2x by 11 separately), so  ⁣df(x,y)=f1\vertiii{\dd f_{(x,y)}} = \norm{\nabla f} \leq 1 everywhere, and Theorem 15.5 on the segment between any two points gives

f(b)f(a)ba2:\abs{f(b) - f(a)} \leq \norm{b - a}_2 :

ff is 11-Lipschitz, and the constant is sharp (near the origin, f(x,π2)=sinxf(x, \tfrac\pi2) = \sin x has slope 11). Closing insight: the mean value inequality converts a pointwise bound on the differential into a global modulus of continuity — the standard route to Lipschitz estimates in every dimension, and the engine inside Exercise 15.12.

15.2 Second derivatives

Theorem 15.7 (Schwarz)

If ff is C2C^2 on UU (all second partials exist and are continuous), then for all i,ji, j:

2fxixj=2fxjxi.\frac{\partial^2 f}{\partial x_i\,\partial x_j} = \frac{\partial^2 f}{\partial x_j\,\partial x_i} .

Proof. Two variables suffice (x=xix = x_i, y=xjy = x_j, others frozen). Consider the second difference

Δ(h)=f(a+h,b+h)f(a+h,b)f(a,b+h)+f(a,b).\Delta(h) = f(a + h, b + h) - f(a + h, b) - f(a, b + h) + f(a,b) .

Fix hh and set φ(x)=f(x,b+h)f(x,b)\varphi(x) = f(x, b+h) - f(x, b): then Δ(h)=φ(a+h)φ(a)\Delta(h) = \varphi(a + h) - \varphi(a), and two applications of the mean value theorem give

Δ(h)=hφ(ξ)=h(fx(ξ,b+h)fx(ξ,b))=h22fyx(ξ,η),\Delta(h) = h\,\varphi'(\xi) = h\Bigl(\frac{\partial f}{\partial x}(\xi, b+h) - \frac{\partial f}{\partial x}(\xi, b)\Bigr) = h^2\,\frac{\partial^2 f}{\partial y\,\partial x}(\xi, \eta),

with ξ(a,a+h)\xi \in \intoo{a}{a+h}, η(b,b+h)\eta \in \intoo{b}{b+h}. By continuity, Δ(h)h22fyx(a,b)\frac{\Delta(h)}{h^2} \to \frac{\partial^2 f}{\partial y\partial x}(a, b) as h0h \to 0. The same computation with the roles of the variables exchanged (freeze the second variable first) gives Δ(h)h22fxy(a,b)\frac{\Delta(h)}{h^2} \to \frac{\partial^2 f}{\partial x \partial y}(a,b): the two limits of the same quantity coincide.

Example 15.8 (Why C2C^2 is needed: Peano’s counterexample)

Let f(x,y)=xy(x2y2)x2+y2f(x, y) = \dfrac{xy(x^2 - y^2)}{x^2 + y^2}, f(0,0)=0f(0,0) = 0. Away from the origin ff is CC^\infty; at the origin all first and second partials exist, but the mixed ones disagree. Compute along the axes: f(x,0)=f(0,y)=0f(x, 0) = f(0, y) = 0, and for y0y \neq 0,

fx(0,y)=limx0f(x,y)x=y(0y2)y2=y,symmetricallyfy(x,0)=x.\frac{\partial f}{\partial x}(0, y) = \lim_{x\to0}\frac{f(x,y)}{x} = \frac{y(0 - y^2)}{y^2} = -y , \qquad\text{symmetrically}\qquad \frac{\partial f}{\partial y}(x, 0) = x .

Hence

2fyx(0,0)= ⁣d ⁣dy[fx(0,y)]y=0=1,2fxy(0,0)=+1:\frac{\partial^2 f}{\partial y\,\partial x}(0,0) = \frac{\dd}{\dd y}\Bigl[\frac{\partial f}{\partial x}(0,y)\Bigr]_{y=0} = -1, \qquad \frac{\partial^2 f}{\partial x\,\partial y}(0,0) = +1 :

the two mixed partials exist and differ. No contradiction with Theorem 15.7: the second partials of ff are not continuous at 00 (test along y=txy = tx). Closing insight: Schwarz’s theorem is a genuine theorem about continuity, not a formal identity — and the hypothesis “C2C^2” in Taylor–Young below is doing real work.

Theorem 15.9 (Taylor–Young at order 2)

Let f ⁣:URf \colon U \to \R be C2C^2 and aUa \in U. Then, as h0h \to 0,

f(a+h)=f(a)+f(a),h+12Hah,h+o(h2),f(a + h) = f(a) + \langle\nabla f(a), h\rangle + \frac12\, \langle H_a h,\, h\rangle + o\bigl(\norm h^2\bigr),

where Ha=(2fxixj(a))H_a = \bigl(\frac{\partial^2 f}{\partial x_i\partial x_j}(a)\bigr) is the (symmetric, by Schwarz) Hessian matrix.

Proof. Apply the one-variable Taylor–Young theorem (Year 1 volume) to φ(t)=f(a+th)\varphi(t) = f(a + th) on [0,1]\intcc{0}{1}: by the chain rule, φ(t)=f(a+th),h\varphi'(t) = \langle \nabla f(a + th), h\rangle and φ(t)=Ha+thh,h\varphi''(t) = \langle H_{a+th}h, h\rangle, both continuous in tt. Then φ(1)=φ(0)+φ(0)+12φ(θ)\varphi(1) = \varphi(0) + \varphi'(0) + \frac12\varphi''(\theta) (Taylor–Lagrange) with θ(0,1)\theta \in \intoo{0}{1}, and continuity of the second partials converts φ(θ)=φ(0)+o(1)h2\varphi''(\theta) = \varphi''(0) + o(1)\cdot\norm h^2-uniformly: the displayed expansion.

Example 15.10 (An expansion two ways)

Expand f(x,y)=excosyf(x, y) = \eu^x\cos y at the origin to order 22. By composition of one-variable expansions:

excosy=(1+x+x22+o(x2))(1y22+o(y2))=1+x+x2y22+o((x,y)2).\eu^x\cos y = \Bigl(1 + x + \frac{x^2}{2} + o(x^2)\Bigr)\Bigl(1 - \frac{y^2}{2} + o(y^2)\Bigr) = 1 + x + \frac{x^2 - y^2}{2} + o\bigl(\norm{(x,y)}^2\bigr) .

By partial derivatives: fx=excosyf_x = \eu^x\cos y, fy=exsinyf_y = -\eu^x\sin y, so f(0)=(1,0)\nabla f(0) = (1, 0); and fxx=ff_{xx} = f, fyy=ff_{yy} = -f, fxy=exsinyf_{xy} = -\eu^x\sin y give H0=diag(1,1)H_0 = \operatorname{diag}(1, -1): Theorem 15.9 reproduces 1+x+12(x2y2)1 + x + \frac12(x^2 - y^2). The two computations agree, and the composition route was faster — no second partials at all. Closing insight: the origin is not a critical point (f0\nabla f \neq 0), so despite the indefinite Hessian there is no saddle to declare: the linear term rules, and the second-order test only ever speaks at critical points.

Theorem 15.11 (Second-order extremum test, proved)

Let ff be C2C^2 near a critical point aa (f(a)=0\nabla f(a) = 0), with Hessian H=HaH = H_a.

  1. If HH is positive definite, aa is a strict local minimum (negative definite: maximum).
  2. If HH has eigenvalues of both signs, aa is a saddle: no extremum.
  3. If HH is singular (and semidefinite), no conclusion.

The Year 1 “rts2rt - s^2” test is the case n=2n = 2: detH=rts2\det H = rt - s^2, tr\operatorname{tr}-sign read off rr.

Proof. By the spectral theorem (Theorem 12.13), HH’s quadratic form is squeezed between its extreme eigenvalues: λminh2Hh,hλmaxh2\lambda_{\min}\norm h^2 \leq \langle Hh, h\rangle \leq \lambda_{\max}\norm h^2.

(1) If λmin>0\lambda_{\min} > 0: Taylor–Young gives

f(a+h)f(a)λmin2h2o(h2)>0f(a + h) - f(a) \geq \frac{\lambda_{\min}}{2}\norm h^2 - o(\norm h^2) > 0

for small h0h \neq 0: strict local minimum.

(2) Along an eigenvector v+v_+ with λ+>0\lambda_+ > 0: f(a+tv+)f(a)=λ+2t2+o(t2)>0f(a + tv_+) - f(a) = \frac{\lambda_+}{2}t^2 + o(t^2) > 0 for small tt; along vv_- with λ<0\lambda_- < 0 the difference is negative: both signs occur in every neighborhood.

(3) f(x,y)=x2+y4f(x,y) = x^2 + y^4, x2y4x^2 - y^4, x2+y3x^2 + y^3 share the same singular semidefinite Hessian at 00 with three different behaviors.

Example 15.12 (A complete classification, global included)

Classify all extrema of f(x,y)=x4+y44xyf(x, y) = x^4 + y^4 - 4xy on R2\R^2. Critical points: f=(4x34y, 4y34x)=0\nabla f = (4x^3 - 4y,\ 4y^3 - 4x) = 0 gives y=x3y = x^3 and x=y3=x9x = y^3 = x^9, so x(x81)=0x(x^8 - 1) = 0: the real solutions are (0,0)(0,0), (1,1)(1,1), (1,1)(-1,-1). Hessians: H=(12x24412y2)H = \begin{pmatrix} 12x^2 & -4\\ -4 & 12y^2\end{pmatrix}. At (±1,±1)(\pm1, \pm1): (124412)\begin{pmatrix} 12 & -4\\ -4 & 12\end{pmatrix}, eigenvalues 88 and 1616: positive definite, strict local minima with f=2f = -2. At (0,0)(0,0): (0440)\begin{pmatrix} 0 & -4\\ -4 & 0\end{pmatrix}, eigenvalues ±4\pm4: a saddle. Globality: from 2xyx2+y22\abs{xy} \leq x^2 + y^2,

f(x,y)x4+y42(x2+y2)=(x21)2+(y21)2+x2+y22(x,y)+:f(x, y) \geq x^4 + y^4 - 2(x^2 + y^2) = (x^2 - 1)^2 + (y^2 - 1)^2 + x^2 + y^2 - 2 \xrightarrow[\norm{(x,y)}\to\infty]{} +\infty :

ff is coercive, so it attains a global minimum (compactness of sublevel sets), necessarily at a critical point: the value 2-2, at both (1,1)(1,1) and (1,1)(-1,-1), is the global minimum; there is no maximum (ff unbounded above). Closing insight: the local test classifies candidates, but only a growth argument turns “local” into “global” — the two-step pattern of every optimization proof in this book.

Method 15.13 (Classifying the extrema of f ⁣:RnRf \colon \R^n \to \R)

  1. Solve f=0\nabla f = 0 (all critical points; on a domain with boundary, treat the boundary separately as in Exercise 15.7).
  2. At each critical point, compute the Hessian and its eigenvalue signs — in dimension 22, just detH\det H and trH\operatorname{tr} H: det<0\det < 0 saddle; det>0\det > 0 extremum, of the type given by the sign of the trace; det=0\det = 0: the test is silent, study ff along curves.
  3. For global statements, add a compactness or coercivity argument (f+f \to +\infty at infinity, or a compact constraint set), then compare the critical values.

15.3 The inverse function theorem

Theorem 15.14 (Inverse function theorem)

Let f ⁣:URnf \colon U \to \R^n be C1C^1 and aUa \in U with  ⁣dfa\dd f_a invertible. Then there are open neighborhoods VaV \ni a, Wf(a)W \ni f(a) such that f ⁣:VWf \colon V \to W is a bijection with C1C^1 inverse, and

 ⁣d(f1)f(x)=( ⁣dfx)1(xV).\dd (f^{-1})_{f(x)} = (\dd f_x)^{-1} \qquad (x \in V).

Proof. Admitted at this level.

Remark 15.15 (Why it is true: the fixed-point strategy)

Solving f(x)=yf(x) = y near aa rewrites as the fixed-point equation x=x+ ⁣dfa1(yf(x))=:Φy(x)x = x + \dd f_a^{-1}\bigl(y - f(x)\bigr) =: \Phi_y(x); the map Φy\Phi_y has differential id ⁣dfa1 ⁣dfx\mathrm{id} - \dd f_a^{-1}\dd f_x, small near aa by continuity of  ⁣df\dd f, so Φy\Phi_y is a contraction on a small closed ball and the Banach fixed point theorem (Theorem 4.12) provides the unique local solution x=f1(y)x = f^{-1}(y). Continuity and differentiability of the inverse then follow from the estimates in the contraction. The full bookkeeping is carried out in Year 3; the strategy — and the statement — are used freely from now on. The companion implicit function theorem (solving F(x,y)=0F(x, y) = 0 for y(x)y(x) when Fy\frac{\partial F}{\partial y} is invertible) follows by applying the theorem to (x,y)(x,F(x,y))(x, y) \mapsto (x, F(x,y)).

Example 15.16 (Polar coordinates)

Φ(r,θ)=(rcosθ,rsinθ)\Phi(r, \theta) = (r\cos\theta, r\sin\theta) has Jacobian

JΦ=(cosθrsinθsinθrcosθ),detJΦ=r:J_\Phi = \begin{pmatrix} \cos\theta & -r\sin\theta\\ \sin\theta & r\cos\theta \end{pmatrix}, \qquad \det J_\Phi = r :

invertible for r0r \neq 0, so Φ\Phi is a local C1C^1 diffeomorphism away from the origin — the licence to “change to polar coordinates”, renewed for the multiple integrals of Chapter 20.

Example 15.17 (Local everywhere, global nowhere)

Let f(x,y)=(excosy, exsiny)f(x, y) = \bigl(\eu^x\cos y,\ \eu^x\sin y\bigr) on R2\R^2. Its Jacobian,

Jf=(excosyexsinyexsinyexcosy),detJf=e2x>0,J_f = \begin{pmatrix} \eu^x\cos y & -\eu^x\sin y\\ \eu^x\sin y & \eu^x\cos y \end{pmatrix}, \qquad \det J_f = \eu^{2x} > 0 ,

never vanishes: by Theorem 15.14, ff is a local C1C^1 diffeomorphism at every point of the plane. Yet ff is far from injective: f(x,y+2π)=f(x,y)f(x, y + 2\pi) = f(x, y), so every value is taken infinitely often; and it is not surjective either, since f(x,y)=ex>0\norm{f(x, y)} = \eu^x > 0 misses the origin. Closing insight: the inverse function theorem is irreducibly local — invertibility of every  ⁣dfa\dd f_a yields a patchwork of local inverses that need not assemble into one. (Readers who know complex numbers will recognize zezz \mapsto \eu^z; the patchwork is the family of logarithm branches.) Compare Exercise 15.12, where a quantitative global hypothesis does force one global inverse.

Remark 15.18 (Common pitfalls)

(i) Directional derivatives are cheap, differentials are not: all directional derivatives may exist — and even fail to depend linearly on the direction — without differentiability (Exercise 15.2); only the C1C^1 criterion (Theorem 15.2) upgrades partials to a differential. (ii) Critical does not mean extremal: saddles (Example 15.12) and the silent singular case (Theorem 15.11 (3)) both hide behind f=0\nabla f = 0. (iii) No vector-valued mean value equality: only the inequality of Theorem 15.5 survives (Exercise 15.9); never write f(b)f(a)= ⁣dfc(ba)f(b) - f(a) = \dd f_c(b-a) for ff with values in Rm\R^m, m2m \geq 2. (iv) Local invertibility is not injectivity: Example 15.17. (v) The gradient belongs to the inner product: f\nabla f is the vector representing  ⁣dfa\dd f_a in a chosen inner product; change the product (as in the weighted example of the quadratic-forms chapter) and the gradient rotates, while the differential — the intrinsic object — does not move.

Remark 15.19 (Where this is used)

Everything downstream of this chapter is differential calculus applied: the differential-equations chapter linearizes flows and uses Liouville’s determinant formula (proved in this chapter’s weekend problem); the chapters on curves and surfaces study level sets and parametrizations through the implicit function theorem; multiple integrals change variables through Jacobians. The weekend problem develops the calculus on the space of matrices itselfdifferential of the determinant, of the inverse, the matrix exponential, and the orthogonal group as a smooth level set — the Year 2 shadow of what the Year 3 volume formalizes as manifolds and Lie groups.

15.4 Exercises

Exercise 15.1

Compute the Jacobian matrices of f(x,y)=(x2y2,2xy)f(x,y) = (x^2 - y^2,\, 2xy) and of Φ(r,θ,z)=(rcosθ,rsinθ,z)\Phi(r,\theta,z) = (r\cos\theta, r\sin\theta, z); where are the differentials invertible?

Solution

Solution of Exercise 15.1.

Jf=(2x2y2y2x)J_f = \begin{pmatrix} 2x & -2y\\ 2y & 2x\end{pmatrix}, detJf=4(x2+y2)\det J_f = 4(x^2 + y^2): invertible away from the origin. (This ff is zz2z \mapsto z^2 in complex disguise.)

JΦ=(cosθrsinθ0sinθrcosθ0001)J_\Phi = \begin{pmatrix} \cos\theta & -r\sin\theta & 0\\ \sin\theta & r\cos\theta & 0\\ 0 & 0 & 1\end{pmatrix}, det=r\det = r: invertible for r0r \neq 0 (cylindrical coordinates).

Exercise 15.2

Let f(x,y)=x3x2+y2f(x,y) = \frac{x^3}{x^2 + y^2} (f(0,0)=0f(0,0) = 0). Prove that all directional derivatives of ff at 00 exist, but that ff is not differentiable at 00 (the map vv \mapsto directional derivative is not linear).

Solution

Solution of Exercise 15.2.

For v=(a,b)0v = (a, b) \neq 0: f(tv)0t=t3a3tt2(a2+b2)=a3a2+b2\frac{f(tv) - 0}{t} = \frac{t^3a^3}{t\cdot t^2(a^2+b^2)} = \frac{a^3}{a^2 + b^2}: every directional derivative exists, with value Dv=a3a2+b2D_v = \frac{a^3}{a^2+b^2}. But vDvv \mapsto D_v is not linear (D(1,0)=1D_{(1,0)} = 1, D(0,1)=0D_{(0,1)} = 0, D(1,1)=121D_{(1,1)} = \frac12 \neq 1): no linear map can produce these values, so ff is not differentiable at 00 (the differential would have to be vDvv \mapsto D_v).

Exercise 15.3

Find and classify the critical points of f(x,y)=x3+y33xyf(x, y) = x^3 + y^3 - 3xy using Theorem 15.11, and of g(x,y)=x4+y42(xy)2g(x,y) = x^4 + y^4 - 2(x - y)^2.

Solution

Solution of Exercise 15.3.

f=x3+y33xyf = x^3 + y^3 - 3xy: critical points (0,0)(0,0) and (1,1)(1,1) (Year 1 computation). Hessians: H=(6x336y)H = \begin{pmatrix} 6x & -3\\ -3 & 6y\end{pmatrix}. At (0,0)(0,0): eigen-signs mixed (det=9<0\det = -9 < 0): saddle. At (1,1)(1,1): det=27>0\det = 27 > 0, trace >0> 0: positive definite, strict local minimum — now justified by Theorem 15.11 rather than decreed.

g=x4+y42(xy)2g = x^4 + y^4 - 2(x-y)^2: g=(4x34(xy),  4y3+4(xy))\nabla g = (4x^3 - 4(x - y),\; 4y^3 + 4(x-y)); critical points (0,0)(0,0), (2,2)(\sqrt2, -\sqrt2), (2,2)(-\sqrt2, \sqrt2) (Year 1). At (±2,2)(\pm\sqrt2, \mp\sqrt2): H=(12244420)=(204420)H = \begin{pmatrix} 12\cdot2 - 4 & 4\\ 4 & 20\end{pmatrix} = \begin{pmatrix} 20 & 4\\ 4 & 20\end{pmatrix}: positive definite (diagonally dominant; eigenvalues 24,1624, 16): strict local minima. At (0,0)(0,0): H=(4444)H = \begin{pmatrix} -4 & 4\\ 4 & -4\end{pmatrix}, singular negative semidefinite: the test is silent; the directional study (g(x,x)=2x4>0g(x,x) = 2x^4 > 0, g(x,x)=2x48x2<0g(x,-x) = 2x^4 - 8x^2 < 0 small) shows a saddle-like point — no extremum.

Exercise 15.4 ★★

Let f ⁣:RnRf \colon \R^n \to \R be C1C^1 and homogeneous of degree pp: f(tx)=tpf(x)f(tx) = t^pf(x) for t>0t > 0. Prove Euler’s identity

f(x),x=pf(x),\langle \nabla f(x), x\rangle = p\,f(x) ,

and its converse for C1C^1 functions on Rn{0}\R^n\setminus\{0\}.

Solution

Solution of Exercise 15.4.

Differentiate tf(tx)t \mapsto f(tx) at t=1t = 1: by the chain rule, f(x),x\langle \nabla f(x), x\rangle; by homogeneity the same function is tpf(x)t^pf(x), of derivative pf(x)pf(x) at t=1t = 1: Euler’s identity.

Converse: fix x0x \neq 0 and let φ(t)=f(tx)tpf(x)\varphi(t) = f(tx) - t^p f(x) on t>0t > 0. Then φ(t)=f(tx),xptp1f(x)=1t(f(tx),txptpf(x))\varphi'(t) = \langle\nabla f(tx), x\rangle - pt^{p-1}f(x) = \frac1t\bigl(\langle \nabla f(tx), tx\rangle - p\,t^pf(x)\bigr). The hypothesis — Euler’s identity at the point txtx — evaluates the bracket as pf(tx)ptpf(x)=pφ(t)p\,f(tx) - p\,t^pf(x) = p\,\varphi(t). So φ=ptφ\varphi' = \frac{p}{t}\varphi with φ(1)=0\varphi(1) = 0: the linear ODE’s unique solution is φ0\varphi \equiv 0 (Year 1 uniqueness), i.e. f(tx)=tpf(x)f(tx) = t^pf(x).

Exercise 15.5 ★★

Let AA be symmetric and f(x)=12Ax,xb,xf(x) = \frac12\langle Ax, x\rangle - \langle b, x\rangle. Compute f\nabla f and HfH_f; when is ff convex? Assuming AA positive definite, show that ff has a unique global minimum at the solution of Ax=bAx = b — gradient descent’s raison d’être.

Solution

Solution of Exercise 15.5.

Expanding f(x+h)f(x)=Axb,h+12Ah,hf(x + h) - f(x) = \langle Ax - b, h\rangle + \frac12\langle Ah, h\rangle (symmetry of AA): f(x)=Axb\nabla f(x) = Ax - b and Hf=AH_f = A everywhere. ff is convex iff AA is positive semidefinite (the Hessian test, global here since HH is constant: the second-order Taylor formula is exact). If AA is positive definite: the unique critical point is x=A1bx^* = A^{-1}b, and f(x+h)f(x)=12Ah,hλmin2h2>0f(x^* + h) - f(x^*) = \frac12\langle Ah, h\rangle \geq \frac{\lambda_{\min}}{2}\norm h^2 > 0 for h0h \neq 0: strict global minimum.

Exercise 15.6 ★★

(Lagrange multiplier, one constraint, proved by hand) Let f,gf, g be C1C^1 on R2\R^2, and suppose ff attains, at aa, a local extremum on the level set {g=0}\{g = 0\}, with g(a)0\nabla g(a) \neq 0. Prove that f(a)=λg(a)\nabla f(a) = \lambda\nabla g(a) for some λ\lambda. (Parametrize the level set near aa by the implicit function theorem and differentiate tf(γ(t))t \mapsto f(\gamma(t)).) Application: extrema of f(x,y)=xyf(x,y) = xy on the circle x2+y2=1x^2 + y^2 = 1.

Solution

Solution of Exercise 15.6.

Since g(a)0\nabla g(a) \neq 0, one partial, say gy(a)0\frac{\partial g}{\partial y}(a) \neq 0: the implicit function theorem (Theorem 15.14’s companion) parametrizes {g=0}\{g = 0\} near a=(a1,a2)a = (a_1, a_2) as γ(t)=(t,y(t))\gamma(t) = (t, y(t)) with yy C1C^1, y(t)=xgyg(γ(t))y'(t) = -\frac{\partial_x g}{\partial_y g}(\gamma(t)) (differentiate g(t,y(t))=0g(t, y(t)) = 0). The one-variable function tf(γ(t))t \mapsto f(\gamma(t)) has a local extremum at t=a1t = a_1:

0= ⁣d ⁣dtf(γ(t))a1=xf(a)+yf(a)y(a1)=xf(a)yf(a)xg(a)yg(a):0 = \frac{\dd}{\dd t}f(\gamma(t))\Big|_{a_1} = \partial_x f(a) + \partial_y f(a)\,y'(a_1) = \partial_x f(a) - \partial_yf(a)\frac{\partial_x g(a)}{\partial_y g(a)} :

the vectors f(a)\nabla f(a) and g(a)\nabla g(a) have proportional coordinates: f(a)=λg(a)\nabla f(a) = \lambda \nabla g(a) with λ=yf(a)yg(a)\lambda = \frac{\partial_y f(a)}{\partial_y g(a)}.

Application: on the circle, (xy)=(y,x)\nabla(xy) = (y, x) parallel to (2x,2y)(2x, 2y) forces y2=x2y^2 = x^2; with the constraint, the candidates are ±(12,12)\pm\bigl(\tfrac{1}{\sqrt2}, \tfrac{1}{\sqrt2}\bigr) (value 12\frac12) and ±(12,12)\pm\bigl(\tfrac{1}{\sqrt2}, -\tfrac{1}{\sqrt2}\bigr) (value 12-\frac12): max 12\frac12, min 12-\frac12 (attained: the circle is compact).

Exercise 15.7 ★★

Determine the extrema of f(x,y)=x2+y2xy+xyf(x, y) = x^2 + y^2 - xy + x - y on R2\R^2, then its maximum and minimum on the closed triangle with vertices (0,0)(0,0), (1,0)(1,0), (0,1)(0,1) (interior critical points, then the three edges, then the vertices).

Solution

Solution of Exercise 15.7.

f=(2xy+1,  2yx1)=0\nabla f = (2x - y + 1,\; 2y - x - 1) = 0: solving, x=13x = -\frac13, y=13y = \frac13. Hessian (2112)\begin{pmatrix} 2 & -1\\ -1 & 2\end{pmatrix}, positive definite: global minimum of the quadratic ff, value f(13,13)=13f\bigl(-\frac13, \frac13\bigr) = -\frac13.

On the triangle TT: the interior critical point (13,13)T(-\frac13, \frac13) \notin T (negative xx). Edges: on y=0y = 0, x[0,1]x \in \intcc{0}{1}: f=x2+xf = x^2 + x, increasing: extremes 00 and 22. On x=0x = 0: f=y2yf = y^2 - y, minimum 14-\frac14 at y=12y = \frac12, values 00 and 00 at the ends. On x+y=1x + y = 1: substitute y=1xy = 1 - x, f=x2+(1x)2x(1x)+x(1x)=3x2xf = x^2 + (1-x)^2 - x(1-x) + x - (1-x) = 3x^2 - x; on [0,1]\intcc{0}{1}: minimum 112-\frac{1}{12} at x=16x = \frac16, values 00 (at x=0x=0) and 22 (at x=1x=1). Vertices: f(0,0)=0f(0,0) = 0, f(1,0)=2f(1,0) = 2, f(0,1)=0f(0,1) = 0. Global on TT: minimum 14-\frac14 at (0,12)(0, \frac12), maximum 22 at (1,0)(1, 0).

Exercise 15.8 ★★★

Let f ⁣:R2R2f \colon \R^2 \to \R^2, f(x,y)=(x+y2,  y+x2)f(x, y) = (x + y^2,\; y + x^2). Show that ff is a local diffeomorphism near 00, compute  ⁣d(f1)(0,0)\dd(f^{-1})_{(0,0)}, and find the largest rr such that  ⁣df\dd f is invertible on the ball (x,y)2<r\norm{(x,y)}_2 < r (compute detJf\det J_f).

Solution

Solution of Exercise 15.8.

Jf=(12y2x1)J_f = \begin{pmatrix} 1 & 2y\\ 2x & 1\end{pmatrix}, detJf=14xy\det J_f = 1 - 4xy. At 00: det=10\det = 1 \neq 0: local diffeomorphism (Theorem 15.14), with

 ⁣d(f1)(0,0)=(Jf(0))1=I2.\dd(f^{-1})_{(0,0)} = (J_f(0))^{-1} = I_2 .

Invertibility on a ball: need 4xy<14\abs{xy} < 1 throughout; on (x,y)2<r\norm{(x,y)}_2 < r, xyx2+y22<r22\abs{xy} \leq \frac{x^2 + y^2}{2} < \frac{r^2}{2}, so r=12r = \frac{1}{\sqrt2} works; and it is largest: at (x,y)=(12,12)(x, y) = \bigl(\tfrac12, \tfrac12\bigr), of norm 12\frac{1}{\sqrt2}, detJf=0\det J_f = 0.

Exercise 15.9 ★★★

(Rolle fails, mean value survives) Give f ⁣:RR2f \colon \R \to \R^2, C1C^1, with f(0)=f(2π)f(0) = f(2\pi) but f(t)0f'(t) \neq 0 for all tt (no vector-valued Rolle). Then verify on your example the mean value inequality of Theorem 15.5.

Solution

Solution of Exercise 15.9.

f(t)=(cost,sint)f(t) = (\cos t, \sin t): f(0)=f(2π)=(1,0)f(0) = f(2\pi) = (1, 0), yet f(t)=(sint,cost)f'(t) = (-\sin t, \cos t) has norm 11, never zero: no point where the derivative vanishes — Rolle has no vector analogue. The mean value inequality holds comfortably: f(2π)f(0)=02πsupf=2π\norm{f(2\pi) - f(0)} = 0 \leq 2\pi \cdot \sup\norm{f'} = 2\pi.

Exercise 15.10

Compute the differential and the gradient of f(x)=x22f(x) = \norm x_2^2 and of g(x)=Ax,xg(x) = \langle Ax, x\rangle on Rn\R^n (AA a square matrix, not assumed symmetric), and the Hessian of each. For which AA is gg convex?

Solution

Solution of Exercise 15.10.

f(x+h)f(x)=2x,h+h2f(x+h) - f(x) = 2\langle x, h\rangle + \norm h^2:  ⁣dfx=2x,\dd f_x = 2\langle x, \cdot\rangle, f(x)=2x\nabla f(x) = 2x, Hessian 2I2I (constant). For gg:

g(x+h)g(x)=Ax,h+Ah,x+Ah,h=(A+AT)x, h+O(h2),g(x + h) - g(x) = \langle Ax, h\rangle + \langle Ah, x\rangle + \langle Ah, h\rangle = \bigl\langle (A + A^{\mathsf T})x,\ h\bigr\rangle + O(\norm h^2),

so g(x)=(A+AT)x\nabla g(x) = (A + A^{\mathsf T})x and Hg=A+ATH_g = A + A^{\mathsf T}, constant. By Exercise 15.11, gg is convex iff A+ATA + A^{\mathsf T} is positive semidefinite — only the symmetric part of AA matters, as indeed g(x)=A+AT2x,xg(x) = \langle \frac{A + A^{\mathsf T}}2 x, x\rangle.

Exercise 15.11 ★★

Let f ⁣:RnRf \colon \R^n \to \R be C2C^2. Prove that ff is convex if and only if its Hessian HxH_x is positive semidefinite at every xx (reduce to one variable: tf(a+t(ba))t \mapsto f(a + t(b-a)); use Taylor–Lagrange in one direction, and for the converse evaluate φ\varphi'').

Solution

Solution of Exercise 15.11.

ff is convex iff its restriction to every segment is convex, i.e. iff every φ(t)=f(a+tv)\varphi(t) = f(a + tv) is convex. By the chain rule φ(t)=Ha+tvv, v\varphi''(t) = \langle H_{a+tv}\,v,\ v\rangle.

If all Hessians are positive semidefinite: φ0\varphi'' \geq 0, so each φ\varphi is convex (Year 1 volume) and ff is convex. Conversely if ff is convex, each φ\varphi is convex, so φ(0)0\varphi''(0) \geq 0: Hav,v0\langle H_a v, v\rangle \geq 0 for every aa and every direction vv: all Hessians are positive semidefinite.

Exercise 15.12 ★★★

(A global inverse theorem) Let g ⁣:RnRng \colon \R^n \to \R^n be C1C^1 with  ⁣dgxk<1\vertiii{\dd g_x} \leq k < 1 for all xx, and f=id+gf = \mathrm{id} + g.

  1. Show f(x)f(y)(1k)xy\norm{f(x) - f(y)} \geq (1 - k)\norm{x - y}: ff is injective, with continuous inverse on its image.
  2. Show that for each yRny \in \R^n the map xyg(x)x \mapsto y - g(x) is a contraction of the complete space Rn\R^n, and conclude by the Banach fixed point theorem (Theorem 4.12) that ff is surjective.
  3. Conclude that ff is a bijection of Rn\R^n with (1k)1(1-k)^{-1}-Lipschitz inverse — a global counterpart of Theorem 15.14 (which, by contrast, is purely local).
Solution

Solution of Exercise 15.12.

  1. By the mean value inequality (Theorem 15.5) applied to gg: g(x)g(y)kxy\norm{g(x) - g(y)} \leq k\norm{x-y}, so

    f(x)f(y)xyg(x)g(y)(1k)xy:\norm{f(x) - f(y)} \geq \norm{x - y} - \norm{g(x) - g(y)} \geq (1 - k)\norm{x - y} :

    ff is injective and f1f^{-1} (defined on the image) is 11k\frac{1}{1-k}-Lipschitz.

  2. Fix yy; T(x)=yg(x)T(x) = y - g(x) satisfies T(x)T(x)=g(x)g(x)kxx\norm{T(x) - T(x')} = \norm{g(x') - g(x)} \leq k\norm{x - x'}: a contraction of the complete space Rn\R^n. Banach (Theorem 4.12) gives a fixed point x=yg(x)x^* = y - g(x^*), i.e. f(x)=yf(x^*) = y: ff is surjective.
  3. ff is thus a bijection of Rn\R^n with 11k\frac{1}{1-k}-Lipschitz inverse: a global inverse theorem, where the smallness of  ⁣dg\dd g everywhere replaces the local invertibility hypothesis of Theorem 15.14.

15.5 Problem: The calculus of matrices — Jacobi, exponential, and the orthogonal group

Problem 15.1

The cleanest playground for differential calculus is the space Mn(R)Rn2\mathcal M_n(\R) \simeq \R^{n^2} itself: its most natural maps — product, inverse, determinant, exponential — have differentials of striking elegance. This problem computes them all: the Neumann series, the differential of the inverse, Jacobi’s formula for the determinant with Liouville’s formula as dividend, the matrix exponential with deteA=etrA\det\eu^A = \eu^{\operatorname{tr}A}, and finally the orthogonal group OnO_n as a smooth level set with the antisymmetric matrices as tangent space — differential geometry in embryo. Throughout, \vertiii\cdot is the operator norm subordinate to 2\norm\cdot_2, and X,Y=tr(XTY)\langle X, Y\rangle = \operatorname{tr}(X^{\mathsf T}Y) the Frobenius inner product.

Part I — The Neumann series.

  1. Prove submultiplicativity, ABAB\vertiii{AB} \leq \vertiii A\,\vertiii B, and deduce that polynomial maps of AA (matrix products, determinant, trace) are continuous on Mn(R)\mathcal M_n(\R).
  2. For X<1\vertiii X < 1, show that k0Xk\sum_{k\geq0}X^k converges absolutely in Mn(R)\mathcal M_n(\R) (Theorem 5.21), that its sum is (IX)1(I - X)^{-1}, and that

    (IX)111X,(IX)1=I+X+O(X2).\vertiii{(I - X)^{-1}} \leq \frac{1}{1 - \vertiii X}, \qquad (I - X)^{-1} = I + X + O\bigl(\vertiii X^2\bigr) .
  3. Deduce that GLn(R)GL_n(\R) is open: if AA is invertible and H<1A1\vertiii H < \frac{1}{\vertiii{A^{-1}}}, then A+HA + H is invertible. Deduce also that GLn(R)GL_n(\R) is dense in Mn(R)\mathcal M_n(\R) (perturb AA by εI\varepsilon I: det(A+εI)\det(A + \varepsilon I) is a nonzero polynomial in ε\varepsilon).
  4. Show that the inversion map Φ(A)=A1\Phi(A) = A^{-1} is continuous on GLn(R)GL_n(\R).

Part II — First differentials.

  1. Show that the squaring map AA2A \mapsto A^2 is differentiable with differential HAH+HAH \mapsto AH + HA, and more generally that AAkA \mapsto A^k has differential Hi=0k1AiHAk1iH \mapsto \sum_{i=0}^{k-1} A^iHA^{k-1-i}. Why can one not write kAk1HkA^{k-1}H in general?
  2. Prove that Φ(A)=A1\Phi(A) = A^{-1} is differentiable on GLn(R)GL_n(\R) with

     ⁣dΦA(H)=A1HA1\dd\Phi_A(H) = -A^{-1}HA^{-1}

    (write (A+H)1=(I+A1H)1A1(A + H)^{-1} = (I + A^{-1}H)^{-1}A^{-1} and expand by question 2). Check the formula against the scalar case n=1n = 1.

  3. For a C1C^1 curve tA(t)GLn(R)t \mapsto A(t) \in GL_n(\R), deduce (A(t)1)=A1AA1\bigl(A(t)^{-1}\bigr)' = -A^{-1}A'A^{-1}, and expand t(I+tB)1t \mapsto (I + tB)^{-1} to first order at t=0t = 0.
  4. Compute the differential of f(A)=tr(Ak)f(A) = \operatorname{tr}(A^k) and identify its gradient for the Frobenius inner product:

     ⁣dfA(H)=ktr(Ak1H),f(A)=k(Ak1)T.\dd f_A(H) = k\operatorname{tr}\bigl(A^{k-1}H\bigr), \qquad \nabla f(A) = k\,\bigl(A^{k-1}\bigr)^{\mathsf T} .
  5. Same questions for f(A)=tr(ATA)=AF2f(A) = \operatorname{tr} (A^{\mathsf T}A) = \norm A_F^2: differential, gradient, and the (constant) Hessian; conclude that F2\norm\cdot_F^2 is strictly convex.

Part III — Jacobi’s formula.

  1. Prove

    det(I+H)=1+trH+O(H2)\det(I + H) = 1 + \operatorname{tr}H + O\bigl(\vertiii H^2\bigr)

    (expand det(e1+h1,,en+hn)\det(e_1 + h_1, \dots, e_n + h_n) by multilinearity in the columns: terms with at least two hh-columns are O(H2)O(\vertiii H^2)):  ⁣d(det)I=tr\dd(\det)_I = \operatorname{tr}.

  2. For AA invertible, deduce

     ⁣d(det)A(H)=det(A)tr(A1H).\dd(\det)_A(H) = \det(A)\, \operatorname{tr}\bigl(A^{-1}H\bigr) .
  3. Show that for every AA (invertible or not), detaij(A)=Cij\frac{\partial\det}{\partial a_{ij}}(A) = C_{ij}, the (i,j)(i,j) cofactor (Laplace expansion along row ii), so that with the adjugate adjA=com(A)T\operatorname{adj}A = \operatorname{com}(A)^{\mathsf T}:

     ⁣d(det)A(H)=tr(adj(A)H),(det)(A)=com(A),\dd(\det)_A(H) = \operatorname{tr}\bigl(\operatorname{adj}(A)\,H\bigr), \qquad \nabla(\det)(A) = \operatorname{com}(A) ,

    recovering question 11 when AA is invertible (adjA=det(A)A1\operatorname{adj}A = \det(A)A^{-1}). This is Jacobi’s formula: (detA(t))=tr(adj(A(t))A(t))\bigl(\det A(t)\bigr)' = \operatorname{tr}\bigl( \operatorname{adj}(A(t))\,A'(t)\bigr).

  4. (Liouville’s formula) Let A(t)A(t) be a C1C^1 curve of matrices satisfying the linear differential equation A(t)=M(t)A(t)A'(t) = M(t)A(t). Prove

    (detA(t))=tr(M(t))detA(t),hencedetA(t)=detA(0)exp(0ttrM)\bigl(\det A(t)\bigr)' = \operatorname{tr}\bigl(M(t)\bigr)\,\det A(t), \qquad\text{hence}\qquad \det A(t) = \det A(0)\, \exp\Bigl(\int_0^t\operatorname{tr}M\Bigr)

    (use adj(A)A=det(A)I\operatorname{adj}(A)\,A = \det(A)I and the cyclic invariance of the trace) — the Wronskian identity that the differential-equations chapter will use constantly.

  5. Show that SLn(R)={det=1}SL_n(\R) = \{\det = 1\} is a smooth level set: at every ASLn(R)A \in SL_n(\R) the differential  ⁣d(det)A\dd(\det)_A is a surjective linear map onto R\R (evaluate it at H=1nAH = \frac1nA).

Part IV — The matrix exponential.

  1. Show that eA=k0Akk!\eu^A = \sum_{k\geq0}\frac{A^k}{k!} converges absolutely for every AA, normally on every ball, with eAeA\vertiii{\eu^A} \leq \eu^{\vertiii A}; and that eA\eu^A depends continuously on AA.
  2. Prove that AB=BAAB = BA implies eA+B=eAeB\eu^{A+B} = \eu^A\eu^B (Cauchy product, legitimate by absolute convergence); deduce that eA\eu^A is always invertible, with inverse eA\eu^{-A}: exp\exp maps Mn(R)\mathcal M_n(\R) into GLn(R)GL_n(\R).
  3. Show that tetAt \mapsto \eu^{tA} is C1C^1 (indeed CC^\infty) with

     ⁣d ⁣dtetA=AetA=etAA\frac{\dd}{\dd t}\,\eu^{tA} = A\,\eu^{tA} = \eu^{tA}A

    (differentiate the series term by term on segments: the derived series converges normally).

  4. Prove the identity

    det(eA)=etrA\det\bigl(\eu^{A}\bigr) = \eu^{\operatorname{tr}A}

    (apply Liouville’s formula, question 13, to A(t)=etAA(t) = \eu^{tA}). Sanity checks: n=1n = 1; nilpotent AA; and the trace-zero matrices land in SLn(R)SL_n(\R).

  5. Show eH=I+H+O(H2)\eu^H = I + H + O(\vertiii H^2), so exp\exp is differentiable at 00 with  ⁣d(exp)0=id\dd(\exp)_0 = \mathrm{id}; conclude with the inverse function theorem (Theorem 15.14) that exp\exp is a C1C^1 diffeomorphism from a neighborhood of 00 onto a neighborhood of II: every matrix close to the identity has a logarithm.
  6. Show that exp\exp maps symmetric matrices to symmetric positive definite matrices, bijectively (diagonalize; the inverse is the spectral logarithm).

Part V — The orthogonal group as a level set.

  1. Let F(A)=ATAF(A) = A^{\mathsf T}A, from Mn(R)\mathcal M_n(\R) to the symmetric matrices SnS_n. Compute  ⁣dFA(H)=ATH+HTA\dd F_A(H) = A^{\mathsf T}H + H^{\mathsf T}A and show that at every AOn=F1(I)A \in O_n = F^{-1}(I) this differential is surjective onto SnS_n (given SSnS \in S_n, try H=12ASH = \frac12 AS): OnO_n is a smooth level set, of dimension n2n(n+1)2=n(n1)2n^2 - \frac{n(n+1)}2 = \frac{n(n-1)}2.
  2. Show that every C1C^1 curve A(t)OnA(t) \in O_n with A(0)=IA(0) = I has an antisymmetric velocity A(0)A'(0), and conversely that for antisymmetric KK the curve etK\eu^{tK} stays in OnO_n: the tangent space of OnO_n at II is exactly the antisymmetric matrices.
  3. Show deteK=1\det\eu^{K} = 1 for antisymmetric KK (question 18): the exponential curve lives in the rotation group SOnSO_n. Compute it fully for n=2n = 2: with J=(0110)J = \begin{pmatrix}0 & -1\\ 1 & 0\end{pmatrix}, prove

    eθJ=(cosθsinθsinθcosθ):\eu^{\theta J} = \begin{pmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta\end{pmatrix} :

    the matrix exponential is the rotation by θ\theta, and the series definitions of cosine and sine reappear inside a matrix.

  4. (The density trick) Using the density of GLn(R)GL_n(\R) (question 3) and continuity, extend from invertible to all matrices the identity

    adj(AB)=adj(B)adj(A)\operatorname{adj}(AB) = \operatorname{adj}(B)\operatorname{adj}(A)

    (for invertible A,BA, B both sides equal det(AB)(AB)1\det(AB)(AB)^{-1}; both sides are polynomial in the entries).

  5. Synthesis. In one sentence each: (i) which earlier chapters provided the engine of each Part (completeness and normed algebras; the spectral theorem; the inverse function theorem); (ii) which formula of this problem the differential-equations chapter will lean on, and where; (iii) what  ⁣d(det)I=tr\dd(\det)_I = \operatorname{tr} and deteA=etrA\det\eu^A = \eu^{\operatorname{tr}A} say about trace and determinant as “infinitesimal and global volume”; (iv) what the Year 3 volume makes of questions 21–23 (Lie groups and their Lie algebras).
Solution

Solution of Problem 15.1.

1. ABxABxABx\norm{ABx} \leq \vertiii A\norm{Bx} \leq \vertiii A\vertiii B\norm x: take the sup over x=1\norm x = 1. Matrix products, det\det and tr\operatorname{tr} are polynomial functions of the entries, hence continuous (Mn(R)Rn2\mathcal M_n(\R) \simeq \R^{n^2}, all norms equivalent: Theorem 5.13).

2. XkXk<\sum\vertiii{X^k} \leq \sum\vertiii X^k < \infty: the series converges absolutely, hence converges (Theorem 5.21). From (IX)kNXk=IXN+1I(I - X)\sum_{k\leq N}X^k = I - X^{N+1} \to I: the sum is (IX)1(I - X)^{-1}. Norm: Xk=11X\leq \sum\vertiii X^k = \frac{1}{1 - \vertiii X}; and

(IX)1IX=k2Xk=X2(IX)1,X2(IX)1X21X=O(X2).(I - X)^{-1} - I - X = \sum_{k\geq2}X^k = X^2(I - X)^{-1}, \qquad \vertiii{X^2(I-X)^{-1}} \leq \frac{\vertiii X^2}{1 - \vertiii X} = O(\vertiii X^2).

3. A+H=A(I+A1H)A + H = A(I + A^{-1}H) with A1HA1H<1\vertiii{A^{-1}H} \leq \vertiii{A^{-1}}\vertiii H < 1: invertible by question 2: the open ball of radius A11\vertiii{A^{-1}}^{-1} around AA lies in GLn(R)GL_n(\R). Density: det(A+εI)\det(A + \varepsilon I) is a degree-nn polynomial in ε\varepsilon with leading coefficient 11: it has finitely many roots, so there are εk0\varepsilon_k \to 0 with A+εkIA + \varepsilon_kI invertible, converging to AA.

4. For H<12A1\vertiii H < \frac{1}{2\vertiii{A^{-1}}}:

(A+H)1A1=[(I+A1H)1I]A1,(A + H)^{-1} - A^{-1} = \bigl[(I + A^{-1}H)^{-1} - I\bigr]A^{-1},

of norm at most A1H1A1HA12A12H0\frac{\vertiii{A^{-1}H}}{1 - \vertiii{A^{-1}H}}\,\vertiii{A^{-1}} \leq 2\vertiii{A^{-1}}^2\vertiii H \to 0: Φ\Phi is continuous at every AGLn(R)A \in GL_n(\R).

5. (A+H)2=A2+AH+HA+H2(A+H)^2 = A^2 + AH + HA + H^2: the map HAH+HAH \mapsto AH + HA is linear and the error H2H^2 is O(H2)O(\vertiii H^2). Expanding (A+H)k(A + H)^k and sorting by the number of HH-factors: the linear part is i=0k1AiHAk1i\sum_{i=0}^{k-1}A^iHA^{k-1-i}, and the terms with 2\geq 2 factors HH are bounded by (k2)\binom k2-many products of norm Ak2H2\leq \vertiii A^{k-2}\vertiii H^2-scale: O(H2)O(\vertiii H^2). One cannot collapse the sum to kAk1HkA^{k-1}H because HH and AA need not commute — the sum is the correct noncommutative derivative.

6. For small HH:

(A+H)1=(I+A1H)1A1=(IA1H+O(H2))A1=A1A1HA1+O(H2):(A+H)^{-1} = (I + A^{-1}H)^{-1}A^{-1} = \bigl(I - A^{-1}H + O(\vertiii H^2)\bigr)A^{-1} = A^{-1} - A^{-1}HA^{-1} + O(\vertiii H^2) :

 ⁣dΦA(H)=A1HA1\dd\Phi_A(H) = -A^{-1}HA^{-1}, linear in HH. For n=1n = 1:  ⁣d(1/a)(h)=h/a2\dd(1/a)(h) = -h/a^2, the familiar derivative.

7. Chain rule along the curve: (A(t)1)= ⁣dΦA(t)(A(t))=A(t)1A(t)A(t)1\bigl(A(t)^{-1}\bigr)' = \dd\Phi_{A(t)}(A'(t)) = -A(t)^{-1}A'(t)A(t)^{-1}. At A(t)=I+tBA(t) = I + tB, t=0t = 0: (I+tB)1=ItB+O(t2)(I + tB)^{-1} = I - tB + O(t^2).

8. By question 5 and cyclic invariance of the trace:

 ⁣dfA(H)=tr(i=0k1AiHAk1i)=ktr(Ak1H).\dd f_A(H) = \operatorname{tr}\Bigl(\sum_{i=0}^{k-1} A^iHA^{k-1-i}\Bigr) = k\operatorname{tr}\bigl(A^{k-1}H\bigr) .

Against the Frobenius product,  ⁣dfA(H)=tr((f)TH)\dd f_A(H) = \operatorname{tr}\bigl((\nabla f)^{\mathsf T}H\bigr) requires (f)T=kAk1(\nabla f)^{\mathsf T} = kA^{k-1}: f(A)=k(Ak1)T\nabla f(A) = k\,(A^{k-1})^{\mathsf T}.

9. f(A+H)f(A)=2tr(ATH)+tr(HTH)f(A + H) - f(A) = 2\operatorname{tr} (A^{\mathsf T}H) + \operatorname{tr}(H^{\mathsf T}H): the differential is H2tr(ATH)=2A,HH \mapsto 2\operatorname{tr}(A^{\mathsf T}H) = 2\langle A, H\rangle, so f(A)=2A\nabla f(A) = 2A; the second-order term is exactly HF2\norm H_F^2: the Hessian is twice the identity quadratic form, positive definite and constant, so F2\norm\cdot_F^2 is strictly convex (the Taylor formula is exact here).

10. By multilinearity in the columns, det(I+H)=S{1,,n}det(MS)\det(I + H) = \sum_{S\subseteq\{1,\dots,n\}}\det(M_S) where MSM_S has column hjh_j for jSj \in S and eje_j otherwise. S=S = \varnothing gives 11; S={j}S = \{j\} gives the determinant of II with column jj replaced by hjh_j, namely its jj-th entry hjjh_{jj}, summing to trH\operatorname{tr}H; each term with S2\abs S \geq 2 is a determinant with at least two columns of size O(H)O(\vertiii H), hence O(H2)O(\vertiii H^2) (multilinear maps on a finite-dimensional space are bounded), and there are finitely many. So det(I+H)=1+trH+O(H2)\det(I + H) = 1 + \operatorname{tr}H + O(\vertiii H^2):  ⁣d(det)I=tr\dd(\det)_I = \operatorname{tr}.

11. det(A+H)=detAdet(I+A1H)=detA(1+tr(A1H)+O(H2))\det(A + H) = \det A\,\det(I + A^{-1}H) = \det A\,\bigl(1 + \operatorname{tr}(A^{-1}H) + O(\vertiii H^2)\bigr): the differential is Hdet(A)tr(A1H)H \mapsto \det(A)\operatorname{tr}(A^{-1}H).

12. Laplace expansion along row ii: detA=jaijCij\det A = \sum_j a_{ij}C_{ij}, and the cofactors CijC_{ij} do not involve row ii: detaij=Cij\frac{\partial\det}{\partial a_{ij}} = C_{ij}. Hence

 ⁣d(det)A(H)=i,jCijhij=tr(com(A)TH)=tr(adj(A)H),(det)(A)=com(A).\dd(\det)_A(H) = \sum_{i,j}C_{ij}h_{ij} = \operatorname{tr}\bigl(\operatorname{com}(A)^{\mathsf T} H\bigr) = \operatorname{tr}\bigl(\operatorname{adj}(A)H\bigr), \qquad \nabla(\det)(A) = \operatorname{com}(A) .

For invertible AA, adjA=det(A)A1\operatorname{adj}A = \det(A)A^{-1} recovers question 11. Along a C1C^1 curve, the chain rule reads (detA(t))=tr(adj(A(t))A(t))(\det A(t))' = \operatorname{tr}(\operatorname{adj} (A(t))\,A'(t)): Jacobi’s formula.

13. With A=MAA' = MA and adj(A)A=det(A)I\operatorname{adj}(A)A = \det(A)I:

(detA)=tr(adj(A)MA)=tr(Aadj(A)M)=detA  trM(\det A)' = \operatorname{tr}\bigl(\operatorname{adj}(A)MA \bigr) = \operatorname{tr}\bigl(A\operatorname{adj}(A)M\bigr) = \det A\;\operatorname{tr}M

(cyclicity; AadjA=det(A)IA\operatorname{adj}A = \det(A) I as well). The scalar linear ODE y=tr(M(t))yy' = \operatorname{tr}(M(t))\,y has the unique solution y(t)=y(0)exp(0ttrM)y(t) = y(0)\exp\bigl(\int_0^t \operatorname{tr}M\bigr) (Year 1): Liouville’s formula.

14. At ASLn(R)A \in SL_n(\R), take H=1nAH = \frac1nA:  ⁣d(det)A(1nA)=1ndet(A)tr(A1A)=1n1n=10\dd(\det)_A\bigl(\tfrac1nA\bigr) = \frac1n\det(A) \operatorname{tr}(A^{-1}A) = \frac1n\cdot1\cdot n = 1 \neq 0: the differential is a nonzero linear form, hence surjective onto R\R at every point of the level set: SLn(R)SL_n(\R) is a smooth level set (of dimension n21n^2 - 1).

15. kAk/k!Ak/k!=eA\sum_k\vertiii{A^k/k!} \leq \sum\vertiii A^k/k! = \eu^{\vertiii A}: absolute convergence (question 2’s completeness argument), with normal convergence on every ball AR\vertiii A \leq R (bound Rk/k!R^k/k! independent of AA). Each partial sum is continuous (polynomial); the uniform limit on balls is continuous: AeAA \mapsto \eu^A is continuous, with eAeA\vertiii{\eu^A} \leq \eu^{\vertiii A}.

16. Both series converge absolutely, so the Cauchy product is legitimate (Theorem 7.14):

eAeB=n01n!k=0n(nk)AkBnk=n0(A+B)nn!=eA+B,\eu^A\eu^B = \sum_{n\geq0}\frac{1}{n!}\sum_{k=0}^n\binom nkA^kB^{n-k} = \sum_{n\geq0}\frac{(A+B)^n}{n!} = \eu^{A+B},

the binomial identity requiring AB=BAAB = BA. With B=AB = -A: eAeA=e0=I\eu^A\eu^{-A} = \eu^0 = I: every eAGLn(R)\eu^A \in GL_n(\R).

17. The series tkAk/k!\sum t^kA^k/k! and its derived series tk1Ak/(k1)!=Atk1Ak1/(k1)!\sum t^{k-1}A^k/(k-1)! = A\sum t^{k-1}A^{k-1}/(k-1)! converge normally on every segment tT\abs t \leq T (bounds TkAk/k!T^k\vertiii A^k/k!): the differentiation theorem for series (Theorem 10.11, applied entry by entry) gives  ⁣d ⁣dtetA=AetA\frac{\dd}{\dd t}\eu^{tA} = A\eu^{tA}; factoring AA on the right instead gives etAA\eu^{tA}A. Iterating: CC^\infty.

18. A(t)=etAA(t) = \eu^{tA} satisfies A(t)=AA(t)A'(t) = A\,A(t): Liouville’s formula (question 13) with constant M=AM = A gives detetA=ettrA\det\eu^{tA} = \eu^{t\operatorname{tr}A} (value 11 at t=0t = 0); at t=1t = 1, deteA=etrA\det\eu^A = \eu^{\operatorname{tr}A}. Checks: n=1n = 1 is the exponential itself; a nilpotent AA has trA=0\operatorname{tr}A = 0 and eA\eu^A unipotent of determinant 11; trA=0\operatorname{tr}A = 0 gives deteA=1\det\eu^A = 1: the trace-zero matrices are sent into SLn(R)SL_n(\R).

19. eHIH=k2Hk/k!\eu^H - I - H = \sum_{k\geq2}H^k/k!, of norm H2eH=O(H2)\leq \vertiii H^2\eu^{\vertiii H} = O(\vertiii H^2):  ⁣d(exp)0=id\dd(\exp)_0 = \mathrm{id}, invertible. Moreover exp\exp is C1C^1: by question 5, the differential candidate Hk1k!iAiHAk1iH \mapsto \sum_k\frac1{k!}\sum_iA^iHA^{k-1-i} is a normally convergent series of linear maps depending continuously on AA (bounds Ak1/(k1)!\vertiii A^{k-1}/(k-1)! on balls), so the partials exist and are continuous (Theorem 15.2 and the series transfer theorem). The inverse function theorem (Theorem 15.14) applies at 00: exp\exp is a C1C^1 diffeomorphism of a neighborhood of 00 onto a neighborhood of II — matrices near II have logarithms.

20. For symmetric S=PDPTS = PDP^{\mathsf T} (spectral theorem): eS=PeDPT\eu^S = P\eu^DP^{\mathsf T} is symmetric with eigenvalues eλi>0\eu^{\lambda_i} > 0: positive definite. Surjectivity: a positive definite Q=Pdiag(μi)PTQ = P\operatorname{diag}(\mu_i)P^{\mathsf T} (μi>0\mu_i > 0) is eS\eu^S for S=Pdiag(lnμi)PTS = P\operatorname{diag}(\ln\mu_i)P^{\mathsf T}. Injectivity: eS\eu^S determines its eigenspaces, which are exactly those of SS (on each eigenspace of SS for λ\lambda, eS\eu^S acts as eλ\eu^\lambda; distinct λ\lambda give distinct eλ\eu^\lambda), and taking ln\ln of the eigenvalues recovers SS. So exp\exp is a bijection from symmetric matrices onto positive definite ones.

21. F(A+H)=ATA+ATH+HTA+HTHF(A + H) = A^{\mathsf T}A + A^{\mathsf T}H + H^{\mathsf T}A + H^{\mathsf T}H:  ⁣dFA(H)=ATH+HTA\dd F_A(H) = A^{\mathsf T}H + H^{\mathsf T}A (values in SnS_n; error O(H2)O(\vertiii H^2)). At AOnA \in O_n and for SSnS \in S_n, the choice H=12ASH = \frac12AS gives

AT12AS+12(AS)TA=12S+12ST=S:A^{\mathsf T}\cdot\tfrac12AS + \tfrac12(AS)^{\mathsf T}A = \tfrac12 S + \tfrac12 S^{\mathsf T} = S :

surjective. On=F1(I)O_n = F^{-1}(I) is a smooth level set of dimension n2dimSn=n(n1)2n^2 - \dim S_n = \frac{n(n-1)}2.

22. Differentiating A(t)TA(t)=IA(t)^{\mathsf T}A(t) = I at t=0t = 0 (with A(0)=IA(0) = I): A(0)T+A(0)=0A'(0)^{\mathsf T} + A'(0) = 0: antisymmetric. Conversely, for KT=KK^{\mathsf T} = -K: (etK)TetK=etKTetK=etKetK=I(\eu^{tK})^{\mathsf T}\eu^{tK} = \eu^{tK^{\mathsf T}} \eu^{tK} = \eu^{-tK}\eu^{tK} = I (transpose the series termwise; the exponents commute): the curve stays in OnO_n, with velocity KK at t=0t = 0. Tangent space at II == the antisymmetric matrices, of the expected dimension n(n1)2\frac{n(n-1)}2.

23. trK=0\operatorname{tr}K = 0 for antisymmetric KK, so deteK=e0=1\det\eu^K = \eu^0 = 1 (question 18): the exponential lands in SOnSO_n. For n=2n = 2: J2=IJ^2 = -I, so J2m=(1)mIJ^{2m} = (-1)^mI, J2m+1=(1)mJJ^{2m+1} = (-1)^mJ, and

eθJ=(m(1)mθ2m(2m)!)I+(m(1)mθ2m+1(2m+1)!)J=cosθI+sinθJ,\eu^{\theta J} = \Bigl(\sum_m\frac{(-1)^m\theta^{2m}}{(2m)!}\Bigr)I + \Bigl(\sum_m\frac{(-1)^m\theta^{2m+1}}{(2m+1)!}\Bigr)J = \cos\theta\,I + \sin\theta\,J ,

the rotation by θ\theta: the sine and cosine series live inside the matrix exponential.

24. For invertible A,BA, B: adj(AB)=det(AB)(AB)1=det(B)det(A)B1A1=adj(B)adj(A)\operatorname{adj}(AB) = \det(AB)(AB)^{-1} = \det(B)\det(A)B^{-1}A^{-1} = \operatorname{adj}(B)\operatorname{adj}(A). Both sides of the identity are polynomial (hence continuous) maps of the entries of (A,B)(A, B); they agree on the dense subset GLn×GLnGL_n\times GL_n of Mn×Mn\mathcal M_n\times\mathcal M_n (question 3: approximate each factor), so they agree everywhere.

25. (i) Part I ran on completeness of finite-dimensional normed spaces (absolutely convergent series converge), Part IV on the same plus the spectral theorem for question 20, Part V’s local logarithm on the inverse function theorem. (ii) The differential-equations chapter leans on Liouville’s formula (question 13) for the Wronskian of linear systems, and on  ⁣d ⁣dtetA=AetA\frac{\dd}{\dd t}\eu^{tA} = A\eu^{tA} (question 17), which is the statement that etA\eu^{tA} solves X=AXX' = AX. (iii)  ⁣d(det)I=tr\dd(\det)_I = \operatorname{tr} says the trace is the infinitesimal rate of volume change, and deteA=etrA\det\eu^A = \eu^{\operatorname{tr}A} integrates that statement globally. (iv) The Year 3 volume names the structures: OnO_n and SLn(R)SL_n(\R) are Lie groups, their tangent spaces at II (antisymmetric and trace-zero matrices) are Lie algebras, and exp\exp is the bridge between them.