Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
3.1 Chain rule
3.2 Implicit differentiation
3.3 Higher order derivatives
3.4 Logarithmic differentiation
3.5 Derivatives of inverse functions
3.6 Inverse trig derivatives
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
Wrapping up
Achievable logoAchievable logo
3.2 Implicit differentiation
Achievable AP Calculus AB
3. Advanced differentiation
Our AP Calculus AB course is now in "early access" - get 50% off for a limited time.

Implicit differentiation

6 min read
Font
Discuss
Share
Feedback

What you’ll learn

  • How to find dxdy​ with implicit differentiation when x and y are mixed.
  • Recognize when an equation defines y implicitly (not as a function).
  • Identify horizontal and vertical tangent lines using the derivative.

So far, we’ve worked with functions that explicitly define y in terms of x. In other words, each input x produces exactly one output value y.

However, not all equations define y explicitly. Consider the equation for a circle of radius 5:

x2+y2=25

This equation does not define y as a function of x, because some x-values correspond to more than one y-value (the graph fails the vertical line test).

To find derivatives for equations like this, we use implicit differentiation.

How to find dxdy​

Step 1: Recognizing implicit equations

To recognize equations that require implicit differentiation, look for:

  • Terms with x and y multiplied together
  • y appearing multiple times in the equation
  • y being raised to a power somewhere

When you see these features, the equation often represents a curve that fails the vertical line test, so it isn’t a function of x.

Step 2: Differentiate both sides

Differentiate with respect to x on both sides. Use the usual derivative rules, but every time you differentiate a term involving y, immediately multiply it by y′ (or dxdy​).

For example, to implicitly differentiate the equation of a circle:

x2+y2dxd​(x2+y2)2x+2y⋅dxdy​​=25=dxd​(25)=0​

Step 3: Solve for dxdy​

Rearrange the terms to isolate dxdy​:

2y⋅dxdy​dxdy​​=−2x=−2y2x​=−yx​​​

Why does this work?

Implicit differentiation is the chain rule in disguise.

For example, if f(g(x))=(g(x))2, then

f′(x)=2(g(x))⋅g′(x)

When you differentiate y2 with respect to x, you’re treating y as a function of x (even if it isn’t written as y(x)). So:

dxd​(y(x))2=2(y(x))⋅y′(x)

In practice, the inner x is not written, and

dxd​(y2)=2y⋅dxdy​

AP tip:

Don’t forget the chain rule. If the problem asks for the derivative of y with respect to x, then every time you differentiate a term involving y, multiply by y′ or dxdy​ immediately.

Slope of a tangent line

If asked to find the slope of the tangent line at a particular point, it often helps to substitute the values immediately after differentiating, before rearranging to solve for dxdy​.

Find the equation of the line tangent to the curve y2−xy=2x at the point where y=2.

Solution

(spoiler)

First, find the corresponding x-coordinate by plugging in y=2 into the equation.

(2)2−2x=2x4=4xx=1

Next, implicitly differentiate the equation:

2y⋅dxdy​−(x⋅dxdy​+y)=2

Substitute the point (1,2) and then solve for dxdy​:

2(2)⋅dxdy​−(1⋅dxdy​+2)4⋅dxdy​−dxdy​−23⋅dxdy​dxdy​​=2=2=4=34​​

The tangent line to the curve at (1,2) has a slope of 34​, so its equation is

y−2=34​(x−1)

Horizontal and vertical tangent lines

Many past AP exams contained problems that required implicit differentiation to identify tangent lines to curves.

  1. Horizontal tangent lines occur when dxdy​=0. More specifically,

dxdy​==00​

  1. Vertical tangent lines occur when dxdy​ is undefined. More specifically,

dxdy​=0=0​

  1. No tangent line exists where

dxdy​=00​

This case (numerator and denominator both zero) requires further analysis - the point may be a cusp or a node on the curve.

Example

Find where the curve

x2+y2=xy+x

has horizontal or vertical tangent lines.

Answers

(spoiler)
  • Horizontal at (31​,−31​) and (1,1)

  • Vertical at (0,0) and (34​,32​)

Solutions

a) Horizontal tangent lines

(spoiler)

Differentiate implicitly:

2x+2y⋅dxdy​=x⋅dxdy​+y+1

Now solve for dxdy​:

2y⋅dxdy​−x⋅dxdy​dxdy​(2y−x)dxdy​​=−2x+y+1=y+1−2x=2y−x−2x+y+1​​

