# Implicit function theorem

In multivariable calculus, the implicit function theorem, also known, especially in Italy, as Dini's theorem, is a tool that allows relations to be converted to functions of several real variables. It does this by representing the relation as the graph of a function. There may not be a single function whose graph is the entire relation, but there may be such a function on a restriction of the domain of the relation. The implicit function theorem gives a sufficient condition to ensure that there is such a function.

The theorem states that if the equation R(x, y) = 0 satisfies some mild conditions on its partial derivatives, then one can in principle (though not necessarily with an analytic expression) express y in terms of x as f(x), at least in some disk. Then this implicit function f(x),[1]:204-206 implied by R(x, y)=0, is such that geometrically the locus defined by R(x, y) = 0 will coincide locally (that is in that disk) with the graph of f.

## First example

The unit circle can be specified as the level curve f(x, y) = 1 of the function ${\displaystyle f(x,y)=x^{2}+y^{2}}$. Around point A, y can be expressed as a function y(x), specifically ${\displaystyle g_{1}(x)={\sqrt {1-x^{2}}}}$. No such function exists around point B.

If we define the function ${\displaystyle f(x,y)=x^{2}+y^{2}}$, then the equation f(x, y) = 1 cuts out the unit circle as the level set {(x, y)| f(x, y) = 1}. There is no way to represent the unit circle as the graph of a function of one variable y = g(x) because for each choice of x ∈ (−1, 1), there are two choices of y, namely ${\displaystyle \pm {\sqrt {1-x^{2}}}}$.

However, it is possible to represent part of the circle as the graph of a function of one variable. If we let ${\displaystyle g_{1}(x)={\sqrt {1-x^{2}}}}$ for −1 < x < 1, then the graph of ${\displaystyle y=g_{1}(x)}$ provides the upper half of the circle. Similarly, if ${\displaystyle g_{2}(x)=-{\sqrt {1-x^{2}}}}$, then the graph of ${\displaystyle y=g_{2}(x)}$ gives the lower half of the circle.

The purpose of the implicit function theorem is to tell us the existence of functions like ${\displaystyle g_{1}(x)}$ and ${\displaystyle g_{2}(x)}$, even in situations where we cannot write down explicit formulas. It guarantees that ${\displaystyle g_{1}(x)}$ and ${\displaystyle g_{2}(x)}$ are differentiable, and it even works in situations where we do not have a formula for f(x, y).

## Statement of the theorem

Let f : Rn+mRm be a continuously differentiable function. We think of Rn+m as the Cartesian product Rn × Rm, and we write a point of this product as (x, y) = (x1, ..., xn, y1, ..., ym). Starting from the given function f, our goal is to construct a function g: RnRm whose graph (x, g(x)) is precisely the set of all (x, y) such that f(x, y) = 0.

As noted above, this may not always be possible. We will therefore fix a point (a, b) = (a1, ..., an, b1, ..., bm) which satisfies f(a, b) = 0, and we will ask for a g that works near the point (a, b). In other words, we want an open set U of Rn containing a, an open set V of Rm containing b, and a function g : UV such that the graph of g satisfies the relation f = 0 on U × V. In symbols,

${\displaystyle \{(\mathbf {x} ,g(\mathbf {x} ))\mid \mathbf {x} \in U\}=\{(\mathbf {x} ,\mathbf {y} )\in U\times V\mid f(\mathbf {x} ,\mathbf {y} )=0\}.}$

To state the implicit function theorem, we need the Jacobian matrix of f, which is the matrix of the partial derivatives of f. Abbreviating (a1, ..., an, b1, ..., bm) to (a, b), the Jacobian matrix is

${\displaystyle (Df)(\mathbf {a} ,\mathbf {b} )=\left[{\begin{matrix}{\frac {\partial f_{1}}{\partial x_{1}}}(\mathbf {a} ,\mathbf {b} )&\cdots &{\frac {\partial f_{1}}{\partial x_{n}}}(\mathbf {a} ,\mathbf {b} )\\\vdots &\ddots &\vdots \\{\frac {\partial f_{m}}{\partial x_{1}}}(\mathbf {a} ,\mathbf {b} )&\cdots &{\frac {\partial f_{m}}{\partial x_{n}}}(\mathbf {a} ,\mathbf {b} )\end{matrix}}\right|\left.{\begin{matrix}{\frac {\partial f_{1}}{\partial y_{1}}}(\mathbf {a} ,\mathbf {b} )&\cdots &{\frac {\partial f_{1}}{\partial y_{m}}}(\mathbf {a} ,\mathbf {b} )\\\vdots &\ddots &\vdots \\{\frac {\partial f_{m}}{\partial y_{1}}}(\mathbf {a} ,\mathbf {b} )&\cdots &{\frac {\partial f_{m}}{\partial y_{m}}}(\mathbf {a} ,\mathbf {b} )\\\end{matrix}}\right]=[X|Y]}$

