Implicit Differentiation: Step-by-Step Examples & AP Practice

Standard differentiation needs yy written as a function of xx (like y=x2y = x^2). Implicit differentiation finds dydx\frac{dy}{dx} even when xx and yy are mixed together, like x2+xy+y2=3x^2 + xy + y^2 = 3. It is how you find tangent lines, horizontal and vertical tangents, and second derivatives of curves on the AP Calculus AB exam.

Core Theorem
Treat yy as a function of xx. Differentiate both sides with respect to xx, and apply the Chain Rule to every term that contains yy:
ddx[f(y)]=f′(y)⋅dydx\frac{d}{dx}\big[f(y)\big] = f'(y) \cdot \frac{dy}{dx}
For example, ddx(y3)=3y2dydx\frac{d}{dx}(y^3) = 3y^2 \frac{dy}{dx} and ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}.
Step-by-Step SOP
  1. 1

    Differentiate both sides

    Take ddx\frac{d}{dx} of every term on both sides of the equation. A constant on either side becomes 00.
  2. 2

    Chain Rule on every y

    Each term with yy gets a dydx\frac{dy}{dx}: ddx(yn)=nyn−1dydx\frac{d}{dx}(y^n) = ny^{n-1}\frac{dy}{dx}. Terms like xyxy or x2yx^2y also need the Product Rule.
  3. 3

    Collect the dy/dx terms

    Move every term containing dydx\frac{dy}{dx} to one side and everything else to the other side.
  4. 4

    Factor and solve

    Factor out dydx\frac{dy}{dx} and divide. Your answer can (and usually will) contain both xx and yy.
  5. 5

    Plug in the point (if asked)

    To get a slope at a point, substitute both coordinates (x,y)(x, y). On the AP exam you may plug in before solving for dydx\frac{dy}{dx} if it makes the algebra easier.

Practice Exercises


Example 01Easy
Find the equation of the tangent line to the circle x2+y2=25x^2 + y^2 = 25 at the point (3,−4)(3, -4).
NEED A HINT?
Differentiate both sides with respect to xx. The derivative of the constant 2525 is 00.
SHOW DETAILED EXPLANATION

Step 1: Differentiate both sides

ddx(x2)+ddx(y2)=ddx(25)\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25) gives 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0.

Step 2: Solve for dy/dx

2ydydx=−2x2y\frac{dy}{dx} = -2x, so dydx=−xy\frac{dy}{dx} = -\frac{x}{y}.

Step 3: Slope at the point

At (3,−4)(3, -4): dydx=−3−4=34\frac{dy}{dx} = -\frac{3}{-4} = \frac{3}{4}.

Step 4: Tangent line

Point-slope form: y+4=34(x−3)y + 4 = \frac{3}{4}(x - 3).
Example 02Easy
Find dydx\frac{dy}{dx} if y2=12x+5y^2 = \frac{1}{2x + 5}.
NEED A HINT?
Rewrite the right side as (2x+5)−1(2x+5)^{-1} and use the Chain Rule on both sides.
SHOW DETAILED EXPLANATION

Step 1: Rewrite

y2=(2x+5)−1y^2 = (2x + 5)^{-1}.

Step 2: Differentiate both sides

Left: 2ydydx2y\frac{dy}{dx}. Right: −(2x+5)−2⋅2=−2(2x+5)2-(2x+5)^{-2} \cdot 2 = -\frac{2}{(2x+5)^2}.

Step 3: Solve for dy/dx

2ydydx=−2(2x+5)22y\frac{dy}{dx} = -\frac{2}{(2x+5)^2}, so dydx=−1y(2x+5)2\frac{dy}{dx} = -\frac{1}{y(2x+5)^2}.

Check with the explicit form

For the upper branch y=(2x+5)−1/2y = (2x+5)^{-1/2}, the formula gives −1(2x+5)−1/2(2x+5)2=−(2x+5)−3/2-\frac{1}{(2x+5)^{-1/2}(2x+5)^{2}} = -(2x+5)^{-3/2}, which matches differentiating y=(2x+5)−1/2y = (2x+5)^{-1/2} directly.

If the equation is y² = ½x + 5 instead

