Implicit Differentiation Explained with Examples

Not every curve can be written as y = f(x). Here's how to find the slope anyway, by differentiating both sides of an equation and treating y as a hidden function of x.

By Petrus Sheya

July 19, 2026 · 7 min read

What's the slope of a circle?

Not "at the top" or "at the side," those you could probably guess. What's the slope at some arbitrary point, using nothing but the equation x2+y2=25x^2 + y^2 = 25?

You can't just differentiate this the way you differentiate y=x2y = x^2. There's no "y = ..." to start from. And yet the circle obviously has a slope everywhere except two points. Implicit differentiation is how we get at it anyway.


Why can't we just solve for y?

Some equations hand you yy directly. y=3x+1y = 3x + 1. y=x24y = x^2 - 4. These are called explicit functions, and differentiating them is routine.

But x2+y2=25x^2 + y^2 = 25 doesn't do that. Solve for yy and you get y=±25x2y = \pm\sqrt{25 - x^2}, two separate formulas glued together at x=±5x = \pm 5. Worse, some equations can't be solved for yy at all, no matter how hard you push the algebra. We'll meet one of those later in this post.

So here's the question: can we find dydx\frac{dy}{dx} without ever isolating yy?

Turns out, yes. And the trick is smaller than you'd expect.


The trick: differentiate both sides

Here's the whole idea in one sentence: differentiate both sides of the equation with respect to xx, and every time you differentiate a term containing yy, remember that yy is secretly a function of xx.

That "remembering" is just the chain rule. Take x2+y2=25x^2 + y^2 = 25. Differentiate term by term:

ddx[x2]+ddx[y2]=ddx[25]\frac{d}{dx}[x^2] + \frac{d}{dx}[y^2] = \frac{d}{dx}[25]

The first term is easy: ddx[x2]=2x\frac{d}{dx}[x^2] = 2x. The last term is zero, since 25 never changes. The middle term is where it gets interesting. y2y^2 isn't just "a square," it's the square of some function of xx. The chain rule says differentiating it gives 2y2y, times the rate yy itself is changing:

2x+2ydydx=02x + 2y\frac{dy}{dx} = 0

Now it's just algebra. Isolate dydx\frac{dy}{dx}:

dydx=xy\frac{dy}{dx} = -\frac{x}{y}

That's it. A formula for the slope of a circle at any point (x,y)(x, y) on it, without ever writing yy as an explicit function of xx. Try it below.

Visualizer 01

Circle: One Equation, Two Branches

Drag the point around x² + y² = 25, the tangent stays perpendicular to the radius everywhere, even where "solve for y" breaks down.

(2.9, 4.1)x² + y² = 25tangentradius
Point (x, y)(2.87, 4.10)
dy/dx = −x / y-0.700
Explicit form herey = +√(25 − x²)

Watch what happens near the top and bottom of the circle. The formula x/y-x/y demands you divide by yy, and right where y=0y = 0, that blows up. Notice this is exactly where the explicit form would need to switch between +25x2+\sqrt{25-x^2} and 25x2-\sqrt{25-x^2}. Same breakdown, seen from two angles.

And notice the tangent is always perpendicular to the radius, exactly as geometry says it should be. That's not a coincidence, it's a nice sanity check that the formula is telling the truth.


Where does that extra dy/dx come from?

Let's slow down on that one step, because it's the entire method.

Think of yy as a dial connected to xx by a hidden wire. You never see the wire's exact shape, but every time xx moves a little, yy moves too, by some amount that depends on the wire. That amount, per unit of xx, is exactly dydx\frac{dy}{dx}.

Now suppose a term in your equation is y2y^2. If yy were an independent variable, differentiating y2y^2 with respect to itself would just give 2y2y. But yy isn't independent here, it's riding on xx. So the chain rule inserts the wire's own rate: ddx[y2]=2ydydx\frac{d}{dx}[y^2] = 2y \cdot \frac{dy}{dx}.

Every single time yy shows up in an equation, differentiating it costs you one factor of dydx\frac{dy}{dx}. Plain xx terms never do, because xx is the thing we're differentiating with respect to. Its own rate of change with respect to itself is just 11, so it never shows up explicitly.


What about terms where x and y multiply?

Circles are the easy case, because xx and yy never touch each other directly. But plenty of equations have a term like xyxy, where both variables are tangled together in the same product. That needs the product rule on top of the chain rule.

Take a simple one: xy=6xy = 6, a hyperbola. Differentiate both sides:

ddx[xy]=ddx[6]\frac{d}{dx}[xy] = \frac{d}{dx}[6]