where X is the matrix of partial derivatives in the variables xi and Y is the matrix of partial derivatives in the variables yj. The implicit function theorem says that if Y is an invertible matrix, then there are U, V, and g as desired. Writing all the hypotheses together gives the following statement.

Let f: Rn+mRm be a continuously differentiable function, and let Rn+m have coordinates (x, y). Fix a point (a, b) = (a1, ..., an, b1, ..., bm) with f(a, b) = c, where cRm. If the matrix [(∂fi/∂yj)(a, b)] is invertible, then there exists an open set U containing a, an open set V containing b, and a unique continuously differentiable function g: UV such that
${\displaystyle \{(\mathbf {x} ,g(\mathbf {x} ))|\mathbf {x} \in U\}=\{(\mathbf {x} ,\mathbf {y} )\in U\times V|f(\mathbf {x} ,\mathbf {y} )=\mathbf {c} \}.}$

### Regularity

It can be proven that whenever we have the additional hypothesis that f is continuously differentiable up to k times inside U × V, then the same holds true for the explicit function g inside U and

${\displaystyle {\frac {\partial g}{\partial x_{j}}}(x)=-\left({\frac {\partial f}{\partial y}}(x,g(x))\right)^{-1}{\frac {\partial f}{\partial x_{j}}}(x,g(x))}$.

Similarly, if f is analytic inside U × V, then the same holds true for the explicit function g inside U.[2] This generalization is called the analytic implicit function theorem.

## The circle example

Let us go back to the example of the unit circle. In this case n = m = 1 and ${\displaystyle f(x,y)=x^{2}+y^{2}-1}$. The matrix of partial derivatives is just a 1 × 2 matrix, given by

${\displaystyle (Df)(a,b)=\left[{\frac {\partial f}{\partial x}}(a,b)\ \ {\frac {\partial f}{\partial y}}(a,b)\right]=[2a\ \ 2b]}$

Thus, here, the Y in the statement of the theorem is just the number 2b; the linear map defined by it is invertible iff b ≠ 0. By the implicit function theorem we see that we can locally write the circle in the form y = g(x) for all points where y ≠ 0. For (±1, 0) we run into trouble, as noted before. The implicit function theorem may still be applied to these two points, but writing x as a function of y, that is, ${\displaystyle x=h(y)}$; now the graph of the function will be ${\displaystyle \left(h(y),y\right)}$, since where b = 0 we have a = 1, and the conditions to locally express the function in this form are satisfied.

The implicit derivative of y with respect to x, and that of x with respect to y, can be found by totally differentiating the implicit function ${\displaystyle x^{2}+y^{2}-1}$ and equating to 0:

${\displaystyle 2xdx+2ydy=0,}$

giving

${\displaystyle dy/dx=-x/y}$

and

${\displaystyle dx/dy=-y/x.}$

## Application: change of coordinates

Suppose we have an m-dimensional space, parametrised by a set of coordinates ${\displaystyle (x_{1},\ldots ,x_{m})}$. We can introduce a new coordinate system ${\displaystyle (x'_{1},\ldots ,x'_{m})}$ by supplying m functions ${\displaystyle h_{1}\ldots h_{m}}$. These functions allow to calculate the new coordinates ${\displaystyle (x'_{1},\ldots ,x'_{m})}$ of a point, given the point's old coordinates ${\displaystyle (x_{1},\ldots ,x_{m})}$ using ${\displaystyle x'_{1}=h_{1}(x_{1},\ldots ,x_{m}),\ldots ,x'_{m}=h_{m}(x_{1},\ldots ,x_{m})}$. One might want to verify if the opposite is possible: given coordinates ${\displaystyle (x'_{1},\ldots ,x'_{m})}$, can we 'go back' and calculate the same point's original coordinates ${\displaystyle (x_{1},\ldots ,x_{m})}$? The implicit function theorem will provide an answer to this question. The (new and old) coordinates ${\displaystyle (x'_{1},\ldots ,x'_{m},x_{1},\ldots ,x_{m})}$ are related by f = 0, with

${\displaystyle f(x'_{1},\ldots ,x'_{m},x_{1},\ldots x_{m})=(h_{1}(x_{1},\ldots x_{m})-x'_{1},\ldots ,h_{m}(x_{1},\ldots ,x_{m})-x'_{m}).}$

Now the Jacobian matrix of f at a certain point (a, b) [ where ${\displaystyle a=(x'_{1},\ldots ,x'_{m}),b=(x_{1},\ldots ,x_{m})}$ ] is given by