Horizontal tangents occur when the numerator is 0 (and the denominator is not 0).

Set the numerator equal to 0:

−2x+y+1=0

y=2x−1

To find the points on the curve where y=2x−1, substitute into the original equation and solve for x:

x2+y2x2+(2x−1)2x2+4x2−4x+15x2−4x+13x2−4x+1(3x−1)(x−1)x​=xy+x=x(2x−1)+x=2x2−x+x=2x2=0=0=31​,1​

Now find the corresponding y-values using y=2x−1:

  1. For x=31​,y=−31​

  2. For x=1,y=1

Finally, check the denominator 2y−x at each point. Plugging in (31​,−31​) and (1,1) gives nonzero values, so both points are valid. Therefore, the tangent line is horizontal at both points.

b) Vertical tangent lines

(spoiler)

Vertical tangents occur when the denominator is 0 (and the numerator is not 0).

Set the denominator equal to 0:

2y−xx​=0=2y​

Substitute x=2y into the original equation and solve for y:

x2+y2(2y)2+y24y2+y25y2−2y2−2y3y2−2yy(3y−2)y​=xy+x=(2y)y+2y=2y2+2y=0=0=0=0,32​​

Using x=2y, the candidate points are (0,0) and (34​,32​).

Check the numerator −2x+y+1 at each point. Neither makes the numerator 0, so both points are valid. Therefore, the tangent line is vertical at both points.

Implicit differentiation

  • Used when y is not explicitly defined as a function of x (e.g., x2+y2=25)
  • Signs an equation needs it: x and y multiplied together, y raised to a power, y appearing multiple times

How to find dy/dx

  • Differentiate both sides with respect to x; multiply every y-term by dxdy​ (chain rule)
  • Collect dxdy​ terms, then solve algebraically
  • Example: x2+y2=25⇒dxdy​=−yx​

Tangent line at a point

  • Substitute the given point after differentiating to find slope
  • Use point-slope form: y−y1​=m(x−x1​)

Horizontal vs. vertical tangent lines

  • Horizontal: numerator of dxdy​=0, denominator =0
  • Vertical: denominator of dxdy​=0, numerator =0
  • Both zero: no tangent line (requires further analysis — possible cusp or node)

Finding tangent line locations

  • Set numerator or denominator to zero → get a relationship between x and y
  • Substitute back into the original equation to find exact points
  • Verify the other part (numerator/denominator) is nonzero at each candidate point

Sign up for free to take 7 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Implicit differentiation

What you’ll learn

  • How to find dxdy​ with implicit differentiation when x and y are mixed.
  • Recognize when an equation defines y implicitly (not as a function).
  • Identify horizontal and vertical tangent lines using the derivative.

So far, we’ve worked with functions that explicitly define y in terms of x. In other words, each input x produces exactly one output value y.

However, not all equations define y explicitly. Consider the equation for a circle of radius 5:

x2+y2=25

This equation does not define y as a function of x, because some x-values correspond to more than one y-value (the graph fails the vertical line test).

To find derivatives for equations like this, we use implicit differentiation.

How to find dxdy​

Step 1: Recognizing implicit equations

To recognize equations that require implicit differentiation, look for:

  • Terms with x and y multiplied together
  • y appearing multiple times in the equation
  • y being raised to a power somewhere

When you see these features, the equation often represents a curve that fails the vertical line test, so it isn’t a function of x.

Step 2: Differentiate both sides

Differentiate with respect to x on both sides. Use the usual derivative rules, but every time you differentiate a term involving y, immediately multiply it by y′ (or dxdy​).

For example, to implicitly differentiate the equation of a circle:

x2+y2dxd​(x2+y2)2x+2y⋅dxdy​​=25=dxd​(25)=0​

Step 3: Solve for dxdy​

Rearrange the terms to isolate dxdy​:

2y⋅dxdy​dxdy​​=−2x=−2y2x​=−yx​​​

Why does this work?

Implicit differentiation is the chain rule in disguise.

For example, if f(g(x))=(g(x))2, then

f′(x)=2(g(x))⋅g′(x)

When you differentiate y2 with respect to x, you’re treating y as a function of x (even if it isn’t written as y(x)). So:

dxd​(y(x))2=2(y(x))⋅y′(x)

In practice, the inner x is not written, and

dxd​(y2)=2y⋅dxdy​

AP tip:

Don’t forget the chain rule. If the problem asks for the derivative of y with respect to x, then every time you differentiate a term involving y, multiply by y′ or dxdy​ immediately.

Slope of a tangent line

