Tutorials › Calculus III › Second Derivatives of Implicit Curves

Chain Rule and Implicit Differentiation · Tutorial 362 of 999

Second Derivatives of Implicit Curves

Derive and apply the second-derivative formula for an implicitly defined plane curve, then interpret it through concavity and curvature.

Intermediate 9 min read

What You'll Learn

  • Differentiate an implicit curve relation twice using the chain rule.
  • Apply the second-derivative formula when the partial derivative with respect to y is nonzero.
  • Evaluate first and second derivatives at a specified point on a curve.
  • Check implicit second derivatives by differentiating the original relation directly.
  • Distinguish a graph's second derivative from its signed curvature.
  • Calculate signed curvature for an implicit curve represented locally as a graph.

Why Differentiate an Implicit Curve Twice?

An equation such as \(x^2+y^2=25\) describes a plane curve without expressing \(y\) as a single formula in terms of \(x\). Near a point where the curve can be represented as a graph \(y=y(x)\), implicit differentiation gives the slope of that graph. Differentiating again gives its second derivative, which describes how the slope changes and helps determine local concavity and curvature.

The second derivative is not obtained by simply differentiating the partial derivatives of \(F\). The variable \(y\) depends on \(x\), so every derivative involving \(y\) must include the chain rule. Keeping track of this dependence is the central step.

Key condition: For a relation \(F(x,y)=0\) to define a twice-differentiable local graph \(y=y(x)\) by the implicit function theorem, assume \(F\) is twice continuously differentiable near the point and \(F_y\ne 0\) there. The second-derivative formula below applies on such a local branch.

The Second-Derivative Formula

Write \(F_x\) and \(F_y\) for the partial derivatives of \(F\), with \(F_{xx}\), \(F_{xy}\), and \(F_{yy}\) denoting its second partial derivatives. Along a local graph \(y=y(x)\), the relation \(F(x,y(x))=0\) has first derivative

$$ F_x+F_y\frac{dy}{dx}=0. $$

If \(F_y\ne 0\), this gives the first derivative. Differentiating once more gives the second derivative:

Theorem: If \(F\) is twice continuously differentiable, \(F(x,y(x))=0\), and \(F_y\ne 0\) on the local branch, then
$$ \frac{d^2y}{dx^2} = -\frac{F_{xx}+2F_{xy}\frac{dy}{dx} +F_{yy}\left(\frac{dy}{dx}\right)^2}{F_y}. $$

All partial derivatives in this formula are evaluated at \((x,y(x))\). The first derivative appearing in the numerator can be replaced by \(-F_x/F_y\) wherever \(F_y\ne 0\).

Why the Formula Works

The first derivative equation contains two terms, \(F_x\) and \(F_y y'\). Each term depends on \(x\) along the curve. In particular, when differentiating a partial derivative such as \(F_x(x,y(x))\), the chain rule gives \(F_{xx}+F_{xy}y'\). Applying that rule to both terms explains every contribution in the second-derivative formula.

