Survey of Mathematics

5.7 Inverse and implicit functions

A field whose Jacobian matrix is invertible at a point can be undone near that point by a differentiable inverse, because the best linear approximation can be undone and a contraction argument carries the undoing over to the field itself. Applied to the map (x, y) to (x, F(x, y)) it says that an equation F(x, y) = 0 defines y as a differentiable function of x wherever the partial derivative F_y is not zero, and it gives the formula dy/dx = -F_x/F_y.

Taught in 375/376Apostol, not taughtBeyond the courseMATH 376, Worksheet 1 (Jan 20), problems 1 to 4, and the Lagrange warm-upApostol Vol. 2, 9.6 to 9.8Rudin, Principles of Mathematical Analysis, ch. 9 (the contraction proof)Spivak, Calculus on Manifolds, ch. 2Krantz and Parks, The Implicit Function Theorem (2002)

Most equations cannot be solved for one variable in a formula. The circle x2+y2=1x^2 + y^2 = 1 can, in two pieces; the equation y2+xz+z2−ez=4y^2 + xz + z^2 - e^z = 4 cannot at all. Yet we still talk about the slope of the surface, the way zz changes when xx changes, and every JEE student has differentiated both sides of such an equation and solved for dydx\frac{dy}{dx}. This chapter asks the question under that habit. When does an equation really define one variable as a function of the others, so that the habit is legal? And when is a map F:Rn→RnF:\mathbb R^n \to \mathbb R^n undoable, so that a function GG with G(F(x))=xG(F(x)) = x exists and is differentiable? The two questions turn out to be one theorem seen from two sides. The answer ties the Jacobian determinant of 5.3 to the contraction principle of 4.2, and it is what makes level sets into smooth curves and surfaces, which 5.8 needs.

Before you start

5.4: the chain rule, and the derivative of an inverse field, which assumed that an inverse exists. 4.2: contractions and the Banach fixed point theorem. 5.3: the Jacobian matrix and its determinant, and the gradient being perpendicular to level sets.

Quick checkF:R2→R2F:\mathbb R^2 \to \mathbb R^2 is differentiable with a differentiable inverse GG, and DF(a)=[2003]DF(a) = \begin{bmatrix}2 & 0\\ 0 & 3\end{bmatrix}. What is DG(F(a))DG(F(a))?
Quick checkA contraction TT of a non-empty complete metric space has how many fixed points?
Quick checkAt a point of the level curve f(x,y)=cf(x, y) = c where ∇f≠O\nabla f \ne O, which way does the curve run?

The picture: an equation is a curve, a function is a graph

Drag the ringed point round the circle. The blue curve is the set of solutions of F(x,y)=0F(x, y) = 0. The green line is the tangent, the red arrow is ∇F\nabla F. As long as the red arrow is not horizontal (that is, Fy≠0F_y \ne 0), the curve near the point is the graph of a function y=g(x)y = g(x) and its slope is −Fx/Fy-F_x/F_y. When the arrow becomes horizontal the tangent is vertical and the graph over the xx-axis breaks, though a graph over the yy-axis is still fine. Switch to the folium and drag to the origin, where the arrow shrinks to nothing and the curve crosses itself: the theorem has nothing to say. Switch to the cusp: the curve is still a graph over the yy-axis, but not a differentiable one.

For the second question, look at the field of 5.3 again:

A differentiable field looks like its linearization when you zoom in. If the linearization is a one-to-one map (an invertible matrix), then the field itself, seen through a microscope, is one-to-one. The theorem says that this survives outside the microscope, on a small but fixed neighbourhood.

The idea, in words

Inverting a field. The linear map v↦Avv \mapsto Av with AA square is undoable exactly when AA is invertible, that is det⁡A≠0\det A \ne 0 (2.7). A differentiable field FF near aa is F(a)+A(x−a)F(a) + A(x - a) plus a small error, where A=DF(a)A = DF(a). If AA is invertible, the linear part can be undone. The error is small, so undoing the whole thing should be possible with a small correction, and the correction is again an undoing problem of the same kind but smaller. That is exactly the shape of a contraction: we guess xx from the linear part, check how wrong we were, and correct, and each correction is smaller than the last by a fixed factor.

Why· Why the iteration is a contraction

We want to solve F(x)=yF(x) = y for xx. Rewrite it as a fixed point problem x=φy(x)x = \varphi_y(x) where φy(x)=x+A−1(y−F(x))\varphi_y(x) = x + A^{-1}\big(y - F(x)\big). If xx solves F(x)=yF(x) = y then the correction term is 00 and φy(x)=x\varphi_y(x) = x; if φy(x)=x\varphi_y(x) = x then A−1(y−F(x))=OA^{-1}(y - F(x)) = O, so F(x)=yF(x) = y. The derivative of φy\varphi_y is I−A−1DF(x)=A−1(A−DF(x))I - A^{-1}DF(x) = A^{-1}\big(A - DF(x)\big), and this is the zero matrix at x=ax = a. By continuity of DFDF it is small near aa: the map φy\varphi_y changes distances by a factor below 12\frac12 there. That is the whole proof, plus bookkeeping to check that φy\varphi_y stays inside the ball where it is a contraction.

Implicit functions. The equation F(x,y)=0F(x, y) = 0, with x∈Rnx \in \mathbb R^n unknown input and y∈Rmy \in \mathbb R^m unknown output, has mm equations. Think of the map Φ(x,y)=(x,F(x,y))\Phi(x, y) = (x, F(x, y)) from Rn+m\mathbb R^{n+m} to itself. It keeps xx and replaces yy by F(x,y)F(x, y). Its inverse (if it exists) takes (x,0)(x, 0) back to (x,g(x))(x, g(x)) where F(x,g(x))=0F(x, g(x)) = 0: the inverse of Φ\Phi solves the equation. So the implicit function theorem is the inverse function theorem applied to Φ\Phi, and the condition ”Φ\Phi has an invertible Jacobian” turns out to be “the m×mm \times m block DyFD_yF is invertible”.

Where this came from· From power series to a rigorous real theorem

Solving an equation for one variable in terms of another is as old as algebra, and Lagrange (1770) gave a formula for the power series of an inverse function. Cauchy is credited with the first rigorous form of the implicit function theorem, for functions given by power series in complex variables. The Italian analyst Ulisse Dini then extended it to real functions of any number of variables, and historians note that he published his proof only in his teaching notes (his Lezioni), which is one reason the theorem was long credited to others. The Pisa school still calls it Dini’s theorem. The inverse function theorem was proved by an iteration scheme in the style of Picard and Goursat. Today’s textbook proof is the same shrinking-map idea packaged by the fixed point theorem Banach stated in 1922 (4.2); it is also how Picard’s iteration proves existence of solutions of ODEs (7.1).

Definitions and theorems

Definition B

Local inverse

A neighbourhood of a point is any open set that contains it, so “near aa” means “inside some neighbourhood of aa, however small”. A field is continuously differentiable (C1C^1) if all its partial derivatives exist and are continuous. Now let F:U→RnF: U \to \mathbb R^n with U⊆RnU \subseteq \mathbb R^n open and a∈Ua \in U. A local inverse of FF at aa is a pair of open sets U′∋aU' \ni a and V∋F(a)V \ni F(a) such that FF maps U′U' one-to-one onto VV, together with the inverse map G:V→U′G: V \to U'. If FF and GG are both continuously differentiable, F∣U′F|_{U'} is a diffeomorphism (5.4) of U′U' onto VV.

In one lineFor a field FF defined near aa, a differentiable field GG defined on a neighbourhood of F(a)F(a) with G(F(x))=xG(F(x)) = x for all xx near aa and F(G(y))=yF(G(y)) = y for all yy near F(a)F(a).

Why it existsIt is the word for 'undoing FF near this point only', which is all that a derivative can ever promise; the exponential map shows that undoing it everywhere is a different and often false statement.

Before the main theorem we need one tool from one-variable calculus that was not stated for vector fields. In 1.4 the mean value theorem says f(b)−f(a)=f′(c)(b−a)f(b) - f(a) = f'(c)(b - a). For a map with vector values there is no single point cc, but an inequality survives.

Lemma B Rudin Thm 9.19

Mean value inequality for fields

Let K⊆RnK \subseteq \mathbb R^n be convex (it contains the segment between any two of its points, for example a ball), let HH be defined and differentiable on an open set containing KK, and suppose the operator norm (3.5) of the Jacobian satisfies ∥DH(z)∥≤M\lVert DH(z)\rVert \le M for every z∈Kz \in K. Then ∥H(x1)−H(x2)∥≤M ∥x1−x2∥\lVert H(x_1) - H(x_2)\rVert \le M\,\lVert x_1 - x_2\rVert for all x1,x2∈Kx_1, x_2 \in K.

In one lineIf HH is differentiable on a convex set KK and ∥DH(z)∥≤M\lVert DH(z)\rVert \le M for all z∈Kz \in K, then ∥H(x1)−H(x2)∥≤M∥x1−x2∥\lVert H(x_1) - H(x_2)\rVert \le M\lVert x_1 - x_2\rVert for x1,x2∈Kx_1, x_2 \in K.

Why it is trueIt converts a bound on the derivative into a bound on how much distances can change, which is the contraction constant of the next proof.

ProofRudin Thm 9.19
The idea: Choose a unit vector w pointing along H(x1) minus H(x2). The scalar function t to w dot H(x2 + t(x1 - x2)) is an ordinary function of one variable, so the one-variable mean value theorem applies to it. Its derivative is w dot DH times the step, which is at most M times the length of the step.
Assume H(x1)≠H(x2)H(x_1) \ne H(x_2) and put w=H(x1)−H(x2)∥H(x1)−H(x2)∥w = \dfrac{H(x_1) - H(x_2)}{\lVert H(x_1) - H(x_2)\rVert}, a unit vector.
If H(x1)=H(x2)H(x_1) = H(x_2) the inequality is 0≤M∥x1−x2∥0 \le M\lVert x_1 - x_2\rVert, true. Otherwise divide by the length.Reducing a vector inequality to a scalar one by dotting with a well-chosen unit vector is the standard trick when the mean value theorem is needed for vector values.
Define ψ(t)=w⋅H(x2+t(x1−x2))\psi(t) = w\cdot H\big(x_2 + t(x_1 - x_2)\big) for t∈[0,1]t \in [0, 1].
KK is convex, so the segment from x2x_2 to x1x_1 lies in KK, where HH is defined.
ψ′(t)=w⋅DH(zt)(x1−x2)\psi'(t) = w\cdot DH(z_t)(x_1 - x_2) with zt=x2+t(x1−x2)z_t = x_2 + t(x_1 - x_2).
Chain rule along a segment (the path theorem of 5.3 applied to each component of HH, then dotted with ww): the derivative of t↦H(x2+tv)t \mapsto H(x_2 + tv) is DH(x2+tv) vDH(x_2 + tv)\,v.
ψ(1)−ψ(0)=ψ′(τ)\psi(1) - \psi(0) = \psi'(\tau) for some τ∈(0,1)\tau \in (0, 1).
Mean value theorem of 1.4 for the one-variable function ψ\psi on [0,1][0, 1].
The left side is ψ(1)−ψ(0)=w⋅(H(x1)−H(x2))=∥H(x1)−H(x2)∥\psi(1) - \psi(0) = w\cdot\big(H(x_1) - H(x_2)\big) = \lVert H(x_1) - H(x_2)\rVert.
w⋅(H(x1)−H(x2))=∥H(x1)−H(x2)∥ (w⋅w)w\cdot\big(H(x_1) - H(x_2)\big) = \lVert H(x_1) - H(x_2)\rVert\,(w\cdot w) and w⋅w=1w\cdot w = 1.
The right side satisfies ∣ψ′(τ)∣≤∥DH(zτ)(x1−x2)∥≤M∥x1−x2∥\lvert\psi'(\tau)\rvert \le \lVert DH(z_\tau)(x_1 - x_2)\rVert \le M\lVert x_1 - x_2\rVert. Put the two sides together. ■\blacksquare
Cauchy–Schwarz (∣w⋅u∣≤∥w∥∥u∥\lvert w\cdot u\rvert \le \lVert w\rVert\lVert u\rVert with ∥w∥=1\lVert w\rVert = 1), then the definition of the operator norm.
Theorem B Rudin Thm 9.24; Spivak Thm 2-11

Inverse function theorem

