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
10. test
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, which means every input x produces only one output value y.

However, not all equations define y explicitly. Consider the equation:

xy2+y=1

This is a curve and not a function because some inputs x correspond to multiple output values of y. Graphing it shows that it does not pass the vertical line test.

Finding the derivative of equations like these requires a process called implicit differentiation.

Step-by-step process

1. Start with the equation:

To recognize the types of 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

Then the equation is probably a curve that fails the vertical line test and is not a function. For example, a circle of radius 5 can’t be described by a single function, but by the equation:

x2+y2=25

2. Differentiate both sides:

Use basic derivative rules on both y and x but whenever you take the derivative of any term with y in it, immediately multiply it by y′ (or dxdy​).

Differentiating the equation of the circle above:

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

2x+2y⋅dxdy​=0

3. Solve for dxdy​:

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

Why does this work?

Implicit differentiation relies on the chain rule, which applies to composite functions.

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

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

Similarly, being asked to differentiate y2 with respect to x implies that output y changes as x changes. So y is treated as a function of x.

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

But the inner “x” can be dropped as a shorthand notation, and y′(x) is also dxdy​, so

dxd​(y2)=2y⋅dxdy​

AP tip:

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

On the AP exam, expect to apply 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​)

Differentiating implicitly,

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

Solving 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):

These occur when the numerator equals 0

−2x+y+1=0

y=2x−1

and the denominator

2y−x=0

To find the points that satisfy y=2x−1, substitute back 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 this difference of squares as a shortcut:

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

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

x=31​,1

Then the corresponding y-coordinates, using y=2x−1, are:

y=−31​ for x=31​ and

y=1 for x=1

Plugging the points (31​,−31​) and (1,1) individually into the denominator of the derivative 2y−x results in non-zero values. So both of these points are valid and the line tangent to each is horizontal.

2. Vertical tangent line(s):

These occur when the numerator

2y−x=0x=2y

and the denominator

−2x+y+1=0

Plugging x=2y back 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 potential points are (0,0) and (34​,32​). Checking the denominator −2x+y+1, neither of those points result in 0 so both are valid and the tangent line to the curve at each is vertical.

Higher order derivatives

So far, we’ve only calculated 1st derivatives, which give information on how a function is changing (or graphically, whether it’s increasing or decreasing as you move from left to right). The 2nd derivative, found by differentiating the 1st derivative, tells us how the rate of change itself is changing. For example, if f(x)=x2, then

f′(x)=2x

f′′(x)=2

A very important application of the 2nd derivative will be covered in later sections, but for now let’s find the 2nd derivative of a curve that requires implicit differentiation.

Take the equation of the circle of radius 5 from the beginning:

x2+y2=25

Its derivative was shown to be

dxdy​=−yx​

The 2nd derivative is found by taking the derivative of both sides, again with respect to x:

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

The left side “becomes” dx2d2y​ which is the notation for the 2nd derivative. Although the two fractions aren’t actually being multiplied, the fact that it appears that way makes it easier to remember.

On the right side, apply the quotient rule. Remember that differentiating any term with y with respect to x requires the chain rule (so multiply by dxdy​ immediately after).

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

=y2−y+x⋅dxdy​​

Now substitute −yx​ for dxdy​:

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

=y2−y−yx2​​

Simplifying,

dx2d2y​=y2−yy2​−yx2​​

=y2−yx2+y2​​

=−y3x2+y2​

Lastly, we could substitute 25 for x2+y2 since that was defined by the original equation, so that

dx2d2y​=−y325​

Later on, we’ll explore how this 2nd derivative gives insight into the curve’s shape (which as we know is a circle here).

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

Differentiating implicitly,

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

Distributing,

xyx⋅dxdy​​+xyy​=dxdy​

Canceling,

ydxdy​​+x1​=dxdy​

Solving for dxdy​,

ydxdy​​−dxdy​=x1​

dxdy​(y1​−1)=x1​

dxdy​(y1−y​)=x1​

dxdy​=x(1−y)y​

1. Horizontal tangent(s)

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

Putting y=0 into the original equation,

ln(0)=0

This is not possible because of the domain restriction on ln(xy), which is xy>0. This means that x and y must both be positive or both negative, and neither can be 0.

Because there is no solution to this, it means there is no horizontal tangent line to the curve at any point.

2. Vertical tangent(s)

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

For x(1−y) to be 0, either x=0 or 1−y=0 by the zero-product property.

We already know the domain restriction forbids x to be 0. Then there could potentially be a vertical tangent line at the point(s) on the curve where y=1.

Using the original equation to find the corresponding x-coordinate,

ln(x⋅1)=1

ln(x)=1

e1=x

At the point (e,1), the denominator (x(1−y)) is 0 and numerator (y) is 1 (non-zero). Therefore this is a valid point and there is a vertical tangent line at (e,1)​.

2. 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, this means that dxdy​=1,x=2, and y=4. Substituting these values in,

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

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

2b+8=−4a−4b

6b+8=−4a

This gives us a relationship between a and b, but two equations are needed to solve for two unknowns. What we can use is the original equation with x=2 and y=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

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

All rights reserved ©2016 - 2026 Achievable, Inc.