Skip to content
9 min read

Implicit Differentiation: The Chain Rule Trick

Most functions you meet in early calculus are written explicitly: you have yy isolated on one side, such as y=3x2+1y = 3x^2 + 1. But many important curves cannot be rearranged into that tidy form. The equation of a circle, x2+y2=25x^2 + y^2 = 25, defines a relationship between xx and yy without explicitly solving for either variable. To find slopes and tangent lines on such curves, we need a technique called implicit differentiation.

This guide walks through the concept from first principles, builds a repeatable step-by-step method, and then applies it to progressively harder worked examples. By the end you will be comfortable differentiating any implicitly defined curve and finding its tangent lines, second derivatives, and connections to related rates problems.

Why Ordinary Differentiation Falls Short

When a function is written as y=f(x)y = f(x), you differentiate each term with respect to xx directly. The power rule, product rule, and chain rule all work straightforwardly because every term is expressed in terms of xx.

Now consider the circle x2+y2=25x^2 + y^2 = 25. You could solve for yy to get y=±25−x2y = \pm\sqrt{25 - x^2}, but this splits the curve into two separate functions (the upper and lower semicircles) and introduces a square root that complicates further work. For an equation like x3+y3=6xyx^3 + y^3 = 6xy (the folium of Descartes), it is not possible to isolate yy algebraically at all. Implicit differentiation handles both cases elegantly.

The Core Idea: The Chain Rule in Disguise

Implicit differentiation rests on a single insight: treat yy as a function of xx, even though you have not solved for it. Whenever you differentiate a term containing yy, apply the chain rule. For instance:

ddx(y2)=2y⋅dydx\frac{d}{dx}(y^2) = 2y \cdot \frac{dy}{dx}

