In short

Implicit differentiation finds dy/dx from an equation relating x and y, without first solving for y. The method: differentiate every term with respect to x, treating y as a function of x (so every y-term picks up a dy/dx via the chain rule), then solve algebraically for dy/dx.

The equation of a circle with radius 5 centred at the origin is

x^2 + y^2 = 25

You want the slope of this circle at the point (3, 4). To use the tools you already have — differentiate a function, read off the slope — you would first need to solve for y:

y = \sqrt{25 - x^2} \quad \text{(taking the positive root, since } y = 4 > 0\text{)}

Then differentiate: \frac{dy}{dx} = \frac{-2x}{2\sqrt{25 - x^2}} = \frac{-x}{\sqrt{25 - x^2}}. At x = 3: \frac{dy}{dx} = \frac{-3}{\sqrt{16}} = \frac{-3}{4}.

That worked, but only because you could solve for y. Try the same approach on

x^3 + y^3 = 6xy

This is the folium of Descartes — a curve that loops through the origin and crosses itself. Solving this equation for y in terms of x requires the cubic formula, produces three branches, and makes finding the slope at any point a nightmare.

There is a better way. Instead of solving for y first, differentiate the equation as it stands — treating y as a function of x that you don't know explicitly. Every time you differentiate a term involving y, the chain rule produces a factor of dy/dx. Collect those factors, solve for dy/dx, and you have the slope — without ever solving for y.

This is implicit differentiation, and it works on any equation relating x and y, no matter how tangled.

Explicit versus implicit

Before stating the method, the terminology is worth understanding.

An explicit function is one where y is isolated on one side: y = x^2 - 3x + 1, or y = \sin x, or y = e^{2x}. You can compute y directly from x. Differentiating is straightforward: apply the rules you already know.

An implicit equation is one where x and y are tangled together: x^2 + y^2 = 25, or x^3 + y^3 = 6xy, or e^y = xy + 1. The variable y is not isolated — it is implicitly defined by the equation. Sometimes you can solve for y and make it explicit (as with the circle), but often you cannot (as with the folium), and even when you can, the explicit form may be ugly and hard to differentiate.

Implicit differentiation lets you find dy/dx from the implicit equation directly, skipping the step of solving for y entirely.

Here is the contrast at a glance:

Explicit versus implicit functionsTwo boxes side by side. The left box shows the explicit approach: solve for y first, then differentiate. The right box shows the implicit approach: differentiate the equation as it stands, treating y as a function of x. Explicit route 1. Solve for y = f(x) 2. Differentiate f(x) Works only when you can isolate y cleanly Implicit route 1. Differentiate both sides 2. Solve for dy/dx Works always, even when y can't be isolated
The explicit route requires solving for $y$ first — which is sometimes impossible or ugly. The implicit route differentiates the equation directly and solves for $dy/dx$, bypassing the isolation step entirely.

The method

The technique has three steps, and they are always the same.

Step 1. Differentiate both sides with respect to x. Treat y as a function of x throughout. Every time you differentiate a term containing y, the chain rule adds a factor of \frac{dy}{dx}.

Step 2. Collect all terms containing \frac{dy}{dx} on one side. Move everything else to the other side.

Step 3. Factor out \frac{dy}{dx} and divide. The result is \frac{dy}{dx} expressed in terms of both x and y.

That last point is important: the answer will typically involve both x and y. This is not a problem. When you want the slope at a specific point (x_0, y_0) on the curve, you plug in both coordinates. You need to know the point (both x and y) before you can compute the slope there — and that makes sense, because a curve like x^2 + y^2 = 25 has two different y-values at most x-values, and the slope is different at each.

The circle, done implicitly

Return to x^2 + y^2 = 25. Differentiate both sides with respect to x:

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

Solve for \frac{dy}{dx}:

2y\frac{dy}{dx} = -2x \qquad \Longrightarrow \qquad \frac{dy}{dx} = -\frac{x}{y}

At (3, 4): \frac{dy}{dx} = -\frac{3}{4}. Same answer as before, in two lines instead of six.

At (3, -4) — the point on the bottom half of the circle: \frac{dy}{dx} = -\frac{3}{-4} = \frac{3}{4}. The slope is positive there, which is correct — the bottom arc of the circle slopes upward as you move right past x = 3.

