AP · Calculus AB · The Chain Rule and Implicit Differentiation

Implicit Differentiation

17 min readUpdated November 30, 2026FreeAP Calculus AB, Chain Rule, Implicit and Inverse Derivatives

Implicit differentiation finds dydx\dfrac{dy}{dx} from an equation in xx and yy, such as x2+y2=25x^2 + y^2 = 25, without solving for yy first. You differentiate both sides with respect to xx, multiply the derivative of every yy term by dydx\dfrac{dy}{dx} (that is the chain rule), then solve for dydx\dfrac{dy}{dx}. The result usually contains both xx and yy, so a slope or tangent line needs a point on the curve.

Quick check

  1. What is the derivative of (x2+1)3(x^2 + 1)^3?Show answerHide answer

    6x(x2+1)26x(x^2 + 1)^2. The outside gives 3(x2+1)23(x^2 + 1)^2 and the inside gives 2x2x. See the note on the chain rule if this step is unsure.

  2. If ff is a differentiable function, what is the derivative of (f(x))2\big(f(x)\big)^2?Show answerHide answer

    2f(x) f′(x)2f(x)\,f'(x). This is the chain rule with outside u2u^2 and inside f(x)f(x).

  3. The point (3,4)(3, 4) is on x2+y2=25x^2 + y^2 = 25. Why can't a formula in xx alone give the slope there?Show answerHide answer

    At x=3x = 3 there are two points, (3,4)(3, 4) and (3,−4)(3, -4), and the circle has different slopes at them. The slope depends on yy too.

Know these already? Jump to the practice questions

What you'll be able to do

  • Differentiate an equation in xx and yy term by term, treating yy as a function of xx.
  • Solve the result for dydx\dfrac{dy}{dx} by collecting and factoring.
  • Calculate the slope of a curve at a given point and write an equation for its tangent line.
  • Determine where a curve has a horizontal or a vertical tangent line.

Key terms

Implicitly defined curve

A curve given by an equation in xx and yy that has not been solved for yy, such as x2+xy+y2=12x^2 + xy + y^2 = 12.

In plain English
yy depends on xx, but the equation does not say y=…y = \ldots.
Don't write
"yy is a constant here"; yy changes as xx changes along the curve.

Implicit differentiation

Differentiating both sides of an equation in xx and yy with respect to xx, using the chain rule on every term that contains yy.

In plain English
Treat yy as y(x)y(x), so each yy term picks up a factor dydx\dfrac{dy}{dx}.
Don't write
ddx[y2]=2y\dfrac{d}{dx}\left[y^2\right] = 2y; it is 2ydydx2y\dfrac{dy}{dx}.

Vertical tangent line

A tangent line parallel to the yy-axis. On an implicit curve it occurs where the denominator of dydx\dfrac{dy}{dx} is 00 and the numerator is not.

In plain English
The curve is momentarily going straight up or down.
Don't write
"vertical tangent where dydx=0\dfrac{dy}{dx} = 0"; a slope of 00 means horizontal.

Why does a yy term pick up a factor of dy/dx?

Along the curve, yy is a function of xx, even if you can't write it out. So y2y^2 is really (y(x))2\big(y(x)\big)^2, a composite, and the chain rule applies. Learn this:

ddx[y2]=2y⋅dydx\frac{d}{dx}\left[y^2\right] = 2y \cdot \frac{dy}{dx}

Differentiate the yy term as if it were an xx term, then multiply by dydx\dfrac{dy}{dx}. The same idea covers every yy term:

TermDerivative with respect to xx
y3y^33y2dydx3y^2\dfrac{dy}{dx}
sin⁡y\sin ycos⁡y dydx\cos y\,\dfrac{dy}{dx}
eye^yeydydxe^y\dfrac{dy}{dx}
xyxy1⋅y+xdydx1 \cdot y + x\dfrac{dy}{dx} (product rule)
x2x^22x2x (no factor: it is already in xx)

The xyxy row needs the most care. It is a product of two functions of xx, namely xx and yy, so it needs the product rule, and only the yy part picks up dydx\dfrac{dy}{dx}.

Key idea

Every term containing yy gets a factor of dydx\dfrac{dy}{dx}; terms in xx alone do not.

