Salta al contenuto
Note per Studenti Implicit Function Theorem Report

Implicit Function Theorem

In questa pagina 6

This note builds on Jacobian Matrix and the Chain RuleFor F from R^n to R^m, F = (f1, ..., fm), the Jacobian matrix J_F is the m x n matrix with entries d f_i / d x_j: row i is the gradient of f_i. Chain rule: J_(f∘g)(x) = J_f(g(x)) · J_g(x); frequent cases are d/dt f(gamma(t)) = grad f · gamma'(t) and f_x = f_u u_x + f_v v_x. If det J_F(x0) is nonzero, F is invertible near x0 and J_(F^-1) = (J_F)^-1. Polar coordinates: det J = rho.Jacobian Matrix and the Chain Rule → and Differentiability and the Gradientf is differentiable at x0 if f(x) = f(x0) + grad f(x0)·(x - x0) + o(‖x - x0‖), i.e. near x0 the graph is indistinguishable from the tangent plane z = f(x0) + grad f(x0)·(x - x0). Differentiable implies continuous, with partial derivatives and D_v f = grad f · v; continuous partial derivatives imply differentiable. The gradient gives the direction of steepest increase (slope ‖grad f‖) and is orthogonal to level curves.Differentiability and the Gradient →.

Implicitly defined curves

Often a relation between two variables xx and yy does not allow us to isolate one variable as a function of the other at once. We speak of an implicitly defined curvethe set of points (x,y) satisfying the equation F(x,y)=0.

The basic problem is to understand whether, given a point P0=(x0,y0)P_0=(x_0, y_0) satisfying the equation, the points of the curve near P0P_0 can be described as the graph of a function y=g(x)y=g(x) (or x=h(y)x=h(y)).

The example to keep in mind: the circle x2+y2=1x^2 + y^2 = 1. Near (0,1)(0, 1) its points are the graph of y=1−x2y = \sqrt{1 - x^2}. Near (1,0)(1, 0) they are not: for xx slightly less than 11 there are two points of the curve (y=±1−x2y = \pm\sqrt{1 - x^2}), for x>1x > 1 none. At (1,0)(1, 0) the tangent is vertical. The implicit function theorem identifies exactly these "bad" points through a partial derivative. The level curves of a function of two variables (Functions of Several Variables and Level SetsA function f from a subset D of R^n to R assigns a real number to each point; its natural domain is the region where the expression makes sense, its graph lives in R^(n+1) (a surface for n = 2), and the level set at height c is the set of points where f equals c (a level curve for n = 2).Functions of Several Variables and Level Sets →) are curves of this type, with F(x,y)=f(x,y)−cF(x, y) = f(x, y) - c.

Grafico interattivo: On the circle x² + y² = 1: near (0, 1) it is the graph of y = √(1 − x²) (horizontal tangent); near (1, 0) the tangent is vertical and y is not a function of x, while x = √(1 − y²) is a function of y

The theorem in two variables

The implicit function theorem states the conditions under which the curve can be "made explicit" near one of its points.

Theorem. Let F:A⊆R2→RF: A \subseteq \mathbb{R}^2 \to \mathbb{R} be a function of class C1C^1 on an open set AA. Let (x0,y0)∈A(x_0, y_0) \in A be such that:

  1. F(x0,y0)=0F(x_0, y_0) = 0
  2. Fy(x0,y0)≠0F_y(x_0, y_0) \neq 0

Then there exist a neighbourhood UU of x0x_0 and a unique function g:U→Rg: U \to \mathbb{R} of class C1C^1 such that g(x0)=y0g(x_0) = y_0 and F(x,g(x))=0F(x, g(x)) = 0 for every x∈Ux \in U.

Example. F(x,y)=x2+y2−1F(x,y) = x^2 + y^2 - 1 at (0,1)(0,1): F=0F = 0 and Fy=2≠0F_y = 2 \ne 0, so near x0=0x_0 = 0 we have y=g(x)=1−x2y = g(x) = \sqrt{1 - x^2}, with g′(x)=−FxFy=−xyg'(x) = -\frac{F_x}{F_y} = -\frac{x}{y} and g′(0)=0g'(0) = 0.

The derivative of the function g(x)g(x) is obtained by differentiating the identity F(x,g(x))=0F(x, g(x)) = 0 with respect to xx via the chain rule:

Formula (derivative of the implicit function). Fx(x,g(x))+Fy(x,g(x))⋅g′(x)=0  ⟹  g′(x)=−Fx(x,g(x))Fy(x,g(x))F_x(x, g(x)) + F_y(x, g(x)) \cdot g'(x) = 0 \implies g'(x) = -\frac{F_x(x, g(x))}{F_y(x, g(x))}

