Start the course

Derivatives

Implicit differentiation, step by step

7 min readUpdated

Quick answer

Implicit differentiation finds dydx when an equation mixes x and y and isn't solved for y, like x2+y2=25. Differentiate both sides with respect to x, treating y as a function of x, so every y-term gets a factor dydx by the chain rule. Then collect the dydx terms and solve for dydx.

Key points
  • Treat y as an unknown function of x and differentiate both sides of the equation.
  • Every time you differentiate an expression in y, multiply by dydx: for example ddxy2= 2ydydx.
  • A term like xy is a product, so it needs the product rule.
  • The answer usually contains both x and y; substitute a point's coordinates to get a number.

When do you need implicit differentiation?

Most functions come as a formula, y= something in x, and the rules differentiate it directly. But some curves are given by an equation relating x and y, such as the circle x2+y2=25. Solving for y is either awkward (here it gives two formulas, y=±25−x2) or impossible, as for x3+y3=6xy.

An equation like this still describes y as depending on x near most points; it just doesn't say how in a formula. We say the equation defines y implicitly (by implication), as opposed to explicitly (spelled out as y=…). Implicit differentiation finds the slope dydx without ever solving for y.

How does implicit differentiation work?

Think of y as a hidden function of x, say y=y(x). Then y2 is really (y(x))2: a square with y(x) inside. The chain rule says to differentiate the outside (giving 2y) and multiply by the inside's derivative (which is dydx). The same happens to every expression in y:

ExpressionDerivative with respect to x
ydydx
y22ydydx
y33y2dydx
sin⁡ycos⁡ydydx
eyeydydx
xy (a product)1⋅y+xdydx

Terms in x alone are differentiated as usual, and constants give 0.

What are the steps of implicit differentiation?

  1. Differentiate both sides of the equation with respect to x.
  2. Wherever you differentiate an expression in y, multiply by dydx (chain rule). Use the product rule for terms like xy.
  3. Collect all the terms containing dydx on one side and everything else on the other.
  4. Factor out dydx and divide to solve for it.
Worked example: A circle

Find dydx for x2+y2=25, and the slope at the point (3,4).

  1. Differentiate both sides: ddx(x2)+ddx(y2)= ddx(25).
  2. This gives 2x+2ydydx= 0; the right side is 0 because 25 is a constant.
  3. Move 2x to the right: 2ydydx= −2x.
  4. Divide by 2y: dydx= −xy.
  5. At (3,4), which is on the circle since 9+16=25: dydx= −34.

Answer: dydx= −xy, and the slope at (3,4) is −34.

-6-4-22468-4-2246slope −3/4 at (3, 4)x² + y² = 25
The circle x2+y2=25 and its tangent line at (3,4), with slope −34.

The answer depends on both x and y, which makes sense: at x=3 the circle has two points, (3,4) and (3,−4), with different slopes (−34 and 34). The coordinates of the point tell the formula which one you mean.

Worked example: A product term

Find dydx for x2+xy+y2=7, and the tangent line at (1,2).

  1. Check the point: 1+2+4=7. ✓
  2. Differentiate term by term. x2→2x. The product xy→1⋅y+xdydx. y2→2ydydx. 7→0.
  3. So 2x+y+xdydx+2ydydx= 0.
  4. Collect the dydx terms: (x+2y)dydx= −(2x+y).
  5. Divide: dydx= −2x+yx+2y.
  6. At (1,2): −2+21+4= −45. The tangent line is y−2=−45(x−1), which simplifies to y= −45x+145.

Answer: dydx= −2x+yx+2y; tangent line y= −45x+145.

Common mistake

Forgetting dydx on the y-terms. Writing ddxy2=2y is the most common mistake: y depends on x, so the chain rule adds the factor dydx. A second common slip is treating xy as if it had derivative 1⋅dydx instead of using the product rule.

How do you find horizontal and vertical tangent lines implicitly?

Write dydx as a fraction. A horizontal tangent has slope 0, so the top of the fraction is 0 (and the bottom isn't). A vertical tangent has no slope, which happens where the bottom is 0 (and the top isn't). In both cases, use the original equation to find the points.

Worked example: Horizontal and vertical tangents of a circle

Where does x2+y2=25 have horizontal and vertical tangent lines?

  1. From the first example, dydx= −xy.
  2. Horizontal: top =0, so x=0. Then y2=25, so y=±5: the points (0,5) and (0,−5).
  3. Vertical: bottom =0, so y=0. Then x2=25: the points (5,0) and (−5,0).

Answer: Horizontal at (0,±5), vertical at (±5,0): the top, bottom and sides of the circle.

Where does the derivative of ln x come from?

Implicit differentiation also explains several formulas. If y=ln⁡x, then by the meaning of the natural logarithm, ey=x. Differentiate both sides: eydydx=1, so dydx= 1ey. Since ey=x, this is 1x. The same idea gives the derivatives of the inverse trig functions, as covered in derivatives of ex and ln⁡x.

How do you find the second derivative implicitly?

Differentiate the formula for dydx again (usually with the quotient rule), remembering that y still depends on x, then substitute the first derivative and simplify using the original equation.

Worked example: Second derivative of a circle

Find d2ydx2 for x2+y2=25.

  1. Start from y′=−xy, writing y′ for dydx.
  2. Quotient rule, with ddxy=y′: y″= −1⋅y−xy′y2.
  3. Substitute y′=−xy: the top is y−x(−xy)= y+x2y= y2+x2y.
  4. So y″= −y2+x2y3, and since x2+y2=25: y″= −25y3.

Answer: d2ydx2= −25y3

Tip

Implicit differentiation is the engine behind related rates: there, you differentiate an equation with respect to time t, so every changing quantity gets its own rate factor.

Learn it step by step

The full lessons in the course explain this from the ground up, with graphs, worked examples, and practice problems that each have a complete worked solution.

Open the lesson

Frequently asked questions

What is the difference between implicit and explicit differentiation?

Explicit differentiation starts from a formula y=f(x). Implicit differentiation starts from an equation relating x and y, differentiates both sides, and solves for dydx afterward.

Why do you multiply by dy/dx when differentiating y?

Because y is a function of x, so an expression like y3 is a composite function. The chain rule multiplies the outside's derivative by the inside's derivative, which is dydx.

Can the answer to implicit differentiation contain y?

Yes, and it usually does. To get a numerical slope, substitute the coordinates of a point on the curve.

Do you have to solve for y first?

No. That's the point of the method: it works even when solving for y is impossible, as for x3+y3=6xy.

How do you differentiate xy implicitly?

With the product rule: ddx(xy)= 1⋅y+xdydx.