Check yourself

Differentiate y4y^4 with respect to xx.
Show answerHide answer

4y3dydx4y^3\dfrac{dy}{dx}. The power rule gives 4y34y^3, and the chain rule adds the factor dydx\dfrac{dy}{dx}.

How do you solve for dy/dx?

After differentiating, dydx\dfrac{dy}{dx} appears in one or more terms. Treat it as the unknown in a linear equation:

  1. Move every term containing dydx\dfrac{dy}{dx} to one side, and everything else to the other.
  2. Factor out dydx\dfrac{dy}{dx}.
  3. Divide by what multiplies it.

Take x2y+y3=10x^2y + y^3 = 10. Differentiating, with the product rule on x2yx^2y:

2xy+x2dydx+3y2dydx=02xy + x^2\frac{dy}{dx} + 3y^2\frac{dy}{dx} = 0

Then dydx(x2+3y2)=−2xy\dfrac{dy}{dx}\left(x^2 + 3y^2\right) = -2xy, so

dydx=−2xyx2+3y2\frac{dy}{dx} = \frac{-2xy}{x^2 + 3y^2}

The constant 1010 differentiates to 00, like any constant. An answer in terms of both xx and yy is complete; you do not need to remove yy.

Check yourself

Find dydx\dfrac{dy}{dx} for x3+y3=9x^3 + y^3 = 9.
Show answerHide answer

dydx=−x2y2\dfrac{dy}{dx} = -\dfrac{x^2}{y^2}. Differentiating gives 3x2+3y2dydx=03x^2 + 3y^2\dfrac{dy}{dx} = 0.

How do you find the slope and tangent line at a point?

First confirm that the point is on the curve by substituting it into the original equation. Then substitute both coordinates into dydx\dfrac{dy}{dx} to get the slope, and use point-slope form.

On the circle x2+y2=25x^2 + y^2 = 25, differentiating gives 2x+2ydydx=02x + 2y\dfrac{dy}{dx} = 0, so dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y}. The point (3,4)(3, 4) is on the circle, because 9+16=259 + 16 = 25. The slope there is −34-\dfrac{3}{4}, so the tangent line is

y−4=−34(x−3)y - 4 = -\frac{3}{4}(x - 3)

This shows why the yy-coordinate matters: at (3,−4)(3, -4) the slope is −3−4=34-\dfrac{3}{-4} = \dfrac{3}{4}, a different value at the same xx.

Examiner's eye

Points are lost when the slope is found by substituting only xx. Substitute both coordinates of the point into dydx\dfrac{dy}{dx}.

Check yourself

What is the slope of x2+y2=25x^2 + y^2 = 25 at (−4,3)(-4, 3)?
Show answerHide answer

43\dfrac{4}{3}. The slope is −xy=−−43=43-\dfrac{x}{y} = -\dfrac{-4}{3} = \dfrac{4}{3}.

Where are the tangent lines horizontal or vertical?

Write dydx\dfrac{dy}{dx} as a single fraction ND\dfrac{N}{D}.

  • Horizontal tangent: N=0N = 0 and D≠0D \neq 0, because the slope is 00.
  • Vertical tangent: D=0D = 0 and N≠0N \neq 0, because the slope is undefined and the curve runs straight up or down.

The condition N=0N = 0 or D=0D = 0 gives a relation between xx and yy, not a point. To find the actual points, solve that relation together with the equation of the curve, then check the other part of the fraction is not also 00. If NN and DD are both 00, this test tells you nothing.

For the circle, dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y}. Horizontal tangents need x=0x = 0, so y2=25y^2 = 25 and the points are (0,5)(0, 5) and (0,−5)(0, -5). Vertical tangents need y=0y = 0, giving (5,0)(5, 0) and (−5,0)(-5, 0).

Check yourself

For x2+xy+y2=7x^2 + xy + y^2 = 7, dydx=−2x+yx+2y\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}. What relation must hold at a horizontal tangent?
Show answerHide answer

2x+y=02x + y = 0, with x+2y≠0x + 2y \neq 0. You would then substitute y=−2xy = -2x into the curve's equation to find the points.

Worked example 1: Solving for dy/dx