The circle $x^2 + y^2 = 25$ with tangent lines at $(3, 4)$ (solid red, slope $-3/4$) and $(3, -4)$ (dashed, slope $+3/4$). Both tangent lines are perpendicular to the radius at their respective points — a geometric property of circles. The formula $dy/dx = -x/y$ gives the correct slope at both points, automatically distinguishing between the upper and lower halves of the circle through the sign of $y$.

This is the power of the implicit approach: a single formula dy/dx = -x/y handles the entire circle — both halves, every point — without needing to split into y = \sqrt{25 - x^2} and y = -\sqrt{25 - x^2} and differentiate each separately.

Implicit differentiation

Given an equation F(x, y) = 0 that defines y implicitly as a function of x:

  1. Differentiate every term with respect to x, treating y as a function of x (applying the chain rule to all y-terms).
  2. Solve the resulting equation algebraically for \dfrac{dy}{dx}.

The result expresses \dfrac{dy}{dx} in terms of both x and y.

Why the chain rule is the engine

The entire method rests on one idea: y depends on x, so when you differentiate any expression involving y, the chain rule fires.

Consider y^3. If y were just a constant, its derivative with respect to x would be zero. If y were x itself, the derivative would be 3x^2. But y is some function of x that you don't know — call it y(x). The chain rule gives:

\frac{d}{dx}[y^3] = 3y^2 \cdot \frac{dy}{dx}

The outer function u^3 has derivative 3u^2. The inner function is y(x), whose derivative is dy/dx. Multiply them: 3y^2 \cdot dy/dx.

This is why implicit differentiation is not a new rule — it is the chain rule applied in a setting where you cannot (or choose not to) write y explicitly in terms of x.

The folium of Descartes

Now tackle the curve from the opening: x^3 + y^3 = 6xy.

Step 1. Differentiate every term with respect to x:

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

The left side: \frac{d}{dx}[x^3] = 3x^2 and \frac{d}{dx}[y^3] = 3y^2 \frac{dy}{dx}.

The right side: \frac{d}{dx}[6xy] = 6\frac{d}{dx}[xy] = 6\left(1 \cdot y + x \cdot \frac{dy}{dx}\right) by the product rule.

Step 2. Expand and collect dy/dx terms:

3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx}
3y^2\frac{dy}{dx} - 6x\frac{dy}{dx} = 6y - 3x^2

Step 3. Factor and divide:

(3y^2 - 6x)\frac{dy}{dx} = 6y - 3x^2
\frac{dy}{dx} = \frac{6y - 3x^2}{3y^2 - 6x} = \frac{2y - x^2}{y^2 - 2x}

At the point (3, 3) on the folium: \frac{dy}{dx} = \frac{6 - 9}{9 - 6} = \frac{-3}{3} = -1. The tangent at (3, 3) has slope -1 — a line tilted at 45 degrees downward.

The folium of Descartes, $x^3 + y^3 = 6xy$, with the tangent line at $(3, 3)$. The tangent has slope $-1$. The curve loops through the origin and crosses itself there — a place where implicit differentiation gives $dy/dx = 0/0$, reflecting the fact that two branches cross and have different slopes.

Notice that the formula \frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x} breaks down when y^2 - 2x = 0 — the denominator vanishes. At such points the tangent line is vertical (infinite slope). At the origin (0, 0), both numerator and denominator are zero, producing 0/0 — which reflects the fact that the curve crosses itself there, and two different tangent lines exist (one for each branch).

Finding the second derivative implicitly

You can differentiate again to find \frac{d^2y}{dx^2} — the second derivative — without ever solving for y explicitly.

Take the circle again: \frac{dy}{dx} = -\frac{x}{y}.

Differentiate both sides with respect to x:

\frac{d^2y}{dx^2} = -\frac{d}{dx}\!\left[\frac{x}{y}\right]

Apply the quotient rule to x/y:

\frac{d}{dx}\!\left[\frac{x}{y}\right] = \frac{y \cdot 1 - x \cdot \frac{dy}{dx}}{y^2}

Substitute \frac{dy}{dx} = -\frac{x}{y}:

= \frac{y - x \cdot \left(-\frac{x}{y}\right)}{y^2} = \frac{y + \frac{x^2}{y}}{y^2} = \frac{y^2 + x^2}{y^3}

Since x^2 + y^2 = 25:

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

This tells you the concavity of the circle at every point. On the top half (y > 0), d^2y/dx^2 = -25/y^3 < 0 — the curve is concave down. On the bottom half (y < 0), d^2y/dx^2 = -25/y^3 > 0 — the curve is concave up. Both match the shape of a circle: the top curves downward, the bottom curves upward.

At the topmost point (0, 5): d^2y/dx^2 = -25/125 = -1/5. At (3, 4): d^2y/dx^2 = -25/64 \approx -0.39. The concavity is stronger (more negative) at (3, 4) than at (0, 5). This is because the circle is curving more sharply there — the top is the "flattest" part of the circle.

The key technique when finding the second derivative implicitly: substitute the first derivative back in wherever dy/dx appears, then simplify using the original equation.

A more involved example: second derivative of the ellipse

Take the ellipse \frac{x^2}{9} + \frac{y^2}{4} = 1. You will find dy/dx in the worked example below, and the result is \frac{dy}{dx} = -\frac{4x}{9y}.

Now differentiate again. Apply the quotient rule to -\frac{4x}{9y}:

\frac{d^2y}{dx^2} = -\frac{4}{9} \cdot \frac{y \cdot 1 - x \cdot \frac{dy}{dx}}{y^2}

Substitute \frac{dy}{dx} = -\frac{4x}{9y}:

= -\frac{4}{9} \cdot \frac{y + \frac{4x^2}{9y}}{y^2} = -\frac{4}{9} \cdot \frac{\frac{9y^2 + 4x^2}{9y}}{y^2} = -\frac{4}{9} \cdot \frac{9y^2 + 4x^2}{9y^3}

From the original equation, \frac{x^2}{9} + \frac{y^2}{4} = 1 gives 4x^2 + 9y^2 = 36. Substitute:

\frac{d^2y}{dx^2} = -\frac{4}{9} \cdot \frac{36}{9y^3} = -\frac{4 \cdot 36}{81 y^3} = -\frac{16}{9y^3}

On the top half of the ellipse (y > 0), d^2y/dx^2 < 0 — concave down. On the bottom half (y < 0), d^2y/dx^2 > 0 — concave up. The ellipse bends exactly as you would expect.

Computing one from start to finish

Example 1: Find the slope of the tangent to the ellipse $\frac{x^2}{9} + \frac{y^2}{4} = 1$ at the point $(3/\sqrt{2},\; \sqrt{2})$

Step 1. Verify the point lies on the curve. Substitute: \frac{(3/\sqrt{2})^2}{9} + \frac{(\sqrt{2})^2}{4} = \frac{9/2}{9} + \frac{2}{4} = \frac{1}{2} + \frac{1}{2} = 1. Confirmed.

Why: always check that the point actually lies on the curve. If it doesn't, the question is meaningless — and if you made a copying error, you'll catch it here rather than producing a bogus slope.

Step 2. Differentiate both sides with respect to x.

\frac{2x}{9} + \frac{2y}{4}\frac{dy}{dx} = 0

Why: \frac{d}{dx}[x^2/9] = 2x/9 by the power rule and scalar multiple rule. \frac{d}{dx}[y^2/4] = (2y/4)(dy/dx) = (y/2)(dy/dx) by the chain rule. The right side is \frac{d}{dx}[1] = 0.

Step 3. Solve for \frac{dy}{dx}.

\frac{y}{2}\frac{dy}{dx} = -\frac{2x}{9} \qquad \Longrightarrow \qquad \frac{dy}{dx} = -\frac{4x}{9y}

Why: isolate dy/dx by moving the x-term to the other side and dividing by y/2.

Step 4. Substitute (x, y) = (3/\sqrt{2},\; \sqrt{2}).

\frac{dy}{dx} = -\frac{4 \cdot \frac{3}{\sqrt{2}}}{9\sqrt{2}} = -\frac{\frac{12}{\sqrt{2}}}{9\sqrt{2}} = -\frac{12}{9 \cdot 2} = -\frac{12}{18} = -\frac{2}{3}

