AP Calculus AB and BC

Implicit Differentiation: Finding dy/dx Step by Step

Implicit differentiation finds dy/dx when an equation mixes x and y and you can't solve for y cleanly. Differentiate both sides with respect to x; each y-term picks up a dy/dx from the chain rule. Then gather the dy/dx terms, factor, and divide. Reach for it when y is trapped, like x^2 + y^2 = 25.

Spotting when to use implicit differentiation

Implicit differentiation is the tool when an equation ties xx and yy together and you cannot (or would rather not) solve for yy first. A circle such as x2+y2=25x^2 + y^2 = 25 is the classic signal: yy appears squared, so isolating it forces a ±\pm and breaks the curve into two separate halves. Equations like x3+y3=6xyx^3 + y^3 = 6xy or sin(xy)=x\sin(xy) = x are worse still, because yy is tangled past anything clean algebra can undo. These are relations, not functions, and many of them fail the vertical line test outright.

The recognition question is short. Can you rewrite the equation as y=f(x)y = f(x) without a fight? If yes, do exactly that and differentiate with the ordinary rules from Units 2 and 3. If yy is trapped, mixed into products with xx, or raised to powers you cannot unwind, switch to implicit differentiation. You never isolate yy at all. You differentiate the equation as written and solve for the slope dydx\frac{dy}{dx} directly.

EquationCan you isolate yy?Best method
y=x2sinxy = x^2\sin xAlready solvedOrdinary rules (product rule)
x2+y2=25x^2 + y^2 = 25Only with a ±\pmImplicit differentiation
x3+y3=6xyx^3 + y^3 = 6xyNo clean wayImplicit differentiation
xy=4xy = 4Yes, y=4xy = \frac{4}{x}Either works

The one idea behind the method

Every yy in the equation stands for an unnamed function of xx. So every yy you differentiate carries a hidden dydx\frac{dy}{dx}, supplied by the chain rule. That is the entire basis of Topic 3.2, and it is why the chain rule from Topic 3.1 has to come first.

The method: differentiate, then solve for dy/dx

Differentiate both sides of the equation with respect to xx. Terms built only from xx follow the rules you already know, and a constant differentiates to 00. The moment you differentiate a term containing yy, the chain rule fires. The derivative of y2y^2 is not 2y2y; it is 2ydydx2y\frac{dy}{dx}, because you differentiate the outer power and then multiply by the derivative of the inside function: the inside is yy, and its derivative is dydx\frac{dy}{dx}. The general pattern is worth memorizing:

ddx(yn)=nyn1dydx\frac{d}{dx}\left(y^n\right) = n y^{n-1}\frac{dy}{dx}
  1. Differentiate both sides with respect to xx, treating yy as a function of xx.
  2. Apply the chain rule to every yy-term, attaching a factor of dydx\frac{dy}{dx}; use the product rule wherever xx and yy are multiplied.
  3. Move every term containing dydx\frac{dy}{dx} to one side and everything else to the other.
  4. Factor out dydx\frac{dy}{dx} and divide to isolate it.

Step four explains why the result almost always contains both xx and yy. That is not a mistake to fix. The slope of an implicit curve genuinely depends on which point you sit at, and naming a point on such a curve takes both coordinates. An answer like dydx=xy\frac{dy}{dx} = -\frac{x}{y} is a finished answer.

When a problem asks for the slope at a specific point, wait until after you have solved for dydx\frac{dy}{dx}, then substitute both coordinates. Substituting too early, before the derivative is isolated, throws away the dydx\frac{dy}{dx} you are trying to find.

The mistakes that cost points

The single most common error is differentiating a yy-term as if yy were xx. Writing ddx(y3)=3y2\frac{d}{dx}(y^3) = 3y^2 silently drops the dydx\frac{dy}{dx} and corrupts every step after it. Every yy you touch earns its chain-rule factor, without exception.

The second trap shows up whenever xx and yy are multiplied, like the xyxy in x2+xy+y2=7x^2 + xy + y^2 = 7. That term needs the product rule, and the yy-half of the product still needs its own dydx\frac{dy}{dx}. The correct expansion is ddx(xy)=xdydx+y\frac{d}{dx}(xy) = x\frac{dy}{dx} + y. Skipping the product rule here is one of the most frequent free-response deductions in Unit 3.

The third slip is algebraic. After you collect the dydx\frac{dy}{dx} terms, factor dydx\frac{dy}{dx} out before you divide. Trying to divide term by term instead of factoring first is where a correct derivative turns into a wrong final fraction.

Extending to the second derivative

To find d2ydx2\frac{d^2y}{dx^2}, differentiate the first derivative again with respect to xx. Two details do the damage. First, the first derivative usually still contains yy, so differentiating it calls for the chain rule (and often the quotient rule) a second time. Second, any dydx\frac{dy}{dx} that reappears in this pass should be replaced with the expression you already found, after which you simplify, often using the original equation to clean things up. Topic 3.6 formalizes higher-order derivatives; the circle example below runs the whole process end to end.

This is also why a second-derivative answer for a circle can collapse to something as tidy as 25y3-\frac{25}{y^3}: the original relation absorbs the x2+y2x^2 + y^2 that the algebra produces.