The outer derivative gives 2y2y (power rule), and the chain rule multiplies by dydx\frac{dy}{dx} because yy itself depends on xx. This factor of dydx\frac{dy}{dx} (often written y′y') is what we ultimately solve for.

Step-by-Step Method

Follow these four steps for any implicitly defined equation:

  1. Differentiate every term on both sides of the equation with respect to xx. Apply the chain rule to every term that contains yy, appending a factor of dydx\frac{dy}{dx}.
  2. Collect all terms containing dydx\frac{dy}{dx} on one side of the equation and move everything else to the other side.
  3. Factor out dydx\frac{dy}{dx}.
  4. Divide both sides by the remaining factor to isolate dydx\frac{dy}{dx}.

The answer will usually contain both xx and yy. That is perfectly normal for implicit differentiation.

Try it yourself

Use our Implicit Differentiation Calculator to check your work step by step.

Worked Example 1: The Circle

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

Step 1. Differentiate both sides with respect to xx:

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

Step 2. Isolate the dydx\frac{dy}{dx} term:

2y dydx=−2x2y\,\frac{dy}{dx} = -2x

Step 3. Divide both sides by 2y2y:

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

This tells us that the slope at any point (x,y)(x, y) on the circle is −x/y-x/y. At (3,4)(3, 4), for example, the slope is −3/4-3/4, which matches geometric intuition: the radius to (3,4)(3,4) has slope 4/34/3, and the tangent is perpendicular to the radius.

Worked Example 2: An Ellipse

Find dydx\frac{dy}{dx} for x29+y24=1\frac{x^2}{9} + \frac{y^2}{4} = 1.

Step 1. Differentiate:

2x9+2y4 dydx=0\frac{2x}{9} + \frac{2y}{4}\,\frac{dy}{dx} = 0

Step 2. Simplify and isolate:

y2 dydx=−2x9\frac{y}{2}\,\frac{dy}{dx} = -\frac{2x}{9}
dydx=−4x9y\frac{dy}{dx} = -\frac{4x}{9y}

At the point (322, 2)\left(\frac{3\sqrt{2}}{2},\,\sqrt{2}\right) on the ellipse, the slope is:

dydx=−4⋅32292=−6292=−23\frac{dy}{dx} = -\frac{4 \cdot \frac{3\sqrt{2}}{2}}{9\sqrt{2}} = -\frac{6\sqrt{2}}{9\sqrt{2}} = -\frac{2}{3}

Worked Example 3: The Folium of Descartes

Find dydx\frac{dy}{dx} for x3+y3=6xyx^3 + y^3 = 6xy.

Step 1. Differentiate. The left side is straightforward. The right side requires the product rule because it contains both xx and yy:

3x2+3y2 dydx=6y+6x dydx3x^2 + 3y^2\,\frac{dy}{dx} = 6y + 6x\,\frac{dy}{dx}

Step 2. Collect dydx\frac{dy}{dx} terms on one side:

3y2 dydx−6x dydx=6y−3x23y^2\,\frac{dy}{dx} - 6x\,\frac{dy}{dx} = 6y - 3x^2

Step 3. Factor and divide:

dydx(3y2−6x)=6y−3x2\frac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2
dydx=6y−3x23y2−6x=2y−x2y2−2x\frac{dy}{dx} = \frac{6y - 3x^2}{3y^2 - 6x} = \frac{2y - x^2}{y^2 - 2x}

The curve passes through (3,3)(3, 3). At that point:

dydx=2(3)−99−6=−33=−1\frac{dy}{dx} = \frac{2(3) - 9}{9 - 6} = \frac{-3}{3} = -1

So the tangent line at (3,3)(3, 3) has slope −1-1, meaning it slopes downward at 45 degrees.

Finding the Equation of a Tangent Line

Once you have dydx\frac{dy}{dx} evaluated at a point (x0,y0)(x_0, y_0), the tangent line equation is:

y−y0=m(x−x0)y - y_0 = m(x - x_0)

Example. For the circle x2+y2=25x^2 + y^2 = 25 at (3,4)(3, 4), we found m=−3/4m = -3/4. The tangent line is:

y−4=−34(x−3)⟹y=−34x+254y - 4 = -\tfrac{3}{4}(x - 3) \quad\Longrightarrow\quad y = -\tfrac{3}{4}x + \tfrac{25}{4}

Worked Example 4: A Curve Requiring the Product Rule

Find dydx\frac{dy}{dx} for x2y+xy2=6x^2 y + xy^2 = 6.

Differentiate term by term. For x2yx^2 y, use the product rule: 2xy+x2dydx2xy + x^2 \frac{dy}{dx}. For xy2xy^2, again use the product rule: y2+2xy dydxy^2 + 2xy\,\frac{dy}{dx}. The right side gives 0.

2xy+x2 dydx+y2+2xy dydx=02xy + x^2\,\frac{dy}{dx} + y^2 + 2xy\,\frac{dy}{dx} = 0

Collect and factor:

dydx(x2+2xy)=−(2xy+y2)\frac{dy}{dx}(x^2 + 2xy) = -(2xy + y^2)
dydx=−(2xy+y2)x2+2xy=−y(2x+y)x(x+2y)\frac{dy}{dx} = \frac{-(2xy + y^2)}{x^2 + 2xy} = \frac{-y(2x + y)}{x(x + 2y)}

At the point (1,2)(1, 2) (verify: 1⋅2+1⋅4=61 \cdot 2 + 1 \cdot 4 = 6):

dydx=−2(2+2)1(1+4)=−85\frac{dy}{dx} = \frac{-2(2 + 2)}{1(1 + 4)} = \frac{-8}{5}

Try it yourself

Enter any equation into our Derivative Calculator to see the differentiation steps broken down automatically.

Second Derivatives by Implicit Differentiation

You can find d2ydx2\frac{d^2y}{dx^2} by differentiating dydx\frac{dy}{dx} again with respect to xx, remembering that yy (and therefore dydx\frac{dy}{dx}) still depends on xx.

Example. For x2+y2=25x^2 + y^2 = 25, we found dydx=−xy\frac{dy}{dx} = -\frac{x}{y}. Differentiate using the quotient rule:

d2ydx2=−y⋅1−x⋅dydxy2=−y−x(−xy)y2=−y+x2yy2\frac{d^2y}{dx^2} = -\frac{y \cdot 1 - x \cdot \frac{dy}{dx}}{y^2} = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2}

Multiply numerator and denominator by yy:

d2ydx2=−y2+x2y3=−25y3\frac{d^2y}{dx^2} = -\frac{y^2 + x^2}{y^3} = -\frac{25}{y^3}

The last simplification uses x2+y2=25x^2 + y^2 = 25. Notice that the second derivative is always negative when y>0y > 0 (top half of the circle), confirming that the curve is concave down there, exactly as we would expect.

Connection to Related Rates

Related rates problems are implicit differentiation in disguise. Instead of differentiating with respect to xx, you differentiate with respect to time tt. Every variable that changes over time picks up a ddt\frac{d}{dt} factor via the chain rule.

Example. A spherical balloon is being inflated so that its volume increases at 100 cm3/s100\,\text{cm}^3/\text{s}. How fast is the radius changing when r=10 cmr = 10\,\text{cm}?

Start with the volume formula:

V=43πr3V = \frac{4}{3}\pi r^3

Differentiate both sides with respect to tt:

dVdt=4πr2 drdt\frac{dV}{dt} = 4\pi r^2 \,\frac{dr}{dt}

Substitute dVdt=100\frac{dV}{dt} = 100 and r=10r = 10:

drdt=1004π(100)=14π≈0.0796  cm/s\frac{dr}{dt} = \frac{100}{4\pi(100)} = \frac{1}{4\pi} \approx 0.0796\;\text{cm/s}

The structure is identical to implicit differentiation: apply the chain rule to every variable, then solve for the unknown rate.

Common Mistakes to Avoid

  • Forgetting the chain rule factor. Every time you differentiate a yy term, you must multiply by dydx\frac{dy}{dx}. Omitting this is the most common error.
  • Dropping the product rule. Terms like xyxy or x2yx^2 y require the product rule because they contain two variable quantities.
  • Substituting the point too early. Always find the general expression for dydx\frac{dy}{dx} first, then substitute the coordinates.
  • Sign errors when rearranging. Be meticulous when moving terms across the equals sign.

When to Use Implicit Differentiation

Use implicit differentiation whenever the equation relating xx and yy is difficult or impossible to solve for yy explicitly. Common scenarios include:

  • Circles, ellipses, and other conic sections
  • Higher-degree polynomial curves (e.g., the folium of Descartes)
  • Equations involving transcendental functions of yy, such as ey+x=ye^y + x = y
  • Related rates problems where multiple quantities change with time
  • Implicit equations arising from level curves of multivariable functions

Try it yourself

Practise with our Implicit Differentiation Calculator and our Derivative Calculator to build confidence before your next exam.

Frequently Asked Questions

What is the difference between explicit and implicit differentiation?

Explicit differentiation works on functions written as y=f(x)y = f(x), where yy is isolated on one side. Implicit differentiation works on equations where xx and yy are intertwined, such as x2+y2=25x^2 + y^2 = 25. The technique is the same (differentiation rules), but implicit differentiation adds the chain rule factor dydx\frac{dy}{dx} wherever yy appears.

Why does implicit differentiation give an answer containing both x and y?

Because yy was never isolated as a function of xx, the derivative naturally depends on both variables. To evaluate the slope at a particular point, you substitute both the xx and yy coordinates of that point into the expression.

Can I use implicit differentiation on any equation?

Yes, as long as the equation defines yy as a differentiable function of xx (at least locally). At points where dydx\frac{dy}{dx} would involve division by zero, the tangent line is vertical and the derivative does not exist in the usual sense.

How does implicit differentiation relate to multivariable calculus?

If F(x,y)=0F(x, y) = 0 defines the curve, then the implicit function theorem gives dydx=−FxFy\frac{dy}{dx} = -\frac{F_x}{F_y}, where FxF_x and FyF_y are the partial derivatives. This is exactly the formula you derive by implicit differentiation, confirming the connection between single-variable and multivariable viewpoints.

Is implicit differentiation on the AP Calculus exam?

Yes. Implicit differentiation is a standard topic on both the AP Calculus AB and BC exams. You should be able to find first and second derivatives implicitly, determine tangent line equations, and solve related rates problems that rely on the same technique.

Related Articles