2.3 Derivatives of functions defined implicitly
One parameter
The equilibrium value of a variable x in some economic models is the solution of an equation of the formTypically, we make assumptions about the form of the function f—for example, we might assume that it is increasing in x and decreasing in p—but do not assume that it takes a specific form. Thus typically we cannot solve explicitly for x as a function of p (i.e. we cannot write x = g(p) for some function g).
We say that the equation
Before trying to determine how a solution for x depends on p, we should ask whether, for each value of p, the equation has a solution. Certainly not all such equations have solutions. The equation x2 + 1 = 0, for example, has no (real) solution. Even a single linear equation may have no solution in the relevant range. If, for example, the value of x is restricted to be nonnegative number (perhaps it is the quantity of a good), then for p > 0 the equation x + p = 0 has no solution.
One tool that we may be able to use to show that a single equation in a single variable has a solution is the Intermediate Value Theorem. Assume that the function f is continuous, the possible values of x lie between x1 and x2, and for some value of p we have f(x1, p) < 0 and f(x2, p) > 0, or alternatively f(x1, p) > 0 and f(x2, p) < 0. Then the Intermediate Value Theorem tells us that there exists a value of x between x1 and x2 for which f(x, p) = 0. (Note that even if these conditions are not satisfied, the equation may have a solution.)
If we cannot appeal to the Intermediate Value Theorem (because, for example, f is not continuous, or does not satisfy the appropriate conditions), we may be able to argue that a solution exists by appealing to the particular features of our equation.
Putting aside the question of whether the equation has a solution, consider the question of how a solution, if one exists, depends on the parameter p. If x0 is a solution for the parameter value p0, so that f(x0, p0) = 0, and the function g that the equation f(g(p), p) = 0 implicitly defines is differentiable at p0, then we can find its derivative g'(p) by differentiating both sides of the equation. Using the chain rule, we get
This calculation tells us, for example, that if f is an increasing function of both its arguments (f'1(x, p) > 0 and f'2(x, p) > 0 for all (x, p)), then x is a decreasing function of p.
Conditions under which the function g is differentiable are given by the following result.
- Proposition 2.3.1 (Implicit function theorem)
-
Let f be a continuously differentiable function of two variables defined on an open set S. If f'1(x0, p0) ≠ 0 then there exists a continuously
differentiable function g of a single variable defined on an open interval I containing p0 such that f(g(p), p) = f(x0, p0) for all p ∈ I, and
g'(p0) = − f'2(x0, p0) f'1(x0, p0) .
Application: slopes of level curves
The equation f(x, y) = c of the level curve of the function f for the value c defines y implicitly as a function of x: we can writeg'(x0) = − |
|
. |
We deduce that the equation of the tangent to the level curve at (x0, y0) is
y − y0 = − |
|
·(x − x0). |
f'1(x0, y0)(x − x0) + f'2(x0, y0)(y − y0) = 0, |
(f'1(x0, y0), f'2(x0, y0)) |
|
= 0. |
The vector (f'1(x0, y0), f'2(x0, y0)) is called the gradient vector of f at (x0, y0) and is denoted ∇f(x0, y0).
Let (x, y) ≠ (x0, y0) be a point on the tangent of the level curve at (x0, y0). Then the vector
|
One can compute the second derivative of the level curve as well as the first derivative, by differentiating once again.
Many parameters
Suppose that the equilibrium value of the variable x is the solution of an equation of the formAssume that the function g defined implicitly as follows is differentiable:
g'i(p) = − |
|
. |
- Example 2.3.1
-
Consider the competitive firm studied previously that uses a single input to produce a single output with the differentiable production function f, facing the price w for the input and the price p for output. Denote by z(w, p) its profit-maximizing input for any pair (w, p). We
know that z(w, p) satisfies the first-order condition
pf'(z(w, p)) − w = 0 if z(w, p) > 0.How does z depend on w and p?
Differentiating with respect to w the equation that z(w, p) satisfies we get
pf"(z(w, p))z'w(w, p) − 1 = 0.Thus if f"(z(w, p)) ≠ 0 thenz'w(w, p) = 1 pf"(z(w, p)) . A similar calculation yields
z'p(w, p) = − f'(z(w, p)) pf"(z(w, p)) ,