Worked examples

Worked example

The circle: a clean first derivative

Find dydx\frac{dy}{dx} for the circle x2+y2=25x^2 + y^2 = 25, then find the slope at the point (3,4)(3, 4).

  1. Differentiate both sides with respect to xx, treating yy as an unknown function of xx: ddx(x2)+ddx(y2)=ddx(25)\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25).
  2. The x2x^2 term gives 2x2x by the power rule. The y2y^2 term needs the chain rule, so ddx(y2)=2ydydx\frac{d}{dx}(y^2) = 2y\frac{dy}{dx}. The constant 2525 differentiates to 00, leaving 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0.
  3. Move the xx-term across and divide by 2y2y: 2ydydx=2x2y\frac{dy}{dx} = -2x, so dydx=xy\frac{dy}{dx} = -\frac{x}{y}.
  4. Now substitute the point (3,4)(3, 4), after the derivative is isolated: dydx=34\frac{dy}{dx} = -\frac{3}{4}.

dydx=xy\frac{dy}{dx} = -\frac{x}{y}, which is 34-\frac{3}{4} at (3,4)(3, 4).

Worked example

A product term: xy needs the product rule

Find dydx\frac{dy}{dx} for x2+xy+y2=7x^2 + xy + y^2 = 7.

  1. Differentiate each term with respect to xx. The middle term xyxy is a product of two functions of xx, so flag it for the product rule: ddx(x2)+ddx(xy)+ddx(y2)=0\frac{d}{dx}(x^2) + \frac{d}{dx}(xy) + \frac{d}{dx}(y^2) = 0.
  2. The power rule gives ddx(x2)=2x\frac{d}{dx}(x^2) = 2x. The product rule gives ddx(xy)=xdydx+y\frac{d}{dx}(xy) = x\frac{dy}{dx} + y, since ddx(x)=1\frac{d}{dx}(x) = 1. The chain rule gives ddx(y2)=2ydydx\frac{d}{dx}(y^2) = 2y\frac{dy}{dx}.
  3. Assemble the pieces: 2x+xdydx+y+2ydydx=02x + x\frac{dy}{dx} + y + 2y\frac{dy}{dx} = 0.
  4. Gather the dydx\frac{dy}{dx} terms on one side and move the rest to the other: xdydx+2ydydx=2xyx\frac{dy}{dx} + 2y\frac{dy}{dx} = -2x - y.
  5. Factor out dydx\frac{dy}{dx}, then divide: dydx(x+2y)=(2x+y)\frac{dy}{dx}(x + 2y) = -(2x + y), so dydx=2x+yx+2y\frac{dy}{dx} = -\frac{2x + y}{x + 2y}.

dydx=2x+yx+2y\frac{dy}{dx} = -\frac{2x + y}{x + 2y}.

Worked example

The second derivative of the circle

Find d2ydx2\frac{d^2y}{dx^2} for the circle x2+y2=25x^2 + y^2 = 25.

  1. Start from the first derivative already found for this circle, dydx=xy\frac{dy}{dx} = -\frac{x}{y}.
  2. Differentiate again with respect to xx. The right side is a quotient, so use the quotient rule, remembering that ddx(y)=dydx\frac{d}{dx}(y) = \frac{dy}{dx}: d2ydx2=(1)(y)xdydxy2\frac{d^2y}{dx^2} = -\frac{(1)(y) - x\frac{dy}{dx}}{y^2}.
  3. Substitute the known dydx=xy\frac{dy}{dx} = -\frac{x}{y}: d2ydx2=yx(xy)y2=y+x2yy2\frac{d^2y}{dx^2} = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2}.
  4. Combine the numerator over yy: y+x2y=y2+x2yy + \frac{x^2}{y} = \frac{y^2 + x^2}{y}, so d2ydx2=x2+y2y3\frac{d^2y}{dx^2} = -\frac{x^2 + y^2}{y^3}.
  5. The original equation says x2+y2=25x^2 + y^2 = 25, so the result simplifies to d2ydx2=25y3\frac{d^2y}{dx^2} = -\frac{25}{y^3}.

d2ydx2=25y3\frac{d^2y}{dx^2} = -\frac{25}{y^3}.

Frequently asked questions

When should I use implicit differentiation instead of solving for y?

Use it whenever solving for yy is impossible or messy: yy appears to a power, sits inside a product with xx, or is buried in a trig or exponential expression. If you can write y=f(x)y = f(x) cleanly, the ordinary rules are faster. If you cannot, differentiate the equation as it stands.

Why does dy/dx appear when I differentiate a y-term?

Because yy is a function of xx. Differentiating y2y^2 is a chain-rule problem: the outer derivative 2y2y times the derivative of the inside, which is dydx\frac{dy}{dx}. That dydx\frac{dy}{dx} is the derivative of the inner function, and it never disappears.

Why does my answer have both x and y in it?

That is normal and correct for implicit curves. The slope changes from point to point, and a point on a relation like x2+y2=25x^2 + y^2 = 25 needs both an xx and a yy to pin it down. To get a number, substitute a specific point after solving for dydx\frac{dy}{dx}.