The right side is 00. The left side needs the product rule, treating xx and yy as two changing quantities multiplied together:

xdydx+y1=0dydx=yxx\frac{dy}{dx} + y \cdot 1 = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{y}{x}

But why does a product of two changing things differentiate that way? Picture xyxy as the area of a rectangle with width xx and height yy. Nudge xx up by a small amount Δx\Delta x, while staying on the curve so the area stays exactly 66. The height yy has to shrink to compensate, by some Δy\Delta y.

Visualizer 02

Why xy Needs the Product Rule

The rectangle's area always equals 6. Shrink Δx and watch the corner square vanish faster than the two strips.

(2, 3)
Δy (exact, keeps xy = 6)-0.8571
Δy / Δx (secant)-1.0714
−y/x (formula limit)-1.5000

The new area comes from three pieces: a strip of width Δx\Delta x along the side (area yΔxy \cdot \Delta x), a strip of height Δy\Delta y along the top (area xΔyx \cdot \Delta y), and a tiny leftover corner (area ΔxΔy\Delta x \cdot \Delta y). Since the total area never changes, those three pieces must sum to zero.

Now shrink Δx\Delta x toward zero. The two strips shrink proportionally, but the corner shrinks like ΔxΔy\Delta x \cdot \Delta y, a product of two small things, so it vanishes much faster. What's left in the limit is exactly ydx+xdy=0y\,dx + x\,dy = 0... which is the product rule, discovered from a rectangle instead of memorized from a table.


A curve you truly cannot solve for y

Here's the payoff. Consider:

x3+y3=6xyx^3 + y^3 = 6xy

This is the Folium of Descartes, and unlike the circle, there is no clean way to write yy as a formula in xx. It's a genuine loop, doubling back on itself, failing the vertical line test entirely. Explicit calculus has nothing to offer here. Implicit differentiation doesn't blink.

Differentiate both sides, using the chain rule on y3y^3 and the product rule on 6xy6xy:

3x2+3y2dydx=6(xdydx+y)3x^2 + 3y^2\frac{dy}{dx} = 6\left(x\frac{dy}{dx} + y\right)

Collect every dydx\frac{dy}{dx} term on one side:

dydx(3y26x)=6y3x2dydx=2yx2y22x\frac{dy}{dx}\left(3y^2 - 6x\right) = 6y - 3x^2 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}

One formula, and it works at every point on that loop, explicit form or not.

Visualizer 03

A Curve You Can't Solve for y

x³ + y³ = 6xy loops back on itself, no formula "y = ..." draws this whole shape. Implicit differentiation doesn't care.

self-crossing point
Point (x, y)(3.00, 3.00)
dy/dx = (2y − x²)/(y² − 2x)-1.000

Trace the loop slowly. Near the origin, the curve crosses itself, two different branches passing through the same point with two different tangent directions. The formula genuinely breaks down there (0/00/0), because at a self-crossing, "the" tangent line isn't a single thing anymore. Everywhere else, it just works.


What can go wrong

A few habits will trip you up, all fixable with practice.

Forgetting the dydx\frac{dy}{dx}. If you differentiate y2y^2 and just write 2y2y, you've silently pretended yy is a plain constant with respect to xx. It isn't. Any term with yy in it needs that extra factor.

Skipping the product rule. A term like xyxy or 3x2y3x^2y has both variables in it. Differentiate it as a product, not as if only one side were changing.

Losing track of dydx\frac{dy}{dx} during algebra. After differentiating, you'll usually have dydx\frac{dy}{dx} scattered across several terms. Collect them all onto one side before you factor and divide, or you'll drop one by accident.

None of these are new rules. They're the ordinary chain rule and product rule, applied carefully, term by term.


Try it yourself

Four different curves, one method. Pick one below, slide the point along it, and check that the formula and the picture always agree.

Visualizer 04

Try It Yourself

Pick a curve, slide the point along it, and watch the implicit derivative formula produce the tangent every time.

Curve
Point (x, y)(3.83, 3.21)
dy/dx-1.192
From−x/y = -1.192

The short version

Implicit differentiation is what you get when you apply the ordinary chain rule to an equation instead of a lone function. Differentiate both sides with respect to xx, treat every yy as a hidden function of xx (which costs a factor of dydx\frac{dy}{dx} each time it appears), use the product rule wherever xx and yy multiply together, then collect all the dydx\frac{dy}{dx} terms and solve for it algebraically. The result is a slope formula that works on circles, hyperbolas, loops, and any other curve defined by an equation, whether or not you could ever solve that equation for yy in the first place.