${\displaystyle (Df)(a,b)=\left[{\begin{matrix}-1&\cdots &0\\\vdots &\ddots &\vdots \\0&\cdots &-1\end{matrix}}\left|{\begin{matrix}{\frac {\partial h_{1}}{\partial x_{1}}}(b)&\cdots &{\frac {\partial h_{1}}{\partial x_{m}}}(b)\\\vdots &\ddots &\vdots \\{\frac {\partial h_{m}}{\partial x_{1}}}(b)&\cdots &{\frac {\partial h_{m}}{\partial x_{m}}}(b)\\\end{matrix}}\right.\right]=[-1_{m}|J].}$

where 1m denotes the m × m identity matrix, and J is the m × m matrix of partial derivatives, evaluated at (a, b). (In the above, these blocks were denoted by X and Y. As it happens, in this particular application of the theorem, neither matrix depends on a.) The implicit function theorem now states that we can locally express ${\displaystyle (x_{1},\ldots ,x_{m})}$ as a function of ${\displaystyle (x'_{1},\ldots ,x'_{m})}$ if J is invertible. Demanding J is invertible is equivalent to det J ≠ 0, thus we see that we can go back from the primed to the unprimed coordinates if the determinant of the Jacobian J is non-zero. This statement is also known as the inverse function theorem.

### Example: polar coordinates

As a simple application of the above, consider the plane, parametrised by polar coordinates (R, θ). We can go to a new coordinate system (cartesian coordinates) by defining functions x(R, θ) = R cos(θ) and y(R, θ) = R sin(θ). This makes it possible given any point (R, θ) to find corresponding cartesian coordinates (x, y). When can we go back and convert cartesian into polar coordinates? By the previous example, it is sufficient to have det J ≠ 0, with

${\displaystyle J={\begin{bmatrix}{\frac {\partial x(R,\theta )}{\partial R}}&{\frac {\partial x(R,\theta )}{\partial \theta }}\\{\frac {\partial y(R,\theta )}{\partial R}}&{\frac {\partial y(R,\theta )}{\partial \theta }}\\\end{bmatrix}}={\begin{bmatrix}\cos \theta &-R\sin \theta \\\sin \theta &R\cos \theta \end{bmatrix}}.}$

Since det J = R, conversion back to polar coordinates is possible if R ≠ 0. So it remains to check the case R = 0. It is easy to see that in case R = 0, our coordinate transformation is not invertible: at the origin, the value of θ is not well-defined.

## Generalizations

### Banach space version

Based on the inverse function theorem in Banach spaces, it is possible to extend the implicit function theorem to Banach space valued mappings.

Let X, Y, Z be Banach spaces. Let the mapping f : X × YZ be continuously Fréchet differentiable. If ${\displaystyle (x_{0},y_{0})\in X\times Y}$, ${\displaystyle f(x_{0},y_{0})=0}$, and ${\displaystyle y\mapsto Df(x_{0},y_{0})(0,y)}$ is a Banach space isomorphism from Y onto Z, then there exist neighbourhoods U of x0 and V of y0 and a Fréchet differentiable function g : UV such that f(x, g(x)) = 0 and f(x, y) = 0 if and only if y = g(x), for all ${\displaystyle (x,y)\in U\times V}$.

### Implicit functions from non-differentiable functions

Various forms of the implicit function theorem exist for the case when the function f is not differentiable. It is standard that it holds in one dimension.[3] The following more general form was proven by Kumagai[4] based on an observation by Jittorntrum.[5]

Consider a continuous function ${\displaystyle f:R^{n}\times R^{m}\to R^{n}}$ such that ${\displaystyle f(x_{0},y_{0})=0}$. If there exist open neighbourhoods ${\displaystyle A\subset R^{n}}$ and ${\displaystyle B\subset R^{m}}$ of x0 and y0, respectively, such that, for all y in B, ${\displaystyle f(\cdot ,y):A\to R^{n}}$ is locally one-to-one then there exist open neighbourhoods ${\displaystyle A_{0}\subset R^{n}}$ and ${\displaystyle B_{0}\subset R^{m}}$ of x0 and y0, such that, for all ${\displaystyle y\in B_{0}}$, the equation f(x, y) = 0 has a unique solution

${\displaystyle x=g(y)\in A_{0}}$,

where g is a continuous function from B0 into A0.

## Notes

1. Chiang, Alpha C. Fundamental Methods of Mathematical Economics, McGraw-Hill, third edition, 1984
2. K. Fritzsche, H. Grauert (2002), "From Holomorphic Functions to Complex Manifolds", Springer-Verlag, page 34.
3. {{#invoke:citation/CS1|citation |CitationClass=book }}
4. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
5. {{#invoke:Citation/CS1|citation |CitationClass=journal }}

## References

• {{#invoke:citation/CS1|citation

|CitationClass=citation }}

• {{#invoke:citation/CS1|citation

|CitationClass=citation }}