Why: the numerator is 4 \cdot \frac{3}{\sqrt{2}} = \frac{12}{\sqrt{2}}. The denominator is 9\sqrt{2}. The fraction is \frac{12}{\sqrt{2} \cdot 9\sqrt{2}} = \frac{12}{9 \cdot 2} = \frac{12}{18} = \frac{2}{3}. The minus sign out front gives -2/3.

Result: \dfrac{dy}{dx} = -\dfrac{2}{3} at (3/\sqrt{2},\;\sqrt{2}).

The ellipse $x^2/9 + y^2/4 = 1$ with the tangent line at $(3/\sqrt{2}, \sqrt{2}) \approx (2.12, 1.41)$. The tangent has slope $-2/3$, tilting gently downward to the right — consistent with the curve bending down as you move rightward along the top of the ellipse.

The formula dy/dx = -4x/(9y) tells you the slope at every point of the ellipse in one expression. At the rightmost point (3, 0), the denominator is zero — the tangent is vertical, which is geometrically obvious. At the top (0, 2), the numerator is zero — the tangent is horizontal. The formula captures all of these cases.

Example 2: Find $dy/dx$ for the curve $e^y = xy + 1$

Step 1. Differentiate both sides with respect to x.

e^y \cdot \frac{dy}{dx} = y + x\frac{dy}{dx}

Why: on the left, \frac{d}{dx}[e^y] = e^y \cdot \frac{dy}{dx} by the chain rule (outer: e^u, inner: y). On the right, \frac{d}{dx}[xy] = y + x\frac{dy}{dx} by the product rule. The constant 1 differentiates to 0.

Step 2. Collect dy/dx terms on one side.

e^y \frac{dy}{dx} - x\frac{dy}{dx} = y
(e^y - x)\frac{dy}{dx} = y

Why: factor dy/dx out of both terms on the left. This is the standard "collect and factor" move in implicit differentiation.

Step 3. Solve.

\frac{dy}{dx} = \frac{y}{e^y - x}

Why: divide both sides by (e^y - x), which is valid as long as e^y \neq x.

Step 4. Check at a specific point. At (0, 0): does e^0 = 0 \cdot 0 + 1? Yes, 1 = 1. So (0, 0) is on the curve. The slope there is \frac{0}{e^0 - 0} = \frac{0}{1} = 0.

Why: the tangent at the origin is horizontal. You can see this makes sense: near x = 0, the equation e^y \approx 1 forces y \approx 0, and the curve is locally flat.

Result: \dfrac{dy}{dx} = \dfrac{y}{e^y - x}.

The curve $e^y = xy + 1$ (black) passes through the origin with a horizontal tangent (dashed red). The curve rises for $x > 0$ and bends away from the $x$-axis as the exponential term on the left begins to dominate.

The formula dy/dx = y/(e^y - x) is compact but powerful. It uses e^y — which you could replace with xy + 1 using the original equation — and it reveals that dy/dx = 0 exactly when y = 0, meaning the tangent is horizontal wherever the curve crosses the x-axis.

Common confusions

Going deeper

If you came here to learn how to find dy/dx implicitly and apply it, you have the complete technique — you can stop here. The rest of this section covers the theoretical justification and a classical application.

Why implicit differentiation works: the implicit function theorem

Implicit differentiation works because of a deep theorem in analysis called the implicit function theorem. Informally, it says: if F(x, y) = 0 defines a smooth curve, and the curve is not vertical at a point (meaning \frac{\partial F}{\partial y} \neq 0 there), then near that point y can be written as a function of x, and that function is differentiable.

You do not need to actually find the function y(x) — the theorem guarantees it exists, and that is enough to justify treating y as a differentiable function of x and applying the chain rule.

When \frac{\partial F}{\partial y} = 0 — that is, when y^2 - 2x = 0 in the folium example, or when y = 0 in the circle example — the implicit function theorem does not apply, and the tangent line is vertical (or the curve has a singularity). These are exactly the points where the formula for dy/dx has a zero denominator, confirming that the algebra and the theory agree.

For F(x, y) = x^2 + y^2 - 25, the formula from the theorem gives:

\frac{dy}{dx} = -\frac{F_x}{F_y} = -\frac{2x}{2y} = -\frac{x}{y}