1
Start with the first derivative.
Along the curve, \(F_x+F_y y'=0\).
2
Differentiate \(F_x\).
The chain rule gives \(\frac{d}{dx}F_x=F_{xx}+F_{xy}y'\).
3
Differentiate \(F_y y'\).
The product rule and chain rule give \(\frac{d}{dx}(F_y y')=(F_{xy}+F_{yy}y')y'+F_y y''\).
4
Collect and solve for \(y''\).
Set the sum equal to zero, combine the two \(F_{xy}y'\) terms, and divide by \(F_y\ne 0\).

In full, the differentiated equation is

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

Combining the middle terms gives \(F_{xx}+2F_{xy}y'+F_{yy}(y')^2+F_y y''=0\). Isolating \(y''\) proves the stated formula. The factor \(2\) on the mixed partial term appears because \(F_{xy}y'\) arises once from differentiating each term of the first derivative equation.

Worked Example: A Curve with a Mixed Partial Derivative

Worked Example: A Curve with a Mixed Partial Derivative

Find \(y'\) and \(y''\) for \(x^2+xy+y^2=7\) at \((1,2)\). Let \(F(x,y)=x^2+xy+y^2-7\). First verify that the point is on the curve: \(1^2+(1)(2)+2^2=1+2+4=7\).

The partial derivatives are \(F_x=2x+y\) and \(F_y=x+2y\). At \((1,2)\), these are \(F_x=2(1)+2=4\) and \(F_y=1+2(2)=5\). Since \(F_y=5\ne0\), the curve is locally a graph \(y(x)\), and

$$ y'=-\frac{F_x}{F_y}=-\frac45. $$

The second partial derivatives are \(F_{xx}=2\), \(F_{xy}=1\), and \(F_{yy}=2\). Substitute their values and \(y'=-4/5\) into the second-derivative formula:

$$ y'' =-\frac{2+2(1)\left(-\frac45\right)+2\left(-\frac45\right)^2}{5} =-\frac{2-\frac85+\frac{32}{25}}5 =-\frac{\frac{50}{25}-\frac{40}{25}+\frac{32}{25}}5 =-\frac{42}{125}. $$

As a check, differentiating the original relation once gives \(2x+y+xy'+2yy'=0\). Differentiating again gives \(2+2y'+xy''+2(y')^2+2yy''=0\). At \((1,2)\), this becomes \(2-\frac85+\frac{32}{25}+5y''=0\), so \(5y''=-\frac{42}{25}\) and \(y''=-\frac{42}{125}\), as before.

Second Derivative and Signed Curvature

For a local graph \(y=y(x)\), the second derivative describes how the slope changes with \(x\). Its sign indicates concavity: where \(y''<0\), the graph is concave down; where \(y''>0\), it is concave up. The geometric curvature also depends on the slope, so it is not generally equal to \(y''\).

For the graph parametrized by \(\mathbf r(x)=(x,y(x))\), define its signed curvature, with this graph orientation, by \(\kappa_s=\det(\mathbf r',\mathbf r'')/\|\mathbf r'\|^3\). Here \(\mathbf r'=(1,y')\), \(\mathbf r''=(0,y'')\), and \(\|\mathbf r'\|=\sqrt{1+(y')^2}\). Therefore

$$ \kappa_s=\frac{y''}{\left(1+(y')^2\right)^{3/2}}. $$

The unsigned curvature is \(|\kappa_s|\). The signed value retains the concavity information for this orientation; reversing the direction used to traverse a curve can change the sign convention. To find curvature from an implicit equation, first calculate \(y'\) and \(y''\) at the point, then substitute both into the curvature formula.

Worked Example: Curvature on a Circle

Find \(y'\), \(y''\), and the signed curvature of the circle \(x^2+y^2=25\) at \((3,4)\). The point lies on the circle because \(3^2+4^2=9+16=25\). For \(F(x,y)=x^2+y^2-25\), the partial derivatives are \(F_x=2x\), \(F_y=2y\), \(F_{xx}=2\), \(F_{xy}=0\), and \(F_{yy}=2\).

At \((3,4)\), \(F_x=6\) and \(F_y=8\ne0\), so

$$ y'=-\frac68=-\frac34. $$

The second derivative is

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

The signed curvature is consequently

$$ \kappa_s =\frac{-\frac{25}{64}}{\left(1+\frac9{16}\right)^{3/2}} =\frac{-\frac{25}{64}}{\left(\frac{25}{16}\right)^{3/2}} =\frac{-\frac{25}{64}}{\frac{125}{64}} =-\frac15. $$

The negative sign agrees with the downward concavity of the circle's upper branch at this point. The magnitude \(1/5\) is the reciprocal of the circle's radius \(5\), providing a geometric check.

Worked Example: A Power Curve Given Implicitly

Find \(y'\) and \(y''\) at \((1,1)\) for the curve \(y^2=x^3\). Write \(F(x,y)=y^2-x^3\). The point satisfies the relation because \(1^2=1^3\). Its partial derivatives are \(F_x=-3x^2\), \(F_y=2y\), \(F_{xx}=-6x\), \(F_{xy}=0\), and \(F_{yy}=2\). At the point, \(F_x=-3\) and \(F_y=2\ne0\), so \(y'=3/2\).

Substituting the second partial derivatives and the first derivative gives

$$ y'' =-\frac{-6+0+2\left(\frac32\right)^2}{2} =-\frac{-6+\frac92}{2} =-\frac{-\frac32}{2} =\frac34. $$

For a check, differentiating \(y^2=x^3\) once gives \(2yy'=3x^2\); differentiating again gives \(2(y')^2+2yy''=6x\). At \((1,1)\), \(2(9/4)+2y''=6\), so \(2y''=6-\frac92=\frac32\), and \(y''=3/4\).

The signed curvature at the point can also be calculated:

$$ \kappa_s =\frac{\frac34}{\left(1+\frac94\right)^{3/2}} =\frac{\frac34}{\left(\frac{13}{4}\right)^{3/2}} =\frac{\frac34}{\frac{13\sqrt{13}}8} =\frac{6}{13\sqrt{13}}. $$

When the Formula Does Not Apply

The condition \(F_y\ne0\) is essential to this formula for \(y''\): it permits division by \(F_y\) and, under the implicit function theorem's smoothness assumptions, supports a local graph \(y=y(x)\). If \(F_y=0\) at a point, this formula cannot be used there to solve for \(y''\). That does not by itself prove the curve is singular. The curve may instead be a graph \(x=x(y)\), or another representation may be needed.

Also, check that the point actually satisfies \(F(x,y)=0\) before evaluating derivatives. A derivative calculation at a point not on the curve does not describe the curve's local behavior there. Finally, evaluate the partial derivatives at the specified point only after identifying their formulas; keeping the evaluation steps visible helps catch sign and substitution errors.

A Common Mistake: Losing a Chain-Rule Term

For the circle \(x^2+y^2=25\), the first derivative equation is \(2x+2yy'=0\). A common incorrect second differentiation is \(2+2yy''=0\), which gives \(y''=-1/y\) and predicts \(-1/4\) at \((3,4)\). This result is wrong because differentiating \(2yy'\) requires the product rule:

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

The missing term \(2(y')^2\) matters. The corrected equation is \(2+2(y')^2+2yy''=0\). At \((3,4)\), where \(y'=-3/4\), it gives \(2+18/16+8y''=0\), hence \(8y''=-50/16\) and \(y''=-25/64\). Substitution into the original differentiated equation confirms the correction.

Check Your Understanding

Use the second-derivative formula and state any condition needed to apply it.

  1. For \(F(x,y)=0\), write the first derivative equation along a local branch \(y=y(x)\).
  2. Why does the term \(2F_{xy}y'\) appear in the formula for \(y''\)?
  3. For \(x^2+y^2=13\) at \((2,3)\), find \(y'\) and \(y''\).
  4. What does the condition \(F_y\ne0\) allow you to conclude locally, and what can you not conclude from the displayed formula if \(F_y=0\)?
  5. Why is the signed curvature of a graph not generally equal to its second derivative?