Let U⊆RnU \subseteq \mathbb R^n be open, F:U→RnF: U \to \mathbb R^n continuously differentiable, a∈Ua \in U, and det⁡DF(a)≠0\det DF(a) \ne 0. Then there are open sets U′∋aU' \ni a and V∋F(a)V \ni F(a) such that F:U′→VF: U' \to V is a bijection, its inverse G:V→U′G: V \to U' is continuously differentiable, and

DG(y)=(DF(G(y)))−1(y∈V).DG(y) = \big(DF(G(y))\big)^{-1} \quad (y \in V).

In one lineIf F:U→RnF: U \to \mathbb R^n is continuously differentiable on an open set UU and det⁡DF(a)≠0\det DF(a) \ne 0, then FF has a continuously differentiable local inverse GG near aa, with DG(F(x))=DF(x)−1DG(F(x)) = DF(x)^{-1}.

Why it is trueIt says the linear approximation controls the field: if the best linear approximation is undoable, so is the field, near the point. It is the converse of the chain rule fact in 5.4 that a differentiable inverse forces an invertible Jacobian.

ProofRudin Thm 9.24
The idea: Solving F(x) = y is the same as finding a fixed point of the map x to x + A^{-1}(y - F(x)), where A is the Jacobian at a. Its derivative is small near a, so by the mean value inequality it is a contraction of a small closed ball. The Banach fixed point theorem gives a unique solution for each y close to F(a). The same inequality shows the solution depends continuously on y, and the differentiability of F then makes it differentiable.
Put A=DF(a)A = DF(a), b=F(a)b = F(a) and α=∥A−1∥\alpha = \lVert A^{-1}\rVert. Choose r>0r \gt 0 so that the closed ball K=Bˉ(a,r)K = \bar B(a, r) lies in UU and ∥DF(x)−A∥≤12α\lVert DF(x) - A\rVert \le \dfrac1{2\alpha} for all x∈Kx \in K.
AA is invertible since det⁡A≠0\det A \ne 0. The operator norm α\alpha of A−1A^{-1} is a finite positive number (3.5). The entries of DFDF are continuous, so ∥DF(x)−A∥→0\lVert DF(x) - A\rVert \to 0 as x→ax \to a.
For each y∈Rny \in \mathbb R^n define φy(x)=x+A−1(y−F(x))\varphi_y(x) = x + A^{-1}\big(y - F(x)\big).
Fixed points of φy\varphi_y are exactly the solutions of F(x)=yF(x) = y: the correction A−1(y−F(x))A^{-1}(y - F(x)) is zero if and only if y=F(x)y = F(x), because A−1A^{-1} is invertible.This is the 'where does the idea come from' step: Newton's method would use DF(x)−1DF(x)^{-1} at each step, and here we use the fixed matrix A−1A^{-1} so that the iteration map has a derivative we can bound.
Dφy(x)=I−A−1DF(x)=A−1(A−DF(x))D\varphi_y(x) = I - A^{-1}DF(x) = A^{-1}\big(A - DF(x)\big), so ∥Dφy(x)∥≤α⋅12α=12\lVert D\varphi_y(x)\rVert \le \alpha\cdot\dfrac1{2\alpha} = \dfrac12 for x∈Kx \in K.
Differentiate: D(x)=ID(x) = I, D(F)=DF(x)D(F) = DF(x) and A−1A^{-1} is constant. Factor out A−1A^{-1} on the left. Operator norm of a product is at most the product of the norms.
So ∥φy(x1)−φy(x2)∥≤12∥x1−x2∥\lVert\varphi_y(x_1) - \varphi_y(x_2)\rVert \le \dfrac12\lVert x_1 - x_2\rVert for all x1,x2∈Kx_1, x_2 \in K.
Mean value inequality for fields, applied to H=φyH = \varphi_y on the convex set KK with M=12M = \frac12.
For x1,x2∈Kx_1, x_2 \in K: ∥x1−x2∥≤12∥x1−x2∥+α∥F(x1)−F(x2)∥\lVert x_1 - x_2\rVert \le \dfrac12\lVert x_1 - x_2\rVert + \alpha\lVert F(x_1) - F(x_2)\rVert, hence ∥x1−x2∥≤2α ∥F(x1)−F(x2)∥\lVert x_1 - x_2\rVert \le 2\alpha\,\lVert F(x_1) - F(x_2)\rVert. (⋆)(\star)
The difference φy(x1)−φy(x2)=(x1−x2)−A−1(F(x1)−F(x2))\varphi_y(x_1) - \varphi_y(x_2) = (x_1 - x_2) - A^{-1}\big(F(x_1) - F(x_2)\big) does not contain yy. Rearrange: x1−x2x_1 - x_2 equals that difference plus A−1(F(x1)−F(x2))A^{-1}(F(x_1) - F(x_2)), then use the triangle inequality, the previous step, and the operator norm.
In particular FF is one-to-one on KK.
If F(x1)=F(x2)F(x_1) = F(x_2) then (⋆)(\star) forces ∥x1−x2∥≤0\lVert x_1 - x_2\rVert \le 0.
Fix y∈Vy \in V. Then φy\varphi_y maps KK into B(a,r)⊆KB(a, r) \subseteq K.
Let ρ=r2α\rho = \dfrac{r}{2\alpha} and V=B(b,ρ)V = B(b, \rho), an open ball around b=F(a)b = F(a). For y∈Vy \in V and x∈Kx \in K: φy(a)−a=A−1(y−b)\varphi_y(a) - a = A^{-1}(y - b) has length less than αρ=r2\alpha\rho = \frac r2, and ∥φy(x)−φy(a)∥≤12∥x−a∥≤r2\lVert\varphi_y(x) - \varphi_y(a)\rVert \le \frac12\lVert x - a\rVert \le \frac r2. Add them with the triangle inequality.Strict inequality: the sum is below rr, so φy(x)\varphi_y(x) is in the open ball B(a,r)B(a, r) and in particular in KK.
So φy\varphi_y has exactly one fixed point xx in KK, that is, exactly one x∈Kx \in K with F(x)=yF(x) = y, and x∈B(a,r)x \in B(a, r).
KK is a closed subset of the complete space Rn\mathbb R^n, hence complete (4.2); φy:K→K\varphi_y: K \to K is a contraction with constant 12\frac12. Banach fixed point theorem.
Put U′=B(a,r)∩F−1(V)U' = B(a, r) \cap F^{-1}(V). Then U′U' is open, contains aa, and F:U′→VF: U' \to V is a bijection. Let G:V→U′G: V \to U' be its inverse.
FF is differentiable, hence continuous (5.3), so F−1(V)F^{-1}(V) is open (open sets from continuous fields, 5.1). The intersection of two open sets is open.
∥G(y1)−G(y2)∥≤2α∥y1−y2∥\lVert G(y_1) - G(y_2)\rVert \le 2\alpha\lVert y_1 - y_2\rVert, so GG is continuous (Lipschitz).
Apply (⋆)(\star) to x1=G(y1)x_1 = G(y_1) and x2=G(y2)x_2 = G(y_2).
The Jacobian DF(x)DF(x) is invertible for every x∈Kx \in K: if DF(x)v=ODF(x)v = O then ∥v∥≤12∥v∥\lVert v\rVert \le \frac12\lVert v\rVert, so v=Ov = O.
Suppose DF(x)v=ODF(x)v = O for some x∈Kx \in K. Then v=v−A−1DF(x)v=A−1(A−DF(x))vv = v - A^{-1}DF(x)v = A^{-1}(A - DF(x))v, whose length is at most 12∥v∥\frac12\lVert v\rVert. A square matrix with trivial null space is invertible (rank–nullity, 2.3).
Write y−y0=B(x−x0)+∥x−x0∥E(x)y - y_0 = B(x - x_0) + \lVert x - x_0\rVert E(x).
Fix y0∈Vy_0 \in V, x0=G(y0)x_0 = G(y_0), B=DF(x0)B = DF(x_0), and let y→y0y \to y_0 with x=G(y)x = G(y). Definition of differentiability of FF at x0x_0: F(x)−F(x0)=B(x−x0)+∥x−x0∥E(x)F(x) - F(x_0) = B(x - x_0) + \lVert x - x_0\rVert E(x) with E(x)→OE(x) \to O as x→x0x \to x_0.
∥G(y)−G(y0)−B−1(y−y0)∥≤∥B−1∥ ∥x−x0∥ ∥E(x)∥\lVert G(y) - G(y_0) - B^{-1}(y - y_0)\rVert \le \lVert B^{-1}\rVert\,\lVert x - x_0\rVert\,\lVert E(x)\rVert.
Multiply by B−1B^{-1} and rearrange: x−x0−B−1(y−y0)=−∥x−x0∥B−1E(x)x - x_0 - B^{-1}(y - y_0) = -\lVert x - x_0\rVert B^{-1}E(x).This is the shape of the definition of differentiability for GG at y0y_0 with the candidate derivative B−1B^{-1}: the error is the right side.
So the error is at most 2α∥B−1∥ ∥y−y0∥ ∥E(G(y))∥2\alpha\lVert B^{-1}\rVert\,\lVert y - y_0\rVert\,\lVert E(G(y))\rVert, which is ∥y−y0∥\lVert y - y_0\rVert times something tending to 00. Hence GG is differentiable at y0y_0 with DG(y0)=B−1=DF(G(y0))−1DG(y_0) = B^{-1} = DF(G(y_0))^{-1}.
(⋆)(\star): ∥x−x0∥≤2α∥y−y0∥\lVert x - x_0\rVert \le 2\alpha\lVert y - y_0\rVert. And GG is continuous, so x=G(y)→x0x = G(y) \to x_0, hence E(G(y))→OE(G(y)) \to O as y→y0y \to y_0.
DG=(DF∘G)−1DG = (DF\circ G)^{-1} is continuous. So GG is continuously differentiable. ■\blacksquare
The entries of the inverse of a 2×22 \times 2 or n×nn \times n matrix are polynomials in its entries divided by the determinant (Cramer's rule, 2.7), so inversion is continuous on invertible matrices. Compose continuous maps: GG, then DFDF, then inversion.
Why· The picture behind the proof

In the visualiser of 5.3 you zoom in on FF at aa and see a linear map. The proof is a quantitative version of that zoom. The radius rr is how far you may zoom out before DFDF stops being within 12α\frac1{2\alpha} of AA. Inside that ball, FF never moves two points closer together than half the linear map would (that is (⋆)(\star)), so FF cannot fold the ball onto itself: it is one-to-one. And FF cannot leave holes: the ball VV of radius ρ=r/(2α)\rho = r/(2\alpha) around F(a)F(a) is entirely covered, since the contraction φy\varphi_y finds a pre-image for each of its points.

Proof workshopRebuild the contraction proof of the inverse function theoremRudin Thm 9.24

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Quick checkWhich step of the inverse function theorem's proof uses completeness of Rn\mathbb R^n?
    Quick checkF(x,y)=(excos⁡y, exsin⁡y)F(x, y) = (e^x\cos y,\ e^x\sin y) has det⁡DF=e2x≠0\det DF = e^{2x} \ne 0 at every point. What follows?

    What the hypotheses are for

    Watch out· Continuity of the derivative cannot be dropped

    The function f(x)=x2+x2sin⁡1xf(x) = \dfrac x2 + x^2\sin\dfrac1x with f(0)=0f(0) = 0 is differentiable everywhere, with f′(0)=12≠0f'(0) = \frac12 \ne 0. For x≠0x \ne 0, f′(x)=12+2xsin⁡1x−cos⁡1xf'(x) = \frac12 + 2x\sin\frac1x - \cos\frac1x. At the points xk=12πkx_k = \frac1{2\pi k} this is 12+0−1=−12\frac12 + 0 - 1 = -\frac12, which is negative, and these points get arbitrarily close to 00. So f′f' takes both signs in every interval around 00; ff goes up and down there and is not one-to-one on any interval around 00. The derivative exists and is invertible at 00, but it is not continuous at 00 (it oscillates between about −12-\frac12 and 32\frac32 near 00), and the proof’s step ”∥DF(x)−A∥\lVert DF(x) - A\rVert is small near aa” fails.

    Watch out· The converse is false: det DF(a) = 0 does not forbid an inverse

    F(x)=x3F(x) = x^3 has F′(0)=0F'(0) = 0, yet FF is one-to-one with the inverse y1/3y^{1/3}. What fails is only the differentiability of the inverse, and that is forced to fail by the chain rule of 5.4 (G′(0)F′(0)=1G'(0)F'(0) = 1 is impossible). So det⁡DF(a)≠0\det DF(a) \ne 0 is exactly the condition for a differentiable local inverse; a field with det⁡DF(a)=0\det DF(a) = 0 may or may not be locally one-to-one. The map (x,y)↦(x2−y2, 2xy)(x, y) \mapsto (x^2 - y^2,\ 2xy) (that is z↦z2z \mapsto z^2 on the complex numbers of 0.6) has determinant 4(x2+y2)4(x^2 + y^2), which is 00 only at the origin, and there it is two-to-one: zz and −z-z have the same square, so no local inverse exists.

    Definition T

    Implicit function

    Let FF be a field of n+mn + m variables, written F(x,y)F(x, y) with x∈Rnx \in \mathbb R^n, y∈Rmy \in \mathbb R^m, with mm components (so there are as many equations as unknowns yy). A function g:W→Rmg: W \to \mathbb R^m on an open set W⊆RnW \subseteq \mathbb R^n is an implicit function defined by F(x,y)=OF(x, y) = O if F(x,g(x))=OF(x, g(x)) = O for every x∈Wx \in W. The equation does not tell us a formula for gg. Example: the upper half of the unit circle, g(x)=1−x2g(x) = \sqrt{1 - x^2}, is an implicit function defined by x2+y2−1=0x^2 + y^2 - 1 = 0, and so is −1−x2-\sqrt{1 - x^2}; each is one of the possible choices of gg.

    In one lineA function gg with F(x,g(x))=0F(x, g(x)) = 0: it is 'defined implicitly' by the equation F(x,y)=0F(x, y) = 0, with no formula given.

    Why it existsIt is the exact meaning of the phrase 'assume the equation defines yy as a function of xx' that every implicit differentiation starts with.

    Theorem T MATH 376 Worksheet 1 (statement); Rudin Thm 9.28; Apostol 9.6 (formulas)

    Implicit function theorem

    Let F:Ω→RmF: \Omega \to \mathbb R^m be continuously differentiable on an open set Ω⊆Rn+m\Omega \subseteq \mathbb R^{n+m}, with points written (x,y)(x, y), x∈Rnx \in \mathbb R^n, y∈Rmy \in \mathbb R^m. Let (a,b)∈Ω(a, b) \in \Omega with F(a,b)=OF(a, b) = O, and suppose that the m×mm \times m matrix DyF(a,b)D_yF(a, b) of partial derivatives with respect to the yy-variables is invertible. Then there are an open set W∋aW \ni a, an open set N∋(a,b)N \ni (a, b) and a unique function g:W→Rmg: W \to \mathbb R^m such that

    • g(a)=bg(a) = b,
    • for (x,y)∈N(x, y) \in N: F(x,y)=OF(x, y) = O if and only if x∈Wx \in W and y=g(x)y = g(x),
    • gg is continuously differentiable, and
    Dg(x)=−(DyF(x,g(x)))−1 DxF(x,g(x)).Dg(x) = -\big(D_yF(x, g(x))\big)^{-1}\,D_xF(x, g(x)).

    In one lineIf F(x,y)=OF(x, y) = O at (a,b)(a, b), FF is continuously differentiable and the m×mm \times m matrix DyF(a,b)D_yF(a, b) is invertible, then near (a,b)(a, b) the equation defines exactly one y=g(x)y = g(x), it is continuously differentiable, and Dg(x)=−DyF−1DxFDg(x) = -D_yF^{-1}D_xF.

    Why it is trueIt is the licence for implicit differentiation: it says when the function being differentiated exists and has a derivative. The single condition is a Jacobian determinant that is not zero, the same condition as the inverse function theorem.

    Here DxFD_xF is the m×nm \times n matrix of partials with respect to the xx-variables and DyFD_yF the m×mm \times m matrix of partials with respect to the yy-variables, so that JF=[ DxF  DyF ]J_F = [\,D_xF\ \ D_yF\,] is the Jacobian of FF as a field on Rn+m\mathbb R^{n+m}. The statement is the one used as a black box in MATH 376 Worksheet 1; the proof below is not in the course (label B).

    ProofRudin Thm 9.28; Spivak Thm 2-12
    The idea: Build the map Phi(x, y) = (x, F(x, y)) from R^(n+m) to itself. Its Jacobian is block triangular with determinant det D_yF, so the inverse function theorem inverts it near (a, b). The inverse sends (x, 0) to (x, g(x)); that is the implicit function. The derivative formula is the chain rule applied to the identity F(x, g(x)) = 0.
    Define Φ:Ω→Rn+m\Phi: \Omega \to \mathbb R^{n+m} by Φ(x,y)=(x,F(x,y))\Phi(x, y) = \big(x, F(x, y)\big).
    Phi keeps xx and replaces yy by the value F(x,y)F(x, y). It is continuously differentiable because FF is.
    DΦ=[I0DxFDyF]D\Phi = \begin{bmatrix} I & 0\\ D_xF & D_yF\end{bmatrix}, so det⁡DΦ(a,b)=det⁡DyF(a,b)≠0\det D\Phi(a, b) = \det D_yF(a, b) \ne 0.
    Jacobian of Φ\Phi in block form: the first nn rows are [ I  0 ][\,I\ \ 0\,] (the derivative of xx) and the last mm rows are [ DxF  DyF ][\,D_xF\ \ D_yF\,]. A block lower-triangular matrix has determinant equal to the product of the determinants of its diagonal blocks.
    There are open sets N∋(a,b)N \ni (a, b) and V∋(a,O)V \ni (a, O) such that Φ:N→V\Phi: N \to V is a bijection with continuously differentiable inverse Ψ:V→N\Psi: V \to N.
    Inverse function theorem (this chapter) for the field Φ\Phi at the point (a,b)(a, b), where Φ(a,b)=(a,O)\Phi(a, b) = (a, O).
    Write Ψ(x,z)=(x,h(x,z))\Psi(x, z) = \big(x, h(x, z)\big).
    Φ\Phi does not change the first nn coordinates, so neither does its inverse: Ψ(x,z)=(x,h(x,z))\Psi(x, z) = (x, h(x, z)) for some continuously differentiable hh.
    Let W={x∈Rn:(x,O)∈V}W = \{x \in \mathbb R^n : (x, O) \in V\} and g(x)=h(x,O)g(x) = h(x, O) for x∈Wx \in W.
    VV is open and contains (a,O)(a, O), so W={x:(x,O)∈V}W = \{x : (x, O) \in V\} is an open set containing aa (it is the preimage of VV under the continuous map x↦(x,O)x \mapsto (x, O)).
    So F(x,g(x))=OF(x, g(x)) = O for every x∈Wx \in W, and g(a)=bg(a) = b because Ψ(a,O)=(a,b)\Psi(a, O) = (a, b).
    Ψ(x,O)=(x,g(x))\Psi(x, O) = (x, g(x)) lies in NN. Apply Φ\Phi to both sides: Φ(Ψ(x,O))=(x,O)\Phi(\Psi(x, O)) = (x, O), that is (x,F(x,g(x)))=(x,O)(x, F(x, g(x))) = (x, O).This is the step that produces the implicit function: solving F(x,y)=OF(x, y) = O for yy is the same as inverting Φ\Phi along the slice where the second coordinate is OO.
    Uniqueness: for (x,y)∈N(x, y) \in N, F(x,y)=OF(x, y) = O if and only if x∈Wx \in W and y=g(x)y = g(x).
    If (x,y)∈N(x, y) \in N and F(x,y)=OF(x, y) = O then Φ(x,y)=(x,O)\Phi(x, y) = (x, O), so (x,O)∈V(x, O) \in V (so x∈Wx \in W) and, since Φ\Phi is one-to-one on NN and Φ(x,g(x))=(x,O)\Phi(x, g(x)) = (x, O) too, y=g(x)y = g(x). Conversely x∈Wx \in W gives a solution y=g(x)y = g(x).
    gg is continuously differentiable.
    gg is built from hh and the inclusion x↦(x,O)x \mapsto (x, O), both continuously differentiable.
    DxF+DyF  Dg=0D_xF + D_yF\;Dg = 0.
    Chain rule applied to the identity F(x,g(x))=OF(x, g(x)) = O: the field x↦(x,g(x))x \mapsto (x, g(x)) has Jacobian [IDg]\begin{bmatrix} I\\ Dg\end{bmatrix}, and the outer Jacobian is [ DxF  DyF ][\,D_xF\ \ D_yF\,]. The derivative of the constant OO is the zero matrix.
    Dg(x)=−DyF−1DxFDg(x) = -D_yF^{-1}D_xF. ■\blacksquare
    Multiply on the left by DyF−1D_yF^{-1}, which exists at (x,g(x))(x, g(x)) for xx near aa because DΦD\Phi is invertible at every point of NN (it has the inverse DΨD\Psi there), and det⁡DΦ=det⁡DyF\det D\Phi = \det D_yF.
    Proof workshopGive the reason for each line: the implicit function theorem from the inverse function theoremRudin Thm 9.28

    Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.

    1. Let Φ(x,y)=(x,F(x,y))\Phi(x, y) = (x, F(x, y)), a continuously differentiable map of Rn+m\mathbb R^{n+m} to itself.
    2. DΦ=[I0DxFDyF]D\Phi = \begin{bmatrix} I & 0\\ D_xF & D_yF\end{bmatrix} and det⁡DΦ(a,b)=det⁡DyF(a,b)≠0\det D\Phi(a, b) = \det D_yF(a, b) \ne 0.
    3. By the inverse function theorem, Φ\Phi has a continuously differentiable inverse Ψ\Psi from a neighbourhood VV of (a,O)(a, O) onto a neighbourhood NN of (a,b)(a, b).
    4. Ψ(x,z)=(x,h(x,z))\Psi(x, z) = (x, h(x, z)); put g(x)=h(x,O)g(x) = h(x, O).
    5. Φ(Ψ(x,O))=(x,O)\Phi(\Psi(x, O)) = (x, O) says F(x,g(x))=OF(x, g(x)) = O.
    6. Differentiating F(x,g(x))=OF(x, g(x)) = O gives DxF+DyF Dg=0D_xF + D_yF\,Dg = 0, so Dg=−DyF−1DxFDg = -D_yF^{-1}D_xF.

    Implicit differentiation, with permission

    Now the habit of every JEE student is a theorem. If the equation defines y=g(x)y = g(x), differentiate the identity F(x,g(x))=0F(x, g(x)) = 0 with the chain rule and solve for g′g'. The division by FyF_y is exactly the hypothesis that makes the implicit function theorem work.

    Corollary T MATH 376 Worksheet 1; Apostol Thm 9.3 and (9.24)

    Implicit differentiation formulas

    (a) If F(x,y)=0F(x, y) = 0 with FF continuously differentiable and Fy(a,b)≠0F_y(a, b) \ne 0, then near aa the implicit function y=g(x)y = g(x) satisfies g′(x)=−FxFyg'(x) = -\dfrac{F_x}{F_y} and, if FF is C2C^2,

    g′′(x)=−FxxFy2−2FxyFxFy+FyyFx2Fy3.g''(x) = -\frac{F_{xx}F_y^2 - 2F_{xy}F_xF_y + F_{yy}F_x^2}{F_y^3}.

    (b) If F(x,y,z)=0F(x, y, z) = 0 and Fz≠0F_z \ne 0, then z=z(x,y)z = z(x, y) has zx=−Fx/Fzz_x = -F_x/F_z and zy=−Fy/Fzz_y = -F_y/F_z.

    (c) If F(x,y,u,v)=0F(x, y, u, v) = 0 and G(x,y,u,v)=0G(x, y, u, v) = 0 at a point where ∂(F,G)∂(u,v)=FuGv−FvGu≠0\dfrac{\partial(F, G)}{\partial(u, v)} = F_uG_v - F_vG_u \ne 0, then near that point they define u=u(x,y)u = u(x, y), v=v(x,y)v = v(x, y) with

    ux=−∂(F,G)/∂(x,v)∂(F,G)/∂(u,v),vx=−∂(F,G)/∂(u,x)∂(F,G)/∂(u,v),u_x = -\frac{\partial(F, G)/\partial(x, v)}{\partial(F, G)/\partial(u, v)}, \qquad v_x = -\frac{\partial(F, G)/\partial(u, x)}{\partial(F, G)/\partial(u, v)},

    and similarly for uyu_y, vyv_y with yy in place of xx.

    In one lineUnder the hypotheses of the implicit function theorem: dydx=−FxFy\dfrac{dy}{dx} = -\dfrac{F_x}{F_y}; for F(x,y,z)=0F(x, y, z) = 0, zx=−FxFzz_x = -\dfrac{F_x}{F_z} and zy=−FyFzz_y = -\dfrac{F_y}{F_z}; for two equations in u,vu, v, ux=−∂(F,G)/∂(x,v)∂(F,G)/∂(u,v)u_x = -\dfrac{\partial(F, G)/\partial(x, v)}{\partial(F, G)/\partial(u, v)}.

    Why it is trueThese are the formulas used in every implicit differentiation problem, with the exact condition (the denominator not zero) that makes them valid.

    ProofApostol 9.6, 9.7
    The idea: Everything is the matrix formula Dg = -(D_yF)^(-1) D_xF in the three cases (one unknown, one unknown with two inputs, two unknowns). For the second derivative, differentiate the first formula again, remembering that y depends on x.
    (a) g′(x)=−Fy−1Fxg'(x) = -F_y^{-1}F_x.
    The implicit function theorem, with m=1m = 1 and the single input xx: DxF=FxD_xF = F_x, DyF=FyD_yF = F_y are numbers.
    g′′=−(Fxx+Fxyg′)Fy−Fx(Fyx+Fyyg′)Fy2g'' = -\dfrac{(F_{xx} + F_{xy}g')F_y - F_x(F_{yx} + F_{yy}g')}{F_y^2}.
    Quotient rule and the chain rule: FxF_x and FyF_y are functions of xx and y=g(x)y = g(x), so ddxFx(x,g(x))=Fxx+Fxy g′\frac d{dx}F_x(x, g(x)) = F_{xx} + F_{xy}\,g' and the same for FyF_y with FyxF_{yx}, FyyF_{yy}.
    This simplifies to the formula for g′′g''.
    Put g′=−Fx/Fyg' = -F_x/F_y and use Fxy=FyxF_{xy} = F_{yx} (5.5). The numerator becomes FxxFy−2FxFxy+FyyFx2/FyF_{xx}F_y - 2F_xF_{xy} + F_{yy}F_x^2/F_y; multiply top and bottom by FyF_y.
    (b) (zx,zy)=−Fz−1(Fx,Fy)(z_x, z_y) = -F_z^{-1}(F_x, F_y).
    Implicit function theorem with the single unknown zz and the two inputs (x,y)(x, y): DxF=(Fx,Fy)D_xF = (F_x, F_y) and DyF=FzD_yF = F_z.
    (c) ux=det⁡[−FxFv−GxGv]∂(F,G)/∂(u,v)u_x = \dfrac{\det\begin{bmatrix}-F_x & F_v\\ -G_x & G_v\end{bmatrix}}{\partial(F, G)/\partial(u, v)} and vx=det⁡[Fu−FxGu−Gx]∂(F,G)/∂(u,v)v_x = \dfrac{\det\begin{bmatrix}F_u & -F_x\\ G_u & -G_x\end{bmatrix}}{\partial(F, G)/\partial(u, v)}.
    Here the unknowns are (u,v)(u, v), so D(u,v)F=[FuFvGuGv]D_{(u,v)}F = \begin{bmatrix}F_u & F_v\\ G_u & G_v\end{bmatrix} with determinant ∂(F,G)/∂(u,v)\partial(F, G)/\partial(u, v). Differentiating the two identities in xx gives the linear system Fuux+Fvvx=−FxF_uu_x + F_vv_x = -F_x, Guux+Gvvx=−GxG_uu_x + G_vv_x = -G_x; solve it by Cramer's rule (2.7).
    These are the stated formulas.
    Pull the −1-1 out of the first column of the first determinant and out of the second column of the second determinant. ■\blacksquare
    Worked example MATH 376 Worksheet 1 #1
    Let x2+y2=1x^2 + y^2 = 1. Find dxdy\dfrac{dx}{dy}, the tangent vector at (22,22)\big(\frac{\sqrt2}2, \frac{\sqrt2}2\big), and d2xdy2\dfrac{d^2x}{dy^2}.

    Solution.

    1. Choose the dependent variable. The worksheet treats xx as a function of yy, so the hypothesis it needs is Fx=2x≠0F_x = 2x \ne 0. The theorem solves for the variable whose partial derivative you divide by. Near the points (±1,0)(\pm1, 0) the circle is a graph over the yy-axis; near (0,±1)(0, \pm1) it is not (there it is a graph over the xx-axis).
    2. Differentiate the identity. x(y)2+y2=1x(y)^2 + y^2 = 1 gives 2x dxdy+2y=02x\,\dfrac{dx}{dy} + 2y = 0, so dxdy=−yx\dfrac{dx}{dy} = -\dfrac yx. Chain rule on x(y)2x(y)^2; the formula −Fy/Fx-F_y/F_x of the theorem.
    3. Tangent vector. A curve (x(y),y)(x(y), y) has velocity (dxdy,1)\big(\frac{dx}{dy}, 1\big). At the point, dxdy=−1\frac{dx}{dy} = -1, so the velocity is ⟨−1,1⟩\langle-1, 1\rangle. Velocity of y↦(x(y),y)y \mapsto (x(y), y); it is perpendicular to ∇F=(2,2)\nabla F = (\sqrt2, \sqrt2), as the gradient theorem of 5.3 says.
    4. Second derivative. Differentiate dxdy=−yx\dfrac{dx}{dy} = -\dfrac yx in yy with the quotient rule, remembering that xx depends on yy: d2xdy2=−x−y dxdyx2=−x+y2/xx2=−x2+y2x3=−1x3\dfrac{d^2x}{dy^2} = -\dfrac{x - y\,\frac{dx}{dy}}{x^2} = -\dfrac{x + y^2/x}{x^2} = -\dfrac{x^2 + y^2}{x^3} = -\dfrac1{x^3}. Replace dxdy\frac{dx}{dy} by −yx-\frac yx, then use the equation of the circle, x2+y2=1x^2 + y^2 = 1.
    5. Evaluate. At x=22x = \frac{\sqrt2}2: −1x3=−12/4=−22-\dfrac1{x^3} = -\dfrac{1}{\sqrt2/4} = -2\sqrt2. (22)3=228=24\big(\frac{\sqrt2}2\big)^3 = \frac{2\sqrt2}8 = \frac{\sqrt2}4.

    Answer. dxdy=−yx\dfrac{dx}{dy} = -\dfrac yx, tangent vector ⟨−1,1⟩\langle-1, 1\rangle, d2xdy2=−1x3=−22\dfrac{d^2x}{dy^2} = -\dfrac1{x^3} = -2\sqrt2 at the point. It is negative: the right half of the circle bends to the left as a function of yy (the curve is concave as seen from the yy-axis).

    Your answerOn the circle x2+y2=25x^2 + y^2 = 25, what is dydx\dfrac{dy}{dx} at (3,4)(3, 4)?
    Your answerFor x2+y2=1x^2 + y^2 = 1, find d2xdy2\dfrac{d^2x}{dy^2} at (22,22)\big(\frac{\sqrt2}2, \frac{\sqrt2}2\big).
    Worked example MATH 376 Worksheet 1 #2
    The equation x2+y2+z2=1x^2 + y^2 + z^2 = 1 defines z=z(x,y)z = z(x, y) where z≠0z \ne 0. Find zxz_x, zyz_y, zxxz_{xx}, zyyz_{yy}, and show zxx+zyy=−1+z2z3z_{xx} + z_{yy} = -\dfrac{1 + z^2}{z^3}.

    Solution.

    1. State the assumption. Write z=z(x,y)z = z(x, y), so x2+y2+z(x,y)2−1=0x^2 + y^2 + z(x, y)^2 - 1 = 0 is an identity in (x,y)(x, y) near the point. The identity may be differentiated; this is the implicit function theorem with Fz=2z≠0F_z = 2z \ne 0.
    2. First derivatives. In xx with yy fixed: 2x+2z zx=02x + 2z\,z_x = 0, so zx=−xzz_x = -\dfrac xz. In yy: zy=−yzz_y = -\dfrac yz. Chain rule on z2z^2: ddxz2=2z zx\frac{d}{dx}z^2 = 2z\,z_x because zz depends on xx. Dividing by zz needs z≠0z \ne 0.
    3. Second derivative in xx. Quotient rule on −x/z-x/z with zz depending on xx: zxx=−z−x zxz2=−z+x2/zz2=−z2+x2z3z_{xx} = -\dfrac{z - x\,z_x}{z^2} = -\dfrac{z + x^2/z}{z^2} = -\dfrac{z^2 + x^2}{z^3}. Replace zxz_x by −x/z-x/z so no derivative is left, then multiply top and bottom by zz.
    4. Second derivative in yy. The same computation gives zyy=−z2+y2z3z_{yy} = -\dfrac{z^2 + y^2}{z^3}.
    5. Add and simplify. zxx+zyy=−2z2+x2+y2z3z_{xx} + z_{yy} = -\dfrac{2z^2 + x^2 + y^2}{z^3}, and x2+y2=1−z2x^2 + y^2 = 1 - z^2, so the numerator is 2z2+1−z2=1+z22z^2 + 1 - z^2 = 1 + z^2. Use the original equation to eliminate x2+y2x^2 + y^2.

    Answer. zx=−xzz_x = -\dfrac xz, zy=−yzz_y = -\dfrac yz, zxx+zyy=−1+z2z3z_{xx} + z_{yy} = -\dfrac{1 + z^2}{z^3}. Check at the north pole z=1z = 1: the upper hemisphere z=1−x2−y2z = \sqrt{1 - x^2 - y^2} has zxx=zyy=−1z_{xx} = z_{yy} = -1 there, and the formula gives −1+11=−2-\frac{1 + 1}{1} = -2. ✓.

    Worked example MATH 376 Worksheet 1 #3
    Differentiate y=arcsin⁡xy = \arcsin x by implicit differentiation.

    Solution.

    1. Turn the inverse into an equation. y=arcsin⁡xy = \arcsin x means sin⁡y=x\sin y = x with y∈[−π2,π2]y \in [-\frac\pi2, \frac\pi2]. Put F(x,y)=sin⁡y−xF(x, y) = \sin y - x. An inverse function is the implicit function of an equation.
    2. Check the hypothesis. Fy=cos⁡y≠0F_y = \cos y \ne 0 exactly when y≠±π2y \ne \pm\frac\pi2, that is x≠±1x \ne \pm1. This is where the inverse function is allowed to be differentiated.
    3. Differentiate. dydx=−FxFy=1cos⁡y\dfrac{dy}{dx} = -\dfrac{F_x}{F_y} = \dfrac1{\cos y}. Fx=−1F_x = -1.
    4. Express in xx. On [−π2,π2][-\frac\pi2, \frac\pi2], cos⁡y≥0\cos y \ge 0, so cos⁡y=1−sin⁡2y=1−x2\cos y = \sqrt{1 - \sin^2y} = \sqrt{1 - x^2}. The sign of the square root is fixed by the range of arcsin⁡\arcsin.

    Answer. ddxarcsin⁡x=11−x2\dfrac{d}{dx}\arcsin x = \dfrac1{\sqrt{1 - x^2}}, valid for −1<x<1-1 \lt x \lt 1. At x=±1x = \pm1 the hypothesis fails (Fy=0F_y = 0): the graph of arcsin⁡\arcsin has a vertical tangent there. The same method gives ddxarctan⁡x=cos⁡2y=11+x2\frac{d}{dx}\arctan x = \cos^2 y = \frac1{1 + x^2}.

    Worked example MATH 376 Worksheet 1 #4
    The equations x2+y2+z2−w2=1x^2 + y^2 + z^2 - w^2 = 1 and x+y+z−w=0x + y + z - w = 0 define z=z(x,y)z = z(x, y) and w=w(x,y)w = w(x, y). Find zxz_x, wxw_x, and say where the answer is valid.

    Solution.

    1. Name the two equations. F=x2+y2+z2−w2−1F = x^2 + y^2 + z^2 - w^2 - 1 and G=x+y+z−wG = x + y + z - w. Two unknowns (z,w)(z, w), two equations: the theorem applies with m=2m = 2.
    2. The condition. ∂(F,G)∂(z,w)=det⁡[FzFwGzGw]=det⁡[2z−2w1−1]=−2z+2w=2(w−z)\dfrac{\partial(F, G)}{\partial(z, w)} = \det\begin{bmatrix}F_z & F_w\\ G_z & G_w\end{bmatrix} = \det\begin{bmatrix}2z & -2w\\ 1 & -1\end{bmatrix} = -2z + 2w = 2(w - z). It must be nonzero. The determinant of the matrix you invert, which is the one you divide by below.
    3. Differentiate both equations in xx. 2x+2z zx−2w wx=02x + 2z\,z_x - 2w\,w_x = 0 and 1+zx−wx=01 + z_x - w_x = 0. Chain rule; zz and ww both depend on xx, and yy is held fixed.
    4. Solve the linear system. From the second, wx=1+zxw_x = 1 + z_x. Substituting into the first: 2x+2z zx−2w−2w zx=02x + 2z\,z_x - 2w - 2w\,z_x = 0, so 2(z−w)zx=2(w−x)2(z - w)z_x = 2(w - x) and zx=w−xz−wz_x = \dfrac{w - x}{z - w}. Then wx=1+zx=z−xz−ww_x = 1 + z_x = \dfrac{z - x}{z - w}. Divide by 2(z−w)2(z - w), which is allowed exactly when the determinant of step 2 is not zero.

    Answer. zx=w−xz−wz_x = \dfrac{w - x}{z - w}, wx=z−xz−ww_x = \dfrac{z - x}{z - w}, valid where z≠wz \ne w. (The same method gives zy=w−yz−wz_y = \frac{w - y}{z - w}, wy=z−yz−ww_y = \frac{z - y}{z - w}. The matrix formula Dg=−DyF−1DxFDg = -D_yF^{-1}D_xF gives all four at once.)

    Worked example Apostol 9.6, Example
    Assume y2+xz+z2−ez−c=0y^2 + xz + z^2 - e^z - c = 0 defines z=f(x,y)z = f(x, y). Find cc so that f(0,e)=2f(0, e) = 2, and then ∂f∂x\dfrac{\partial f}{\partial x} and ∂f∂y\dfrac{\partial f}{\partial y} at (0,e)(0, e).

    Solution.

    1. Find cc. At (x,y,z)=(0,e,2)(x, y, z) = (0, e, 2): e2+0+4−e2−c=0e^2 + 0 + 4 - e^2 - c = 0, so c=4c = 4. The point must lie on the surface.
    2. Gradient of F=y2+xz+z2−ez−4F = y^2 + xz + z^2 - e^z - 4. Fx=zF_x = z, Fy=2yF_y = 2y, Fz=x+2z−ezF_z = x + 2z - e^z. Ordinary partial derivatives.
    3. Check the hypothesis. Fz(0,e,2)=0+4−e2≈−3.39≠0F_z(0, e, 2) = 0 + 4 - e^2 \approx -3.39 \ne 0. The theorem applies: zz is a differentiable function of (x,y)(x, y) near the point, although we cannot find a formula for it.
    4. Apply the formulas. fx=−FxFz=−24−e2=2e2−4f_x = -\dfrac{F_x}{F_z} = -\dfrac{2}{4 - e^2} = \dfrac2{e^2 - 4} and fy=−FyFz=2ee2−4f_y = -\dfrac{F_y}{F_z} = \dfrac{2e}{e^2 - 4}. zx=−Fx/Fzz_x = -F_x/F_z and zy=−Fy/Fzz_y = -F_y/F_z.

    Answer. c=4c = 4, fx=2e2−4≈0.590f_x = \dfrac2{e^2 - 4} \approx 0.590, fy=2ee2−4≈1.604f_y = \dfrac{2e}{e^2 - 4} \approx 1.604. We found the derivatives using the value of ff at a single point.

    Your answerIn the example above, what is ∂f/∂x\partial f/\partial x at (0,e)(0, e), to three decimal places?
    Worked example new (a classic implicit-differentiation example; compare Apostol 9.8)
    Study the folium of Descartes x3+y3=3xyx^3 + y^3 = 3xy: the slope dydx\dfrac{dy}{dx}, the slope at (32,32)\big(\frac32, \frac32\big), the points of horizontal tangent, and what happens at the origin.

    Solution.

    1. Write FF. F(x,y)=x3+y3−3xyF(x, y) = x^3 + y^3 - 3xy, with Fx=3x2−3yF_x = 3x^2 - 3y and Fy=3y2−3xF_y = 3y^2 - 3x. Partial derivatives.
    2. Slope. dydx=−FxFy=y−x2y2−x\dfrac{dy}{dx} = -\dfrac{F_x}{F_y} = \dfrac{y - x^2}{y^2 - x}, valid where y2≠xy^2 \ne x. The formula of the theorem; the hypothesis is Fy≠0F_y \ne 0.
    3. At (32,32)\big(\frac32, \frac32\big). It is on the curve: 2⋅278=274=3⋅942\cdot\frac{27}8 = \frac{27}4 = 3\cdot\frac94. The slope is 32−9494−32=−3/43/4=−1\dfrac{\frac32 - \frac94}{\frac94 - \frac32} = \dfrac{-3/4}{3/4} = -1. Substitute; the tangent is perpendicular to the diagonal, since the curve is symmetric under x↔yx \leftrightarrow y.
    4. Horizontal tangents. Fx=0F_x = 0 means y=x2y = x^2. Substituting in the equation: x3+x6=3x3x^3 + x^6 = 3x^3, so x6=2x3x^6 = 2x^3, giving x=0x = 0 or x3=2x^3 = 2. For x=21/3x = 2^{1/3} we get y=22/3y = 2^{2/3}, the top of the loop. A horizontal tangent has dydx=0\frac{dy}{dx} = 0, which needs Fx=0F_x = 0 and Fy≠0F_y \ne 0. Check: Fy=3(24/3)−3(21/3)≠0F_y = 3(2^{4/3}) - 3(2^{1/3}) \ne 0.
    5. The origin. Fx(0,0)=0F_x(0, 0) = 0 and Fy(0,0)=0F_y(0, 0) = 0, so the theorem is silent. The curve passes through the origin twice: near (0,0)(0, 0) the cubic terms are small and the equation is about 3xy=03xy = 0, so the two branches run along the two axes. The point x=0x = 0 found in step 4 has y=0y = 0, where Fy=0F_y = 0 too, so the slope formula is 0/00/0 there. The two branches have tangents y=0y = 0 and x=0x = 0.

    Answer. dydx=y−x2y2−x\dfrac{dy}{dx} = \dfrac{y - x^2}{y^2 - x}; slope −1-1 at (32,32)\big(\frac32, \frac32\big); horizontal tangent at (21/3,22/3)\big(2^{1/3}, 2^{2/3}\big) (and by symmetry vertical tangent at (22/3,21/3)\big(2^{2/3}, 2^{1/3}\big)); a double point at the origin where ∇F=O\nabla F = O and the curve is not a graph.

    Your answerWhat is the slope of the folium x3+y3=3xyx^3 + y^3 = 3xy at (32,32)\big(\frac32, \frac32\big)?
    Quick checkAt which point of the circle x2+y2=1x^2 + y^2 = 1 does the implicit function theorem fail to give yy as a function of xx near the point?
    Quick checkF(x,y)=x−y3F(x, y) = x - y^3 has Fy(0,0)=0F_y(0, 0) = 0. Does the equation F=0F = 0 define yy as a function of xx near the origin?
    Quick checkThe two equations F=0F = 0 and G=0G = 0 in the unknowns u,vu, v (with x,yx, y as parameters) can be solved for u,vu, v near a solution when:

    Inverse maps in practice

    Worked example new (compare Apostol 8.22 and Practice Final 2013 #10)
    Where is F(x,y)=(x2−y2, 2xy)F(x, y) = (x^2 - y^2,\ 2xy) locally invertible? Find the derivative of the local inverse at F(1,1)=(0,2)F(1, 1) = (0, 2) without finding the inverse.

    Solution.

    1. The Jacobian. DF=[2x−2y2y2x]DF = \begin{bmatrix}2x & -2y\\ 2y & 2x\end{bmatrix} and det⁡DF=4x2+4y2\det DF = 4x^2 + 4y^2. Rows are the gradients of x2−y2x^2 - y^2 and 2xy2xy.
    2. Where the theorem applies. FF is continuously differentiable and det⁡DF≠0\det DF \ne 0 at every point except the origin. So FF has a differentiable local inverse near every point except (0,0)(0, 0). Inverse function theorem.
    3. At the origin. There is no local inverse: F(−x,−y)=F(x,y)F(-x, -y) = F(x, y), so every value near (0,0)(0, 0) (other than (0,0)(0, 0)) has exactly two preimages arbitrarily close to (0,0)(0, 0). This is z↦z2z \mapsto z^2 on the complex numbers, which folds the plane in half by doubling angles.
    4. Derivative of the inverse at (0,2)(0, 2). DF(1,1)=[2−222]DF(1, 1) = \begin{bmatrix}2 & -2\\ 2 & 2\end{bmatrix}, determinant 88, inverse 18[22−22]=[1414−1414]\dfrac18\begin{bmatrix}2 & 2\\ -2 & 2\end{bmatrix} = \begin{bmatrix}\frac14 & \frac14\\ -\frac14 & \frac14\end{bmatrix}. DG(F(x))=DF(x)−1DG(F(x)) = DF(x)^{-1}; the 2×22 \times 2 inverse swaps the diagonal, negates the off-diagonal and divides by the determinant.
    5. Check with the real inverse. Near (1,1)(1, 1), G(X,Y)G(X, Y) is the principal square root of X+iYX + iY. Its derivative at X+iY=2iX + iY = 2i is 122i=12(1+i)=1−i4\frac1{2\sqrt{2i}} = \frac1{2(1 + i)}= \frac{1 - i}4, which as a matrix acts as [1414−1414]\begin{bmatrix}\frac14 & \frac14\\ -\frac14 & \frac14\end{bmatrix} on (X,Y)(X, Y) (real part X+Y4\frac{X + Y}4, imaginary part Y−X4\frac{Y - X}4). Complex derivative of the square root, 12z\frac{1}{2z}, with z=1+iz = 1 + i; multiplying by 1−i4\frac{1 - i}4 is the matrix above.

    Answer. Locally invertible everywhere except the origin; DG(0,2)=[1414−1414]DG(0, 2) = \begin{bmatrix}\frac14 & \frac14\\ -\frac14 & \frac14\end{bmatrix}. Note that FF is not one-to-one on the plane minus the origin, so the inverse exists only locally.

    Your answerIn the example above, what is the entry in row 1, column 1 of the derivative of the local inverse at F(1,1)=(0,2)F(1, 1) = (0, 2)?
    Worked example Apostol 9.7, Example 3
    The equations 2x=v2−u22x = v^2 - u^2 and y=uvy = uv define u,vu, v as functions of x,yx, y. Find uxu_x, uyu_y, vxv_x, vyv_y.

    Solution.

    1. Write the system. F=v2−u2−2xF = v^2 - u^2 - 2x, G=uv−yG = uv - y, unknowns (u,v)(u, v). Move everything to one side.
    2. The condition. ∂(F,G)∂(u,v)=det⁡[−2u2vvu]=−2u2−2v2=−2(u2+v2)\dfrac{\partial(F, G)}{\partial(u, v)} = \det\begin{bmatrix}-2u & 2v\\ v & u\end{bmatrix} = -2u^2 - 2v^2 = -2(u^2 + v^2), nonzero except at u=v=0u = v = 0. The matrix to invert.
    3. Differentiate in xx. −2u ux+2v vx=2-2u\,u_x + 2v\,v_x = 2 and v ux+u vx=0v\,u_x + u\,v_x = 0. Chain rule with yy held fixed; ∂∂x(2x)=2\frac{\partial}{\partial x}(2x) = 2.
    4. Solve. From the second, vx=−vuuxv_x = -\dfrac{v}{u}u_x (if u≠0u \ne 0). Then −2u ux−2v2uux=2-2u\,u_x - \dfrac{2v^2}{u}u_x = 2, so ux(−2(u2+v2)u)=2u_x\Big(-\dfrac{2(u^2 + v^2)}{u}\Big) = 2 and ux=−uu2+v2u_x = -\dfrac{u}{u^2 + v^2}, vx=vu2+v2v_x = \dfrac{v}{u^2 + v^2}. Multiply through by uu and factor.
    5. Differentiate in yy. −2u uy+2v vy=0-2u\,u_y + 2v\,v_y = 0 and v uy+u vy=1v\,u_y + u\,v_y = 1. The solution is uy=vu2+v2u_y = \dfrac{v}{u^2 + v^2}, vy=uu2+v2v_y = \dfrac{u}{u^2 + v^2}. Same steps with the right-hand sides (0,1)(0, 1). Check with the matrix formula: −D(u,v)F−1D(x,y)F-D_{(u,v)}F^{-1}D_{(x,y)}F.

    Answer. ux=−uu2+v2u_x = -\dfrac{u}{u^2 + v^2}, vx=vu2+v2v_x = \dfrac{v}{u^2 + v^2}, uy=vu2+v2u_y = \dfrac{v}{u^2 + v^2}, vy=uu2+v2v_y = \dfrac{u}{u^2 + v^2}, the same as Apostol’s printed answers.

    Python labUndoing a map by iteration: the proof's contraction against Newton
    import numpy as np
    
    def F(p):  return np.array([p[0]**2 - p[1]**2, 2 * p[0] * p[1]])
    def DF(p): return np.array([[2 * p[0], -2 * p[1]], [2 * p[1], 2 * p[0]]])
    
    target = np.array([0.0, 2.8])                   # solve F(x) = target near a = (1, 1)
    z = np.sqrt(complex(*target)); exact = np.array([z.real, z.imag])   # z -> z^2 has a complex square root
    a = np.array([1.0, 1.0]); Ainv = np.linalg.inv(DF(a))
    p = a.copy(); q = a.copy()
    print(" k   contraction error   Newton error     ratio of contraction errors")
    prev = np.linalg.norm(p - exact)
    for k in range(1, 9):
        p = p + Ainv @ (target - F(p))              # fixed matrix A^(-1): the proof's contraction
        q = q + np.linalg.solve(DF(q), target - F(q))   # Newton: new Jacobian every step
        e = np.linalg.norm(p - exact)
        print(f"{k:2d}   {e:.3e}          {np.linalg.norm(q - exact):.3e}      {e/prev:.3f}")
        prev = e
    print("solution:", exact, " F(solution) =", F(exact))

    Try this. Run it. The iteration x to x + A^(-1)(y - F(x)) of the proof uses the Jacobian A at the starting point once and for all. Its error shrinks by a roughly constant factor each step (about 0.18 here), the contraction constant of the theorem. Newton's iteration recomputes the Jacobian at every step, and its error is roughly squared each time (2.4e-2, 1.7e-4, 8e-9, then machine precision). Change the target to (0, 2.2), closer to F(1, 1) = (0, 2): the contraction factor drops to about 0.05. Now change the start a to (0.2, 0.2), where the fixed matrix is a poor model of F at the solution: the contraction iteration blows up (the proof needs a small enough ball), while Newton wanders and then converges.

    Level sets are smooth where the gradient is not zero

    5.3 defined the tangent plane to a level surface as {x:∇f(a)⋅(x−a)=0}\{x : \nabla f(a)\cdot(x - a) = 0\} and admitted that nothing yet showed that the surface really is a smooth surface with that plane. The implicit function theorem pays that debt, in any dimension.

    Definition B

    Regular point

    Let F=(F1,…,Fm):RN→RmF = (F_1, \dots, F_m): \mathbb R^N \to \mathbb R^m be continuously differentiable, m<Nm \lt N. A point aa is a regular point of FF if the m×Nm \times N matrix DF(a)DF(a) has rank mm, that is, its rows ∇F1(a),…,∇Fm(a)\nabla F_1(a), \dots, \nabla F_m(a) are linearly independent (2.2). For a single equation (m=1m = 1) it means ∇F(a)≠O\nabla F(a) \ne O. A point that is not regular is singular: the folium’s origin, the cusp’s origin.

    In one lineFor F:RN→RmF: \mathbb R^N \to \mathbb R^m with m<Nm \lt N, a point aa where the Jacobian DF(a)DF(a) has rank mm: the mm gradients ∇F1(a),…,∇Fm(a)\nabla F_1(a), \dots, \nabla F_m(a) are linearly independent.

    Why it existsIt is the condition under which mm equations cut out a surface of the expected dimension N−mN - m with a tangent plane, and the condition Lagrange multipliers need in 5.8.

    Corollary B Rudin Thm 9.28; Spivak Thm 5-1

    Level sets near a regular point are graphs

    Let FF be continuously differentiable near aa, F(a)=cF(a) = c, and DF(a)DF(a) of rank mm. Then (a) after renaming the coordinates, N−mN - m of them xx and mm of them yy, there is a C1C^1 function gg with {F=c}={(x,g(x))}\{F = c\} = \{(x, g(x))\} near aa; (b) the set of velocity vectors r′(0)r'(0) of C1C^1 curves rr in {F=c}\{F = c\} with r(0)=ar(0) = a is exactly the null space ker⁡DF(a)\ker DF(a), a subspace of dimension N−mN - m.

    In one lineIf aa is a regular point of F:RN→RmF: \mathbb R^N \to \mathbb R^m with F(a)=cF(a) = c, then near aa the level set {F=c}\{F = c\} is the graph of a C1C^1 function of N−mN - m of the coordinates, and its tangent vectors at aa are exactly the vectors in the null space of DF(a)DF(a).

    Why it is trueIt proves that level sets are genuine smooth curves and surfaces away from singular points, and it identifies the tangent space, which is the fact the proof of the Lagrange multiplier theorem uses.

    ProofSpivak Thm 5-1
    The idea: Rank m means some m columns of the Jacobian are independent, so the m by m block for those variables is invertible and the implicit function theorem solves for them. For the tangent space, a curve in the level set has F of it constant, so its velocity is killed by DF; conversely any vector killed by DF is the velocity of the curve built from the implicit function.
    Rename the coordinates so that DyF(a)D_yF(a) is invertible.
    The rank is the number of independent columns (2.6). Reorder the variables so that the last mm columns, for the variables yy, are independent; they then form an invertible m×mm \times m matrix DyF(a)D_yF(a).
    There is a C1C^1 function gg near axa_x with F(x,g(x))=cF(x, g(x)) = c, and these are the only solutions near aa. This is (a).
    Implicit function theorem for F(x,y)−c=OF(x, y) - c = O.
    If rr is a curve in the level set through aa, then DF(a) r′(0)=ODF(a)\,r'(0) = O, so r′(0)∈ker⁡DF(a)r'(0) \in \ker DF(a).
    Chain rule along the curve: F(r(t))=cF(r(t)) = c for all tt, so ddtF(r(t))=DF(r(t)) r′(t)=O\frac d{dt}F(r(t)) = DF(r(t))\,r'(t) = O.
    Conversely, let v∈ker⁡DF(a)v \in \ker DF(a). Define the curve r(t)=(ax+tvx, g(ax+tvx))r(t) = \big(a_x + tv_x,\ g(a_x + tv_x)\big), which lies in the level set.
    Write v=(vx,vy)v = (v_x, v_y). DF(a)v=DxF vx+DyF vy=ODF(a)v = D_xF\,v_x + D_yF\,v_y = O means vy=−DyF−1DxF vx=Dg(ax) vxv_y = -D_yF^{-1}D_xF\,v_x = Dg(a_x)\,v_x (the implicit function theorem formula).
    Its velocity at t=0t = 0 is vv.
    r′(0)=(vx,Dg(ax)vx)=(vx,vy)=vr'(0) = (v_x, Dg(a_x)v_x) = (v_x, v_y) = v by the previous step. Rank–nullity (2.3) gives dim⁡ker⁡DF(a)=N−m\dim\ker DF(a) = N - m. ■\blacksquare

    The corollary closes the gap in 5.3: at a regular point of a level surface in R3\mathbb R^3 the vectors perpendicular to ∇f(a)\nabla f(a) fill the whole plane, and every one of them is the velocity of a curve in the surface. The same holds for a curve cut out by two equations in R3\mathbb R^3 (as in Apostol 8.17 #9 and 9.8 #4, the next example): its tangent line is the null space of the 2×32 \times 3 Jacobian, that is, the direction perpendicular to both gradients.

    Worked example Apostol 9.8 #4(a)
    The surfaces 2x2+3y2−z2=252x^2 + 3y^2 - z^2 = 25 and x2+y2=z2x^2 + y^2 = z^2 meet in a curve through P=(7,3,4)P = (\sqrt7, 3, 4). Find a unit tangent vector to the curve at PP without parametrising it.

    Solution.

    1. Check the point. 14+27−16=2514 + 27 - 16 = 25 and 7+9=167 + 9 = 16. PP is on both surfaces.
    2. Gradients at PP. ∇F=(4x,6y,−2z)=(47,18,−8)\nabla F = (4x, 6y, -2z) = (4\sqrt7, 18, -8) and ∇G=(2x,2y,−2z)=(27,6,−8)\nabla G = (2x, 2y, -2z) = (2\sqrt7, 6, -8), for F=2x2+3y2−z2F = 2x^2 + 3y^2 - z^2 and G=x2+y2−z2G = x^2 + y^2 - z^2. The level surfaces F=25F = 25 and G=0G = 0.
    3. Regular point. The two gradients are not parallel (the ratio of the first entries is 22, of the second 33). So PP is a regular point of (F,G)(F, G) and the intersection is a smooth curve near PP.
    4. Tangent direction. The tangent is perpendicular to both gradients, so it is parallel to their cross product: ∇F×∇G=(18(−8)−(−8)(6), (−8)(27)−47(−8), 47⋅6−18⋅27)=(−96, 167, −127)\nabla F\times\nabla G = \big(18(-8) - (-8)(6),\ (-8)(2\sqrt7) - 4\sqrt7(-8),\ 4\sqrt7\cdot6 - 18\cdot2\sqrt7\big) = (-96,\ 16\sqrt7,\ -12\sqrt7). The null space of a 2×32 \times 3 matrix of rank 22 is the line spanned by the cross product of its rows.
    5. Normalise. Divide by 44: (−24,47,−37)(-24, 4\sqrt7, -3\sqrt7) has length 576+112+63=751\sqrt{576 + 112 + 63} = \sqrt{751}. 474\sqrt7 squared is 112112 and 373\sqrt7 squared is 6363.
    6. Cross-check by the formula. Solving for x,yx, y in terms of zz: x2=2z2−25x^2 = 2z^2 - 25 and y2=25−z2y^2 = 25 - z^2, so dxdz=2zx=87\frac{dx}{dz} = \frac{2z}{x} = \frac{8}{\sqrt7} and dydz=−zy=−43\frac{dy}{dz} = -\frac zy = -\frac43 at PP. The velocity vector (87,−43,1)\big(\frac8{\sqrt7}, -\frac43, 1\big) of the curve z↦(x(z),y(z),z)z \mapsto (x(z), y(z), z) equals −137⋅(−24, 47, −37)\dfrac{-1}{3\sqrt7}\cdot(-24,\ 4\sqrt7,\ -3\sqrt7), a multiple of the cross product. Both descriptions give the same line: the null space of the Jacobian is the tangent line.

    Answer. T=±(24, −47, 37)751T = \pm\dfrac{(24,\ -4\sqrt7,\ 3\sqrt7)}{\sqrt{751}}.

    Where it is used

    Used inside maths· Inside maths: smooth surfaces, moving roots and differentiable eigenvalues

    The corollary above is why the sphere, the torus and every level surface {f=c}\{f = c\} with ∇f≠O\nabla f \ne O are smooth surfaces: it is the starting point of differential geometry and the definition of a manifold in MATH 551 and 561. Roots of polynomials depend differentiably on the coefficients wherever the root is simple. For p(x,a)=x3−3x+ap(x, a) = x^3 - 3x + a at a=−2a = -2 the root x=2x = 2 has ∂p/∂x=3x2−3=9≠0\partial p/\partial x = 3x^2 - 3 = 9 \ne 0, so dxda=−papx=−19\frac{dx}{da} = -\frac{p_a}{p_x} = -\frac19: raise aa by 0.10.1 and the root moves by about −0.011-0.011 (the true root of x3−3x−1.9=0x^3 - 3x - 1.9 = 0 is 1.98881.9888). At the double root x=1x = 1, a=2a = 2, where px=0p_x = 0, the roots collide and then become complex: the theorem fails there, and the roots move like ±(2−a)/3\pm\sqrt{(2 - a)/3}, not linearly. The same argument shows that a simple eigenvalue of a matrix is a differentiable function of the entries (problem below), which is how the perturbation theory of 3.1 and 3.5 is justified. Finally, the open mapping property: a C1C^1 map Rn→Rn\mathbb R^n \to \mathbb R^n with det⁡DF≠0\det DF \ne 0 everywhere sends open sets to open sets (problem below).

    Your answerThe root of x3−3x+a=0x^3 - 3x + a = 0 near x=2x = 2 (at a=−2a = -2) moves with aa. What is dx/dadx/da at a=−2a = -2?
    Used in the real world· Robot arms and thermodynamics: solving F(x) = y in practice

    Robot inverse kinematics. The two-link arm of 5.3 (links of length 1 m, joint angles θ1,θ2\theta_1, \theta_2) puts the hand at F(θ)=(cos⁡θ1+cos⁡(θ1+θ2), sin⁡θ1+sin⁡(θ1+θ2))F(\theta) = (\cos\theta_1 + \cos(\theta_1 + \theta_2),\ \sin\theta_1 + \sin(\theta_1 + \theta_2)), with det⁡DF=sin⁡θ2\det DF = \sin\theta_2. The controller needs the opposite: given a target, find the angles. Set the target to (1,1)(1, 1) and start at θ=(0.3,1.2)\theta = (0.3, 1.2), hand at (1.026,1.293)(1.026, 1.293). Newton’s iteration θ←θ+DF(θ)−1(target−F(θ))\theta \leftarrow \theta + DF(\theta)^{-1}\big(\text{target} - F(\theta)\big) gives θ=(−0.0156,1.6352)\theta = (-0.0156, 1.6352) (hand (0.951,0.983)(0.951, 0.983)), then (−0.0012,1.5720)(-0.0012, 1.5720) (hand (0.99994,0.99881)(0.99994, 0.99881)), then (−1.4×10−9,1.570797)(-1.4\times10^{-9}, 1.570797): three steps from 0.30.3 m away to a millionth of a metre. The answer is θ=(0,π2)\theta = (0, \frac\pi2), the elbow bent a right angle. A second solution, (π2,−π2)(\frac\pi2, -\frac\pi2), has det⁡DF=sin⁡(−π2)=−1\det DF = \sin(-\frac\pi2) = -1: the elbow bent the other way. The inverse function theorem says each is isolated and depends differentiably on the target, because det⁡DF=±1≠0\det DF = \pm1 \ne 0; near full stretch (θ2→0\theta_2 \to 0) the determinant tends to 00 and the joint speeds needed blow up.

    Thermodynamics. An ideal gas has three state variables with one relation, PV=nRTPV = nRT. One mole (n=1n = 1, R=8.314R = 8.314 J/(mol K)) at T=300T = 300 K in V=0.025V = 0.025 m3^3 has P=99,768P = 99{,}768 Pa. Physicists write (∂P∂V)T\big(\frac{\partial P}{\partial V}\big)_T for the derivative with TT held fixed, which is an implicit derivative of F(P,V,T)=PV−nRTF(P, V, T) = PV - nRT. Here it is −nRTV2=−3.99×106-\frac{nRT}{V^2} = -3.99\times10^6 Pa/m3^3. The three partial derivatives (∂P∂V)T=−nRTV2\big(\frac{\partial P}{\partial V}\big)_T = -\frac{nRT}{V^2}, (∂V∂T)P=nRP\big(\frac{\partial V}{\partial T}\big)_P = \frac{nR}{P}, (∂T∂P)V=VnR\big(\frac{\partial T}{\partial P}\big)_V = \frac{V}{nR} multiply to −nRTVP=−1-\frac{nRT}{VP} = -1 (because PV=nRTPV = nRT), not +1+1 as the naive cancellation of ‘fractions’ would suggest. The problem below proves this for any equation F(x,y,z)=0F(x, y, z) = 0.

    Traps

    Watch out· The minus sign, and the cancellation that is not a cancellation

    dydx=−FxFy\dfrac{dy}{dx} = -\dfrac{F_x}{F_y} has a minus sign. And ∂x∂y∂y∂z∂z∂x=−1\dfrac{\partial x}{\partial y}\dfrac{\partial y}{\partial z}\dfrac{\partial z}{\partial x} = -1, not +1+1: partial derivatives are not fractions, and each one holds a different variable fixed. Check the sign against the circle: at the top right Fx,Fy>0F_x, F_y \gt 0 and the curve is falling.

    Watch out· Divide by the right partial derivative

    The hypothesis names the variable you solve for: Fy≠0F_y \ne 0 for y=g(x)y = g(x), Fx≠0F_x \ne 0 for x=h(y)x = h(y), Fz≠0F_z \ne 0 for z=z(x,y)z = z(x, y). The worksheet that treats xx as a function of yy needs Fx≠0F_x \ne 0. At (1,0)(1, 0) on the circle the first choice fails and the second works. For a system, the condition is a determinant, not separate partial derivatives.

    Watch out· Remember the chain rule when differentiating a second time

    In zx=−xzz_x = -\dfrac xz, the zz in the denominator depends on xx too. Forgetting to differentiate it (writing zxx=−1zz_{xx} = -\frac1z) gives a wrong answer (Worksheet 1 #2). The cure is to substitute the first derivative back before simplifying.

    Watch out· Nonzero Jacobian is local, and the theorem needs C¹

    det⁡DF≠0\det DF \ne 0 at every point does not make FF one-to-one (the exponential map of 5.4, z↦z2z \mapsto z^2 away from the origin). And the derivative must be continuous: the function x2+x2sin⁡1x\frac x2 + x^2\sin\frac1x has f′(0)=12f'(0) = \frac12 yet is not one-to-one near 00. On the Fall 2025 final the same lesson came as a true or false question: smooth level sets need ∇f≠O\nabla f \ne O, and a smooth function can have level sets that end or have corners where the gradient vanishes.

    Watch out· The theorem gives existence, not a formula

    It says gg exists and tells you g′g'; it does not give gg. To compute values of gg you iterate (Newton’s method, or the contraction in the proof), as in the lab above. Series for gg come from differentiating repeatedly, as the second derivative formula did.

    Problems

    checkMATH 376 Worksheet 1 style (hypothesis check)

    Does x2+y2+z2=1x^2 + y^2 + z^2 = 1 define zz as a differentiable function of (x,y)(x, y) near (0,0,1)(0, 0, 1)? Near (1,0,0)(1, 0, 0)? If not, which variable can be solved for near (1,0,0)(1, 0, 0)?

    Solution

    Fz=2zF_z = 2z. At (0,0,1)(0, 0, 1), Fz=2≠0F_z = 2 \ne 0: yes, z=1−x2−y2z = \sqrt{1 - x^2 - y^2}. At (1,0,0)(1, 0, 0), Fz=0F_z = 0: the hypothesis fails; indeed for (x,y)(x, y) near (1,0)(1, 0) with x2+y2>1x^2 + y^2 \gt 1 there is no zz at all. But Fx=2≠0F_x = 2 \ne 0, so x=1−y2−z2x = \sqrt{1 - y^2 - z^2} is a differentiable function of (y,z)(y, z) near (0,0)(0, 0).

    check

    Find dydx\dfrac{dy}{dx} at (0,1)(0, 1) for the curve exy+y=2e^{xy} + y = 2.

    Solution

    The point is on the curve: e0+1=2e^0 + 1 = 2. F=exy+y−2F = e^{xy} + y - 2, Fx=yexy=1F_x = ye^{xy} = 1 and Fy=xexy+1=1F_y = xe^{xy} + 1 = 1 at (0,1)(0, 1). So dydx=−FxFy=−1\frac{dy}{dx} = -\frac{F_x}{F_y} = -1.

    check

    Is F(x,y)=(x2+y, x+y2)F(x, y) = (x^2 + y,\ x + y^2) locally invertible near (1,1)(1, 1)? Near (12,12)\big(\frac12, \frac12\big)?

    Solution

    DF=[2x112y]DF = \begin{bmatrix}2x & 1\\ 1 & 2y\end{bmatrix}, det⁡DF=4xy−1\det DF = 4xy - 1. At (1,1)(1, 1) it is 3≠03 \ne 0: yes. At (12,12)\big(\frac12, \frac12\big) it is 00: the theorem gives no conclusion. In this case the news is bad: along the line y=1−xy = 1 - x the first component is x2+1−xx^2 + 1 - x and the second is x+(1−x)2=x2−x+1x + (1 - x)^2 = x^2 - x + 1, the same number. So the line x+y=1x + y = 1 is sent into the diagonal, and xx and 1−x1 - x have the same image, so FF is not one-to-one on any ball around (12,12)\big(\frac12, \frac12\big), as the vanishing determinant warned.

    check

    F(x,y)=x−y3F(x, y) = x - y^3 has Fy(0,0)=0F_y(0, 0) = 0. Does F=0F = 0 define yy as a function of xx near (0,0)(0, 0)? Is the function differentiable at 00?

    Solution

    The solution is y=x1/3y = x^{1/3}, a function, defined for all real xx. It is not differentiable at 00 (its difference quotient h−2/3h^{-2/3} is unbounded). So the conclusion of the implicit function theorem fails without the hypothesis, although a function exists.

    useApostol 9.8 #1

    The equations x+y=uvx + y = uv and xy=u−vxy = u - v define xx and yy as functions of uu and vv. Show that ∂x∂u=xv−1x−y\dfrac{\partial x}{\partial u} = \dfrac{xv - 1}{x - y} when x≠yx \ne y, and say what the hypothesis is.

    Solution

    Unknowns (x,y)(x, y), with F=x+y−uvF = x + y - uv and G=xy−u+vG = xy - u + v. The determinant ∂(F,G)∂(x,y)=det⁡[11yx]=x−y\frac{\partial(F, G)}{\partial(x, y)} = \det\begin{bmatrix}1 & 1\\ y & x\end{bmatrix} = x - y, so the hypothesis is x≠yx \ne y. Differentiate in uu with vv fixed: xu+yu=vx_u + y_u = v and y xu+x yu=1y\,x_u + x\,y_u = 1. From the first, yu=v−xuy_u = v - x_u; substituting, y xu+xv−x xu=1y\,x_u + xv - x\,x_u = 1, so (y−x)xu=1−xv(y - x)x_u = 1 - xv and xu=xv−1x−yx_u = \dfrac{xv - 1}{x - y}.

    useApostol 9.7, Example 5

    Eliminating uu from x=u+vx = u + v and y=uv2y = uv^2 gives an equation defining v=h(x,y)v = h(x, y). Show that ∂h∂x=h3h−2x\dfrac{\partial h}{\partial x} = \dfrac{h}{3h - 2x} and find ∂h∂y\dfrac{\partial h}{\partial y}.

    Solution

    u=x−vu = x - v, so y=(x−v)v2y = (x - v)v^2, that is F(x,y,v)=xv2−v3−y=0F(x, y, v) = xv^2 - v^3 - y = 0. Fx=v2F_x = v^2, Fy=−1F_y = -1, Fv=2xv−3v2F_v = 2xv - 3v^2. So hx=−v22xv−3v2=v3v−2x=h3h−2xh_x = -\dfrac{v^2}{2xv - 3v^2} = \dfrac{v}{3v - 2x} = \dfrac{h}{3h - 2x}, and hy=−−12xv−3v2=12xh−3h2=−1h(3h−2x)h_y = -\dfrac{-1}{2xv - 3v^2} = \dfrac1{2xh - 3h^2} = -\dfrac{1}{h(3h - 2x)}.

    usenew (thermodynamics)

    For F(P,V,T)=PV−nRTF(P, V, T) = PV - nRT, compute (∂P∂V)T\big(\frac{\partial P}{\partial V}\big)_T, (∂V∂T)P\big(\frac{\partial V}{\partial T}\big)_P, (∂T∂P)V\big(\frac{\partial T}{\partial P}\big)_V with the implicit formulas, and verify that the product is −1-1.

    Solution

    FP=VF_P = V, FV=PF_V = P, FT=−nRF_T = -nR. (∂P∂V)T=−FVFP=−PV\big(\frac{\partial P}{\partial V}\big)_T = -\frac{F_V}{F_P} = -\frac PV; (∂V∂T)P=−FTFV=nRP\big(\frac{\partial V}{\partial T}\big)_P = -\frac{F_T}{F_V} = \frac{nR}{P}; (∂T∂P)V=−FPFT=VnR\big(\frac{\partial T}{\partial P}\big)_V = -\frac{F_P}{F_T} = \frac{V}{nR}. The product is −PV⋅nRP⋅VnR=−1-\frac PV\cdot\frac{nR}P\cdot\frac V{nR} = -1.

    useMATH 376 Worksheet 1 #3 style

    Use implicit differentiation to find ddxarctan⁡x\dfrac{d}{dx}\operatorname{arctan}x and state where the hypothesis fails (if anywhere).

    Solution

    y=arctan⁡xy = \arctan x means tan⁡y=x\tan y = x, F=tan⁡y−xF = \tan y - x, Fy=sec⁡2y≥1F_y = \sec^2y \ge 1, never zero. So y′=1sec⁡2y=cos⁡2y=11+tan⁡2y=11+x2y' = \frac{1}{\sec^2y} = \cos^2y = \frac1{1 + \tan^2y} = \frac1{1 + x^2} for all real xx. The hypothesis never fails, so arctan⁡\arctan is differentiable everywhere, unlike arcsin⁡\arcsin at ±1\pm1.

    prove

    Let F(x,y)F(x, y) be C1C^1, F(a,b)=0F(a, b) = 0 and Fy(a,b)≠0F_y(a, b) \ne 0. Prove that the tangent line to the level curve F=0F = 0 at (a,b)(a, b) is Fx(a,b)(x−a)+Fy(a,b)(y−b)=0F_x(a, b)(x - a) + F_y(a, b)(y - b) = 0.

    Solution

    Plan. The implicit function gg has slope −Fx/Fy-F_x/F_y; write the tangent line to its graph.

    By the theorem, near aa the curve is the graph of gg with g(a)=bg(a) = b and g′(a)=−Fx(a,b)/Fy(a,b)g'(a) = -F_x(a, b)/F_y(a, b). The tangent line to a graph at (a,b)(a, b) is y−b=g′(a)(x−a)y - b = g'(a)(x - a), that is y−b=−FxFy(x−a)y - b = -\frac{F_x}{F_y}(x - a). Multiply by Fy≠0F_y \ne 0: Fy(y−b)+Fx(x−a)=0F_y(y - b) + F_x(x - a) = 0. ■\blacksquare This is the tangent line ∇F(a,b)⋅((x,y)−(a,b))=0\nabla F(a, b)\cdot((x, y) - (a, b)) = 0 of 5.3, now justified.

    prove

    Let F(x,y,z)=0F(x, y, z) = 0 define each variable as a differentiable function of the other two, with all partial derivatives of FF nonzero. Prove that ∂x∂y∂y∂z∂z∂x=−1\dfrac{\partial x}{\partial y}\dfrac{\partial y}{\partial z}\dfrac{\partial z}{\partial x} = -1.

    Solution

    Plan. Write each factor with the formula −Fother/Fself-F_{\text{other}}/F_{\text{self}}.

    Solving for xx with yy and zz as inputs: ∂x∂y=−FyFx\frac{\partial x}{\partial y} = -\frac{F_y}{F_x}. Solving for yy with zz and xx as inputs: ∂y∂z=−FzFy\frac{\partial y}{\partial z} = -\frac{F_z}{F_y}. Solving for zz with xx and yy as inputs: ∂z∂x=−FxFz\frac{\partial z}{\partial x} = -\frac{F_x}{F_z}. Each is valid because the relevant partial derivative of FF is nonzero. The product is (−1)3FyFzFxFxFyFz=−1(-1)^3\frac{F_yF_zF_x}{F_xF_yF_z} = -1. ■\blacksquare

    provenew (a global contraction)

    Let h:Rn→Rnh: \mathbb R^n \to \mathbb R^n satisfy ∥h(x)−h(x′)∥≤q∥x−x′∥\lVert h(x) - h(x')\rVert \le q\lVert x - x'\rVert for all x,x′x, x', with q<1q \lt 1. Prove that F(x)=x+h(x)F(x) = x + h(x) is a bijection of Rn\mathbb R^n onto Rn\mathbb R^n. (Compare with the local theorem: here nothing is local.)

    Solution

    Plan. Solving F(x)=yF(x) = y means x=y−h(x)x = y - h(x); the right side is a contraction of the complete space Rn\mathbb R^n.

    Fix yy and put Ty(x)=y−h(x)T_y(x) = y - h(x). Then ∥Ty(x)−Ty(x′)∥=∥h(x)−h(x′)∥≤q∥x−x′∥\lVert T_y(x) - T_y(x')\rVert = \lVert h(x) - h(x')\rVert \le q\lVert x - x'\rVert, so TyT_y is a contraction of Rn\mathbb R^n, which is complete (4.2). By the Banach fixed point theorem TyT_y has exactly one fixed point xx. And Ty(x)=xT_y(x) = x means y−h(x)=xy - h(x) = x, that is F(x)=yF(x) = y. So every yy has exactly one preimage: FF is a bijection. ■\blacksquare

    prove

    Let F:Rn→RnF: \mathbb R^n \to \mathbb R^n be continuously differentiable with det⁡DF(x)≠0\det DF(x) \ne 0 for every xx. Prove that FF maps open sets to open sets.

    Solution

    Plan. Apply the inverse function theorem at each point of the open set.

    Let OO be open and y∈F(O)y \in F(O), say y=F(a)y = F(a) with a∈Oa \in O. By the inverse function theorem there are open sets U′∋aU' \ni a and V∋yV \ni y with F:U′→VF: U' \to V a bijection. Shrink: U′′=U′∩OU'' = U' \cap O is open and contains aa. The image F(U′′)F(U'') is the set of y′∈Vy' \in V with G(y′)∈U′′G(y') \in U'', that is the preimage of the open set U′′U'' under the continuous map G:V→U′G: V \to U'; so it is open in VV, hence open in Rn\mathbb R^n. So F(U′′)F(U'') is an open set containing yy and contained in F(O)F(O). Every point of F(O)F(O) has such a ball, so F(O)F(O) is open. ■\blacksquare

    stretch

    For f(x)=x2+x2sin⁡1xf(x) = \dfrac x2 + x^2\sin\dfrac1x (f(0)=0f(0) = 0), show that f′(0)=12f'(0) = \frac12 but ff is not one-to-one on any interval around 00.

    Solution

    Difference quotient: f(h)h=12+hsin⁡1h→12\frac{f(h)}{h} = \frac12 + h\sin\frac1h \to \frac12, so f′(0)=12f'(0) = \frac12. For x≠0x \ne 0, f′(x)=12+2xsin⁡1x−cos⁡1xf'(x) = \frac12 + 2x\sin\frac1x - \cos\frac1x, and at xk=12πkx_k = \frac1{2\pi k} this is 12+0−1=−12\frac12 + 0 - 1 = -\frac12. Suppose ff were one-to-one on an interval I∋0I \ni 0. It is continuous, and a continuous one-to-one function on an interval is strictly monotone (by the intermediate value theorem of 1.3). If it were increasing then f′≥0f' \ge 0 on II, contradicting f′(xk)=−12f'(x_k) = -\frac12 for large kk; if decreasing then f′≤0f' \le 0, contradicting f′(0)=12f'(0) = \frac12. So ff is not one-to-one near 00, although f′(0)≠0f'(0) \ne 0: the continuity of f′f' cannot be dropped from the inverse function theorem.

    stretchnew (links to 3.1 and 3.5)

    The matrix Aε=[2+ε112]A_\varepsilon = \begin{bmatrix}2 + \varepsilon & 1\\ 1 & 2\end{bmatrix} has the eigenvalue λ=3\lambda = 3 at ε=0\varepsilon = 0. Use the implicit function theorem on the characteristic polynomial to find dλdε\dfrac{d\lambda}{d\varepsilon} at ε=0\varepsilon = 0, and check it against the eigenvector formula dλdε=uT(dAdε)u\frac{d\lambda}{d\varepsilon} = u^{\mathsf T}\big(\frac{dA}{d\varepsilon}\big)u for a unit eigenvector uu.

    Solution

    p(λ,ε)=det⁡(Aε−λI)=(2+ε−λ)(2−λ)−1p(\lambda, \varepsilon) = \det(A_\varepsilon - \lambda I) = (2 + \varepsilon - \lambda)(2 - \lambda) - 1. At (λ,ε)=(3,0)(\lambda, \varepsilon) = (3, 0): p=(−1)(−1)−1=0p = (-1)(-1) - 1 = 0. pλ=−(2−λ)−(2+ε−λ)=1+1=2≠0p_\lambda = -(2 - \lambda) - (2 + \varepsilon - \lambda) = 1 + 1 = 2 \ne 0 (so λ=3\lambda = 3 is a simple root), and pε=2−λ=−1p_\varepsilon = 2 - \lambda = -1. So dλdε=−pεpλ=12\frac{d\lambda}{d\varepsilon} = -\frac{p_\varepsilon}{p_\lambda} = \frac12. Eigenvector formula: u=(1,1)2u = \frac{(1, 1)}{\sqrt2} and dAdε=[1000]\frac{dA}{d\varepsilon} = \begin{bmatrix}1 & 0\\ 0 & 0\end{bmatrix}, so uTdAdεu=12u^{\mathsf T}\frac{dA}{d\varepsilon}u = \frac12. Exact check: the larger eigenvalue is 4+ε+4+ε22\frac{4 + \varepsilon + \sqrt{4 + \varepsilon^2}}2, whose derivative at 00 is 12\frac12.

    Summary

    • The inverse function theorem: if FF is continuously differentiable and det⁡DF(a)≠0\det DF(a) \ne 0, then FF has a continuously differentiable local inverse GG near aa with DG=(DF∘G)−1DG = (DF\circ G)^{-1}. It is local only, and it needs the derivative to be continuous.
    • Proof idea (B): rewrite F(x)=yF(x) = y as the fixed point problem x=x+A−1(y−F(x))x = x + A^{-1}(y - F(x)) with A=DF(a)A = DF(a). The mean value inequality shows this map shrinks distances by 12\frac12 on a small ball, and the Banach fixed point theorem (4.2) gives the solution.
    • The implicit function theorem: if F(a,b)=OF(a, b) = O and the block DyF(a,b)D_yF(a, b) is invertible, then F(x,y)=OF(x, y) = O defines a unique C1C^1 function y=g(x)y = g(x) near (a,b)(a, b) with Dg=−DyF−1DxFDg = -D_yF^{-1}D_xF. It is the inverse function theorem applied to (x,y)↦(x,F(x,y))(x, y) \mapsto (x, F(x, y)).
    • Implicit differentiation is legal exactly when the denominator is nonzero: dydx=−FxFy\frac{dy}{dx} = -\frac{F_x}{F_y}, zx=−FxFzz_x = -\frac{F_x}{F_z}, and for systems the ratio of Jacobian determinants; second derivatives need the chain rule applied once more.
    • Failure points are where the relevant partial derivative or determinant is zero: the circle at (±1,0)(\pm1, 0) (a vertical tangent, fixed by solving for the other variable), the folium’s origin and the cusp (where ∇F=O\nabla F = O). The condition is sufficient, not necessary (y=x1/3y = x^{1/3}).
    • A regular point (Jacobian of full rank mm) of F:RN→RmF: \mathbb R^N \to \mathbb R^m has a level set that is locally a graph, with tangent space ker⁡DF(a)\ker DF(a). This is why level surfaces are smooth and why the Lagrange multiplier theorem of 5.8 holds.
    • In practice, inverses are computed by iteration: the proof’s contraction converges linearly, and Newton’s method (which recomputes the Jacobian) converges quadratically (5.10).

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    2.4 Inverses, one-to-one maps, isomorphism
    2.7 Determinants
    3.5 Matrix norms, conditioning, and why numerics fail
    4.2 Convergence, completeness and the contraction mapping theorem
    5.3 The total derivative, the Jacobian matrix and tangent planes
    5.4 The chain rule for fields
    Leads to
    5.8 Constrained extrema and Lagrange multipliers
    5.10 Gradient descent, momentum and Newton's method
    Same idea elsewhere
    MATH 376: Worksheet 1 (Jan 20) used the implicit function theorem as a black box: 'assume the equations define z implicitly'. Problems 1 to 4 (the circle, the sphere, the derivative of arcsin, and a system of two equations) are worked below, and the hypothesis the worksheet used without proof (F_y not zero, or a Jacobian determinant not zero) is the one this chapter proves.
    MATH 375: The derivative of an inverse field (Practice Final 2013, problem 10) assumed an inverse existed. This chapter supplies the converse the lectures left out: when the inverse exists. The Fall 2025 final's true or false about non-smooth level sets is the same story, since smooth level sets need the gradient to be nonzero.
    MATH 521: 521 proves the inverse and implicit function theorems in a normed space by the same contraction argument, and uses them for submanifolds, the rank theorem, and existence of solutions of ODEs depending on parameters.
    MATH 551 / 561: A smooth manifold is a set that is locally the level set of a map with surjective derivative, or locally the graph of a smooth function. The implicit function theorem is why the two descriptions agree.
    Economics and thermodynamics: Comparative statics asks how an optimum moves when a parameter moves; the answer is an implicit derivative. In thermodynamics (dP/dV at fixed T and so on) every partial derivative of a state variable is an implicit derivative.