Implicit Differentiation
Some curves, like circles, are described by an equation in x and y rather than a formula y = f(x). This guide shows how to find slopes on those curves without solving for y.
To find \(\dfrac{dy}{dx}\) from an equation like \(x^2 + y^2 = 25\), differentiate both sides with respect to \(x\), treating \(y\) as an unknown function of \(x\). Every time you differentiate a term with \(y\) in it, the chain rule attaches a factor of \(\dfrac{dy}{dx}\). Then collect the \(\dfrac{dy}{dx}\) terms on one side and solve. The result usually contains both \(x\) and \(y\), so you need a point on the curve to get a number.
1When y is not alone
An equation like \(y = x^2 + 1\) gives \(y\) explicitly. An equation like \(x^2 + y^2 = 25\) only describes \(y\) implicitly: it ties \(x\) and \(y\) together. Sometimes you could solve for \(y\) (here \(y = \pm\sqrt{25 - x^2}\), two pieces), but often you cannot, and you do not need to.
2The method
- Differentiate both sides with respect to \(x\).
- For each term with \(y\), use the chain rule: \(\dfrac{d}{dx}\left[y^2\right] = 2y\dfrac{dy}{dx}\), \(\dfrac{d}{dx}[\sin y] = \cos y\dfrac{dy}{dx}\).
- Move every \(\dfrac{dy}{dx}\) term to one side and everything else to the other.
- Factor out \(\dfrac{dy}{dx}\) and divide.
\(x^2 + y^2 = 25\)
Find \(\dfrac{dy}{dx}\), then the slope and the tangent line at \((3, 4)\).
- 1Differentiate both sides with respect to \(x\), treating \(y\) as a function of \(x\): \(2x + 2y\dfrac{dy}{dx} = 0\). The \(\dfrac{dy}{dx}\) appears because of the chain rule on \(y^2\).
- 2Solve: \(\dfrac{dy}{dx} = -\dfrac{x}{y}\).
- 3At \((3, 4)\): \(-\dfrac34\). Tangent line: \(y = 4 - \tfrac34(x - 3)\).
\(\dfrac{d}{dx}\left[y^2\right]\) is \(2y\dfrac{dy}{dx}\), not \(2y\). The variable you differentiate with respect to is \(x\); \(y\) is a function of \(x\), so the chain rule applies, just as it does for \((x^2 + 1)^2\).
“Differentiating both sides with respect to \(x\), treating \(y\) as a function of \(x\): \(2x + 2y\dfrac{dy}{dx} = 0\), so \(\dfrac{dy}{dx} = -\dfrac{x}{y}\).”
3Products and trig
\(xy + y^2 = 4\) at \((3, 1)\)
- 1Check the point: \(3 \cdot 1 + 1 = 4\). Good.
- 2\(xy\) is a product, so use the product rule: \(\dfrac{d}{dx}[xy] = 1 \cdot y + x\dfrac{dy}{dx}\).
- 3Whole equation: \(y + x\dfrac{dy}{dx} + 2y\dfrac{dy}{dx} = 0\).
- 4Collect the \(\dfrac{dy}{dx}\) terms: \(\dfrac{dy}{dx}(x + 2y) = -y\), so \(\dfrac{dy}{dx} = \dfrac{-y}{x + 2y}\).
- 5At \((3, 1)\): \(\dfrac{-1}{3 + 2} = -\dfrac15\).
\(xy\) is a product of two functions of \(x\): \(x\) and \(y\). Its derivative is \(y + x\dfrac{dy}{dx}\), from the product rule. Writing just \(\dfrac{dy}{dx}\) or just \(y\) loses a term.
\(x^3 + y^3 = 6xy\) at \((3, 3)\)
- 1Differentiate: \(3x^2 + 3y^2\dfrac{dy}{dx} = 6y + 6x\dfrac{dy}{dx}\).
- 2Collect: \(\dfrac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2\). Divide by 3 and solve: \(\dfrac{dy}{dx} = \dfrac{2y - x^2}{y^2 - 2x}\).
- 3At \((3, 3)\): \(\dfrac{6 - 9}{9 - 6} = -1\).
\(\sin y + xy = x^2\)
- 1\(\dfrac{d}{dx}[\sin y] = \cos y\,\dfrac{dy}{dx}\) (chain rule). \(\dfrac{d}{dx}[xy] = y + x\dfrac{dy}{dx}\).
- 2\(\cos y\,\dfrac{dy}{dx} + y + x\dfrac{dy}{dx} = 2x\).
- 3\(\dfrac{dy}{dx}(\cos y + x) = 2x - y\), so \(\dfrac{dy}{dx} = \dfrac{2x - y}{\cos y + x}\).
Plugging \(x = 3\), \(y = 3\) into the equation before differentiating turns it into \(54 = 54\), which has no derivative information. Differentiate first, then substitute the point.
4Horizontal and vertical tangents
When \(\dfrac{dy}{dx}\) is a fraction, a horizontal tangent needs the top to be 0 with the bottom not 0, and a vertical tangent needs the bottom to be 0 with the top not 0. Each candidate must also be a point on the curve.
Where on \(x^2 + y^2 = 25\)?
- 1\(\dfrac{dy}{dx} = -\dfrac{x}{y}\). Horizontal tangent: top is 0 and bottom is not, so \(x = 0\): the points \((0, 5)\) and \((0, -5)\).
- 2Vertical tangent: bottom is 0 and top is not, so \(y = 0\): the points \((5, 0)\) and \((-5, 0)\).
Quick reference
| Term | Derivative with respect to x |
|---|---|
| \(y^n\) | \(ny^{n - 1}\dfrac{dy}{dx}\) |
| \(xy\) | \(y + x\dfrac{dy}{dx}\) |
| \(\sin y\) | \(\cos y\,\dfrac{dy}{dx}\) |
| \(e^y\) | \(e^y\dfrac{dy}{dx}\) |
| \(\ln y\) | \(\dfrac{1}{y}\dfrac{dy}{dx}\) |