Question: Find dydx\dfrac{dy}{dx} for the curve y3+2y=x2+1y^3 + 2y = x^2 + 1.

What tells you the method

yy appears in two terms and the equation is not solved for yy, so differentiate implicitly.

  1. Step 1: Differentiate both sides with respect to xx.

    3y2dydx+2dydx=2x3y^2\dfrac{dy}{dx} + 2\dfrac{dy}{dx} = 2x.

    Why

    Each yy term picks up dydx\dfrac{dy}{dx}; the x2x^2 term does not, and the constant 11 gives 00.

  2. Step 2: Factor out dydx\dfrac{dy}{dx}.

    dydx(3y2+2)=2x\dfrac{dy}{dx}\left(3y^2 + 2\right) = 2x.

    Why

    All the dydx\dfrac{dy}{dx} terms are already on the left.

  3. Step 3: Divide.

    dydx=2x3y2+2\dfrac{dy}{dx} = \dfrac{2x}{3y^2 + 2}.

    Why

    3y2+23y^2 + 2 is at least 22, so it is never 00 and the division is always allowed.

Check it

The formula gives a slope of 00 at x=0x = 0. Because y3+2yy^3 + 2y grows as yy grows, yy is smallest where x2+1x^2 + 1 is smallest, which is at x=0x = 0, so a horizontal tangent there fits.

Answer

dydx=2x3y2+2\dfrac{dy}{dx} = \dfrac{2x}{3y^2 + 2}

Worked example 2: A tangent line through a product term

Question: Write an equation for the line tangent to the curve xy+y2=6xy + y^2 = 6 at the point (1,2)(1, 2).

What tells you the method

A tangent line needs a slope, and the curve is defined implicitly, with xyxy needing the product rule.

  1. Step 1: Check the point.

    1⋅2+22=61 \cdot 2 + 2^2 = 6, so (1,2)(1, 2) is on the curve.

    Why

    A tangent line only makes sense at a point of the curve.

  2. Step 2: Differentiate.

    y+xdydx+2ydydx=0y + x\dfrac{dy}{dx} + 2y\dfrac{dy}{dx} = 0.

    Why

    The product rule on xyxy gives 1⋅y+xdydx1 \cdot y + x\dfrac{dy}{dx}.

  3. Step 3: Solve for dydx\dfrac{dy}{dx}.

    dydx(x+2y)=−y\dfrac{dy}{dx}(x + 2y) = -y, so dydx=−yx+2y\dfrac{dy}{dx} = -\dfrac{y}{x + 2y}.

    Why

    Collect the dydx\dfrac{dy}{dx} terms, factor, divide.

  4. Step 4: Substitute the point and write the line.

    The slope is −21+4=−25-\dfrac{2}{1 + 4} = -\dfrac{2}{5}, so y−2=−25(x−1)y - 2 = -\dfrac{2}{5}(x - 1), which is y=−25x+125y = -\dfrac{2}{5}x + \dfrac{12}{5}.

    Why

    Point-slope form with the point (1,2)(1, 2).

Check it

At x=1x = 1 the line gives −25+125=2-\dfrac{2}{5} + \dfrac{12}{5} = 2, the yy-coordinate of the point.

Answer

y=−25x+125y = -\dfrac{2}{5}x + \dfrac{12}{5}

Worked example 3: Tangent line and horizontal tangents

Question: Consider the curve x2+xy+y2=12x^2 + xy + y^2 = 12. (a) Show that dydx=−2x+yx+2y\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}. (b) Write an equation for the line tangent to the curve at (2,2)(2, 2). (c) Find the points on the curve where the tangent line is horizontal.

What tells you the method

