Skip to main content

Unit 3 · Topic 3.2

3.2 Implicit Differentiation

Some curves, like circles, can't be written as a single y = f(x). Implicit differentiation lets you find dydx\frac{dy}{dx} anyway: differentiate both sides with respect to x, treating y as a function of x, so every y term picks up a dydx\frac{dy}{dx} by the chain rule. Then solve for dydx\frac{dy}{dx}.

Key terms

  • implicit differentiation
  • implicitly defined function
  • dydx\frac{dy}{dx}
  • chain rule

Why it works

An equation like x² + y² = 25 defines y implicitly: near most points, the curve looks like the graph of some function y(x), even if you can't write it as one formula. Since y is a function of x, the chain rule says ddx(y2)=2y⋅dydx\frac{d}{dx}(y^2) = 2y \cdot \frac{dy}{dx}.

That's the whole idea. Differentiate x terms as usual. Differentiate y terms as usual, then multiply by dydx\frac{dy}{dx}.

The steps

Follow the same routine every time:

  • Differentiate both sides of the equation with respect to x.
  • Every time you differentiate an expression in y, multiply by dydx\frac{dy}{dx}.
  • Use the product rule on terms like xy: ddx(xy)=1⋅y+x⋅dydx\frac{d}{dx}(xy) = 1 \cdot y + x \cdot \frac{dy}{dx}.
  • Move all dydx\frac{dy}{dx} terms to one side and everything else to the other.
  • Factor out dydx\frac{dy}{dx} and divide.

Derivatives of y terms

These come up again and again. Each is just the usual rule followed by a factor of dydx\frac{dy}{dx}:

TermDerivative with respect to x
ydydx\frac{dy}{dx}
y³3y2⋅dydx3y^2 \cdot \frac{dy}{dx}
xyy+x⋅dydxy + x \cdot \frac{dy}{dx}
sin ycos⁡y⋅dydx\cos y \cdot \frac{dy}{dx}
eʸey⋅dydxe^y \cdot \frac{dy}{dx}
ln y1y⋅dydx\frac{1}{y} \cdot \frac{dy}{dx}

Implicit vs. explicit

For x² + y² = 25 you could solve for y=±25−x2y = \pm\sqrt{25 - x^2} and differentiate each half. Implicit differentiation is usually faster, and its answer, −xy-\frac{x}{y}, works on the top and bottom halves at once.

For many curves, solving for y isn't possible at all. Take sin(xy) = y. Differentiating gives cos⁡(xy)⋅(y+x⋅dydx)=dydx\cos(xy) \cdot \left(y + x \cdot \frac{dy}{dx}\right) = \frac{dy}{dx}, using the chain rule on sine and the product rule on xy. Expanding and collecting: dydx⋅(1−xcos⁡(xy))=ycos⁡(xy)\frac{dy}{dx} \cdot (1 - x\cos(xy)) = y\cos(xy), so dydx=ycos⁡(xy)1−xcos⁡(xy)\dfrac{dy}{dx} = \dfrac{y\cos(xy)}{1 - x\cos(xy)}. You'd never get there by solving for y first.

What the answer looks like

dydx\frac{dy}{dx} usually contains both x and y. To find the slope at a point, plug in both coordinates. For x² + y² = 25, dydx=−xy\frac{dy}{dx} = -\frac{x}{y}. At (3, 4) the slope is −34-\frac{3}{4}; at (3, −4) it is 34\frac{3}{4}. Same x, different points, different slopes, which is why you need both coordinates.

Check that the point is actually on the curve before using it. If it doesn't satisfy the original equation, something is wrong with the problem setup or your reading of it.

Worked examples