Then 2ydydx=122y\frac{dy}{dx} = \frac{1}{2}, so dydx=14y\frac{dy}{dx} = \frac{1}{4y}. Read the problem carefully: 12x+5\frac{1}{2x+5} and 12x+5\frac{1}{2}x + 5 are different curves.
Example 03Medium
Find dydx\frac{dy}{dx} for the curve x3+y3=6xyx^3 + y^3 = 6xy (the Folium of Descartes).
NEED A HINT?
The term 6xy6xy is a product of 6x6x and yy, so it needs the Product Rule.
SHOW DETAILED EXPLANATION

Step 1: Differentiate the left side

ddx(x3+y3)=3x2+3y2dydx\frac{d}{dx}(x^3 + y^3) = 3x^2 + 3y^2\frac{dy}{dx}.

Step 2: Differentiate the right side (Product Rule)

ddx(6xy)=6y+6xdydx\frac{d}{dx}(6xy) = 6y + 6x\frac{dy}{dx}.

Step 3: Collect the dy/dx terms

3y2dydx−6xdydx=6y−3x23y^2\frac{dy}{dx} - 6x\frac{dy}{dx} = 6y - 3x^2.

Step 4: Factor and solve

dydx(3y2−6x)=6y−3x2\frac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2, so dydx=2y−x2y2−2x\frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}.
Example 04AB/BC Standard
AP FRQ style. Consider the curve x2+xy+y2=3x^2 + xy + y^2 = 3.
(a) Show that
dydx=−2x+yx+2y\frac{dy}{dx} = -\frac{2x + y}{x + 2y}.
(b) Write the equation of the tangent line at
(1,1)(1, 1).
(c) Find all points on the curve where the tangent line is horizontal.
(d) Find all points where the tangent line is vertical.
(e) Find
d2ydx2\frac{d^2y}{dx^2} at (1,1)(1, 1).
NEED A HINT?
Horizontal tangent: numerator of dydx\frac{dy}{dx} is 00 (denominator not 00). Vertical tangent: denominator is 00 (numerator not 00). Each time, substitute back into the original equation to find the actual points.
SHOW DETAILED EXPLANATION

(a) Differentiate implicitly

2x+(y+xdydx)+2ydydx=02x + \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0. So dydx(x+2y)=−(2x+y)\frac{dy}{dx}(x + 2y) = -(2x + y) and dydx=−2x+yx+2y\frac{dy}{dx} = -\frac{2x + y}{x + 2y}.

(b) Tangent line at (1, 1)

Check the point: 1+1+1=31 + 1 + 1 = 3. Slope: −2+11+2=−1-\frac{2+1}{1+2} = -1. Tangent line: y−1=−(x−1)y - 1 = -(x - 1).

(c) Horizontal tangents

Set the numerator to 00: 2x+y=02x + y = 0, so y=−2xy = -2x. Substitute: x2+x(−2x)+4x2=3x2=3x^2 + x(-2x) + 4x^2 = 3x^2 = 3, so x=±1x = \pm 1. Points: (1,−2)(1, -2) and (−1,2)(-1, 2). The denominator x+2yx + 2y is −3-3 and 33 there, not 00, so both are horizontal tangents.

(d) Vertical tangents

Set the denominator to 00: x=−2yx = -2y. Substitute: 4y2−2y2+y2=3y2=34y^2 - 2y^2 + y^2 = 3y^2 = 3, so y=±1y = \pm 1. Points: (−2,1)(-2, 1) and (2,−1)(2, -1). The numerator 2x+y2x + y is −3-3 and 33 there, not 00, so both are vertical tangents.

(e) Second derivative at (1, 1)

Differentiate 2x+y+xdydx+2ydydx=02x + y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0 again: 2+2dydx+xd2ydx2+2(dydx)2+2yd2ydx2=02 + 2\frac{dy}{dx} + x\frac{d^2y}{dx^2} + 2\left(\frac{dy}{dx}\right)^2 + 2y\frac{d^2y}{dx^2} = 0. At (1,1)(1, 1) with dydx=−1\frac{dy}{dx} = -1: 2−2+d2ydx2+2+2d2ydx2=02 - 2 + \frac{d^2y}{dx^2} + 2 + 2\frac{d^2y}{dx^2} = 0, so 3d2ydx2=−23\frac{d^2y}{dx^2} = -2 and d2ydx2=−23\frac{d^2y}{dx^2} = -\frac{2}{3}. The curve is concave down there.
Example 05Medium
Practice: Find the slope of the tangent line to x2y+y3=10x^2 y + y^3 = 10 at the point (3,1)(3, 1).
NEED A HINT?
x2yx^2 y needs the Product Rule. Check that (3,1)(3, 1) is on the curve first: 9+1=109 + 1 = 10.
SHOW DETAILED EXPLANATION

