Some curves, like the circle x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 , aren’t written as ”y = y = y = something”. Solving for y y y can be messy or even impossible. Implicit differentiation lets you find d y d x \dfrac{dy}{dx} d x d y anyway, by differentiating both sides of the equation as it stands. It’s really just the chain rule used in a clever way.
An equation like y = x 3 − 2 x y = x^3 - 2x y = x 3 − 2 x defines y y y explicitly : y y y is alone on one side. An equation like x 2 + x y + y 2 = 7 x^2 + xy + y^2 = 7 x 2 + x y + y 2 = 7 defines y y y implicitly : x x x and y y y are mixed together. We still think of y y y as a function of x x x (at least near any given point), even though we don’t have a formula for it.
Since y y y is a function of x x x , any expression in y y y is a composite function, with y y y as the inside. So the chain rule adds a factor of d y d x \dfrac{dy}{dx} d x d y :
Term Derivative with respect to x x x x 3 x^3 x 3 3 x 2 3x^2 3 x 2 y 3 y^3 y 3 3 y 2 d y d x 3y^2 \dfrac{dy}{dx} 3 y 2 d x d y sin y \sin y sin y cos y d y d x \cos y \dfrac{dy}{dx} cos y d x d y e y e^y e y e y d y d x e^y \dfrac{dy}{dx} e y d x d y x y xy x y 1 ⋅ y + x d y d x 1 \cdot y + x\dfrac{dy}{dx} 1 ⋅ y + x d x d y (product rule)
Terms in x x x alone are differentiated as usual. Every time you differentiate something with y y y in it, a d y d x \dfrac{dy}{dx} d x d y appears.
Differentiate both sides with respect to x x x .
Move all terms containing d y d x \dfrac{dy}{dx} d x d y to one side, and everything else to the other.
Factor out d y d x \dfrac{dy}{dx} d x d y .
Divide to solve for d y d x \dfrac{dy}{dx} d x d y .
The answer usually contains both x x x and y y y . That’s expected: to find a slope, you need the whole point ( x , y ) (x, y) ( x , y ) , not just x x x . (On a circle, two points share each x x x -value, with different slopes.)
To find the slope at a point, substitute both coordinates into d y d x \dfrac{dy}{dx} d x d y . Then write the tangent line in point-slope form, y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) .
If d y d x = N D \dfrac{dy}{dx} = \dfrac{N}{D} d x d y = D N :
Horizontal tangent: N = 0 N = 0 N = 0 and D ≠ 0 D \ne 0 D = 0 .
Vertical tangent: D = 0 D = 0 D = 0 and N ≠ 0 N \ne 0 N = 0 .
Either way, the point must also be on the curve , so solve together with the original equation. You’ll analyze implicit curves more in implicit relations analysis .
Find d y d x \dfrac{dy}{dx} d x d y for x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 , and the tangent line at ( 3 , 4 ) (3, 4) ( 3 , 4 ) .
Solution. Differentiate both sides:
2 x + 2 y d y d x = 0 ⇒ d y d x = − x y 2x + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x}{y} 2 x + 2 y d x d y = 0 ⇒ d x d y = − y x
At ( 3 , 4 ) (3, 4) ( 3 , 4 ) , the slope is − 3 4 -\dfrac{3}{4} − 4 3 , so the tangent line is
y − 4 = − 3 4 ( x − 3 ) y - 4 = -\frac{3}{4}(x - 3) y − 4 = − 4 3 ( x − 3 )
Check: the radius from ( 0 , 0 ) (0, 0) ( 0 , 0 ) to ( 3 , 4 ) (3, 4) ( 3 , 4 ) has slope 4 3 \dfrac{4}{3} 3 4 , and a tangent to a circle is perpendicular to the radius. Indeed, − 3 4 -\dfrac{3}{4} − 4 3 is the negative reciprocal of 4 3 \dfrac{4}{3} 3 4 .
The circle x squared plus y squared equals 25 with its tangent line at the point (3, 4). The tangent has slope negative 3/4 and is perpendicular to the radius from the origin.
−6
−4
−2
2
4
6
8
−6
−4
−2
2
4
6
8
(3, 4)
slope = −3/4
x² + y² = 25
The tangent to x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 at ( 3 , 4 ) (3, 4) ( 3 , 4 ) has slope − 3 4 -\tfrac{3}{4} − 4 3 , found implicitly.
Find d y d x \dfrac{dy}{dx} d x d y for x 2 + x y + y 2 = 7 x^2 + xy + y^2 = 7 x 2 + x y + y 2 = 7 , then find the slope at ( 1 , 2 ) (1, 2) ( 1 , 2 ) .
Solution. Use the product rule on x y xy x y :
2 x + ( y + x d y d x ) + 2 y d y d x = 0 2x + \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0 2 x + ( y + x d x d y ) + 2 y d x d y = 0
Collect the d y d x \dfrac{dy}{dx} d x d y terms and factor:
( x + 2 y ) d y d x = − 2 x − y d y d x = − 2 x + y x + 2 y \begin{aligned}
(x + 2y)\frac{dy}{dx} &= -2x - y \\
\frac{dy}{dx} &= -\frac{2x + y}{x + 2y}
\end{aligned} ( x + 2 y ) d x d y d x d y = − 2 x − y = − x + 2 y 2 x + y
First check that ( 1 , 2 ) (1, 2) ( 1 , 2 ) is on the curve: 1 + 2 + 4 = 7 1 + 2 + 4 = 7 1 + 2 + 4 = 7 . Then
d y d x = − 2 ( 1 ) + 2 1 + 2 ( 2 ) = − 4 5 \frac{dy}{dx} = -\frac{2(1) + 2}{1 + 2(2)} = -\frac{4}{5} d x d y = − 1 + 2 ( 2 ) 2 ( 1 ) + 2 = − 5 4
Find the slope of the curve x cos y + y = 1 x\cos y + y = 1 x cos y + y = 1 at the point ( 1 , 0 ) (1, 0) ( 1 , 0 ) .
Solution. Product rule on x cos y x\cos y x cos y , with the chain rule on cos y \cos y cos y :
cos y + x ( − sin y d y d x ) + d y d x = 0 \cos y + x\left(-\sin y\frac{dy}{dx}\right) + \frac{dy}{dx} = 0 cos y + x ( − sin y d x d y ) + d x d y = 0
d y d x ( 1 − x sin y ) = − cos y ⇒ d y d x = − cos y 1 − x sin y \frac{dy}{dx}(1 - x\sin y) = -\cos y \quad\Rightarrow\quad \frac{dy}{dx} = \frac{-\cos y}{1 - x\sin y} d x d y ( 1 − x sin y ) = − cos y ⇒ d x d y = 1 − x sin y − cos y
At ( 1 , 0 ) (1, 0) ( 1 , 0 ) (check: 1 ⋅ cos 0 + 0 = 1 1 \cdot \cos 0 + 0 = 1 1 ⋅ cos 0 + 0 = 1 ), the slope is − 1 1 − 0 = − 1 \dfrac{-1}{1 - 0} = -1 1 − 0 − 1 = − 1 .
For the curve x 2 − x y + y 2 = 3 x^2 - xy + y^2 = 3 x 2 − x y + y 2 = 3 , find all points with a horizontal tangent and all points with a vertical tangent.
Solution. Differentiate:
2 x − ( y + x d y d x ) + 2 y d y d x = 0 ⇒ d y d x = y − 2 x 2 y − x 2x - \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{y - 2x}{2y - x} 2 x − ( y + x d x d y ) + 2 y d x d y = 0 ⇒ d x d y = 2 y − x y − 2 x
Horizontal: set the numerator to zero, so y = 2 x y = 2x y = 2 x . Substitute into the curve:
x 2 − 2 x 2 + 4 x 2 = 3 ⇒ 3 x 2 = 3 ⇒ x = ± 1 x^2 - 2x^2 + 4x^2 = 3 \quad\Rightarrow\quad 3x^2 = 3 \quad\Rightarrow\quad x = \pm 1 x 2 − 2 x 2 + 4 x 2 = 3 ⇒ 3 x 2 = 3 ⇒ x = ± 1
The points are ( 1 , 2 ) (1, 2) ( 1 , 2 ) and ( − 1 , − 2 ) (-1, -2) ( − 1 , − 2 ) . The denominator there is 2 ( 2 ) − 1 = 3 2(2) - 1 = 3 2 ( 2 ) − 1 = 3 and 2 ( − 2 ) + 1 = − 3 2(-2) + 1 = -3 2 ( − 2 ) + 1 = − 3 , not zero, so these tangents really are horizontal.
Vertical: set the denominator to zero, so x = 2 y x = 2y x = 2 y . Substitute:
4 y 2 − 2 y 2 + y 2 = 3 ⇒ y = ± 1 4y^2 - 2y^2 + y^2 = 3 \quad\Rightarrow\quad y = \pm 1 4 y 2 − 2 y 2 + y 2 = 3 ⇒ y = ± 1
The points are ( 2 , 1 ) (2, 1) ( 2 , 1 ) and ( − 2 , − 1 ) (-2, -1) ( − 2 , − 1 ) , where the numerator is 1 − 4 = − 3 1 - 4 = -3 1 − 4 = − 3 and − 1 + 4 = 3 -1 + 4 = 3 − 1 + 4 = 3 , not zero.
Forgetting the dy/dx on y terms. d d x ( y 2 ) \dfrac{d}{dx}(y^2) d x d ( y 2 ) is 2 y d y d x 2y\dfrac{dy}{dx} 2 y d x d y , not 2 y 2y 2 y . If your final answer has no d y d x \dfrac{dy}{dx} d x d y to solve for, you’ve dropped it somewhere.
Skipping the product rule on xy. d d x ( x y ) = y + x d y d x \dfrac{d}{dx}(xy) = y + x\dfrac{dy}{dx} d x d ( x y ) = y + x d x d y . Writing just x d y d x x\dfrac{dy}{dx} x d x d y , or just 1 ⋅ d y d x 1 \cdot \dfrac{dy}{dx} 1 ⋅ d x d y , is one of the most common AP errors.
Not differentiating the right side. Differentiate both sides. A constant like 25 25 25 becomes 0 0 0 , and a term like 3 x 3x 3 x on the right becomes 3 3 3 .
Messy algebra at the end. Get every d y d x \dfrac{dy}{dx} d x d y term on one side and factor it out before dividing. Don’t divide by only one of the terms.
Using a point that isn’t on the curve. Before substituting, check that the point satisfies the original equation. For horizontal or vertical tangents, you must solve together with the original equation to find actual points.
Forgetting to check the other part of the fraction. A horizontal tangent needs the numerator 0 0 0 and the denominator not 0 0 0 . If both are 0 0 0 , the slope isn’t determined by this formula, and you’d need more work.
1. (Warm-up) Find d d x \dfrac{d}{dx} d x d of each expression, assuming y y y is a function of x x x .
(a) y 4 y^4 y 4
(b) x y xy x y
(c) sin y \sin y sin y
Solution (a) 4 y 3 d y d x 4y^3\dfrac{dy}{dx} 4 y 3 d x d y
(b) y + x d y d x y + x\dfrac{dy}{dx} y + x d x d y
(c) cos y d y d x \cos y\dfrac{dy}{dx} cos y d x d y
2. (Warm-up) Find the slope of the circle x 2 + y 2 = 100 x^2 + y^2 = 100 x 2 + y 2 = 100 at the point ( 6 , − 8 ) (6, -8) ( 6 , − 8 ) .
Solution As in Example 1, d y d x = − x y \dfrac{dy}{dx} = -\dfrac{x}{y} d x d y = − y x . At ( 6 , − 8 ) (6, -8) ( 6 , − 8 ) :
d y d x = − 6 − 8 = 3 4 \frac{dy}{dx} = -\frac{6}{-8} = \frac{3}{4} d x d y = − − 8 6 = 4 3
3. (Warm-up) For the parabola y 2 = 4 x y^2 = 4x y 2 = 4 x , find d y d x \dfrac{dy}{dx} d x d y and the slope at ( 1 , 2 ) (1, 2) ( 1 , 2 ) .
Solution 2 y d y d x = 4 ⇒ d y d x = 2 y 2y\frac{dy}{dx} = 4 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{2}{y} 2 y d x d y = 4 ⇒ d x d y = y 2 At ( 1 , 2 ) (1, 2) ( 1 , 2 ) , the slope is 2 2 = 1 \dfrac{2}{2} = 1 2 2 = 1 .
4. (Core) Find the equation of the tangent line to x 3 + y 3 = 9 x^3 + y^3 = 9 x 3 + y 3 = 9 at ( 1 , 2 ) (1, 2) ( 1 , 2 ) .
Solution Check: 1 + 8 = 9 1 + 8 = 9 1 + 8 = 9 . Differentiate:
3 x 2 + 3 y 2 d y d x = 0 ⇒ d y d x = − x 2 y 2 3x^2 + 3y^2\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x^2}{y^2} 3 x 2 + 3 y 2 d x d y = 0 ⇒ d x d y = − y 2 x 2 At ( 1 , 2 ) (1, 2) ( 1 , 2 ) , the slope is − 1 4 -\dfrac{1}{4} − 4 1 , so the tangent line is
y − 2 = − 1 4 ( x − 1 ) y - 2 = -\frac{1}{4}(x - 1) y − 2 = − 4 1 ( x − 1 )
5. (Core) Find d y d x \dfrac{dy}{dx} d x d y for x y + y 2 = 6 xy + y^2 = 6 x y + y 2 = 6 , and evaluate it at ( 1 , 2 ) (1, 2) ( 1 , 2 ) .
Solution y + x d y d x + 2 y d y d x = 0 ⇒ d y d x = − y x + 2 y y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{y}{x + 2y} y + x d x d y + 2 y d x d y = 0 ⇒ d x d y = − x + 2 y y Check ( 1 , 2 ) (1, 2) ( 1 , 2 ) : 2 + 4 = 6 2 + 4 = 6 2 + 4 = 6 . Then d y d x = − 2 1 + 4 = − 2 5 \dfrac{dy}{dx} = -\dfrac{2}{1 + 4} = -\dfrac{2}{5} d x d y = − 1 + 4 2 = − 5 2 .
6. (Core) Find d y d x \dfrac{dy}{dx} d x d y for y + ln y = x y + \ln y = x y + ln y = x , and the slope at ( 1 , 1 ) (1, 1) ( 1 , 1 ) .
Solution d y d x + 1 y d y d x = 1 ⇒ d y d x ( y + 1 y ) = 1 ⇒ d y d x = y y + 1 \frac{dy}{dx} + \frac{1}{y}\frac{dy}{dx} = 1 \quad\Rightarrow\quad \frac{dy}{dx}\left(\frac{y + 1}{y}\right) = 1 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{y}{y + 1} d x d y + y 1 d x d y = 1 ⇒ d x d y ( y y + 1 ) = 1 ⇒ d x d y = y + 1 y Check ( 1 , 1 ) (1, 1) ( 1 , 1 ) : 1 + ln 1 = 1 1 + \ln 1 = 1 1 + ln 1 = 1 . The slope is 1 2 \dfrac{1}{2} 2 1 .
7. (Core) Consider the ellipse x 2 + 4 y 2 = 8 x^2 + 4y^2 = 8 x 2 + 4 y 2 = 8 .
(a) Find the equation of the tangent line at ( 2 , 1 ) (2, 1) ( 2 , 1 ) .
(b) Find the points where the tangent line is horizontal.
Solution 2 x + 8 y d y d x = 0 ⇒ d y d x = − x 4 y 2x + 8y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x}{4y} 2 x + 8 y d x d y = 0 ⇒ d x d y = − 4 y x (a) Check: 4 + 4 = 8 4 + 4 = 8 4 + 4 = 8 . The slope at ( 2 , 1 ) (2, 1) ( 2 , 1 ) is − 2 4 = − 1 2 -\dfrac{2}{4} = -\dfrac{1}{2} − 4 2 = − 2 1 , so the tangent line is y − 1 = − 1 2 ( x − 2 ) y - 1 = -\dfrac{1}{2}(x - 2) y − 1 = − 2 1 ( x − 2 ) , or y = − 1 2 x + 2 y = -\dfrac{1}{2}x + 2 y = − 2 1 x + 2 .
(b) Horizontal when x = 0 x = 0 x = 0 (and y ≠ 0 y \ne 0 y = 0 ). Then 4 y 2 = 8 4y^2 = 8 4 y 2 = 8 , so y = ± 2 y = \pm\sqrt{2} y = ± 2 . The points are ( 0 , 2 ) (0, \sqrt{2}) ( 0 , 2 ) and ( 0 , − 2 ) (0, -\sqrt{2}) ( 0 , − 2 ) .
8. (Challenge) Find all points on x 2 + x y + y 2 = 12 x^2 + xy + y^2 = 12 x 2 + x y + y 2 = 12 where the tangent line is horizontal.
Solution As in Example 2, d y d x = − 2 x + y x + 2 y \dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y} d x d y = − x + 2 y 2 x + y .
Horizontal when 2 x + y = 0 2x + y = 0 2 x + y = 0 , so y = − 2 x y = -2x y = − 2 x . Substitute:
x 2 + x ( − 2 x ) + ( − 2 x ) 2 = 12 ⇒ 3 x 2 = 12 ⇒ x = ± 2 x^2 + x(-2x) + (-2x)^2 = 12 \quad\Rightarrow\quad 3x^2 = 12 \quad\Rightarrow\quad x = \pm 2 x 2 + x ( − 2 x ) + ( − 2 x ) 2 = 12 ⇒ 3 x 2 = 12 ⇒ x = ± 2 The points are ( 2 , − 4 ) (2, -4) ( 2 , − 4 ) and ( − 2 , 4 ) (-2, 4) ( − 2 , 4 ) . The denominators are 2 − 8 = − 6 2 - 8 = -6 2 − 8 = − 6 and − 2 + 8 = 6 -2 + 8 = 6 − 2 + 8 = 6 , both nonzero, so both tangents are horizontal.
9. (Challenge) Consider the curve e y = x 2 + y e^y = x^2 + y e y = x 2 + y .
(a) Show that ( 1 , 0 ) (1, 0) ( 1 , 0 ) is on the curve.
(b) Find d y d x \dfrac{dy}{dx} d x d y .
(c) What happens to the tangent line at ( 1 , 0 ) (1, 0) ( 1 , 0 ) ?
Solution (a) e 0 = 1 e^0 = 1 e 0 = 1 and 1 2 + 0 = 1 1^2 + 0 = 1 1 2 + 0 = 1 , so yes.
(b)
e y d y d x = 2 x + d y d x ⇒ d y d x ( e y − 1 ) = 2 x ⇒ d y d x = 2 x e y − 1 e^y\frac{dy}{dx} = 2x + \frac{dy}{dx} \quad\Rightarrow\quad \frac{dy}{dx}(e^y - 1) = 2x \quad\Rightarrow\quad \frac{dy}{dx} = \frac{2x}{e^y - 1} e y d x d y = 2 x + d x d y ⇒ d x d y ( e y − 1 ) = 2 x ⇒ d x d y = e y − 1 2 x (c) At ( 1 , 0 ) (1, 0) ( 1 , 0 ) , the denominator is e 0 − 1 = 0 e^0 - 1 = 0 e 0 − 1 = 0 while the numerator is 2 ≠ 0 2 \ne 0 2 = 0 . So the slope is undefined and the tangent line is vertical : it’s the line x = 1 x = 1 x = 1 .