"show that dydx\dfrac{dy}{dx}" on an equation in xx and yy means implicit differentiation; horizontal tangents mean setting the numerator to 00.

  1. Step 1: Differentiate.

    2x+y+xdydx+2ydydx=02x + y + x\dfrac{dy}{dx} + 2y\dfrac{dy}{dx} = 0.

    Why

    The product rule on xyxy gives y+xdydxy + x\dfrac{dy}{dx}.

  2. Step 2: Solve for dydx\dfrac{dy}{dx}.

    dydx(x+2y)=−(2x+y)\dfrac{dy}{dx}(x + 2y) = -(2x + y), so dydx=−2x+yx+2y\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}, as required.

    Why

    This matches the given result, which finishes part (a).

  3. Step 3: Tangent at (2,2)(2, 2).

    4+4+4=124 + 4 + 4 = 12, so the point is on the curve. The slope is −4+22+4=−1-\dfrac{4 + 2}{2 + 4} = -1, so y−2=−(x−2)y - 2 = -(x - 2), which is y=−x+4y = -x + 4.

    Why

    Substitute both coordinates into dydx\dfrac{dy}{dx}.

  4. Step 4: Horizontal tangents.

    Set the numerator to 00: 2x+y=02x + y = 0, so y=−2xy = -2x. Substitute into the curve: x2−2x2+4x2=3x2=12x^2 - 2x^2 + 4x^2 = 3x^2 = 12, so x=±2x = \pm 2. The points are (2,−4)(2, -4) and (−2,4)(-2, 4).

    Why

    The relation y=−2xy = -2x must be solved together with the curve's equation.

  5. Step 5: Check the denominator.

    At (2,−4)(2, -4), x+2y=−6x + 2y = -6; at (−2,4)(-2, 4), x+2y=6x + 2y = 6. Neither is 00.

    Why

    If the denominator were also 00, the slope would not be 00 there.

Check it

(2,−4)(2, -4) gives 4−8+16=124 - 8 + 16 = 12, and (−2,4)(-2, 4) gives 4−8+16=124 - 8 + 16 = 12, so both points are on the curve.

Answer

(a) dydx=−2x+yx+2y\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}, as shown. (b) y=−x+4y = -x + 4 (c) (2,−4)(2, -4) and (−2,4)(-2, 4)

Your turn

Question: Find the slope of the curve x3+y3=2xyx^3 + y^3 = 2xy at the point (1,1)(1, 1).

  1. Step 1:

    The point is on the curve, because 1+1=21 + 1 = 2. Differentiating, with the product rule on 2xy2xy: 3x2+3y2dydx=2y+2xdydx3x^2 + 3y^2\dfrac{dy}{dx} = 2y + 2x\dfrac{dy}{dx}.

  2. Step 2: Your go: collect the dydx\dfrac{dy}{dx} terms, solve, then substitute (1,1)(1, 1).

Show the full solutionHide the solution

dydx(3y2−2x)=2y−3x2\dfrac{dy}{dx}\left(3y^2 - 2x\right) = 2y - 3x^2, so dydx=2y−3x23y2−2x\dfrac{dy}{dx} = \dfrac{2y - 3x^2}{3y^2 - 2x}. At (1,1)(1, 1): 2−33−2=−1\dfrac{2 - 3}{3 - 2} = -1.

Answer: The slope at (1,1)(1, 1) is −1-1.

Traps

Trap

Writing the derivative of y2y^2 as 2y2y.

It seems right because the derivative of x2x^2 is 2x2x. But yy is a function of xx, so y2y^2 is a composite and the chain rule adds a factor: 2ydydx2y\dfrac{dy}{dx}.

Check yourself

Which is the derivative of sin⁡y\sin y with respect to xx: cos⁡y\cos y or cos⁡y dydx\cos y\,\dfrac{dy}{dx}?
Show answerHide answer

cos⁡y dydx\cos y\,\dfrac{dy}{dx}. The first one is the derivative with respect to yy, not xx.

Trap

Writing the derivative of xyxy as xdydxx\dfrac{dy}{dx}.

It seems right because only the yy seems to need attention. But xyxy is a product of two functions of xx, so the product rule gives two terms: y+xdydxy + x\dfrac{dy}{dx}.

Check yourself

Differentiate 3xy3xy with respect to xx.
Show answerHide answer

3y+3xdydx3y + 3x\dfrac{dy}{dx}. Both factors change with xx, so both get differentiated in turn.

Trap

Treating every point on the line 2x+y=02x + y = 0 as a point with a horizontal tangent.

It seems right because that line is where the numerator of dydx\dfrac{dy}{dx} is 00. But only points on the curve count, so you solve 2x+y=02x + y = 0 together with the curve's equation, and then check that the denominator is not 00.