Step 1: Differentiate

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

Step 2: Plug in the point first

At (3,1)(3, 1): 6+9dydx+3dydx=06 + 9\frac{dy}{dx} + 3\frac{dy}{dx} = 0, so 12dydx=−612\frac{dy}{dx} = -6.

Answer

dydx=−12\frac{dy}{dx} = -\frac{1}{2} at (3,1)(3, 1).
Common Pitfalls
  • ⚠
    Forgetting dy/dx on y termsddx(y2)\frac{d}{dx}(y^2) is 2ydydx2y\frac{dy}{dx}, not 2y2y. yy is a function of xx, so it never disappears without leaving a dydx\frac{dy}{dx} behind.
  • ⚠
    Skipping the Product Ruleddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}. Writing just dydx\frac{dy}{dx} or 1⋅dydx1 \cdot \frac{dy}{dx} is the most common lost point.
  • ⚠
    Not differentiating the constantIn x2+y2=25x^2 + y^2 = 25, the right side becomes 00, not 2525.
  • ⚠
    Horizontal and vertical tangents without checkingA horizontal tangent needs numerator =0= 0 AND denominator ≠0\neq 0 (vertical is the reverse). If both are 00, the test is inconclusive. Also substitute back into the original equation: a point must be on the curve.
  • ⚠
    Second derivative with dy/dx left inWhen you find d2ydx2\frac{d^2y}{dx^2}, substitute your expression or value for dydx\frac{dy}{dx} back in. AP graders expect the final answer in terms of xx and yy (or a number).
Frequently Asked Questions

What is implicit differentiation used for?

It finds dydx\frac{dy}{dx} when an equation mixes xx and yy and you can't (or don't want to) solve for yy first, such as circles, ellipses and curves like x3+y3=6xyx^3 + y^3 = 6xy. On the AP exam it is used for tangent lines, horizontal and vertical tangents, concavity, and related rates.

Why do you multiply by dy/dx when differentiating y?

Because yy is secretly a function of xx. Differentiating y2y^2 with respect to xx is the Chain Rule: the outside derivative 2y2y times the inside derivative dydx\frac{dy}{dx}.

How do you find horizontal and vertical tangent lines with implicit differentiation?

Write dydx\frac{dy}{dx} as a fraction. Horizontal tangents: set the numerator equal to 00, solve together with the original equation, and check the denominator is not 00. Vertical tangents: set the denominator equal to 00 and check the numerator is not 00.

How do you find the second derivative implicitly?

Differentiate the equation (or your dydx\frac{dy}{dx} formula) again with respect to xx, remembering that every yy and every dydx\frac{dy}{dx} needs the Chain Rule. Then substitute the known value of dydx\frac{dy}{dx}. Example (e) above shows the full process.

Is implicit differentiation on the AP Calculus AB exam?

Yes. It is part of Unit 3 (Differentiation: Composite, Implicit, and Inverse Functions) and shows up in multiple choice and in free-response questions about curves. See the real past AP questions linked below.

Ready to test it?

Practice Derivatives multiple-choice questions, timed and fully explained.

MCQ Practice

On the AP exam

See how this shows up on the free-response section: step-by-step method, scoring tips and practice.

FRQ Practice

Past AP Exams

Real AP exam questions on this topic

Official AP Calculus AB free-response questions, each with a full step-by-step solution.

In the 30-Day AP Calc AB Plan

Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.

Recommended Learning Path

Want a Structured Way to Score a 5 in ap calculus ab?

Don not learn in fragments. Follow our proven 30-day roadmap that connects every concept from Limits to Integrals.

Start Your 30-Day Journey →

Join thousands of students mastering AP Calculus with us.