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 Logarithmic differentiation
3.4 Derivatives of inverse functions
3.5 Inverse trig derivatives
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
3.2 Implicit differentiation
Achievable AP Calculus AB
3. Advanced differentiation
Our AP Calculus AB course is currently in development and is a work-in-progress.

Implicit differentiation

10 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.
  • Calculate higher-order derivatives implicitly.

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:

xy2+y=1

This equation describes a curve, not a function, because some x-values correspond to more than one y-value. If you graph it, it fails the vertical line test.

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

Step-by-step process

  1. Start with the equation:

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.

For example, a circle of radius 5 can’t be described by a single function y=f(x), but it can be described by the equation:

x2+y2=25

  1. 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, multiply by y′ (or dxdy​) right away.

For the circle:

dxd​(x2+y2)=dxd​(25)

2x+2y⋅dxdy​=0

  1. Solve for dxdy​:

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

Why does this work?

Implicit differentiation is really 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, we usually drop the explicit (x) and write:

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.

On the AP exam, you’ll often use 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​

Example

Find where the curve

x2+y2=xy+x

has horizontal or vertical tangent lines.

Solution

Answer:

  • Horizontal: (31​,−31​) and (1,1)
  • Vertical: (0,0) and (34​,32​)

Differentiate implicitly:

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

Now solve for dxdy​:

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

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

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

1. Horizontal tangent line(s):

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

and require the denominator

2y−x=0

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

x2+y2=xy+x

x2+(2x−1)2=x(2x−1)+x

x2+(2x−1)2=2x2−x+x

x2+(2x−1)2−2x2=0

(2x−1)2−x2=0

Factor as a difference of squares:

[(2x−1)+x][(2x−1)−x]=0

(3x−1)(x−1)=0

x=31​,1

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

y=−31​ for x=31​ and

y=1 for x=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.

2. Vertical tangent line(s):

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

Set the denominator equal to 0:

2y−x=0x=2y

and require the numerator

−2x+y+1=0

Substitute x=2y into the original equation:

x2+y2=xy+x

(2y)2+y2=(2y)y+2y

4y2+y2=2y2+2y

5y2−2y2−2y=0

3y2−2y=0

y(3y−2)=0

y=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.

Higher order derivatives

So far, we’ve found first derivatives. A first derivative tells you how y changes as x changes (graphically, whether the curve is increasing or decreasing as you move left to right).

The second derivative is the derivative of the first derivative. It tells you how the rate of change is changing.

For example, if f(x)=x2, then

f′(x)=2x

f′′(x)=2

A major application of the second derivative comes later. For now, let’s find the second derivative of a curve using implicit differentiation.

Use the circle from earlier:

x2+y2=25

We already found

dxdy​=−yx​

Differentiate both sides again with respect to x:

dxd​(dxdy​)=dxd​(−yx​)

The left side becomes dx2d2y​, which is the notation for the second derivative.

On the right side, use the quotient rule. Remember: when you differentiate a term involving y with respect to x, you need the chain rule, so a factor of dxdy​ appears.

dx2d2y​=−(y2y⋅1−x⋅1⋅dxdy​​)

=y2−y+x⋅dxdy​​

Now substitute −yx​ for dxdy​:

dx2d2y​=y2−y+x(−yx​)​

=y2−y−yx2​​

Simplify:

dx2d2y​=y2−yy2​−yx2​​

=y2−yx2+y2​​

=−y3x2+y2​

Because the original equation tells us x2+y2=25, we can also write:

dx2d2y​=−y325​

Later, you’ll use second derivatives like this to analyze the curve’s shape (here, the curve is a circle).

Challenge problems

  1. Find where the curve

ln(xy)=y

has horizontal or vertical tangent lines.

Solution

(spoiler)

Answer: Vertical tangent line at (e,1) but no horizontal tangent line

Differentiate implicitly:

xy1​(x⋅dxdy​+y)=dxdy​

