When an Equation Defines a Function
An equation involving \(x\) and \(y\) can describe a curve without giving \(y\) explicitly in terms of \(x\). Near some points, the curve still has a unique, differentiable branch \(y=\phi(x)\). Implicit differentiation is the technique of finding the derivative of that branch directly from the equation.
The derivative of an inverse, established in the previous tutorial, is a useful guide: a nonzero derivative allows a local relation to be solved in the opposite direction. For an equation \(F(x,y)=0\), the relevant quantity is the partial derivative with respect to \(y\). But before differentiating the equation, we need to know that a local function \(\phi\) actually exists. The theorem below supplies that justification.
For the theorem, assume \(F\) is defined on an open rectangle around \((a,b)\), that its first partial derivatives exist and are continuous there, and that \(F(a,b)=0\). The condition \(F_y(a,b)\ne0\) says that, at the point in question, changing \(y\) changes \(F\) to first order. It is this condition that lets us solve locally for \(y\).
The Local Implicit Function Theorem
Proof. Since \(F_y(a,b)\ne0\) and \(F_y\) is continuous, we can choose a closed rectangle around \((a,b)\), contained in the domain of \(F\), on which \(F_y\) has the same nonzero sign as \(F_y(a,b)\). Choose \(r>0\) small enough that \(b-r\) and \(b+r\) are in this rectangle. For fixed \(x=a\), the Mean Value Theorem applied as \(y\) varies shows that \(F(a,y)\) is strictly monotone on \([b-r,b+r]\). Since \(F(a,b)=0\), the values \(F(a,b-r)\) and \(F(a,b+r)\) have opposite signs.
By continuity of \(F\), these two strict signs persist when \(x\) is sufficiently close to \(a\). Thus there is an open interval \(J\) containing \(a\) such that, for every \(x\in J\), the values \(F(x,b-r)\) and \(F(x,b+r)\) have opposite signs. The Intermediate Value Theorem gives at least one \(y\in(b-r,b+r)\) with \(F(x,y)=0\). For each fixed \(x\), the Mean Value Theorem and the nonzero constant sign of \(F_y\) show that \(y\mapsto F(x,y)\) is strictly monotone on this interval. Hence that root is unique. Call it \(\phi(x)\), and set \(K=(b-r,b+r)\). In particular, \(\phi(a)=b\).
We next show that \(\phi\) is continuous. Fix \(x_0\in J\), and write \(y_0=\phi(x_0)\). Given \(\varepsilon>0\), choose \(s\) with \(0<s<\varepsilon\) small enough that \(y_0-s,y_0+s\in K\). Strict monotonicity in \(y\) and \(F(x_0,y_0)=0\) imply that \(F(x_0,y_0-s)\) and \(F(x_0,y_0+s)\) have opposite signs. By continuity, those signs persist for \(x\) sufficiently close to \(x_0\). The unique root \(\phi(x)\) must then lie between \(y_0-s\) and \(y_0+s\). Therefore \(|\phi(x)-y_0|<s<\varepsilon\), which proves continuity at \(x_0\).
Now fix \(x\in J\) and take nonzero \(h\) sufficiently small that \(x+h\in J\). Subtract the two zero values \(F(x+h,\phi(x+h))\) and \(F(x,\phi(x))\), inserting \(F(x,\phi(x+h))\) between them. Apply the one-variable Mean Value Theorem first in the \(x\)-coordinate and then in the \(y\)-coordinate. There are points \(\xi_h\) between \(x\) and \(x+h\), and \(\eta_h\) between \(\phi(x)\) and \(\phi(x+h)\), such that
Because \(\phi\) is continuous, \(\phi(x+h)\to\phi(x)\) as \(h\to0\). Thus \(\xi_h\to x\) and \(\eta_h\to\phi(x)\). Also \(F_y(x,\phi(x))\ne0\), since \(F_y\) has a fixed nonzero sign on the chosen rectangle. Divide the displayed identity by \(hF_y(x,\eta_h)\), then let \(h\to0\). Continuity of the partial derivatives gives
This holds for every \(x\in J\), proving differentiability and the formula. Finally, strict monotonicity in \(y\) ensures that for each \(x\in J\) there is at most one root in \(K\). This proves the asserted uniqueness. \(\square\)
The theorem turns the usual formal procedure into a justified one: locally, \(y\) really is a differentiable function of \(x\). Differentiating \(F(x,\phi(x))=0\) by the chain rule then gives \(F_x+F_y\phi'=0\), which is precisely the formula proved above.
Worked Example: The Slope on an Ellipse
Consider the curve \(x^2+4y^2=5\) at \((1,1)\). Define \(F(x,y)=x^2+4y^2-5\). Substitution verifies that this point lies on the curve:
The partial derivatives are \(F_x(x,y)=2x\) and \(F_y(x,y)=8y\), so \(F_y(1,1)=8\ne0\). The theorem therefore gives a differentiable local branch \(y=\phi(x)\) through \((1,1)\). Its slope at \(x=1\) is
Solving the equation for the positive branch gives \(\phi(x)=\frac12\sqrt{5-x^2}\) near \(x=1\). Direct differentiation yields \(\phi'(x)=-x/(2\sqrt{5-x^2})\), and hence \(\phi'(1)=-1/4\), in agreement with the implicit calculation.
Worked Example: A Curve That Is Easier to Differentiate Implicitly
Consider \(x^2+xy+y^2=7\) near \((1,2)\). First check the point:
Set \(F(x,y)=x^2+xy+y^2-7\). Then \(F_x=2x+y\) and \(F_y=x+2y\). At \((1,2)\), these are \(F_x(1,2)=2+2=4\) and \(F_y(1,2)=1+4=5\). Since \(F_y(1,2)\ne0\), the local branch exists and
No quadratic formula is needed. The nonzero value of \(F_y\) certifies that the curve has a unique local branch through this point, and the partial derivatives determine its slope.
Second Derivatives of Implicit Functions
When \(F\) has continuous second partial derivatives, the first-derivative formula can be differentiated once more. The resulting expression uses only the partial derivatives of \(F\) and the already computed value of \(\phi'\).
Proof. The first-derivative formula expresses \(\phi'\) as a quotient of the functions \(F_x(x,\phi(x))\) and \(F_y(x,\phi(x))\). The second partial derivatives of \(F\) are continuous, so these compositions are continuously differentiable wherever \(\phi\) is continuously differentiable. The denominator does not vanish on the rectangle used in the first theorem. The quotient rule therefore shows that \(\phi'\) is continuously differentiable, so \(\phi\) is twice differentiable.
Differentiate \(F_x(x,\phi(x))+F_y(x,\phi(x))\phi'(x)=0\) using the chain rule and product rule. Since the mixed partial derivatives agree for a function with continuous second partial derivatives, this gives
where each partial derivative is evaluated at \((x,\phi(x))\). Combine the two mixed-partial terms, then solve for \(\phi''\). The result is the stated formula. \(\square\)
Worked Example: Curvature Information on a Circle
On the circle \(x^2+y^2=25\), consider the point \((3,4)\). It lies on the circle because \(3^2+4^2=9+16=25\). For \(F(x,y)=x^2+y^2-25\), the needed partial derivatives are \(F_x=2x\), \(F_y=2y\), \(F_{xx}=2\), \(F_{xy}=0\), and \(F_{yy}=2\). Since \(F_y(3,4)=8\ne0\), the curve is locally a function \(y=\phi(x)\), and
The second-derivative formula then gives
As a check, the upper branch is \(\phi(x)=\sqrt{25-x^2}\). Its second derivative at \(x=3\) is \(-25/(25-9)^{3/2}=-25/64\), the same value.
What the Nonzero Partial Derivative Does—and Does Not—Guarantee
The condition \(F_y(a,b)\ne0\) is sufficient for a unique differentiable local graph \(y=\phi(x)\). It is important not to drop it just because an equation can be manipulated or differentiated formally. At a point where \(F_y=0\), the equation might still describe a graph, but this theorem no longer guarantees one, and the displayed derivative formula cannot be used.
Worked Example: A Point Where the Theorem Does Not Apply
Consider \(F(x,y)=x^2+y^2\) at \((0,0)\). The equation \(F(x,y)=0\) is satisfied there, but \(F_y(x,y)=2y\), so \(F_y(0,0)=0\). In fact, the equation has no solutions except \((0,0)\): since squares are nonnegative, \(x^2+y^2=0\) forces \(x=0\) and \(y=0\). There is therefore no function defined for all \(x\) in an open interval around zero whose graph gives this curve. The theorem correctly makes no claim here.
A common pitfall is to differentiate an equation and treat the resulting formula as proof that a branch exists. The logical order matters: first establish the local graph, then differentiate its defining identity. When \(F_y\ne0\), the theorem justifies both steps. When it vanishes, another argument is needed, and a graph may fail to exist altogether.
Verify that \(F(a,b)=0\).
Compute \(F_y(a,b)\) and confirm that it is nonzero before applying the theorem.
Evaluate \(-F_x/F_y\) at the point to find the local slope.
Substitute the partial derivatives and the value of \(\phi'\), keeping all evaluations at the same point.
Check Your Understanding
Use the local implicit function theorem and its derivative formulas to answer these questions.
- Which hypotheses guarantee that \(F(x,y)=0\) defines a unique differentiable local function \(y=\phi(x)\) near \((a,b)\)?
- Why does the proof use opposite signs at the two vertical endpoints around \(b\)?
- For \(x^2+3y^2=12\) at \((3,1)\), calculate the slope of the local branch \(y=\phi(x)\).
- What additional regularity of \(F\) is used to derive the second-derivative formula?
- Why does \(F_y(a,b)=0\) prevent direct use of the theorem’s derivative formula?