which is exactly what implicit differentiation produces. The technique is a shortcut for the general formula dy/dx = -F_x/F_y.

Application: tangent lines to conic sections

Every conic section — circle, ellipse, parabola, hyperbola — can be written as a second-degree equation in x and y, and implicit differentiation gives the tangent slope at any point in one quick computation.

For the general conic ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0, differentiating implicitly gives:

2ax + 2h\!\left(y + x\frac{dy}{dx}\right) + 2by\frac{dy}{dx} + 2g + 2f\frac{dy}{dx} = 0

Solving:

\frac{dy}{dx} = -\frac{ax + hy + g}{hx + by + f}

This single formula handles the tangent to any conic at any point. For the circle x^2 + y^2 = 25: a = b = 1, h = 0, g = f = 0, c = -25, giving dy/dx = -x/y — exactly what you had before.

The equation of the tangent line at a point (x_1, y_1) on a conic has a beautiful form: replace x^2 with xx_1, y^2 with yy_1, xy with (xy_1 + yx_1)/2, x with (x + x_1)/2, and y with (y + y_1)/2. This "T = 0" substitution rule, often taught as a trick in JEE preparation, is actually a direct consequence of implicit differentiation applied to the general conic equation.

Deriving the derivative of \sin^{-1} x using implicit differentiation

Implicit differentiation gives the cleanest proofs of the derivatives of inverse trigonometric functions. Here is the derivative of \sin^{-1} x as an example.

Let y = \sin^{-1} x, so \sin y = x with -\pi/2 \le y \le \pi/2. Differentiate both sides with respect to x:

\cos y \cdot \frac{dy}{dx} = 1
\frac{dy}{dx} = \frac{1}{\cos y}

Now you need \cos y in terms of x. Since \sin y = x and \cos^2 y = 1 - \sin^2 y = 1 - x^2, and \cos y \ge 0 for y \in [-\pi/2, \pi/2]:

\frac{dy}{dx} = \frac{1}{\sqrt{1 - x^2}}

The derivative of \sin^{-1} x is \frac{1}{\sqrt{1 - x^2}}. No limit computation, no difference quotient — just implicit differentiation and a trigonometric identity. This is the standard method for all six inverse trig derivatives.

Related rates

Implicit differentiation extends naturally to problems where x and y both depend on a third variable — usually time t. If a balloon is being inflated and its radius r is growing at 2 cm/s, how fast is the volume V = \frac{4}{3}\pi r^3 increasing when r = 10 cm?

Differentiate implicitly with respect to t: \frac{dV}{dt} = 4\pi r^2 \frac{dr}{dt}. At r = 10, dr/dt = 2: \frac{dV}{dt} = 4\pi(100)(2) = 800\pi \approx 2513 cm³/s.

This is exactly the same chain rule mechanism — V depends on r, r depends on t, so differentiating V with respect to t requires multiplying by dr/dt — just applied to a physical problem rather than a geometric curve.

Implicit differentiation and orthogonal trajectories

Two families of curves are orthogonal trajectories if every curve of one family intersects every curve of the other family at right angles. For example, the family of circles x^2 + y^2 = r^2 (centered at the origin) and the family of lines y = mx (through the origin) are orthogonal: at every intersection, the circle and the line meet at 90 degrees.

You can prove this with implicit differentiation. For the circle, dy/dx = -x/y. For the line y = mx, dy/dx = m = y/x. The product of the slopes is (-x/y)(y/x) = -1, which is the condition for perpendicularity. The two families are orthogonal at every point of intersection.

Circles $x^2 + y^2 = r^2$ (black) and lines $y = mx$ through the origin (dashed red). Every circle and every line meet at right angles — they are orthogonal trajectories. Implicit differentiation proves this: the slope of the circle at any point is $-x/y$, and the slope of the line through the origin is $y/x$. Their product is $-1$.

Finding orthogonal trajectories is a standard application in physics — in electrostatics, equipotential curves and electric field lines are orthogonal trajectories. The technique starts by finding dy/dx for the given family (usually by implicit differentiation), then replacing dy/dx with -dx/dy to get the differential equation of the orthogonal family.

Where this leads next

Implicit differentiation is a technique that appears everywhere derivatives are used. The most direct continuations: