Tutorials › AP Calculus › Second Implicit Differentiation

Higher Derivatives and Motion · Tutorial 230 of 999

Second Implicit Differentiation

Differentiate implicit equations twice by treating y as a function of x and carefully tracking the resulting y' terms.

Intermediate 9 min read

What You'll Learn

  • Differentiate an implicit equation once and solve for y'
  • Apply the chain rule to y-dependent terms during a second differentiation
  • Isolate y'' only after collecting all terms that contain it
  • Use a general formula for the second derivative of an implicit curve
  • Check second-derivative calculations by substitution or an explicit form
  • Recognize the error caused by treating y' as constant

Why Differentiate an Implicit Equation Twice?

An equation such as \(x^2+y^2=25\) relates \(x\) and \(y\) without writing \(y\) explicitly as a function of \(x\). Near a point on the circle, however, one part of the curve can be represented by a differentiable function \(y=y(x)\). Implicit differentiation finds its derivatives directly from the equation.

To find the second derivative, differentiate the first-derivative equation again with respect to \(x\). The important detail is that \(y\) depends on \(x\), so every term involving \(y\), \(y'\), or a function of \(y\) must be differentiated using the chain rule and product rule as appropriate.

Key idea: During a second implicit differentiation, \(y'\) is not a constant. Its derivative is \(y''\), and differentiating a product involving \(y'\) may also produce a \((y')^2\) term.

The General Setup

Suppose a curve is described by \(F(x,y)=0\), and near the point of interest it has a twice-differentiable branch \(y=y(x)\). Here \(F_x\), \(F_y\), and the other subscripts denote partial derivatives of \(F\), calculated by treating the other variable as constant. For example, \(F_x\) means differentiate with respect to \(x\) while holding \(y\) fixed.

After substituting \(y=y(x)\), the chain rule gives the first derivative of the equation:

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

If \(F_y\ne 0\) at the point, this equation can be solved there for \(y'\). To find \(y''\), differentiate the entire equation again with respect to \(x\). In doing so, \(F_x\) and \(F_y\) are themselves functions of both \(x\) and \(y(x)\), so each requires the chain rule.

A General Formula for the Second Derivative

Differentiate \(F_x+F_y y'=0\) term by term. The derivative of \(F_x(x,y(x))\) is \(F_{xx}+F_{xy}y'\). For the product \(F_y y'\), use the product rule; the derivative of \(F_y(x,y(x))\) is \(F_{yx}+F_{yy}y'\).

$$ F_{xx}+F_{xy}y'+(F_{yx}+F_{yy}y')y'+F_y y''=0. $$

For a function \(F\) with continuous second partial derivatives, the mixed partials agree: \(F_{xy}=F_{yx}\). Combining those terms gives the standard formula.

Theorem: If \(F\) has continuous second partial derivatives, \(F(x,y)=0\) describes a twice-differentiable branch \(y=y(x)\) near the point, and \(F_y\ne 0\), then
$$ y''=-\frac{F_{xx}+2F_{xy}y'+F_{yy}(y')^2}{F_y}. $$
The value of \(y'\) in this formula is found from \(F_x+F_y y'=0\). The condition \(F_y\ne 0\) allows us to divide by \(F_y\) to solve for \(y''\).

The formula records the same terms produced by differentiating twice directly: a second partial derivative with respect to \(x\), two mixed-partial contributions, and a second partial derivative with respect to \(y\) multiplied by \((y')^2\). In practice, differentiating the first-derivative equation term by term is often the clearest way to avoid dropping a term.

A Reliable Procedure

1
Differentiate once.
Apply the chain rule to every \(y\)-dependent term and write the resulting equation equal to zero.
2
Differentiate that equation again.
Use the product rule where factors are multiplied, and remember that the derivative of \(y'\) is \(y''\).
3
Collect and solve for \(y''\).
Keep the \(y'\) terms in the equation while differentiating, then isolate \(y''\).
4
Evaluate and check.
If a point is specified, substitute its coordinates and the corresponding \(y'\) value. Check that the result satisfies the differentiated equation.

Worked Examples

Worked Example: A Point on a Circle

Find \(y''\) for \(x^2+y^2=25\) at the point \((3,4)\), on the upper semicircle.

Differentiate the equation once. Since \(y\) depends on \(x\), the derivative of \(y^2\) is \(2y y'\):

$$ 2x+2y y'=0. $$

Divide by \(2\) and solve for \(y'\):

$$ x+y y'=0, \qquad y'=-\frac{x}{y}. $$

At \((3,4)\), this gives \(y'=-3/4\). Now differentiate \(x+y y'=0\). The derivative of \(y y'\) uses the product rule, and the derivative of \(y\) is \(y'\):

$$ 1+(y')^2+y y''=0. $$

Substitute \(y=4\) and \(y'=-3/4\), then solve:

$$ 1+\left(-\frac{3}{4}\right)^2+4y''=0, \qquad 1+\frac{9}{16}+4y''=0, \qquad \frac{25}{16}+4y''=0, \qquad y''=-\frac{25}{64}. $$

Check by substituting into the differentiated equation: \(1+9/16+4(-25/64)=25/16-25/16=0\). As a further check, the upper branch is \(y=\sqrt{25-x^2}\); differentiating twice gives \(y''=-25/y^3\), which at \(y=4\) is also \(-25/64\).

Worked Example: A Product of \(x\) and \(y\)

For \(xy=6\), find \(y''\) at \((2,3)\).

Differentiate once using the product rule:

$$ y+x y'=0. $$

At the given point, \(3+2y'=0\), so \(y'=-3/2\). Differentiate the first-derivative equation. Both terms in \(y+x y'\) require attention:

$$ y'+\frac{d}{dx}(x y')=0, \qquad y'+y'+x y''=0, \qquad 2y'+x y''=0. $$

Now substitute \(x=2\) and \(y'=-3/2\):

$$ 2\left(-\frac{3}{2}\right)+2y''=0, \qquad -3+2y''=0, \qquad y''=\frac{3}{2}. $$

Check: \(2(-3/2)+2(3/2)=-3+3=0\). Also, since \(xy=6\) and \(x\ne 0\), the explicit form is \(y=6/x\). Its second derivative is \(12/x^3\), which equals \(12/8=3/2\) at \(x=2\).

Worked Example: A Quadratic Relation

Find \(y''\) for \(x^2+xy+y^2=7\) at \((1,2)\).

Differentiate each term with respect to \(x\):

$$ 2x+y+x y'+2y y'=0, \qquad 2x+y+(x+2y)y'=0. $$

At \((1,2)\), this becomes \(4+5y'=0\), so \(y'=-4/5\). Differentiate the unsimplified first-derivative equation term by term. The derivative of \(xy'\) is \(y'+xy''\), and that of \(2yy'\) is \(2(y')^2+2yy''\):

$$ 2+y'+y'+x y''+2(y')^2+2y y''=0. $$

Collect like terms:

$$ 2+2y'+2(y')^2+(x+2y)y''=0. $$

Substitute \(x=1\), \(y=2\), and \(y'=-4/5\), then solve:

$$ 2+2\left(-\frac{4}{5}\right)+2\left(-\frac{4}{5}\right)^2+5y''=0, $$ $$ 2-\frac{8}{5}+\frac{32}{25}+5y''=0, \qquad \frac{42}{25}+5y''=0, \qquad y''=-\frac{42}{125}. $$

Check in the collected equation: \(2-8/5+32/25+5(-42/125)=42/25-42/25=0\). The point lies on the curve because \(1^2+(1)(2)+2^2=7\).

A Common Mistake: Treating \(y'\) as Constant

For the circle \(x^2+y^2=25\), the first derivative can be written \(x+y y'=0\). A common error is to differentiate \(y y'\) as though \(y\) were the only changing factor, or to treat \(y'\) as constant. For example, writing \(1+y''=0\) incorrectly gives \(y''=-1\).

The correction is to apply the product rule to \(y y'\). The derivative of the first factor \(y\) is \(y'\), and the derivative of the second factor \(y'\) is \(y''\):

$$ \frac{d}{dx}(y y')=y'y'+y y''=(y')^2+y y''. $$

Thus the correct differentiated equation is \(1+(y')^2+y y''=0\), not \(1+y''=0\). At \((3,4)\), it yields \(y''=-25/64\), as checked above. The missing \((y')^2\) and \(y\) factors are consequences of the chain and product rules, not optional details.

Why the Method Is Useful

Implicit equations often describe curves more simply than an explicit formula for \(y\). Second implicit differentiation provides \(y''\) without first solving the equation for \(y\). That can be especially useful when an equation has several branches or when solving explicitly would require complicated algebra.

The method also gives a systematic check on the work: differentiate the original relation once to find \(y'\), differentiate that equation again with every dependent factor intact, and substitute into the resulting equation. The second derivative is not obtained by differentiating only the visible powers of \(x\); it depends on how \(y\) changes along the curve.

Check Your Understanding

For each question, keep in mind that \(y\) is a function of \(x\).

  1. For \(x^2+y^2=16\), what equation results from differentiating \(x+y y'=0\) a second time?
  2. For \(xy=10\), differentiate \(y+x y'=0\) again, without substituting a point.
  3. In differentiating \(y^2 y'\), which factors require the product rule, and what terms result?
  4. For \(F(x,y)=0\), state the condition in the general second-derivative formula that allows division to solve for \(y''\).
  5. Why is it incorrect to treat \(y'\) as a constant during the second differentiation?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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