If asked to find the slope of the tangent line at a particular point, it often helps to substitute the values immediately after differentiating, before rearranging to solve for dxdy​.

Find the equation of the line tangent to the curve y2−xy=2x at the point where y=2.

Solution

(spoiler)

First, find the corresponding x-coordinate by plugging in y=2 into the equation.

(2)2−2x=2x4=4xx=1

Next, implicitly differentiate the equation:

2y⋅dxdy​−(x⋅dxdy​+y)=2

Substitute the point (1,2) and then solve for dxdy​:

2(2)⋅dxdy​−(1⋅dxdy​+2)4⋅dxdy​−dxdy​−23⋅dxdy​dxdy​​=2=2=4=34​​

The tangent line to the curve at (1,2) has a slope of 34​, so its equation is

y−2=34​(x−1)

Horizontal and vertical tangent lines

Many past AP exams contained problems that required implicit differentiation to identify tangent lines to curves.

  1. Horizontal tangent lines occur when dxdy​=0. More specifically,

dxdy​==00​

  1. Vertical tangent lines occur when dxdy​ is undefined. More specifically,

dxdy​=0=0​

  1. No tangent line exists where

dxdy​=00​

This case (numerator and denominator both zero) requires further analysis - the point may be a cusp or a node on the curve.

Example

Find where the curve

x2+y2=xy+x

has horizontal or vertical tangent lines.

Answers

(spoiler)
  • Horizontal at (31​,−31​) and (1,1)

  • Vertical at (0,0) and (34​,32​)

Solutions

a) Horizontal tangent lines

(spoiler)

Differentiate implicitly:

2x+2y⋅dxdy​=x⋅dxdy​+y+1

Now solve for dxdy​:

2y⋅dxdy​−x⋅dxdy​dxdy​(2y−x)dxdy​​=−2x+y+1=y+1−2x=2y−x−2x+y+1​​

Horizontal tangents occur when the numerator is 0 (and the denominator is not 0).

Set the numerator equal to 0:

−2x+y+1=0

y=2x−1

To find the points on the curve where y=2x−1, substitute into the original equation and solve for x:

x2+y2x2+(2x−1)2x2+4x2−4x+15x2−4x+13x2−4x+1(3x−1)(x−1)x​=xy+x=x(2x−1)+x=2x2−x+x=2x2=0=0=31​,1​

Now find the corresponding y-values using y=2x−1:

  1. For x=31​,y=−31​

  2. For x=1,y=1

Finally, check the denominator 2y−x at each point. Plugging in (31​,−31​) and (1,1) gives nonzero values, so both points are valid. Therefore, the tangent line is horizontal at both points.

b) Vertical tangent lines

(spoiler)

Vertical tangents occur when the denominator is 0 (and the numerator is not 0).

Set the denominator equal to 0:

2y−xx​=0=2y​

Substitute x=2y into the original equation and solve for y:

x2+y2(2y)2+y24y2+y25y2−2y2−2y3y2−2yy(3y−2)y​=xy+x=(2y)y+2y=2y2+2y=0=0=0=0,32​​

Using x=2y, the candidate points are (0,0) and (34​,32​).

Check the numerator −2x+y+1 at each point. Neither makes the numerator 0, so both points are valid. Therefore, the tangent line is vertical at both points.

Key points

Implicit differentiation

  • Used when y is not explicitly defined as a function of x (e.g., x2+y2=25)
  • Signs an equation needs it: x and y multiplied together, y raised to a power, y appearing multiple times

How to find dy/dx

  • Differentiate both sides with respect to x; multiply every y-term by dxdy​ (chain rule)
  • Collect dxdy​ terms, then solve algebraically
  • Example: x2+y2=25⇒dxdy​=−yx​

Tangent line at a point

  • Substitute the given point after differentiating to find slope
  • Use point-slope form: y−y1​=m(x−x1​)

Horizontal vs. vertical tangent lines

  • Horizontal: numerator of dxdy​=0, denominator =0
  • Vertical: denominator of dxdy​=0, numerator =0
  • Both zero: no tangent line (requires further analysis — possible cusp or node)

Finding tangent line locations

  • Set numerator or denominator to zero → get a relationship between x and y
  • Substitute back into the original equation to find exact points
  • Verify the other part (numerator/denominator) is nonzero at each candidate point

More from Advanced differentiation

  • Chain rule
  • Higher order derivatives
  • Logarithmic differentiation
  • Derivatives of inverse functions
  • Inverse trig derivatives