Distribute:

xyx⋅dxdy​​+xyy​=dxdy​

Cancel:

ydxdy​​+x1​=dxdy​

Solve for dxdy​:

ydxdy​​−dxdy​=x1​

dxdy​(y1​−1)=x1​

dxdy​(y1−y​)=x1​

dxdy​=x(1−y)y​

1. Horizontal tangent(s)

Horizontal tangents occur when the numerator y=0 and the denominator x(1−y)=0.

Substitute y=0 into the original equation:

ln(0)=0

This is impossible because ln(xy) is only defined when xy>0. That means:

  • x and y must have the same sign (both positive or both negative)
  • neither x nor y can be 0

So there is no horizontal tangent line.

2. Vertical tangent(s)

Vertical tangents occur when the denominator x(1−y)=0 and the numerator y=0.

For x(1−y)=0, either x=0 or 1−y=0.

The domain restriction xy>0 rules out x=0, so we focus on 1−y=0, which means y=1.

Use the original equation to find the corresponding x:

ln(x⋅1)=1

ln(x)=1

e1=x

At (e,1), the denominator x(1−y) is 0 and the numerator y is 1 (nonzero). Therefore, there is a vertical tangent line at (e,1)​.

  1. Consider the curve defined by the equation:

ax2+bxy+y2=12

where a and b are constants. If the tangent line to the curve at the point (2,4) has a slope of 1, find the values of a and b.

Solution

(spoiler)

Differentiating implicitly (noting that a and b are constants and can be pulled to the front):

a(2x)+b(x⋅dxdy​+y)+2y⋅dxdy​=0

2ax+bx⋅dxdy​+by+2y⋅dxdy​=0

Solving for dxdy​,

dxdy​(bx+2y)=−2ax−by

dxdy​=bx+2y−2ax−by​

If the tangent line at (2,4) has slope 1, then dxdy​=1 when x=2 and y=4. Substitute these values:

1=b(2)+2(4)−2a(2)−b(4)​

1=2b+8−4a−4b​

2b+8=−4a−4b

6b+8=−4a

This is one equation relating a and b. To get a second equation, use the original curve equation at (2,4):

ax2+bxy+y2=12

a(2)2+b(2)(4)+(4)2=12

4a+8b=−4

Solve the system of equations

6b+8=−4a4a+8b=−4​​

to obtain

a=−5b=2

Implicit differentiation basics

  • Used when y and x are mixed or y not isolated
  • Differentiate both sides with respect to x
  • Each y term: multiply by dxdy​ (chain rule)

Identifying implicit equations

  • Look for x and y multiplied together
  • y appears multiple times or raised to a power
  • Often fails vertical line test (not a function)

Solving for dxdy​

  • After differentiating, collect all dxdy​ terms
  • Solve algebraically for dxdy​

Horizontal and vertical tangent lines

  • Horizontal tangent: numerator of dxdy​ is 0, denominator =0
  • Vertical tangent: denominator of dxdy​ is 0, numerator =0
  • No tangent: both numerator and denominator 0

Higher-order derivatives (implicit)

  • Differentiate dxdy​ again with respect to x
  • Use quotient rule and chain rule for y terms
  • Substitute dxdy​ as needed to simplify

Example: x2+y2=xy+x

  • dxdy​=2y−x−2x+y+1​
  • Horizontal tangents: (31​,−31​), (1,1)
  • Vertical tangents: (0,0), (34​,32​)

Example: x2+y2=25 (circle)

  • dxdy​=−yx​
  • dx2d2y​=−y3x2+y2​=−y325​

AP tip

  • Always apply chain rule to y terms: multiply by y′ or dxdy​

Challenge problem 1: ln(xy)=y

  • dxdy​=x(1−y)y​
  • Vertical tangent at (e,1)
  • No horizontal tangent (domain restriction)

