Chapter 7 Exercises
Protter & Morrey, A First Course in Real Analysis (2nd ed.) §§7.1–7.3
How to use this file
- Textbook: Murray H. Protter & Charles B. Morrey, Jr., A First Course in Real Analysis, 2nd ed., Springer UTM, 1991.
- Range: all section PROBLEMS in Chapter 7: §7.1 (1–10), §7.2 (1–13), §7.3 (1–13).
- Pages: printed pp. 178, 187–188, 192–193; PDF pp. 194, 203–204, 208–209 (body offset PDF = printed + 16).
- Principle: stems follow the scan; solutions are independent. Numbers were recomputed. Odd answers were compared afterwards with the appendix (printed p. 519; PDF p. 534).
- Companion notes:
ch07-notes.qmd.
Numbering is §section.problem, matching the book.
§7.1 Partial Derivatives and the Chain Rule
Printed p. 178; PDF p. 194.
Exercise §7.1.1
\(D\subset\mathbb{R}^N\) open and connected, \(f:D\to\mathbb{R}^1\), and \(f_{,1}=\cdots=f_{,N}=0\) throughout \(D\). Show \(f\) is constant on \(D\).
Fix \(x_0\in D\) and set \(E=\{x\in D:f(x)=f(x_0)\}\). The set \(E\) is nonempty.
Let \(B(c,r)\subset D\) be any open Euclidean ball. For \(x\in B(c,r)\) define the axis-parallel polyline from \(x\) to \(c\) by zeroing one coordinate of \(x-c\) at a time: \[ p^{(0)}=x,\qquad p^{(i)}=(c_1,\ldots,c_i,x_{i+1},\ldots,x_N). \] Then \[ \lvert p^{(i)}-c\rvert^2=\sum_{k=i+1}^N(x_k-c_k)^2\le\lvert x-c\rvert^2<r^2, \] so the whole polyline lies in \(B(c,r)\). Each segment is parallel to a coordinate axis and lies in the domain of \(f_{,i}\), so Theorem 7.1 gives increment \(h_i f_{,i}(\xi)=0\). Hence \(f(x)=f(c)\). In particular \(f\) is constant on every ball contained in \(D\).
Thus \(E\) is open in \(D\): if \(x\in E\) and \(B(x,r)\subset D\), then \(f\equiv f(x)=f(x_0)\) on that ball. Also \(E\) is relatively closed in \(D\): if \(y_n\in E\), \(y_n\to y\in D\), choose \(B(y,r)\subset D\); for large \(n\) one has \(y_n\in B(y,r)\), and constancy on the ball yields \(f(y)=f(y_n)=f(x_0)\). A nonempty clopen subset of a connected set is the whole set, so \(E=D\).
Exercise §7.1.2
\(f:\mathbb{R}^N\to\mathbb{R}^1\), \(g^1,\ldots,g^N:\mathbb{R}^M\to\mathbb{R}^1\), and \(h^1,\ldots,h^M:\mathbb{R}^P\to\mathbb{R}^1\). Chain rule for \(H(x)=f\bigl\{g^1[h^1(x),\ldots,h^M(x)],\,\ldots,\,g^N[h^1(x),\ldots,h^M(x)]\bigr\}\).
Write \(z=(h^1(x),\ldots,h^M(x))\) and \(y=(g^1(z),\ldots,g^N(z))\), so \(H(x)=f(y)\). Assume the hypotheses of Theorem 7.3 at each composition (the inner maps \(h^k\) have a \(j\)-th partial at the point in question; each \(g^i\) and its first partials are continuous at \(z\); \(f\) and its first partials are continuous at \(y\)). Applying Theorem 7.3 to \(K(z)=f[g^1(z),\ldots,g^N(z)]\) and then to each \(g^i\circ h\) gives \[ H_{,j}(x) =\sum_{i=1}^N f_{,i}(y)\, \Biggl(\sum_{k=1}^M g^i_{,k}(z)\,h^k_{,j}(x)\Biggr), \] where \(y=g(h(x))\) and \(z=h(x)\).
Exercise §7.1.3
Prove Theorem 7.2 for \(N=3\).
Let \(a=(a_1,a_2,a_3)\) and \(h=(h_1,h_2,h_3)\), with \(\lvert h\rvert\) small enough that the axis-parallel polyline from \(a\) to \(a+h\) stays in the given ball. The telescoping identity is \[\begin{align*} f(a+h)-f(a) &= \bigl[f(a_1+h_1,a_2,a_3)-f(a)\bigr] +\bigl[f(a_1+h_1,a_2+h_2,a_3)-f(a_1+h_1,a_2,a_3)\bigr]\\ &\qquad +\bigl[f(a_1+h_1,a_2+h_2,a_3+h_3)-f(a_1+h_1,a_2+h_2,a_3)\bigr]. \end{align*}\] Theorem 7.1 on each segment produces intermediate points \(\xi_1\) between \(a_1\) and \(a_1+h_1\), \(\xi_2\) between \(a_2\) and \(a_2+h_2\), and \(\xi_3\) between \(a_3\) and \(a_3+h_3\), such that \[ f(a+h)-f(a) =f_{,1}(\xi_1,a_2,a_3)\,h_1 +f_{,2}(a_1+h_1,\xi_2,a_3)\,h_2 +f_{,3}(a_1+h_1,a_2+h_2,\xi_3)\,h_3. \] Define \[\begin{align*} \varepsilon_1(h)&=f_{,1}(\xi_1,a_2,a_3)-f_{,1}(a),\\ \varepsilon_2(h)&=f_{,2}(a_1+h_1,\xi_2,a_3)-f_{,2}(a),\\ \varepsilon_3(h)&=f_{,3}(a_1+h_1,a_2+h_2,\xi_3)-f_{,3}(a), \end{align*}\] and set \(\varepsilon_i(0)=0\). Continuity of each \(f_{,i}\) at \(a\) forces \(\varepsilon_i(h)\to 0\) as \(h\to 0\), because the evaluation points tend to \(a\). This is (7.4) for \(N=3\). Continuity of \(f\) at \(a\) is immediate from (7.4).
Exercise §7.1.4
\(H\) as in (7.9), \(f=x_1^2+x_2^2-3x_3\), \(g^1=\sin 2x_1+x_2\), \(g^2=\tan x_2+3x_3\), \(g^3=x_1 x_2 x_3\). Compute \(H_{,2}\).
Theorem 7.3: \[ H_{,2}=\sum_{i=1}^3 f_{,i}(g)\,g^i_{,2}. \] The outer partials are \(f_{,1}=2y_1\), \(f_{,2}=2y_2\), \(f_{,3}=-3\). The inner ones are \(g^1_{,2}=1\), \(g^2_{,2}=\sec^2 x_2\), \(g^3_{,2}=x_1 x_3\). Substituting \(y=g(x)\) yields \[ H_{,2}(x) =2(\sin 2x_1+x_2) +2(\tan x_2+3x_3)\sec^2 x_2 -3x_1 x_3. \]
Exercise §7.1.5
\(H\) as in (7.9), \(f=2x_1 x_2+x_3^2-x_4^2\), \(g^1=\log(x_1+x_2)-x_3^2\), \(g^2=x_1^2+x_4^2\), \(g^3=x_1^2 x_3+x_4\), \(g^4=\cos(x_1+x_3)-2x_4\). Compute \(H_{,3}\).
Outer partials: \(f_{,1}=2y_2\), \(f_{,2}=2y_1\), \(f_{,3}=2y_3\), \(f_{,4}=-2y_4\). Inner partials in \(x_3\): \[ g^1_{,3}=-2x_3,\qquad g^2_{,3}=0,\qquad g^3_{,3}=x_1^2,\qquad g^4_{,3}=-\sin(x_1+x_3). \] Theorem 7.3 therefore gives \[\begin{align*} H_{,3}(x) &=(2g^2)(-2x_3)+(2g^1)(0)+(2g^3)(x_1^2)+(-2g^4)(-\sin(x_1+x_3))\\ &=-4x_3(x_1^2+x_4^2)+2x_1^2(x_1^2 x_3+x_4)+2\bigl[\cos(x_1+x_3)-2x_4\bigr]\sin(x_1+x_3). \end{align*}\] This agrees with the odd-answer key.
Exercise §7.1.6
\(f(x_1,x_2)=x_1 x_2/(x_1^2+x_2^2)\) off the origin, \(f(0,0)=0\). (a) \(f\) is not continuous at the origin. (b) \(f_{,1}\) and \(f_{,2}\) exist at the origin. Why is this compatible with Theorem 7.2?
(a) Along the line \(x_1=x_2\neq 0\) one has \(f=1/2\), while \(f(0,0)=0\). Hence \(f(x)\) does not tend to \(f(0,0)\).
(b) Along the \(x_1\)-axis, \(f(h,0)=0\), so \[ f_{,1}(0,0)=\lim_{h\to 0}\frac{f(h,0)-f(0,0)}{h}=0. \] Along the \(x_2\)-axis, \(f(0,k)=0\), so \(f_{,2}(0,0)=0\).
Theorem 7.2 requires the partials to be continuous at the point. They are not: for \(x_2\neq 0\), \[ f_{,1}(0,x_2)=\lim_{h\to 0}\frac{h x_2}{h(h^2+x_2^2)}=\frac{1}{x_2}, \] which has no finite limit as \(x_2\to 0\). The example therefore lies outside the hypotheses of Theorem 7.2.
Exercise §7.1.7
\(f:\mathbb{R}^2\to\mathbb{R}^1\) has \(f_{,1}\) and \(f_{,2}\) existing and bounded in a region about the origin. Show \(f\) is continuous at \((0,0)\).
Let \(\lvert f_{,i}\rvert\le M\) on an open disk about the origin. For \(h\) small enough that the axis-parallel segments from \((0,0)\) to \((h_1,0)\) and from \((h_1,0)\) to \((h_1,h_2)\) lie in the disk, Theorem 7.1 yields \[ f(h_1,h_2)-f(0,0)=f_{,1}(\xi_1,0)\,h_1+f_{,2}(h_1,\xi_2)\,h_2. \] Hence \[ \lvert f(h)-f(0)\rvert\le M\bigl(\lvert h_1\rvert+\lvert h_2\rvert\bigr)\to 0 \] as \(h\to 0\). Boundedness of the first partials is much weaker than continuity of those partials, so this does not restore Theorem 7.2; it only gives continuity of \(f\).
Exercise §7.1.8
\(f=x_2^3/(x_1^2+x_2^2)\) off the origin, \(f(0,0)=0\). Show \(f_{,1}\) and \(f_{,2}\) are bounded near the origin, hence \(f\) is continuous at \((0,0)\).
(The parenthetical “Problem 6” on printed p. 178 is a cross-reference slip; the bounded-partials criterion is Problem 7.)
At the origin the axial difference quotients are \(f(h,0)/h=0\) and \(f(0,k)/k=k\to 0\), so \(f_{,1}(0,0)=f_{,2}(0,0)=0\). Off the origin, in polar coordinates \(x_1=r\cos\theta\), \(x_2=r\sin\theta\), \[ f_{,1}=-\frac{2x_1 x_2^3}{(x_1^2+x_2^2)^2}=-2\cos\theta\sin^3\theta, \qquad f_{,2}=\frac{3x_1^2 x_2^2+x_2^4}{(x_1^2+x_2^2)^2}=\sin^2\theta\,(3\cos^2\theta+\sin^2\theta). \] Thus \(\lvert f_{,1}\rvert\le 2\) and \(\lvert f_{,2}\rvert\le 3\). Problem 7 gives continuity at the origin. (Directly: \(\lvert f\rvert\le\lvert x_2\rvert\to 0\).)
Exercise §7.1.9
If \(f:\mathbb{R}^N\to\mathbb{R}^1\) is homogeneous of degree \(0\), show by a direct computation that \(\sum_{i=1}^N x_i f_{,i}=0\).
Homogeneity of degree \(0\) means \(f(tx)=f(x)\) for all \(t\neq 0\) (on the conical domain of \(f\)). Fix \(x\) at which the first partials exist, and differentiate the identity in \(t\): \[ \frac{d}{dt}f(tx)=\sum_{i=1}^N f_{,i}(tx)\,x_i=0. \] Set \(t=1\).
Exercise §7.1.10
Prove Theorem 7.4 (Euler’s theorem on homogeneous functions).
Let \(f\) be positively homogeneous of degree \(n\), and let \(f_{,1},\ldots,f_{,N}\) be continuous at \(a\neq 0\). For \(t>0\) the curve \(\phi(t)=f(ta)\) is defined in a neighbourhood of \(t=1\), and positive homogeneity gives \(\phi(t)=t^n f(a)\). Hence \(\phi'(1)=n f(a)\).
On the other hand \(\phi(t)=f[g^1(t),\ldots,g^N(t)]\) with \(g^i(t)=t a_i\), so \(g^i_{,1}(1)=a_i\). Theorem 7.3 at \(t=1\) (the outer partials are continuous at \(a\)) yields \[ \phi'(1)=\sum_{i=1}^N f_{,i}(a)\,a_i. \] Equating the two expressions for \(\phi'(1)\) is (7.11). The restriction \(a\neq 0\) keeps \(ta\) away from the origin for \(t\) near \(1\); many positively homogeneous functions fail to be differentiable at \(0\).
§7.2 Taylor’s Theorem; Maxima and Minima
Printed pp. 187–188; PDF pp. 203–204.
Exercise §7.2.1
\(f(x_1,x_2,x_3)=(x_1^2+x_2^2+x_3^2)^{-1/2}\) off the origin. Show \(f_{,1,1}+f_{,2,2}+f_{,3,3}=0\).
Write \(r^2=x_1^2+x_2^2+x_3^2\). Then \(f_{,1}=-x_1 r^{-3}\), and \[ f_{,1,1}=-r^{-3}+3x_1^2 r^{-5}=\frac{2x_1^2-x_2^2-x_3^2}{r^5}. \] (The odd-answer key records this formula and notes symmetry in \(x_1,x_2,x_3\).) Cycling the coordinates, \[ \sum_{i=1}^3 f_{,i,i} =\frac{2(x_1^2+x_2^2+x_3^2)-(x_2^2+x_3^2)-(x_1^2+x_3^2)-(x_1^2+x_2^2)}{r^5}=0. \]
Exercise §7.2.2
\(f(x_1,x_2)=x_1^4-2x_1^3 x_2-x_1 x_2\), \(L_1(D)=2D_1-3D_2\), \(L_2(D)=D_1 D_2\). Show \((L_1 L_2)(f)=(L_2 L_1)(f)\).
The first partials are \(f_{,1}=4x_1^3-6x_1^2 x_2-x_2\) and \(f_{,2}=-2x_1^3-x_1\), so \[ L_2 f=f_{,1,2}=-6x_1^2-1. \] Then \[ L_1(L_2 f)=2D_1(-6x_1^2-1)-3D_2(-6x_1^2-1)=-24x_1. \] In the other order, \[ L_1 f=2f_{,1}-3f_{,2}=14x_1^3-12x_1^2 x_2-2x_2+3x_1, \] and \(D_2(L_1 f)=-12x_1^2-2\), hence \(L_2(L_1 f)=D_1(-12x_1^2-2)=-24x_1\). The two compositions agree. (For polynomials the mixed partials commute, so \(L_1\) and \(L_2\) commute on \(f\); the computation makes this explicit.)
Exercise §7.2.3
\(f(x_1,x_2)=x_1 x_2(x_1^2-x_2^2)/(x_1^2+x_2^2)\) for \(x_1^2+x_2^2>0\), and \(f(0,0)=0\). Show \(f_{,1,2}(0,0)=-1\) and \(f_{,2,1}(0,0)=1\).
Along the axes, \(f(h,0)=f(0,k)=0\), so \(f_{,1}(0,0)=f_{,2}(0,0)=0\).
For \(x_2\neq 0\), \[ f_{,1}(0,x_2)=\lim_{h\to 0}\frac{h x_2(h^2-x_2^2)}{h(h^2+x_2^2)}=-x_2, \] hence \[ f_{,1,2}(0,0)=\lim_{k\to 0}\frac{f_{,1}(0,k)-0}{k}=-1. \] For \(x_1\neq 0\), \[ f_{,2}(x_1,0)=\lim_{k\to 0}\frac{x_1 k(x_1^2-k^2)}{k(x_1^2+k^2)}=x_1, \] hence \[ f_{,2,1}(0,0)=\lim_{h\to 0}\frac{f_{,2}(h,0)-0}{h}=1. \] The mixed partials at the origin therefore exist and are unequal. Continuity of those mixed partials fails, so Theorem 7.5 does not apply.
Exercise §7.2.4
Write out the proof of Theorem 7.5 for \(f:\mathbb{R}^N\to\mathbb{R}^1\).
It is enough to treat a pair of indices, say \(i=1\) and \(j=2\); the remaining coordinates are frozen at \(a_3,\ldots,a_N\) and play no role. Dropping those coordinates from the notation, the argument is the \(N=2\) proof in the text.
Define the second difference \[ \Delta_2 f=f(a_1+h,a_2+h)-f(a_1+h,a_2)-f(a_1,a_2+h)+f(a_1,a_2). \] Set \(\varphi(s)=f(a_1+s,a_2+h)-f(a_1+s,a_2)\) and \(\psi(t)=f(a_1+h,a_2+t)-f(a_1,a_2+t)\), so \(\Delta_2 f=\varphi(h)-\varphi(0)=\psi(h)-\psi(0)\). The mean-value theorem gives \(\Delta_2 f=\varphi'(s_1)h=\psi'(t_1)h\) with \(s_1,t_1\) between \(0\) and \(h\). Differentiating under the frozen coordinates, \[ \varphi'(s_1)=f_{,1}(a_1+s_1,a_2+h)-f_{,1}(a_1+s_1,a_2), \] and a second mean-value application produces \(t_2\) between \(0\) and \(h\) with \(\varphi'(s_1)=f_{,1,2}(a_1+s_1,a_2+t_2)\,h\). Likewise \(\psi'(t_1)=f_{,2,1}(a_1+s_2,a_2+t_1)\,h\). Therefore \[ \frac{1}{h^2}\Delta_2 f=f_{,1,2}(a_1+s_1,a_2+t_2)=f_{,2,1}(a_1+s_2,a_2+t_1). \] Let \(h\to 0\). Continuity of \(f_{,1,2}\) and \(f_{,2,1}\) at \(a\) forces both sides to \(f_{,1,2}(a)\) and \(f_{,2,1}(a)\) respectively, so these values coincide.
For a general pair \((i,j)\) the same second difference is formed in the \(x_i\) and \(x_j\) directions only.
Exercise §7.2.5
Prove the binomial theorem (Lemma 7.1).
The identity \((x+y)^n=\sum_{j=0}^n \frac{n!}{j!(n-j)!}x^{n-j}y^j\) is proved by induction on \(n\). The case \(n=1\) is \(x+y\). If it holds for \(n\), then \[\begin{align*} (x+y)^{n+1} &=(x+y)\sum_{j=0}^n \binom{n}{j}x^{n-j}y^j =\sum_{j=0}^n \binom{n}{j}x^{n+1-j}y^j +\sum_{j=0}^n \binom{n}{j}x^{n-j}y^{j+1}. \end{align*}\] Shifting the index in the second sum and using \(\binom{n}{j}+\binom{n}{j-1}=\binom{n+1}{j}\) collects the coefficient of \(x^{n+1-j}y^j\) as \(\binom{n+1}{j}\).
Exercise §7.2.6
Establish the Taylor expansion on \(\mathbb{R}^1\) (Theorem 7.6), using the indicated auxiliary function \(\varphi\).
Assume \(f\) has \(n+1\) derivatives on an interval containing \(a\) and \(x\). Let \(R_n(a,x)\) denote the remainder in (7.27), i.e. \[ R_n(a,x)=f(x)-\sum_{k=0}^n\frac{f^{(k)}(a)}{k!}(x-a)^k, \] and define \[ \varphi(t)=f(x)-f(t)-\sum_{k=1}^n\frac{f^{(k)}(t)}{k!}(x-t)^k-R_n(a,x)\frac{(x-t)^{n+1}}{(x-a)^{n+1}} \] when \(x\neq a\) (if \(x=a\) there is nothing to prove). Then \(\varphi(a)=0\) by definition of \(R_n\), and \(\varphi(x)=0\) because every term after \(f(x)-f(x)\) vanishes. Rolle’s theorem supplies \(\xi\) strictly between \(a\) and \(x\) with \(\varphi'(\xi)=0\).
Differentiating term by term, the contributions \(-f^{(k)}(t)(x-t)^{k-1}/(k-1)!\) and \(+f^{(k)}(t)(x-t)^{k-1}/(k-1)!\) from consecutive summands cancel, leaving \[ \varphi'(t)=-\frac{f^{(n+1)}(t)}{n!}(x-t)^n+R_n(a,x)\frac{(n+1)(x-t)^n}{(x-a)^{n+1}}. \] Set \(t=\xi\neq x\) and use \(\varphi'(\xi)=0\): \[ R_n(a,x)=\frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}. \] This is (7.27). For \(n=0\) it is the mean-value theorem.
Exercise §7.2.7
Write out every term of the Taylor expansion of \(f:\mathbb{R}^3\to\mathbb{R}^1\) for \(n=2\).
Formula (7.28) with \(N=3\) and \(n=2\) is \[\begin{align*} f(x) &=f(a) +D_1 f(a)(x_1-a_1)+D_2 f(a)(x_2-a_2)+D_3 f(a)(x_3-a_3)\\ &\quad+\tfrac12 D_1^2 f(a)(x_1-a_1)^2 +D_1 D_2 f(a)(x_1-a_1)(x_2-a_2) +D_1 D_3 f(a)(x_1-a_1)(x_3-a_3)\\ &\quad+\tfrac12 D_2^2 f(a)(x_2-a_2)^2 +D_2 D_3 f(a)(x_2-a_2)(x_3-a_3) +\tfrac12 D_3^2 f(a)(x_3-a_3)^2\\ &\quad+\tfrac16 D_1^3 f(\xi)(x_1-a_1)^3 +\tfrac12 D_1^2 D_2 f(\xi)(x_1-a_1)^2(x_2-a_2)\\ &\quad+\tfrac12 D_1^2 D_3 f(\xi)(x_1-a_1)^2(x_3-a_3) +\tfrac12 D_1 D_2^2 f(\xi)(x_1-a_1)(x_2-a_2)^2\\ &\quad+D_1 D_2 D_3 f(\xi)(x_1-a_1)(x_2-a_2)(x_3-a_3)\\ &\quad+\tfrac12 D_1 D_3^2 f(\xi)(x_1-a_1)(x_3-a_3)^2 +\tfrac16 D_2^3 f(\xi)(x_2-a_2)^3\\ &\quad+\tfrac12 D_2^2 D_3 f(\xi)(x_2-a_2)^2(x_3-a_3) +\tfrac12 D_2 D_3^2 f(\xi)(x_2-a_2)(x_3-a_3)^2\\ &\quad+\tfrac16 D_3^3 f(\xi)(x_3-a_3)^3, \end{align*}\] with \(\xi\) on the segment from \(a\) to \(x\). This matches the odd-answer key.
Exercise §7.2.8
Relative maxima and minima of \(f(x_1,x_2)=x_1^3+3x_1 x_2^2-3x_1^2-3x_2^2+4\).
The first partials are \[ f_{,1}=3x_1^2+3x_2^2-6x_1,\qquad f_{,2}=6x_2(x_1-1). \] Critical points: \(x_2=0\) or \(x_1=1\), together with \(x_1^2+x_2^2=2x_1\). This yields \((0,0)\), \((2,0)\), \((1,1)\), and \((1,-1)\).
Second partials: \(f_{,1,1}=6x_1-6\), \(f_{,1,2}=6x_2\), \(f_{,2,2}=6x_1-6\), so \[ Q(h)=\tfrac12\bigl[(6x_1-6)h_1^2+12x_2 h_1 h_2+(6x_1-6)h_2^2\bigr]. \]
- At \((0,0)\): \(Q(h)=-3(h_1^2+h_2^2)<0\) for \(h\neq 0\). Theorem 7.8(b): strict local maximum, value \(f(0,0)=4\).
- At \((2,0)\): \(Q(h)=3(h_1^2+h_2^2)>0\) for \(h\neq 0\). Theorem 7.8(a): strict local minimum, value \(f(2,0)=0\).
- At \((1,1)\): \(Q(h)=6h_1 h_2\), which takes both signs. Theorem 7.8(c): not a local extremum.
- At \((1,-1)\): \(Q(h)=-6h_1 h_2\), likewise indefinite.
The only relative maximum is \(4\) at \((0,0)\); the only relative minimum is \(0\) at \((2,0)\).
Exercise §7.2.9
Critical points of \(f=x_1^2+x_2^2+x_3^2-x_4^2-2x_1 x_2+4x_1 x_3+3x_1 x_4-2x_2 x_4+4x_1-5x_2+7\) on \(\mathbb{R}^4\).
The gradient equations are \[\begin{align*} 2x_1-2x_2+4x_3+3x_4+4&=0,\\ -2x_1+2x_2-2x_4-5&=0,\\ 4x_1+2x_3&=0,\\ 3x_1-2x_2-2x_4&=0. \end{align*}\] From the third line, \(x_3=-2x_1\). The second and fourth lines rearrange to \[ x_2-x_4=x_1+\tfrac52,\qquad x_2+x_4=\tfrac32 x_1, \] so \[ x_2=\tfrac54 x_1+\tfrac54,\qquad x_4=\tfrac14 x_1-\tfrac54. \] Substitution into the first line produces \((-31/4)x_1-25/4=-4\), hence \(x_1=-9/31\). Then \[ x_2=\frac{55}{62},\qquad x_3=\frac{18}{31},\qquad x_4=-\frac{41}{31}. \] The Hessian of this quadratic polynomial is constant and invertible (the linear system for \(\nabla f=0\) has a unique solution), so this is the unique critical point.
Odd-key disagreement. The appendix (printed p. 519) lists \((-9/31,\,55/62,\,18/31,\,-4/31)\). The first three coordinates agree; the fourth does not. Substituting \((-9/31,\,55/62,\,18/31,\,-41/31)\) makes all four partials vanish, while \(-4/31\) does not satisfy \(x_2+x_4=(3/2)x_1\). The printed \(-4/31\) is consistent with a dropped digit in \(-41/31\).
Exercise §7.2.10
Prove parts (b) and (c) of the second-derivative test (Theorem 7.8).
The expansion (7.34) from the proof of (a) remains available: \(\Delta f(a,h)=Q(h)+\lvert h\rvert^2\varepsilon(h)\) with \(\varepsilon(h)\to 0\) as \(h\to 0\), using that \(a\) is critical and the second partials are continuous.
(b) If \(Q(h)<0\) for \(h\neq 0\), then the quadratic form of \(-f\) is \(-Q\), which is positive definite. Part (a) applied to \(-f\) yields a strict local minimum of \(-f\) at \(a\), i.e. a strict local maximum of \(f\).
(c) The continuous function \(Q_1(h)=Q(h)/\lvert h\rvert^2\) on the unit sphere attains its maximum \(M\) and minimum \(m\). The hypothesis is \(M>0\) and \(m<0\). Choose unit vectors \(u,v\) with \(Q(u)=M\) and \(Q(v)=m\). For \(t\neq 0\) small, \[ \Delta f(a,tu)=t^2\bigl(M+\varepsilon(tu)\bigr),\qquad \Delta f(a,tv)=t^2\bigl(m+\varepsilon(tv)\bigr). \] If \(\lvert t\rvert\) is small enough that \(\lvert\varepsilon\rvert<\min(M,-m)/2\), the first increment is positive and the second is negative. Thus \(\Delta f\) changes sign in every ball \(B(a,\rho)\).
Exercise §7.2.11
\(Q(x_1,x_2,x_3)=x_1^2+5x_2^2+3x_3^2-4x_1 x_2+2x_1 x_3-2x_2 x_3\): positive definite, negative definite, or neither?
Complete the square: \[\begin{align*} Q &=(x_1-2x_2+x_3)^2-4x_2^2-x_3^2+4x_2 x_3+5x_2^2+3x_3^2-2x_2 x_3\\ &=(x_1-2x_2+x_3)^2+x_2^2+2x_2 x_3+2x_3^2\\ &=(x_1-2x_2+x_3)^2+(x_2+x_3)^2+x_3^2. \end{align*}\] The right-hand side is a sum of squares and vanishes only at \(x=0\). Positive definite, in agreement with the key.
Exercise §7.2.12
\(Q=x_1^2+3x_2^2+x_3^2-4x_1 x_2+2x_1 x_3-6x_2 x_3\).
\[\begin{align*} Q &=(x_1-2x_2+x_3)^2-4x_2^2-x_3^2+4x_2 x_3+3x_2^2+x_3^2-6x_2 x_3\\ &=(x_1-2x_2+x_3)^2-x_2^2-2x_2 x_3 =(x_1-2x_2+x_3)^2-(x_2+x_3)^2+x_3^2. \end{align*}\] Then \(Q(1,0,0)=1>0\) and \(Q(1,1,1)=1+3+1-4+2-6=-3<0\). Neither positive nor negative definite.
Exercise §7.2.13
\(Q=-x_1^2-2x_2^2-4x_3^2-2x_1 x_2-2x_1 x_3\).
\[\begin{align*} -Q &=x_1^2+2x_1 x_2+2x_1 x_3+2x_2^2+4x_3^2\\ &=(x_1+x_2+x_3)^2+x_2^2-2x_2 x_3+3x_3^2\\ &=(x_1+x_2+x_3)^2+(x_2-x_3)^2+2x_3^2. \end{align*}\] The right-hand side vanishes only at the origin, so \(-Q\) is positive definite and \(Q\) is negative definite, in agreement with the key.
§7.3 The Derivative in \(\mathbb{R}^N\)
Printed pp. 192–193; PDF pp. 208–209.
Exercise §7.3.1
If \(f,g:\mathbb{R}^N\to\mathbb{R}^1\) are differentiable at \(a\), then so are \(f+g\) and \(\alpha f\).
Let \(L\) and \(M\) be the tangent linear functions to \(f\) and \(g\) at \(a\). Then \(L+M\) is linear in the book’s sense, and \[ \frac{\lvert(f+g)(x)-(L+M)(x)\rvert}{d(x,a)} \le\frac{\lvert f(x)-L(x)\rvert}{d(x,a)}+\frac{\lvert g(x)-M(x)\rvert}{d(x,a)}\to 0. \] Thus \(L+M\) is tangent to \(f+g\) at \(a\). Likewise \(\alpha L\) is tangent to \(\alpha f\).
Exercise §7.3.2
\(f(x_1,x_2,x_3)=x_1 x_3 e^{x_1 x_2}+x_2 x_3 e^{x_1 x_3}+x_1 x_2 e^{x_2 x_3}\). Find \(\nabla f\) and \(df(x,h)\).
The first partials exist and are continuous everywhere (products of polynomials and exponentials), so \(f\) is differentiable and \[\begin{align*} f_{,1} &=x_3(1+x_1 x_2)e^{x_1 x_2}+x_2 x_3^2 e^{x_1 x_3}+x_2 e^{x_2 x_3},\\ f_{,2} &=x_1^2 x_3 e^{x_1 x_2}+x_3 e^{x_1 x_3}+x_1(1+x_2 x_3)e^{x_2 x_3},\\ f_{,3} &=x_1 e^{x_1 x_2}+x_2(1+x_1 x_3)e^{x_1 x_3}+x_1 x_2^2 e^{x_2 x_3}. \end{align*}\] Then \(\nabla f=(f_{,1},f_{,2},f_{,3})\) and \(df(x,h)=\nabla f(x)\cdot h\).
Exercise §7.3.3
If \(f,g\) are differentiable and \(\alpha,\beta\in\mathbb{R}^1\), then \(\nabla(\alpha f+\beta g)=\alpha\nabla f+\beta\nabla g\) and \(\nabla(fg)=f\nabla g+g\nabla f\).
Differentiability implies that all first partials exist (Theorem 7.11). For each \(i\), \[ (\alpha f+\beta g)_{,i}=\alpha f_{,i}+\beta g_{,i},\qquad (fg)_{,i}=f_{,i}g+f g_{,i}, \] by the one-variable product rule along the \(i\)-th axis. Assembling components gives the two gradient identities.
Exercise §7.3.4
\(f:\mathbb{R}^N\to\mathbb{R}^1\), \(g:\mathbb{R}^1\to\mathbb{R}^1\), with the range of \(f\) contained in the domain of \(g\). Show \(\nabla[g(f)]=g'\nabla f\).
Assume \(f\) is differentiable at \(x\) and \(g\) is differentiable at \(f(x)\) (so that Theorem 7.13 applies with a single inner function). Then \(H=g\circ f\) is differentiable at \(x\) and \[ dH(x,h)=g'\bigl(f(x)\bigr)\,df(x,h)=g'\bigl(f(x)\bigr)\,\nabla f(x)\cdot h. \] The coefficient vector of \(dH\) is \(\nabla H(x)=g'(f(x))\,\nabla f(x)\).
Exercise §7.3.5
If \(f\) is differentiable at \(a\), then \(f\) is continuous at \(a\) (Theorem 7.10).
Let \(L(x)=f(a)+\sum_k c_k(x_k-a_k)\) be the tangent linear function. Then \[ \lvert f(x)-f(a)\rvert \le\lvert f(x)-L(x)\rvert+\lvert L(x)-L(a)\rvert. \] The first summand is \(o\bigl(d(x,a)\bigr)\) by tangency. The second is at most \(\bigl(\sum_k\lvert c_k\rvert\bigr)d(x,a)\). Both tend to \(0\) as \(x\to a\), so \(f(x)\to f(a)\).
Exercise §7.3.6
If all first partials of \(f:\mathbb{R}^N\to\mathbb{R}^1\) are continuous at \(a\), then \(f\) is differentiable at \(a\) (Theorem 7.12).
The hypotheses of Theorem 7.2 are exactly those of Theorem 7.12 (partials defined in a ball about \(a\), and continuous at \(a\)). From (7.4), \[ \frac{\bigl\lvert f(a+h)-f(a)-\sum_i f_{,i}(a)h_i\bigr\rvert}{\lvert h\rvert} =\frac{\bigl\lvert\sum_i\varepsilon_i(h)h_i\bigr\rvert}{\lvert h\rvert} \le\sum_{i=1}^N\lvert\varepsilon_i(h)\rvert\to 0. \] This is (7.36) with \(c_i=f_{,i}(a)\), so the linear function \(L(x)=f(a)+\sum_i f_{,i}(a)(x_i-a_i)\) is tangent to \(f\) at \(a\).
(The text suggests Taylor’s theorem with \(n=0\). That argument also works, but Theorem 7.7 asks for continuity of the first partials throughout a ball, which is slightly more than Theorem 7.12 states. Theorem 7.2 matches the hypothesis exactly.)
Exercise §7.3.7
If the first partials of \(f\) are continuous at \(a\) and \(\lvert b\rvert=1\), the directional derivative \(d_b f\) exists at \(a\) and equals \(\nabla f(a)\cdot b\).
Continuity of the partials at \(a\) gives differentiability at \(a\) by Theorem 7.12. Equivalently, apply Theorem 7.3 to \(\phi(t)=f(a+tb)\): the inner maps \(g^i(t)=a_i+t b_i\) have derivatives \(b_i\), and \[ \phi'(0)=\sum_{i=1}^N f_{,i}(a)\,b_i=\nabla f(a)\cdot b. \] The left-hand side is \(d_b f(a)\) by definition (7.25).
Exercise §7.3.8
\(A\subset\mathbb{R}^N\) open, \(f\) differentiable on \(A\), and the derivative of \(f\) itself differentiable on \(A\). Then all second partials exist on \(A\) and \(D_i D_j f=D_j D_i f\).
By Theorem 7.11, differentiability of \(f\) on \(A\) produces first partials \(f_{,1},\ldots,f_{,N}\) on \(A\). The derivative \(f'(x)\) is the tangent linear function, whose coefficients are precisely those partials (formula (7.37)). Differentiability of the map \(x\mapsto f'(x)\) is equivalent to differentiability of each \(f_{,i}\) on \(A\). Applying Theorem 7.11 to each \(f_{,i}\) shows that every second partial \(f_{,i,j}\) exists on \(A\).
It remains to check equality at an arbitrary point \(a\in A\). It is enough to treat \(N=2\) and \((i,j)=(1,2)\); other coordinates may be frozen. For \(h\neq 0\) small, form \[ \Delta(h)=f(a_1+h,a_2+h)-f(a_1+h,a_2)-f(a_1,a_2+h)+f(a_1,a_2). \] Set \(g(s)=f(a_1+s,a_2+h)-f(a_1+s,a_2)\). Then \(\Delta(h)=g(h)-g(0)\), so the mean-value theorem supplies \(\theta\in(0,1)\) with \[ \Delta(h)=h\bigl(f_{,1}(a_1+\theta h,a_2+h)-f_{,1}(a_1+\theta h,a_2)\bigr). \] Differentiability of \(f_{,1}\) at \(a\) means \[ f_{,1}(a+u)=f_{,1}(a)+f_{,1,1}(a)u_1+f_{,1,2}(a)u_2+r(u),\qquad \frac{r(u)}{\lvert u\rvert}\to 0 \] as \(u\to 0\). Taking \(u=(\theta h,h)\) and \(u=(\theta h,0)\) and subtracting, \[ \frac{\Delta(h)}{h^2}=f_{,1,2}(a)+\frac{r(\theta h,h)-r(\theta h,0)}{h}. \] The remainder quotient tends to \(0\) as \(h\to 0\) because \(\lvert(\theta h,h)\rvert\) and \(\lvert(\theta h,0)\rvert\) are both \(O(\lvert h\rvert)\). Thus \(\Delta(h)/h^2\to f_{,1,2}(a)\). The same difference, expanded in the \(x_2\)-direction first, tends to \(f_{,2,1}(a)\). Therefore \(f_{,1,2}(a)=f_{,2,1}(a)\).
(The conclusion is strictly weaker than Theorem 7.5 in its continuity assumption on the mixed partials, and strictly stronger in that those mixed partials need not be assumed to exist in advance: they are produced by differentiability of the first partials.)
Exercise §7.3.9
Prove Theorem 7.13 (chain rule for differentiable maps).
Let \(a=g(b)=(g^1(b),\ldots,g^N(b))\). Differentiability of each \(g^i\) at \(b\) and of \(f\) at \(a\) means \[ g^i(b+h)-g^i(b)=dg^i(b,h)+\varepsilon_i(h)\lvert h\rvert, \qquad \varepsilon_i(h)\to 0, \] and \[ f(a+k)-f(a)=\sum_{i=1}^N f_{,i}(a)k_i+\delta(k)\lvert k\rvert, \qquad \delta(k)\to 0\ \text{as }k\to 0, \] with \(\delta(0)=0\). Set \(k_i=g^i(b+h)-g^i(b)\). Each \(dg^i(b,\cdot)\) is linear, hence \(O(\lvert h\rvert)\), so \(\lvert k\rvert\le C\lvert h\rvert\) for small \(h\), and in particular \(k\to 0\) as \(h\to 0\). Then \[\begin{align*} H(b+h)-H(b) &=\sum_{i=1}^N f_{,i}(a)\bigl(dg^i(b,h)+\varepsilon_i(h)\lvert h\rvert\bigr)+\delta(k)\lvert k\rvert\\ &=\sum_{i=1}^N f_{,i}(a)\,dg^i(b,h) +\lvert h\rvert\sum_{i=1}^N f_{,i}(a)\varepsilon_i(h) +\delta(k)\lvert k\rvert. \end{align*}\] Dividing by \(\lvert h\rvert\), the last two terms tend to \(0\). Thus \(H\) is tangent at \(b\) to the linear function whose increment is \(\sum_i f_{,i}(a)\,dg^i(b,h)\), which is the stated formula for \(dH(b,h)\).
Exercise §7.3.10
\(f,g:\mathbb{R}^N\to\mathbb{R}^M\) are tangent at \(a\) iff \(d_M(f(x),g(x))/d_N(x,a)\to 0\). If \(f\) is tangent to a linear \(L:\mathbb{R}^N\to\mathbb{R}^M\) at \(a\), then \(L\) is unique.
Write a linear map \(L:\mathbb{R}^N\to\mathbb{R}^M\) in components \(L=(L_1,\ldots,L_M)\), each \(L_j:\mathbb{R}^N\to\mathbb{R}^1\) linear in the book’s sense. Suppose \(L\) and \(M\) are both tangent to \(f\) at \(a\). Tangency is transitive (the same triangle inequality as in the scalar case, with \(d_M\) in the numerator), so \(L\) is tangent to \(M\): \[ \frac{d_M\bigl(L(x),M(x)\bigr)}{d_N(x,a)}\to 0. \] For each \(j\), \[ \frac{\lvert L_j(x)-M_j(x)\rvert}{d_N(x,a)} \le\frac{d_M(L(x),M(x))}{d_N(x,a)}\to 0, \] so \(L_j\) is tangent to \(M_j\) as real-valued functions. Theorem 7.9 yields \(L_j\equiv M_j\), hence \(L\equiv M\).
Exercise §7.3.11
- Using Problem 10, define the derivative of \(f:\mathbb{R}^N\to\mathbb{R}^M\) at \(a\). (b) If \(f=(f^1,\ldots,f^M)\) is differentiable at \(a\), all first partials of the components exist at \(a\).
(a) The map \(f\) is differentiable at \(a\) if and only if there exists a linear function \(L:\mathbb{R}^N\to\mathbb{R}^M\) (in the book’s sense: affine, with each component of the form \(c_0+\sum c_k x_k\)) such that \[ \lim_{x\to a}\frac{d_M\bigl(f(x),L(x)\bigr)}{d_N(x,a)}=0. \] Problem 10 supplies uniqueness. This \(L\) is the derivative (tangent linear function) \(f'(a)\). This is the definition recorded in the odd-answer key.
(b) Let \(L=(L_1,\ldots,L_M)\) be that tangent map. For each \(j\), \[ \frac{\lvert f^j(x)-L_j(x)\rvert}{d_N(x,a)} \le\frac{d_M(f(x),L(x))}{d_N(x,a)}\to 0, \] so \(L_j\) is tangent to \(f^j\) at \(a\). Theorem 7.11 applied to \(f^j:\mathbb{R}^N\to\mathbb{R}^1\) yields all first partials of \(f^j\) at \(a\).
Exercise §7.3.12
A linear \(L:\mathbb{R}^N\to\mathbb{R}^M\) has the form \(L=(L_1,\ldots,L_M)\) with \(L_j=c_0^j+\sum_{k=1}^N c_k^j x_k\).
By definition a linear function \(\mathbb{R}^N\to\mathbb{R}^M\) is a map whose graph is an affine \(N\)-plane, equivalently a map that is linear in the book’s scalar sense in each of the \(M\) target coordinates. Each coordinate function \(L_j:\mathbb{R}^N\to\mathbb{R}^1\) is therefore of the form \(b_0+\sum b_k x_k\). Writing \(c_k^j\) for those coefficients is the claimed representation.
(If one starts from Problem 10’s Euclidean-distance definition and assumes only that \(L\) is tangent to itself, the same form follows because each \(L_j\) is a scalar linear function in the sense of printed p. 189.)
Exercise §7.3.13
\(A\subset\mathbb{R}^N\) a closed region, \(f\) differentiable on a neighbourhood of \(A\), maximum of \(f\) on \(A\) attained at \(a\in\partial A\). If \(n\) is the inward unit normal to \(\partial A\) at \(a\), then \(d_n f\le 0\) at \(a\).
The existence of an inward unit normal means that for all sufficiently small \(t>0\) the point \(a+tn\) lies in \(A\). Since \(f\) has a maximum on \(A\) at \(a\), \[ f(a+tn)\le f(a)\qquad(0<t<\delta), \] hence the difference quotient \(\bigl(f(a+tn)-f(a)\bigr)/t\) is \(\le 0\). Differentiability of \(f\) at \(a\) implies that the directional derivative along \(n\) exists and equals this limit (Exercise 7.3.7, or directly from (7.36) along the ray \(h=tn\)): \[ d_n f(a)=\lim_{t\to 0^+}\frac{f(a+tn)-f(a)}{t}\le 0. \] Equivalently \(\nabla f(a)\cdot n\le 0\): the gradient, if nonzero, cannot point into \(A\) at a boundary maximum.