Tutorials › Calculus I › Deriving The Second Implicit Derivative

Implicit and Inverse Differentiation · Tutorial 572 of 1495

Deriving The Second Implicit Derivative

Learn how to differentiate the first implicit derivative to obtain the second derivative, and how to check that the formula applies.

Advanced 9 min read

What You'll Learn

  • State the conditions that guarantee a twice-differentiable local branch.
  • Differentiate the first implicit derivative with the chain rule.
  • Derive the formula for the second derivative of an implicit function.
  • Evaluate second derivatives at points on implicit curves.
  • Check results using an explicit local branch when one is available.
  • Recognize why the nonzero partial derivative condition matters.

Why Differentiate the Implicit Relation Again?

An equation relating \(x\) and \(y\) can define \(y\) as a function of \(x\) near a point, even when solving the equation explicitly for \(y\) is inconvenient. The first implicit derivative gives the slope of that local function. Differentiating once more gives its curvature: the rate at which the slope changes as \(x\) changes.

The second differentiation requires care. The partial derivatives of the defining relation are functions of both variables, and along the curve both \(x\) and \(y\) vary. The chain rule therefore contributes terms that are easy to omit. We derive the formula from the first implicit differentiation identity and make its conditions explicit.

Conditions for a Second Implicit Derivative

Let \(F\) be a function of two variables, and suppose a point \((a,b)\) lies on the relation \(F(x,y)=0\). To obtain a local function \(y=y(x)\) through that point, the relevant nonzero-partial condition is \(F_y(a,b)\ne 0\). For the second derivative formula, \(F\) must also have continuous second partial derivatives near \((a,b)\).

Theorem: Suppose \(F\) has continuous second partial derivatives in an open neighborhood of \((a,b)\), \(F(a,b)=0\), and \(F_y(a,b)\ne 0\). Then, on a sufficiently small interval around \(a\), the relation \(F(x,y)=0\) defines a unique twice-differentiable function \(y=y(x)\) with \(y(a)=b\). On this local branch, \(F_y\ne 0\) after the interval is made sufficiently small, and
$$ y''(x) = -\frac{F_{xx}+2F_{xy}y'+F_{yy}(y')^2}{F_y}. $$

Every partial derivative in this formula is evaluated at \((x,y(x))\). The condition \(F_y\ne 0\) is needed to divide by \(F_y\); it also ensures the local branch is a function of \(x\) under the implicit function theorem. If this condition fails, this formula does not apply at that point.

Deriving the Formula

Along the local branch, the equation \(F(x,y(x))=0\) is an identity in \(x\). Differentiating it by the chain rule gives

$$ F_x+F_y y'=0. $$

This first-derivative identity is the starting point for the second derivative. Each partial derivative in it depends on both \(x\) and \(y(x)\), so differentiating \(F_x\) or \(F_y\) requires the chain rule as well.

