Tutorials › Calculus I › Repeated Implicit Differentiation For Third Derivatives

Implicit and Inverse Differentiation · Tutorial 573 of 1495

Repeated Implicit Differentiation For Third Derivatives

Differentiate an implicit second-derivative relation to find the third derivative, keeping track of every product-rule term.

Advanced 12 min read

What You'll Learn

  • State when a local implicit function can be differentiated through the third derivative
  • Differentiate a second-derivative relation without treating y as constant
  • Track terms involving y' and y'' with the product and chain rules
  • Use a general third-derivative formula in partial-derivative notation
  • Check third-derivative calculations by substitution

Why a Third Implicit Derivative Needs Care

When a curve is given by an equation involving \(x\) and \(y\), it may be possible to regard \(y\) locally as a function of \(x\) without solving the equation explicitly for \(y\). Implicit differentiation then gives the first derivative and, by differentiating again, the second derivative. To find the third derivative, differentiate that second-derivative relation once more.

The key difficulty is that \(y\), \(y'\), and \(y''\) all depend on \(x\). In particular, a term such as \(y y''\) requires the product rule, and a term such as \(y^2\) requires the chain rule. Missing one of these contributions changes the result.

Definition: For a locally defined function \(y=y(x)\), the third derivative is \(y'''(x)=\frac{d}{dx}\bigl(y''(x)\bigr)\). In implicit differentiation, this derivative is found by differentiating relations that involve \(x\), \(y(x)\), and its derivatives.

The Conditions and the Second-Derivative Relation

Write the implicit equation as \(F(x,y)=0\), where \(F\) has continuous partial derivatives through order three near the point under consideration. If \(F_y\ne 0\) at that point, the implicit function theorem guarantees a local function \(y=y(x)\) satisfying the equation. This condition also allows the formulas below to be solved for \(y''\) and \(y'''\).

Here, subscripts denote partial derivatives: for example, \(F_{xy}\) means differentiate \(F\) first with respect to \(x\) and then with respect to \(y\). Every partial derivative in the formulas is evaluated at \((x,y(x))\). The first implicit derivative relation is \(F_x+F_y y'=0\). Differentiating it once gives the second-derivative relation.

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

The terms containing \(y'\) and \(y''\) are not constants when this equation is differentiated. Applying the chain and product rules to each term gives the third-derivative formula.

Theorem: If \(F\) has continuous partial derivatives through order three and \(F_y\ne 0\) along the local branch, then
$$ F_{xxx}+3F_{xxy}y'+3F_{xyy}(y')^2+F_{yyy}(y')^3 +3F_{xy}y''+3F_{yy}y'y''+F_y y'''=0. $$
Consequently, solving for \(y'''\) requires division by \(F_y\).

Why the Third-Derivative Formula Works

Differentiate the four terms in the second-derivative relation separately. The chain rule gives \(D(F_{xx})=F_{xxx}+F_{xxy}y'\). For the next term, use the product rule on \(F_{xy}y'\); its derivative is \((F_{xxy}+F_{xyy}y')y'+F_{xy}y''\). Including the coefficient 2 produces the contributions from that term.

$$ D(2F_{xy}y')=2F_{xxy}y'+2F_{xyy}(y')^2+2F_{xy}y''. $$

For \(F_{yy}(y')^2\), both factors vary: \(D(F_{yy})=F_{xyy}+F_{yyy}y'\) and \(D((y')^2)=2y'y''\). Finally, differentiating \(F_y y''\) requires the product rule, with \(D(F_y)=F_{xy}+F_{yy}y'\).

$$ \begin{aligned} D\bigl(F_{yy}(y')^2\bigr) &=F_{xyy}(y')^2+F_{yyy}(y')^3+2F_{yy}y'y'',\\ D(F_y y'') &=F_{xy}y''+F_{yy}y'y''+F_y y'''. \end{aligned} $$

Adding these four differentiated expressions gives the theorem's formula. The coefficients 3 arise by collecting terms that appear more than once: for example, \(F_{xy}y''\) appears twice from \(D(2F_{xy}y')\) and once from \(D(F_y y'')\). The term \(F_{yy}y'y''\) appears twice from differentiating \(F_{yy}(y')^2\) and once from differentiating \(F_y y''\). This accounts for both coefficients 3 and explains why omitting a product-rule contribution is a common source of error.

Worked Examples

Worked Example: The Third Derivative of a Circle Branch

Find \(y'''\) at \((3,4)\) on the curve \(x^2+y^2=25\). Since \(F_y=2y=8\ne0\) at the point, the curve defines a smooth local function \(y(x)\) there.

Differentiate the relation once:

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

Thus \(y'=-3/4\) at \((3,4)\). Differentiating the first relation again, or differentiating \(x+y y'=0\), gives

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

Substitute the point and slope to find the second derivative:

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

Differentiate the second-derivative relation. The derivative of \((y')^2\) is \(2y'y''\), and the derivative of \(y y''\) is \(y'y''+y y'''\). Therefore,

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

At the point, \(y'y''=(-3/4)(-25/64)=75/256\), so \(y'''=-3(75/256)/4=-225/1024\).

Check: Substitution into the differentiated relation gives \(3(-3/4)(-25/64)+4(-225/1024)=225/256-225/256=0\), as required.

Worked Example: A Relation with Mixed Terms

Find \(y'''\) at \((1,2)\) for \(x^2+xy+y^2=7\). Set \(F(x,y)=x^2+xy+y^2-7\). Here \(F_y=x+2y\), which equals \(5\) at the point, so division by \(F_y\) is permitted.

The first derivative relation is \(2x+y+(x+2y)y'=0\). At \((1,2)\), this gives \(4+5y'=0\), hence \(y'=-4/5\).

For the second derivative, the partial derivatives are \(F_{xx}=2\), \(F_{xy}=1\), \(F_{yy}=2\), and \(F_y=x+2y\). The second-derivative relation becomes

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

At the point, its terms not involving \(y''\) sum to \(2-8/5+32/25=(50-40+32)/25=42/25\). Thus \(42/25+5y''=0\), so \(y''=-42/125\).

Differentiate the second-derivative relation. The derivative of \(2y'\) is \(2y''\); that of \(2(y')^2\) is \(4y'y''\); and the derivative of \((x+2y)y''\) is \((1+2y')y''+(x+2y)y'''\). Therefore,

$$ \bigl(3+6y'\bigr)y''+(x+2y)y'''=0. $$

At the point, \(3+6y'=3-24/5=-9/5\). Hence \((-9/5)(-42/125)+5y'''=0\), which gives \(378/625+5y'''=0\) and \(y'''=-378/3125\).

Check: The differentiated relation evaluates to \((-9/5)(-42/125)+5(-378/3125)=378/625-1890/3125=0\), since \(1890/3125=378/625\).

Worked Example: A Cubic Term in y

Find \(y'''\) at \((1,2)\) on \(xy+y^3=10\). Let \(F(x,y)=xy+y^3-10\). At this point \(F_y=x+3y^2=13\ne0\), so the local branch is differentiable through the third derivative.

Differentiate once to obtain \(y+xy'+3y^2y'=0\), or \(y+(x+3y^2)y'=0\). At the point, \(2+13y'=0\), so \(y'=-2/13\).

Differentiate that first-derivative equation. Since \(D(x+3y^2)=1+6yy'\), the result is

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

Substituting the point and slope gives \(2(-2/13)+12(4/169)+13y''=-4/13+48/169+13y''=-4/169+13y''=0\). Therefore \(y''=4/2197\).

Now differentiate the second-derivative relation term by term. The derivative of \(2y'\) is \(2y''\). The derivative of \(6y(y')^2\) is \(6(y')^3+12y y'y''\). The derivative of \((x+3y^2)y''\) is \((1+6yy')y''+(x+3y^2)y'''\). Collecting terms gives

$$ 6(y')^3+(3+18yy')y''+(x+3y^2)y'''=0. $$

At the point, \(3+18yy'=3+36(-2/13)=-33/13\), and \(6(y')^3=6(-8/2197)=-48/2197\). The equation becomes \(-48/2197-(33/13)(4/2197)+13y'''=0\). Since \((33/13)(4/2197)=132/28561\) and \(48/2197=624/28561\), the sum of the first two terms is \(-756/28561\). Thus \(13y'''=756/28561\), giving \(y'''=756/371293\).

Check: Substitution into the differentiated relation gives \(-624/28561-132/28561+13(756/371293)= -756/28561+756/28561=0\), because \(371293=13\cdot28561\).

A Common Product-Rule Mistake

A frequent error is to differentiate \(y y''\) as though only its second factor varied. The incorrect calculation \(D(y y'')=y y'''\) drops the derivative of \(y\). Since \(y=y(x)\), the product rule instead gives

$$ D(y y'')=y'y''+y y'''. $$

For instance, in the circle example the incorrect version would produce \(y y'''=0\), incorrectly predicting \(y'''=0\). The missing term is \(y'y''\); after including it, the correct equation is \(3y'y''+y y'''=0\). Always treat every occurrence of \(y\), \(y'\), or \(y''\) as a function of \(x\) when differentiating.

A Reliable Differentiation Routine

For a third implicit derivative, it helps to keep the calculation in stages rather than expanding everything at once.

1
Check the local branch condition.
For \(F(x,y)=0\), verify \(F_y\ne0\) at the point so the local function and the formulas solved for its derivatives are valid.
2
Find the first derivative.
Differentiate \(F(x,y(x))=0\), then substitute the point to calculate \(y'\).
3
Use the second-derivative relation.
Differentiate the first relation, substitute known values, and solve for \(y''\).
4
Differentiate once more, term by term.
Apply the chain rule to partial derivatives and the product rule to all products involving \(y'\) and \(y''\).
5
Solve and check.
Substitute the point, \(y'\), and \(y''\), solve for \(y'''\), and insert the result back into the differentiated equation.

Why This Method Is Useful

Repeated implicit differentiation gives derivative information without requiring an explicit formula for \(y\). This is useful when an equation defines a local branch naturally but solving for \(y\) would be awkward or would obscure which branch is being considered. The second and third derivatives describe how the slope changes along that branch; the same process extends to higher derivatives when the relation is sufficiently smooth.

The main discipline is to preserve the dependence \(y=y(x)\) at every step. Before substituting numerical values, write the full differentiated equation. Doing so keeps chain-rule terms visible, makes coefficients easier to check, and helps distinguish a genuine derivative from an expression that has accidentally treated \(y\) as constant.

Check Your Understanding

For each question, keep all derivative terms until the relevant differentiation is complete.

  1. For \(x^2+y^2=c\), what condition on \(y\) allows the local implicit branch to be solved for its derivatives using division by \(F_y\)?
  2. When differentiating \(F_{xy}y'\), which three terms result after applying the chain and product rules?
  3. Explain why differentiating \(y(y')^2\) produces a term involving \((y')^3\) and another involving \(y y'y''\).
  4. For the relation \(x^2+xy+y^2=7\) at \((1,2)\), substitute \(y'=-4/5\), \(y''=-42/125\), and \(y'''=-378/3125\) into the differentiated third-derivative relation to verify the result.
  5. What term is omitted by the incorrect calculation \(D(y y'')=y y'''\), and what rule supplies it?

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