Example. On the circle x2+y2=1x^2 + y^2 = 1 at the point (22,22)\left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right): g′=−FxFy=−xy=−1g' = -\frac{F_x}{F_y} = -\frac{x}{y} = -1, the tangent has slope −1-1.

We can divide by FyF_y because Fy(x0,y0)≠0F_y(x_0, y_0) \neq 0 and, by continuity, FyF_y stays nonzero near the point. This is also the idea of why the hypothesis is needed: if Fy≠0F_y \neq 0, say Fy>0F_y > 0 in a rectangle around the point, every function y↦F(x,y)y \mapsto F(x, y) with xx fixed is strictly increasing, hence vanishes at most once. The value yy at which it vanishes is g(x)g(x).

Tangent line and second derivative

Knowing the derivative g′(x0)g'(x_0), we can find the equation of the tangent line to the curve at the point (x0,y0)(x_0, y_0): y−y0=−Fx(x0,y0)Fy(x0,y0)(x−x0)y - y_0 = -\frac{F_x(x_0, y_0)}{F_y(x_0, y_0)} (x - x_0) Multiplying by FyF_y gives the symmetric form Fx(x0,y0) (x−x0)+Fy(x0,y0) (y−y0)=0F_x(x_0, y_0)\,(x - x_0) + F_y(x_0, y_0)\,(y - y_0) = 0 i.e. the line through (x0,y0)(x_0, y_0) orthogonal to the gradient ∇F(x0,y0)=(Fx,Fy)\nabla F(x_0, y_0) = (F_x, F_y): this is the fact that the gradient is orthogonal to level curves, seen in Differentiability and the Gradientf is differentiable at x0 if f(x) = f(x0) + grad f(x0)·(x - x0) + o(‖x - x0‖), i.e. near x0 the graph is indistinguishable from the tangent plane z = f(x0) + grad f(x0)·(x - x0). Differentiable implies continuous, with partial derivatives and D_v f = grad f · v; continuous partial derivatives imply differentiable. The gradient gives the direction of steepest increase (slope ‖grad f‖) and is orthogonal to level curves.Differentiability and the Gradient →. This form also holds when the tangent is vertical (Fy=0F_y = 0, Fx≠0F_x \neq 0).

To compute g′′(x)g''(x), differentiate the expression of g′(x)g'(x) again, regarding gg as a function of xx: g′′(x)=−ddx(FxFy)=−(Fxx+Fxyg′)Fy−Fx(Fyx+Fyyg′)Fy2g''(x) = -\frac{d}{dx} \left( \frac{F_x}{F_y} \right) = -\frac{(F_{xx} + F_{xy}g')F_y - F_x(F_{yx} + F_{yy}g')}{F_y^2} (quotient rule; every partial derivative of FF is evaluated at (x,g(x))(x, g(x)), so we differentiate with the chain rule: ddxFx(x,g(x))=Fxx+Fxyg′\frac{d}{dx}F_x(x, g(x)) = F_{xx} + F_{xy}g'). In practice it is more convenient to differentiate the identity F(x,g(x))=0F(x, g(x)) = 0 twice, as in the example below.

Extrema of the implicit function. gg has a stationary point where g′=0g' = 0, i.e. where Fx=0F_x = 0 (and Fy≠0F_y \neq 0). There the formula reduces to g′′(x0)=−Fxx(x0,y0)Fy(x0,y0)g''(x_0) = -\dfrac{F_{xx}(x_0, y_0)}{F_y(x_0, y_0)}: if it is positive x0x_0 is a local minimum for gg, if negative a local maximum.

Numerical examples

Unit circle

Consider F(x,y)=x2+y2−1=0F(x,y) = x^2 + y^2 - 1 = 0 at the point (0,1)(0, 1).

  1. F(0,1)=02+12−1=0F(0,1) = 0^2 + 1^2 - 1 = 0.
  2. Fy(x,y)=2yF_y(x,y) = 2y, so Fy(0,1)=2≠0F_y(0,1) = 2 \neq 0.

The theorem applies. The derivative is g′(x)=−2x2y=−xyg'(x) = - \frac{2x}{2y} = -\frac{x}{y}. At (0,1)(0,1), g′(0)=0g'(0) = 0. Check with the explicit function g(x)=1−x2g(x) = \sqrt{1 - x^2}: g′(x)=−x1−x2=−xyg'(x) = \frac{-x}{\sqrt{1-x^2}} = -\frac{x}{y}. Moreover g′′(0)=−FxxFy=−22=−1<0g''(0) = -\frac{F_{xx}}{F_y} = -\frac{2}{2} = -1 < 0: x=0x = 0 is a maximum for gg, as one sees from the upper semicircle.

