STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Implicit differentiation, explained with examples

Some curves, such as circles, cannot be written as a single y = f(x). Implicit differentiation lets you find dy/dx anyway, by differentiating both sides of the equation as it stands.

On this page
  1. Explicit and implicit equations
  2. The key idea
  3. The four-step method
  4. Worked examples
  5. Logarithmic differentiation
  6. Connection to related rates
  7. How to practise
  8. Checking your answer
  9. Common mistakes
  10. Practice questions
  11. Frequently asked questions
  12. Key takeaways
  13. Related guides

Explicit and implicit equations

An explicit equation gives y directly in terms of x, such as y = x² + 1. An implicit equation mixes x and y together, such as x² + y² = 25 or x³ + y³ = 6xy. Sometimes you could rearrange for y, but often it is messy or impossible, and a circle needs two separate functions (the top half and the bottom half). Implicit differentiation avoids all of that.

The key idea

Treat y as an unknown function of x. When you differentiate any term containing y with respect to x, use the chain rule: differentiate as if y were the variable, then multiply by dy/dx. So

Terms with only x are differentiated as normal. Constants still differentiate to zero.

The four-step method

  1. Differentiate every term on both sides with respect to x, adding dy/dx to each y term.
  2. Move all terms containing dy/dx to one side and everything else to the other.
  3. Factor out dy/dx.
  4. Divide to make dy/dx the subject.

Worked examples

Example 1: a circle

Find dy/dx for x² + y² = 25, and the gradient at (3, 4).

Example 2: a product term

Find dy/dx for x² + xy + y² = 7.

Example 3: trig

Find dy/dx for sin y = x.

Example 4: exponentials

Find dy/dx for ey = x² + y.

Example 5: the folium of Descartes

Find the gradient of x³ + y³ = 6xy at (3, 3).

Example 6: a tangent line

Find the equation of the tangent to x² + xy + y² = 7 at (1, 2).

Example 7: horizontal and vertical tangents

For x² + y² = 25, where are the tangents horizontal and vertical?

Example 8: a second derivative

For x² + y² = 25, find d²y/dx² in terms of y.

Logarithmic differentiation

Implicit differentiation also handles functions where x appears in both the base and the power, such as y = xx. None of the standard rules apply directly, because xx is neither a power function nor an exponential. The trick is to take natural logs of both sides first: ln y = x ln x. Now differentiate implicitly: (1/y)(dy/dx) = ln x + 1. Multiply by y to get dy/dx = xx(ln x + 1). The same technique simplifies derivatives of long products and quotients, because logs turn products into sums and powers into multiples.

Related rates problems use the same idea, but with time t as the variable instead of x. If a ladder's base and top satisfy x² + y² = 100, then differentiating with respect to t gives 2x(dx/dt) + 2y(dy/dt) = 0. Every variable that changes with time picks up its own rate. If you are comfortable with implicit differentiation, related rates become much easier.

How to practise

Start with simple curves like circles and xy = k until adding dy/dx feels automatic. Then move on to equations with product terms, trig and exponentials. Finally, practise full AP-style questions that ask for a tangent line, horizontal or vertical tangents, or a second derivative. Always simplify your final answer, and check it at a point on the curve if you can.

Checking your answer

When an equation can be rearranged, you can check your implicit answer explicitly. For x² + y² = 25, the top half is y = √(25 − x²), whose derivative is −x/√(25 − x²) = −x/y. It matches. Another quick check: substitute a point on the curve and see whether the gradient looks right on a sketch.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Find dy/dx for y³ + x = 4.

Show answer
3y² dy/dx + 1 = 0: dy/dx = −1/(3y²).

Q2. Find dy/dx for xy = 6.

Show answer
y + x dy/dx = 0: dy/dx = −y/x.

Q3. Find dy/dx for x² − y² = 1 at (√2, 1).

Show answer
dy/dx = x/y = √2.

Q4. Find dy/dx for cos(xy) = x.

Show answer
−sin(xy)(y + x dy/dx) = 1: dy/dx = −(1 + y sin(xy))/(x sin(xy)).

Frequently asked questions

Is implicit differentiation on the AP Calculus exam?

Yes. It is in Unit 3 for both AB and BC, and it appears in free-response questions, often asking for a tangent line or for points where the tangent is horizontal or vertical.

Is implicit differentiation in A level Maths?

Yes, in the second year of A level Maths, usually for finding gradients, tangents and normals of curves given implicitly.

Key takeaways