Challenge problem 2: ax2+bxy+y2=12 at (2,4), slope 1

  • dxdy​=bx+2y−2ax−by​
  • At (2,4), a=−5, b=2

Sign up for free to take 8 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.
  • Calculate higher-order derivatives implicitly.

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:

xy2+y=1

This equation describes a curve, not a function, because some x-values correspond to more than one y-value. If you graph it, it fails the vertical line test.

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

Step-by-step process

  1. Start with the equation:

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.

For example, a circle of radius 5 can’t be described by a single function y=f(x), but it can be described by the equation:

x2+y2=25

  1. 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, multiply by y′ (or dxdy​) right away.

For the circle:

dxd​(x2+y2)=dxd​(25)

2x+2y⋅dxdy​=0

  1. Solve for dxdy​:

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

Why does this work?

Implicit differentiation is really 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, we usually drop the explicit (x) and write:

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.

On the AP exam, you’ll often use 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​

Example

Find where the curve

x2+y2=xy+x

has horizontal or vertical tangent lines.

Solution

Answer:

  • Horizontal: (31​,−31​) and (1,1)
  • Vertical: (0,0) and (34​,32​)

Differentiate implicitly:

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

Now solve for dxdy​:

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

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

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

1. Horizontal tangent line(s):

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

and require the denominator

2y−x=0

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

x2+y2=xy+x

x2+(2x−1)2=x(2x−1)+x

x2+(2x−1)2=2x2−x+x

x2+(2x−1)2−2x2=0

(2x−1)2−x2=0

Factor as a difference of squares:

[(2x−1)+x][(2x−1)−x]=0

(3x−1)(x−1)=0

x=31​,1

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

y=−31​ for x=31​ and

y=1 for x=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.

2. Vertical tangent line(s):

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

Set the denominator equal to 0:

2y−x=0x=2y

and require the numerator

−2x+y+1=0

Substitute x=2y into the original equation:

x2+y2=xy+x

(2y)2+y2=(2y)y+2y

4y2+y2=2y2+2y

5y2−2y2−2y=0

3y2−2y=0

y(3y−2)=0

y=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.

Higher order derivatives

So far, we’ve found first derivatives. A first derivative tells you how y changes as x changes (graphically, whether the curve is increasing or decreasing as you move left to right).

The second derivative is the derivative of the first derivative. It tells you how the rate of change is changing.

For example, if f(x)=x2, then

f′(x)=2x

f′′(x)=2

A major application of the second derivative comes later. For now, let’s find the second derivative of a curve using implicit differentiation.

Use the circle from earlier:

x2+y2=25

We already found

dxdy​=−yx​

Differentiate both sides again with respect to x:

dxd​(dxdy​)=dxd​(−yx​)

The left side becomes dx2d2y​, which is the notation for the second derivative.

On the right side, use the quotient rule. Remember: when you differentiate a term involving y with respect to x, you need the chain rule, so a factor of dxdy​ appears.

dx2d2y​=−(y2y⋅1−x⋅1⋅dxdy​​)

=y2−y+x⋅dxdy​​

Now substitute −yx​ for dxdy​:

dx2d2y​=y2−y+x(−yx​)​

=y2−y−yx2​​

Simplify:

dx2d2y​=y2−yy2​−yx2​​

=y2−yx2+y2​​

=−y3x2+y2​

Because the original equation tells us x2+y2=25, we can also write:

dx2d2y​=−y325​

Later, you’ll use second derivatives like this to analyze the curve’s shape (here, the curve is a circle).

Challenge problems

  1. Find where the curve

ln(xy)=y

has horizontal or vertical tangent lines.

Solution

(spoiler)

Answer: Vertical tangent line at (e,1) but no horizontal tangent line

Differentiate implicitly:

xy1​(x⋅dxdy​+y)=dxdy​

Distribute:

xyx⋅dxdy​​+xyy​=dxdy​

Cancel:

ydxdy​​+x1​=dxdy​