At (1,0)(1, 0) instead Fy=0F_y = 0: the theorem does not apply with respect to yy. But Fx(1,0)=2≠0F_x(1, 0) = 2 \neq 0, so we can solve for xx as a function of yy: x=h(y)=1−y2x = h(y) = \sqrt{1 - y^2}.

An example without an explicit formula

F(x,y)=x ey+y−1=0F(x, y) = x\,e^y + y - 1 = 0 near (0,1)(0, 1). We cannot solve for yy in closed form, but:

  1. F(0,1)=0+1−1=0F(0, 1) = 0 + 1 - 1 = 0;
  2. Fy=xey+1F_y = x e^y + 1, so Fy(0,1)=1≠0F_y(0, 1) = 1 \neq 0; FF is C1C^1 (sum and product of C∞C^\infty functions).

So there exists gg with g(0)=1g(0) = 1. Differentiating the identity xeg(x)+g(x)−1=0x e^{g(x)} + g(x) - 1 = 0: eg+xegg′+g′=0 →x=0, g=1 e+g′(0)=0 ⇒ g′(0)=−ee^{g} + x e^{g} g' + g' = 0 \ \xrightarrow{x = 0,\ g = 1}\ e + g'(0) = 0 \ \Rightarrow\ g'(0) = -e Tangent line: y=1−e xy = 1 - e\,x. Differentiating again (the derivative of ege^g is egg′e^g g'): 2egg′+x(eg(g′)2+egg′′)+g′′=0 →x=0 2e (−e)+g′′(0)=0 ⇒ g′′(0)=2e2>02e^{g}g' + x\left(e^{g}(g')^2 + e^{g}g''\right) + g'' = 0 \ \xrightarrow{x = 0}\ 2e\,(-e) + g''(0) = 0 \ \Rightarrow\ g''(0) = 2e^2 > 0 Near x=0x = 0 the implicit function is convex and lies above the tangent line.

Grafico interattivo: The curve x·e^y + y − 1 = 0 (i.e. x = (1 − y)e^{−y}) near (0, 1): the tangent line has slope g′(0) = −e (e·x + y = 1) and the curve lies above it, consistent with g″(0) = 2e² > 0

Singular points

Consider the folium of Descartes F(x,y)=x3+y3−3axy=0F(x,y) = x^3 + y^3 - 3axy = 0 with a>0a > 0. At the points where Fy=3y2−3ax=0F_y = 3y^2 - 3ax = 0, the theorem does not guarantee solving for yy. If Fx=Fy=0F_x = F_y = 0 the point is called singular: the theorem applies neither with respect to yy nor to xx, and often the curve crosses itself or has a cusp there. At the origin Fx=3x2−3ay=0F_x = 3x^2 - 3ay = 0 and Fy=0F_y = 0: it is a singular point, and indeed the folium passes twice through the origin (with tangents along the two axes), so near the origin it is not the graph of any function.

Grafico interattivo: Folium of Descartes x³ + y³ − 3xy = 0 (a = 1): at the origin F_x = F_y = 0, a singular point with two crossing branches; at (2^{2/3}, 2^{1/3}) ≈ (1.59, 1.26) the tangent is vertical (F_y = 0), at (1.26, 1.59) horizontal (F_x = 0)

The case F(x,y,z)=0F(x,y,z)=0

If F:R3→RF: \mathbb{R}^3 \to \mathbb{R}, under the hypothesis Fz(P0)≠0F_z(P_0) \neq 0, the surface F(x,y,z)=0F(x,y,z)=0 can be expressed locally as z=g(x,y)z = g(x,y). The partial derivatives are: gx=−FxFz,gy=−FyFzg_x = -\frac{F_x}{F_z}, \quad g_y = -\frac{F_y}{F_z} (differentiate F(x,y,g(x,y))=0F(x, y, g(x, y)) = 0 with respect to xx and to yy). Example: the sphere x2+y2+z2=1x^2 + y^2 + z^2 = 1 near (0,0,1)(0, 0, 1) has Fz=2z=2≠0F_z = 2z = 2 \neq 0, and gx=−xzg_x = -\frac{x}{z}, gy=−yzg_y = -\frac{y}{z}, both zero at the north pole.

Common mistakes

  • Forgetting to check F(x0,y0)=0F(x_0, y_0) = 0.
  • Applying the theorem when Fy=0F_y = 0: in that case the point may have a vertical tangent (like (1,0)(1,0) on the circle), where yy is not a function of xx.
  • Believing the theorem gives gg on the whole domain: the implicit function exists only in a neighbourhood of x0x_0.
  • Differentiating the identity F(x,g(x))=0F(x, g(x)) = 0 forgetting that gg depends on xx (for example writing that the derivative of eg(x)e^{g(x)} is eg(x)e^{g(x)} instead of eg(x)g′(x)e^{g(x)}g'(x)).
  • Getting the sign wrong in the formula for g′(x)g'(x).

Versione ripasso

Theorem. If F∈C1F \in C^1 on an open set of R2\mathbb{R}^2, F(x0,y0)=0F(x_0,y_0) = 0 and Fy(x0,y0)≠0F_y(x_0,y_0) \neq 0, then in a neighbourhood of x0x_0 there is a unique g∈C1g \in C^1 with g(x0)=y0g(x_0) = y_0 and F(x,g(x))=0F(x, g(x)) = 0.

Why. With Fy>0F_y > 0 on a rectangle around (x0,y0)(x_0,y_0), for each fixed xx the function y↦F(x,y)y \mapsto F(x,y) is strictly increasing and vanishes at most once: that value is g(x)g(x). The differentiability of gg follows from the chain rule applied to the identity F(x,g(x))=0F(x,g(x)) = 0.

Derivative. Differentiating F(x,g(x))=0F(x,g(x)) = 0 with the chain rule: g′(x)=−Fx(x,g(x))Fy(x,g(x))g'(x) = -\frac{F_x(x,g(x))}{F_y(x,g(x))} Example: for the circle x2+y2−1x^2+y^2 - 1 at the point (22,22)(\frac{\sqrt2}2,\frac{\sqrt2}2), g′=−xy=−1g' = -\frac xy = -1.

Tangent. Fx(x0,y0)(x−x0)+Fy(x0,y0)(y−y0)=0F_x(x_0,y_0)(x-x_0) + F_y(x_0,y_0)(y-y_0) = 0: the line orthogonal to ∇F\nabla F. It also holds with Fy=0F_y = 0.

Examples.

  • Circle at (0,1)(0,1): g′=−xyg' = -\frac xy, so g′(0)=0g'(0) = 0; g′′(0)=−FxxFy=−1<0g''(0) = -\frac{F_{xx}}{F_y} = -1 < 0, a maximum.
  • At (1,0)(1,0) we have Fy=0F_y = 0 but Fx=2≠0F_x = 2 \neq 0: solve for x=h(y)=1−y2x = h(y) = \sqrt{1-y^2}.
  • F=xey+y−1F = xe^y + y - 1 at (0,1)(0,1): Fy=1≠0F_y = 1 \neq 0. Differentiating xeg+g−1=0xe^{g} + g - 1 = 0 gives g′(0)=−eg'(0) = -e (tangent y=1−exy = 1 - ex). Differentiating again, 2e⋅g′+g′′=02e\cdot g' + g'' = 0 at x=0x = 0, so g′′(0)=2e2>0g''(0) = 2e^2 > 0: the curve lies above the tangent.

Extrema of gg. At points with Fx=0F_x = 0 (and Fy≠0F_y \neq 0), g′′=−FxxFyg'' = -\frac{F_{xx}}{F_y}: minimum if positive, maximum if negative.

Special cases.

  • Fy=0F_y = 0 and Fx≠0F_x \neq 0: solve for x=h(y)x = h(y).
  • Fx=Fy=0F_x = F_y = 0: singular point. The folium x3+y3−3xy=0x^3+y^3-3xy = 0 has a singular point at the origin, with two crossing branches.
  • Surfaces F(x,y,z)=0F(x,y,z) = 0 with Fz≠0F_z \neq 0: z=g(x,y)z = g(x,y), with gx=−FxFzg_x = -\frac{F_x}{F_z} and gy=−FyFzg_y = -\frac{F_y}{F_z}. The sphere near (0,0,1)(0,0,1) gives gx=−xzg_x = -\frac xz.

Typical mistakes.

  • Applying the theorem without checking F(x0,y0)=0F(x_0,y_0) = 0.
  • Computing g′g' with FF evaluated at (x0,y0)(x_0,y_0) instead of at (x,g(x))(x,g(x)): for xx different from x0x_0 the value of yy changes.
  • Applying it with Fy=0F_y = 0: there the tangent may be vertical, like (1,0)(1,0) on the circle.
  • Believing gg is defined on the whole domain: it exists only in a neighbourhood of x0x_0.
  • Differentiating F(x,g(x))=0F(x,g(x)) = 0 forgetting g′g', for example writing that the derivative of eg(x)e^{g(x)} is eg(x)e^{g(x)}.

Teoria collegata