1
Differentiate \(F_x\).
Along the branch, its derivative is \(F_{xx}+F_{xy}y'\): the first term comes from changing \(x\), and the second from changing \(y\).
2
Differentiate \(F_y y'\).
Use the product rule. The derivative of \(F_y\) along the branch is \(F_{yx}+F_{yy}y'\), and the derivative of the other factor is \(y''\).
3
Collect the terms containing \(y''\).
Use equality of the mixed partials, \(F_{yx}=F_{xy}\), which holds because the second partial derivatives are continuous.

Writing out those derivatives gives

$$ \begin{aligned} 0 &=\frac{d}{dx}(F_x+F_y y')\\ &=(F_{xx}+F_{xy}y')+(F_{yx}+F_{yy}y')y'+F_y y''\\ &=F_{xx}+2F_{xy}y'+F_{yy}(y')^2+F_y y''. \end{aligned} $$

In the second line, the product rule accounts for the term \(F_y y''\). In the last line, \(F_{yx}=F_{xy}\), so the two terms involving one factor of \(y'\) combine. Since \(F_y\ne 0\), rearranging and dividing by \(F_y\) yields

$$ y'' = -\frac{F_{xx}+2F_{xy}y'+F_{yy}(y')^2}{F_y}. $$

This derivation also explains the factor \(2\) in the numerator: one \(F_{xy}y'\) comes from differentiating \(F_x\), and another comes from differentiating \(F_y\) along the branch.

Worked Examples

Worked Example: A Circle at a Point on Its Upper Branch

Find \(y''\) at \((3,4)\) on the circle \(x^2+y^2=25\), using implicit differentiation. Define \(F(x,y)=x^2+y^2-25\). Then \(F(3,4)=9+16-25=0\), and \(F_y=2y\), so \(F_y(3,4)=8\ne 0\). The required local branch exists and is twice differentiable there.

The first implicit derivative is \(F_x+F_y y'=0\). At the point, \(F_x=2x=6\) and \(F_y=8\), so

$$ 6+8y'=0 \qquad\Longrightarrow\qquad y'=-\frac{6}{8}=-\frac{3}{4}. $$

The second partial derivatives are \(F_{xx}=2\), \(F_{xy}=0\), and \(F_{yy}=2\). Substituting all the values into the second-derivative formula gives

$$ \begin{aligned} y'' &=-\frac{2+2(0)\left(-\frac34\right)+2\left(-\frac34\right)^2}{8}\\ &=-\frac{2+\frac{18}{16}}{8} =-\frac{\frac{50}{16}}{8} =-\frac{25}{64}. \end{aligned} $$

Check with the explicit upper branch \(y=\sqrt{25-x^2}\). Its first derivative is \(y'=-x(25-x^2)^{-1/2}\), and differentiating gives \(y''=-(25-x^2)^{-3/2}\bigl((25-x^2)+x^2\bigr)=-25(25-x^2)^{-3/2}\). At \(x=3\), this is \(-25/4^3=-25/64\), as obtained implicitly.

Worked Example: A Relation with a Mixed Partial

Find the second derivative at \((2,2)\) on \(xy+y^2=8\). Set \(F(x,y)=xy+y^2-8\). The point is on the relation because \(2\cdot2+2^2-8=0\). Here \(F_y=x+2y\), so \(F_y(2,2)=2+4=6\ne0\).

Also, \(F_x=y\). The first derivative equation gives \(2+6y'=0\), hence \(y'=-1/3\) at the point. The needed second partial derivatives are \(F_{xx}=0\), \(F_{xy}=1\), and \(F_{yy}=2\). Therefore

$$ \begin{aligned} y'' &=-\frac{0+2(1)\left(-\frac13\right)+2\left(-\frac13\right)^2}{6}\\ &=-\frac{-\frac23+\frac29}{6} =-\frac{-\frac49}{6} =\frac{2}{27}. \end{aligned} $$

For a check, solving the quadratic for the branch through \((2,2)\) gives \(y=(-x+\sqrt{x^2+32})/2\). Its first derivative is \(\bigl(-1+x/\sqrt{x^2+32}\bigr)/2\), which at \(x=2\) equals \((-1+2/6)/2=-1/3\). Differentiating again gives \(y''=16(x^2+32)^{-3/2}\). At \(x=2\), this is \(16/216=2/27\), matching the implicit result.

Worked Example: A Nonlinear Power of \(y\)

Find \(y''\) at \((1,2)\) on \(x^2+y^3=9\). Let \(F(x,y)=x^2+y^3-9\). The point satisfies \(1^2+2^3=9\), and \(F_y=3y^2\), so \(F_y(1,2)=12\ne0\).

Since \(F_x=2x\), the first derivative equation at the point is \(2+12y'=0\). Thus \(y'=-1/6\). The second partial derivatives are \(F_{xx}=2\), \(F_{xy}=0\), and \(F_{yy}=6y=12\) at \((1,2)\). Hence

$$ \begin{aligned} y'' &=-\frac{2+2(0)\left(-\frac16\right)+12\left(-\frac16\right)^2}{12}\\ &=-\frac{2+\frac13}{12} =-\frac{\frac73}{12} =-\frac{7}{36}. \end{aligned} $$

To check, the branch can be written \(y=(9-x^2)^{1/3}\) near \(x=1\). Differentiating gives \(y'=-2x/(3y^2)\). Differentiating that expression along the branch gives \(y''=-2/(3y^2)+4xy'/(3y^3)\). Substituting \(x=1\), \(y=2\), and \(y'=-1/6\) gives \(-1/6-1/36=-7/36\), in agreement.

A Common Chain-Rule Error

A frequent error is to differentiate \(F_x\) as though it depended only on \(x\), writing \(dF_x/dx=F_{xx}\). Along an implicit branch, however, \(y\) changes with \(x\). The correct derivative is \(dF_x/dx=F_{xx}+F_{xy}y'\).

For example, with \(F(x,y)=xy+y^2-8\), the partial derivative \(F_x=y\). Along the branch, \(dF_x/dx=dy/dx=y'\), not \(0\). Equivalently, \(F_{xx}=0\) but \(F_{xy}y'=y'\), so the full chain-rule expression is \(0+y'\). Omitting this term in the second differentiation would lose a contribution to the numerator and give the wrong curvature.

Check before using the formula: Confirm that \(F(x,y)=0\) at the point, that \(F\) has continuous second partial derivatives nearby, and that \(F_y\ne0\). Then calculate \(y'\) from \(F_x+F_y y'=0\) before substituting into the expression for \(y''\).

Interpreting the Result

The value of \(y''\) describes how the slope \(y'\) changes along the branch as \(x\) changes. A positive second derivative means the slope is increasing locally; a negative second derivative means it is decreasing locally. The formula computes this change from the partial derivatives of the defining relation and the slope already found.

The formula is local, not a guarantee that the whole curve is one function of \(x\). A curve can have different branches, and where \(F_y=0\), this representation may fail even if the curve itself continues. Near such a point, the relation might instead be represented as \(x\) in terms of \(y\), or require a separate analysis. The condition \(F_y\ne0\) is therefore a substantive requirement, not a technical detail to ignore.

Summary

Starting with \(F_x+F_y y'=0\), differentiate each term along the local branch. The chain rule and product rule produce the second derivative identity; continuous second partials allow the mixed partials to be combined. Provided \(F_y\ne0\), solve for \(y''\):

$$ y'' = -\frac{F_{xx}+2F_{xy}y'+F_{yy}(y')^2}{F_y}. $$

Evaluate every partial derivative at \((x,y(x))\), and use the first implicit derivative to find \(y'\). Keeping the branch conditions and all chain-rule terms visible makes the calculation both reliable and interpretable.

Check Your Understanding

Use the conditions and derivation in this tutorial to answer the following questions.

  1. What assumptions on \(F\) and the point \((a,b)\) ensure a twice-differentiable local branch \(y=y(x)\)?
  2. Why does differentiating \(F_x\) along the branch produce \(F_{xx}+F_{xy}y'\), rather than just \(F_{xx}\)?
  3. Where do the two terms involving \(F_{xy}y'\) arise in the derivation?
  4. For \(x^2+y^2=25\) at \((3,4)\), what are \(y'\) and \(y''\)?
  5. Why can the formula not be used by dividing by \(F_y\) at a point where \(F_y=0\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon