Implicit differentiation: how to find dy/dx, with examples

When x and y appear together in an equation, solving for y can make the work much longer. Implicit differentiation lets us find dydx while leaving the original equation in that form. We’ll treat y as a function of x, then use the chain rule to keep track of how y changes.

Treat y as a function of x

An explicit equation is already solved for y, as in y=3x2+2x+1. An implicit equation relates x and y without necessarily isolating y. It may describe more than one branch, so we work on a branch where y can be viewed as a differentiable function of x.

When we differentiate y² with respect to x, we’re differentiating the square of a function. The chain rule gives

ddx(y2)=2ydydx

The derivative of y itself is dydx. That same chain-rule factor appears when we differentiate y³, sin y, or another function of y.

Example: Differentiate a circle equation

x2+y2=25

Differentiate both sides with respect to x. The derivative of x² is 2x, and the chain rule handles y².

2x+2ydydx=0

Move 2x to the right and divide by 2y to solve for the derivative where y ≠ 0.

2ydydx=-2x
dydx=-xy

At the point (3, 4), the slope is -34. The formula gives a slope in terms of both coordinates because the original equation also involves both coordinates.

Example: Use the product rule with implicit differentiation

Now let’s differentiate an equation with a product of x and y.

x3+y3=9xy

On the left, the derivative of x³ is 3x² and the derivative of y³ is 3y2dydx. On the right, both 9x and y change with x, so we use the product rule.

3x2+3y2dydx=9y+9xdydx

Collect the terms containing dydx on the left and move the other terms to the right.

3y2dydx-9xdydx=9y-3x2

Now factor out dydx, which lets us solve for the derivative.

dydx(3y2-9x)=9y-3x2
dydx=3y-x2y2-3x

This formula applies where the branch is differentiable and y² − 3x ≠ 0. If we need the slope at a particular point, we first check that the point lies on the original curve, then substitute its x- and y-coordinates into the derivative.

The process in general

Differentiate both sides with respect to x, treating y as a function of x. Use the chain rule for functions of y and the product rule for products involving x and y. Once the differentiation is done, collect the derivative terms, factor out dydx, and solve for it.