TL;DR
Many relations are written as an equation that mixes the two variables, such as , and never as " something". The implicit function theorem says that if such an equation holds at a point and the expression really depends on there, then near that point is a genuine function of . It also gives that function's slope from the partial derivatives alone, so you can find the slope without solving the equation.
Builds on: Jacobian Matrix · Leads to: bilevel optimisation and sensitivity analysis, where a solution of one equation is differentiated with respect to a parameter
Where it's used
Economics: how an equilibrium moves. A market clears when demand equals supply, which is one equation linking price and the factors that shift demand. The theorem tells you how the equilibrium price responds to a small change in income, without solving the market for the price first. Economists call this comparative statics.
Physics: the shape of a level set. The points where an energy function takes a fixed value form a curve, such as a circle or an ellipse. At any point of that curve, the theorem tells you the slope of the curve, which is the direction a particle on it must move to keep its energy fixed.
Machine learning: differentiating through a solution. When a model's output is defined by an equation that must be solved first, such as an optimisation or a fixed point, gradients with respect to the inputs can be found by differentiating that equation. This is how some hyperparameter-tuning methods and equilibrium models obtain gradients without unrolling the solver.
How it works
Take the circle and the point . We want the slope of with respect to there.
- Write the equation as . Here is a function of two variables, . Check: at we get , so the point lies on the curve.
- Measure how changes with , holding fixed. This is the rate of change, the partial derivative at the point.
- Measure how changes with , holding fixed. This is . It is not zero, which is the condition the theorem needs.
- Combine them into the slope. The theorem says . Check: the circle goes down as grows here, which matches a negative slope.
- Confirm by solving once. Near this point , whose derivative is . The two agree, so the shortcut works even though we did not need to solve for to use it.
The picture is a small piece of the circle, with the tangent line through having slope .
- y = sqrt(1 - x^2)
- tangent at (0.6, 0.8)
The math
Step 1 in symbols: the equation and the point
Let be a function of two variables, and let be a point with .
Suppose is continuously differentiable near , , and . Then there is a neighbourhood of and a unique differentiable function with and for every in that neighbourhood. Its slope is
evaluated at the point.
Read the statement in words: the function must be differentiable; the point must be on the curve; and must change when changes. Only then is determined by near the point.
Step 2 in symbols: why the slope has that form
Substitute into the equation: holds for every nearby. Differentiate both sides with respect to . The chain rule gives
The first term is the change in from moving ; the second is the change from moving along the curve. The sum must be zero because stays at zero. Solve for and you get the formula. The division is allowed only when , which is why the hypothesis is there.
Step 3 in symbols: the check on the circle
For we have and . The formula gives . At this is , the same as the direct computation in the walkthrough.
Several variables
For a system of equations with and , the same argument uses the Jacobian matrix of with respect to . The theorem then needs that square matrix to be invertible, and the slope becomes . The one-equation case is the special case where is a single number. Solving the linear system here is the matrix version of dividing by , and it uses the inverse of a matrix.
Worked examples
Find for at .
- Write . At : , so the point is on the curve.
- at .
- at , which is not zero, so the theorem applies.
- .
Interpretation: at the top of the circle the curve is horizontal, which matches what you see on a graph.
Find for at .
- Check the point: , so lies on the curve.
- . At : .
- . At : , which is not zero.
- .
- Interpretation: the curve crosses the diagonal at going downward at a 45 degree angle.
Notice that we never solved the cubic for . The theorem gave the slope directly from the two partial derivatives.
A market has demand and supply , where is the price and is an income index. The market clears when , which we write as .
- At the equation gives . Check: and .
- Take the partial derivative with respect to , holding price fixed: .
- Take the partial derivative with respect to , holding income fixed: . It is not zero, so the theorem applies.
- The implicit formula gives .
- Check by solving once: , whose derivative is .
Interpretation: a one-unit rise in the income index raises the equilibrium price by about one sixth of a unit. The theorem gives this without solving the market for every income.
Try it: a market has demand and supply . Find at the equilibrium where when . Answer: , so and , giving .
Common mistakes and tradeoffs
"The theorem says every point of the curve is a graph of over ." It is tempting to think that any equation defines as a function of . In fact the theorem needs at the point. On the circle at the partial is zero, and the curve turns vertical there: near that point it is a graph of over instead.
"The theorem gives a global solution." The result is local. It describes the curve near one point, and far away the equation can define several branches, as the circle does with its upper and lower halves. Each branch needs its own check of the hypotheses.
"You must solve for before you can differentiate." The point of the theorem is that you do not. You only need the value of 's partial derivatives at a point on the curve.
When to use it. Use the theorem when a relation is given implicitly and you need a slope, rate or sensitivity at a known point. Use it to decide whether a solution moves smoothly with a parameter.
When not to use it. When the equation can be solved cleanly for , solving is simpler and gives the global picture. When at the point, the formula breaks down and you must switch the roles of the variables or use a different method.
History
Ways of finding slopes of curves given by equations were known to Newton and Leibniz, who used implicit differentiation as a routine technique without a general statement of when it was justified. The question of when an equation really defines one variable as a function of another was harder: a curve can look like a graph in pictures and still fail at special points. Ulisse Dini gave the general statement in the 19th century, and the theorem became a standard part of multivariable calculus because the proof uses the same linear approximation as the derivative itself. The result caught on because it lets mathematicians and economists talk about how solutions change without writing the solution down.
Recap
- An equation can define as a function of near a point, if is smooth there and .
- The slope is , found from partial derivatives alone.
- The formula comes from differentiating with the chain rule.
- Several equations need the Jacobian matrix and its inverse in place of the single division.
- Read next: partial derivatives if the notation is new, and bilevel optimisation for a dependent use.
Check yourself
QuestionRecall: what condition on the partial derivatives lets the theorem solve for y as a function of x near a point?Show answer
must not be zero at the point. This is what allows the division by in the formula , and it is what makes locally determined by .
QuestionCompute: for at the point , find .Show answer
First check the point: . Then and . So .
QuestionWhy: why does the formula for not need solved out explicitly?Show answer
Because the slope comes from differentiating the identity with the chain rule. That gives , a relation between the derivatives at the point. The function is only needed to justify the calculation, and its existence is guaranteed by the theorem.
QuestionApplied: a water-level equation links the height of a tank to a rainfall rate , and at the current level. Can you use the theorem to find there, and what would you do instead?Show answer
No. The theorem needs the partial derivative with respect to the variable being solved for to be nonzero, and here it is zero, so is not locally a smooth function of by this argument. You would switch the roles, solving for as a function of if that partial is nonzero, or analyse the equation directly, since the tank may be at a point where the response changes sharply.