Solve for dxdy​:

ydxdy​​−dxdy​=x1​

dxdy​(y1​−1)=x1​

dxdy​(y1−y​)=x1​

dxdy​=x(1−y)y​

1. Horizontal tangent(s)

Horizontal tangents occur when the numerator y=0 and the denominator x(1−y)=0.

Substitute y=0 into the original equation:

ln(0)=0

This is impossible because ln(xy) is only defined when xy>0. That means:

  • x and y must have the same sign (both positive or both negative)
  • neither x nor y can be 0

So there is no horizontal tangent line.

2. Vertical tangent(s)

Vertical tangents occur when the denominator x(1−y)=0 and the numerator y=0.

For x(1−y)=0, either x=0 or 1−y=0.

The domain restriction xy>0 rules out x=0, so we focus on 1−y=0, which means y=1.

Use the original equation to find the corresponding x:

ln(x⋅1)=1

ln(x)=1

e1=x

At (e,1), the denominator x(1−y) is 0 and the numerator y is 1 (nonzero). Therefore, there is a vertical tangent line at (e,1)​.

  1. Consider the curve defined by the equation:

ax2+bxy+y2=12

where a and b are constants. If the tangent line to the curve at the point (2,4) has a slope of 1, find the values of a and b.

Solution

(spoiler)

Differentiating implicitly (noting that a and b are constants and can be pulled to the front):

a(2x)+b(x⋅dxdy​+y)+2y⋅dxdy​=0

2ax+bx⋅dxdy​+by+2y⋅dxdy​=0

Solving for dxdy​,

dxdy​(bx+2y)=−2ax−by

dxdy​=bx+2y−2ax−by​

If the tangent line at (2,4) has slope 1, then dxdy​=1 when x=2 and y=4. Substitute these values:

1=b(2)+2(4)−2a(2)−b(4)​

1=2b+8−4a−4b​

2b+8=−4a−4b

6b+8=−4a

This is one equation relating a and b. To get a second equation, use the original curve equation at (2,4):

ax2+bxy+y2=12

a(2)2+b(2)(4)+(4)2=12

4a+8b=−4

Solve the system of equations

6b+8=−4a4a+8b=−4​​

to obtain

a=−5b=2

Key points

Implicit differentiation basics

  • Used when y and x are mixed or y not isolated
  • Differentiate both sides with respect to x
  • Each y term: multiply by dxdy​ (chain rule)

Identifying implicit equations

  • Look for x and y multiplied together
  • y appears multiple times or raised to a power
  • Often fails vertical line test (not a function)

Solving for dxdy​

  • After differentiating, collect all dxdy​ terms
  • Solve algebraically for dxdy​

Horizontal and vertical tangent lines

  • Horizontal tangent: numerator of dxdy​ is 0, denominator =0
  • Vertical tangent: denominator of dxdy​ is 0, numerator =0
  • No tangent: both numerator and denominator 0

Higher-order derivatives (implicit)

  • Differentiate dxdy​ again with respect to x
  • Use quotient rule and chain rule for y terms
  • Substitute dxdy​ as needed to simplify

Example: x2+y2=xy+x

  • dxdy​=2y−x−2x+y+1​
  • Horizontal tangents: (31​,−31​), (1,1)
  • Vertical tangents: (0,0), (34​,32​)

Example: x2+y2=25 (circle)

  • dxdy​=−yx​
  • dx2d2y​=−y3x2+y2​=−y325​

AP tip

  • Always apply chain rule to y terms: multiply by y′ or dxdy​

Challenge problem 1: ln(xy)=y

  • dxdy​=x(1−y)y​
  • Vertical tangent at (e,1)
  • No horizontal tangent (domain restriction)

Challenge problem 2: ax2+bxy+y2=12 at (2,4), slope 1

  • dxdy​=bx+2y−2ax−by​
  • At (2,4), a=−5, b=2