Try each one yourself first, then open the solution.

  1. Example 1

    Slope on a circle

    For x² + y² = 25, find dydx\frac{dy}{dx} and the slope of the tangent line at (3, 4).

    Show the solution
    1. Step 1: Differentiate both sides: 2x+2y⋅dydx=02x + 2y \cdot \frac{dy}{dx} = 0.
    2. Step 2: Solve: dydx=−2x2y=−xy\frac{dy}{dx} = -\frac{2x}{2y} = -\frac{x}{y}.
    3. Step 3: At (3, 4): dydx=−34\frac{dy}{dx} = -\frac{3}{4}.

    Answer: dydx=−xy\frac{dy}{dx} = -\frac{x}{y}; the slope at (3, 4) is −34-\frac{3}{4}.

  2. Example 2

    Product rule inside implicit differentiation

    The curve x³ + xy + y² = 7 passes through (1, 2). Find dydx\frac{dy}{dx} and the equation of the tangent line at (1, 2).

    Show the solution
    1. Step 1: Check the point: 1 + 2 + 4 = 7. Yes, it's on the curve.
    2. Step 2: Differentiate: 3x2+(y+x⋅dydx)+2y⋅dydx=03x^2 + \left(y + x \cdot \frac{dy}{dx}\right) + 2y \cdot \frac{dy}{dx} = 0. The xy term needed the product rule.
    3. Step 3: Collect dydx\frac{dy}{dx} terms: (x+2y)⋅dydx=−(3x2+y)(x + 2y) \cdot \frac{dy}{dx} = -(3x^2 + y).
    4. Step 4: So dydx=−3x2+yx+2y\dfrac{dy}{dx} = -\dfrac{3x^2 + y}{x + 2y}.
    5. Step 5: At (1, 2): dydx=−3+21+4=−1\frac{dy}{dx} = -\frac{3 + 2}{1 + 4} = -1.
    6. Step 6: Tangent line: y − 2 = −1(x − 1).

    Answer: dydx=−3x2+yx+2y\dfrac{dy}{dx} = -\dfrac{3x^2 + y}{x + 2y}; tangent line y − 2 = −(x − 1), or y = −x + 3.

  3. Example 3

    Trap: forgetting dy/dx on a y term

    The curve eʸ + y = x + 1 passes through (0, 0). A student differentiates it as ey+dydx=1e^y + \frac{dy}{dx} = 1. Find the correct slope at (0, 0).

    Show the solution
    1. Step 1: eʸ is a function of y, and y depends on x, so its derivative is ey⋅dydxe^y \cdot \frac{dy}{dx}, not eʸ.
    2. Step 2: Correct derivative: ey⋅dydx+dydx=1e^y \cdot \frac{dy}{dx} + \frac{dy}{dx} = 1.
    3. Step 3: Factor: dydx⋅(ey+1)=1\frac{dy}{dx} \cdot (e^y + 1) = 1, so dydx=1ey+1\frac{dy}{dx} = \frac{1}{e^y + 1}.
    4. Step 4: At (0, 0): 11+1=12\frac{1}{1 + 1} = \frac{1}{2}. The student's version would give dydx=1−e0=0\frac{dy}{dx} = 1 - e^0 = 0, which is wrong.

    Answer: dydx=1ey+1\frac{dy}{dx} = \frac{1}{e^y + 1}, so the slope at (0, 0) is 12\frac{1}{2}.

Common mistakes

  • Forgetting dydx\frac{dy}{dx} on y terms, such as writing ddx(y2)=2y\frac{d}{dx}(y^2) = 2y.
  • Treating xy as if only one factor changes. It needs the product rule: y+x⋅dydxy + x \cdot \frac{dy}{dx}.
  • Forgetting to differentiate the constant on the right side (it becomes 0), or differentiating it to something else.

On the exam

  • Free-response questions often give an implicit curve and dydx\frac{dy}{dx} already computed (“Show that dydx=…\frac{dy}{dx} = \ldots”), then ask for tangent lines, horizontal or vertical tangents, or the second derivative. If asked to show it, every step must be visible.
  • In multiple choice, plugging the point into a correct dydx\frac{dy}{dx} is usually faster than solving for y first.

Connected topics

Videos

  • Calculus AB/BC – 3.2 Implicit Differentiation

    The AlgebrosWatch on YouTube (opens in a new tab)

  • Implicit differentiation | Advanced derivatives | AP Calculus AB | Khan Academy

    Khan AcademyWatch on YouTube (opens in a new tab)

  • Implicit differentiation, what's going on here? | Chapter 6, Essence of calculus

    3Blue1BrownWatch on YouTube (opens in a new tab)

  • Implicit Differentiation Explained - Product Rule, Quotient & Chain Rule - Calculus

    The Organic Chemistry TutorWatch on YouTube (opens in a new tab)

  • How to Do Implicit Differentiation (NancyPi)

    NancyPiWatch on YouTube (opens in a new tab)

  • Implicit Differentiation

    Professor Dave ExplainsWatch on YouTube (opens in a new tab)

Check yourself: 3.2 Implicit Differentiation

4 questions on 3.2 Implicit Differentiation. Pick an answer to see if you got it, and why.

Question 1 of 4

If sin y + y = x², what is dydx\dfrac{dy}{dx} in terms of x and y?

A curve in the xy-plane is defined by the equation x² + xy + y² = 7. The point (1, 2) lies on the curve.

Described function

Question 2 of 4

Which of the following is an expression for dydx\dfrac{dy}{dx}?

Question 3 of 4

What is the slope of the line tangent to the curve at the point (1, 2)?

Question 4 of 4

At which of the following points on the curve is the line tangent to the curve horizontal?

0 of 4 answered

Something wrong or out of date here?

Something wrong with this page?

What's wrong?

Please don't include personal details.