Check yourself

Is (1,−2)(1, -2) a point with a horizontal tangent on x2+xy+y2=12x^2 + xy + y^2 = 12?
Show answerHide answer

No. It satisfies 2x+y=02x + y = 0, but 1−2+4=3≠121 - 2 + 4 = 3 \neq 12, so it is not on the curve.

What's examined

Implicit differentiation is part of Unit 3 of the AP® Calculus AB exam. It can appear in multiple-choice questions and as a free-response question about a curve, with parts like the ones in Worked example 3: "Show that dydx=…\dfrac{dy}{dx} = \ldots", "Write an equation for the line tangent to the curve at…", and "Find all points on the curve where the tangent line is horizontal" or vertical. In a "Show that" part the result is given, so the credit is for the differentiation and the algebra; write each step. Later, the same skill feeds related rates and second derivatives of implicit curves.

Practice questions

  1. Recall If yy is a differentiable function of xx, which of the following is ddx[y3]\dfrac{d}{dx}\left[y^3\right]?
  • A) 3y23y^2
  • B) 3x23x^2
  • C) 3y2+dydx3y^2 + \dfrac{dy}{dx}
  • D) 3y2dydx3y^2\dfrac{dy}{dx}
Show answer

Answer: D, 3y2dydx3y^2\dfrac{dy}{dx}.

Marking points:

  • y3y^3 is a composite with inside y(x)y(x), so the chain rule multiplies 3y23y^2 by dydx\dfrac{dy}{dx}.
  • A leaves out the factor dydx\dfrac{dy}{dx}, B treats yy as if it were xx, and C adds the factor instead of multiplying.
  1. Recall Find dydx\dfrac{dy}{dx} for the curve x2+4y2=20x^2 + 4y^2 = 20, and the slope of the curve at (2,2)(2, 2).
Show answer

Answer: dydx=−x4y\dfrac{dy}{dx} = -\dfrac{x}{4y}, and the slope at (2,2)(2, 2) is −14-\dfrac{1}{4}.

Marking points:

  • Differentiate: 2x+8ydydx=02x + 8y\dfrac{dy}{dx} = 0, so dydx=−2x8y=−x4y\dfrac{dy}{dx} = -\dfrac{2x}{8y} = -\dfrac{x}{4y}.
  • At (2,2)(2, 2): −28=−14-\dfrac{2}{8} = -\dfrac{1}{4}.
  1. Apply What is the slope of the line tangent to the curve x2+3xy+y2=11x^2 + 3xy + y^2 = 11 at the point (1,2)(1, 2)?
  • A) −87-\dfrac{8}{7}
  • B) −78-\dfrac{7}{8}
  • C) −27-\dfrac{2}{7}
  • D) 87\dfrac{8}{7}
Show answer

Answer: A, −87-\dfrac{8}{7}.

Marking points:

  • Differentiate: 2x+3y+3xdydx+2ydydx=02x + 3y + 3x\dfrac{dy}{dx} + 2y\dfrac{dy}{dx} = 0, so dydx=−2x+3y3x+2y=−2+63+4=−87\dfrac{dy}{dx} = -\dfrac{2x + 3y}{3x + 2y} = -\dfrac{2 + 6}{3 + 4} = -\dfrac{8}{7}.
  • B turns the fraction upside down, C differentiates 3xy3xy as 3xdydx3x\dfrac{dy}{dx} only, and D loses the minus sign.
  1. Apply Write an equation for the line tangent to the curve y2−x3=8y^2 - x^3 = 8 at the point (2,4)(2, 4).
Show answer

Answer: y−4=32(x−2)y - 4 = \dfrac{3}{2}(x - 2), which is y=32x+1y = \dfrac{3}{2}x + 1

Marking points:

  • (2,4)(2, 4) is on the curve: 16−8=816 - 8 = 8.
  • Differentiate: 2ydydx−3x2=02y\dfrac{dy}{dx} - 3x^2 = 0, so dydx=3x22y=128=32\dfrac{dy}{dx} = \dfrac{3x^2}{2y} = \dfrac{12}{8} = \dfrac{3}{2} at (2,4)(2, 4).
  • Point-slope form through (2,4)(2, 4) with slope 32\dfrac{3}{2}.
  1. Apply For the curve x2+y2=6yx^2 + y^2 = 6y, dydx=x3−y\dfrac{dy}{dx} = \dfrac{x}{3 - y}. At which points does the curve have a vertical tangent line?
  • A) (0,0)(0, 0) and (0,6)(0, 6)
  • B) (0,3)(0, 3) only
  • C) (−3,3)(-3, 3) and (3,3)(3, 3)
  • D) (3,3)(3, 3) only
Show answer

Answer: C, (−3,3)(-3, 3) and (3,3)(3, 3).

Marking points:

  • A vertical tangent needs 3−y=03 - y = 0, so y=3y = 3; then x2+9=18x^2 + 9 = 18, so x=±3x = \pm 3, and the numerator xx is not 00 there.
  • A gives the horizontal tangents, B sets the numerator and denominator to 00 together (that point is not on the curve), and D misses x=−3x = -3.
  1. Exam-style What is the value of dydx\dfrac{dy}{dx} at the point (1,2)(1, 2) on the curve y3−xy=6y^3 - xy = 6?
  • A) 00
  • B) 211\dfrac{2}{11}
  • C) 112\dfrac{11}{2}
  • D) 1010
Show answer

Answer: B, 211\dfrac{2}{11}.

Marking points:

  • Differentiate: 3y2dydx−y−xdydx=03y^2\dfrac{dy}{dx} - y - x\dfrac{dy}{dx} = 0, so dydx=y3y2−x=212−1=211\dfrac{dy}{dx} = \dfrac{y}{3y^2 - x} = \dfrac{2}{12 - 1} = \dfrac{2}{11}.
  • A differentiates xyxy as xdydxx\dfrac{dy}{dx} only, C turns the fraction upside down, and D leaves out the dydx\dfrac{dy}{dx} on y3y^3.
  1. Exam-style Consider the curve x2−xy+y2=3x^2 - xy + y^2 = 3. (a) Find dydx\dfrac{dy}{dx} in terms of xx and yy. (b) Write an equation for the line tangent to the curve at (1,2)(1, 2). (c) Find the points on the curve where the tangent line is vertical.
Show answer

Answer: (a) dydx=y−2x2y−x\dfrac{dy}{dx} = \dfrac{y - 2x}{2y - x} (b) y=2y = 2 (c) (2,1)(2, 1) and (−2,−1)(-2, -1)

Marking points:

  • Differentiate: 2x−y−xdydx+2ydydx=02x - y - x\dfrac{dy}{dx} + 2y\dfrac{dy}{dx} = 0, so dydx(2y−x)=y−2x\dfrac{dy}{dx}(2y - x) = y - 2x.
  • At (1,2)(1, 2), which is on the curve since 1−2+4=31 - 2 + 4 = 3, the slope is 2−24−1=0\dfrac{2 - 2}{4 - 1} = 0, so the tangent is the horizontal line y=2y = 2.
  • Vertical: 2y−x=02y - x = 0, so x=2yx = 2y; then 4y2−2y2+y2=3y2=34y^2 - 2y^2 + y^2 = 3y^2 = 3, so y=±1y = \pm 1. The numerator y−2xy - 2x is −3-3 at (2,1)(2, 1) and 33 at (−2,−1)(-2, -1), so neither is 00.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Treat yy as a function of xx: each yy term's derivative is multiplied by dydx\dfrac{dy}{dx}.
  • A term like xyxy needs the product rule: y+xdydxy + x\dfrac{dy}{dx}.
  • Collect the dydx\dfrac{dy}{dx} terms, factor, then divide; an answer in xx and yy is complete.
  • For a slope, substitute both coordinates of a point that is on the curve.
  • With dydx=ND\dfrac{dy}{dx} = \dfrac{N}{D}: horizontal where N=0N = 0, vertical where D=0D = 0, each solved with the curve's equation, and the other part checked to be nonzero.

Keep learning

Prerequisites: The Chain Rule

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Chain Rule, Implicit and Inverse Derivatives

All The Chain Rule and Implicit Differentiation notes

Part of Novark's AP Calculus AB notes