Calculus

Implicit Differentiation Step by Step

A clear method for finding slopes on curves such as circles and loops without solving for y first, with checked examples.

Key takeaways

  • Treat y as an unknown function of x, so the derivative of y² is 2y · dy/dx rather than just 2y.
  • Differentiate both sides, collect every term containing dy/dx on one side, factor it out and divide.
  • The answer usually involves both x and y, so you need a point that actually lies on the curve.
  • The formula can break down where its denominator is zero, which signals a vertical tangent, a crossing or a corner.
  • The same technique produces the derivatives of inverse functions such as arcsine and arctangent.

Implicit differentiation finds the slope of a curve described by an equation that mixes x and y, without first solving for y. You differentiate both sides with respect to x, remember that y depends on x, and then solve the resulting equation for dy/dx.

That last part is easy, because dy/dx always appears only to the first power. The step that needs care is the middle one: every time you differentiate an expression containing y, the chain rule adds a factor of dy/dx.

Explicit and implicit equations

An equation is explicit in y when y stands alone on one side, as in y = x³ − 2x. It is implicit when the two variables are tangled together, as in x² + y² = 25.

That circle of radius 5 is not the graph of a single function, since most x values between −5 and 5 pair with two y values. You could split it into y = √(25 − x²) and y = −√(25 − x²) and differentiate each half. Implicit differentiation handles both halves at once.

Some equations cannot reasonably be solved for y at all. The equation y⁵ + y = x defines exactly one real y for each x, because the left side steadily increases with y, yet there is no formula for it using ordinary algebraic operations and roots. You can still find its slope in one line: 5y⁴ · y′ + y′ = 1, so y′ = 1/(5y⁴ + 1). At the point (2, 1), which satisfies 1 + 1 = 2, the slope is 1/6.

The method on a circle

Here is the full process for x² + y² = 25. Write y′ as shorthand for dy/dx.

x² + y² = 25
2x + 2y · y′ = 0      differentiate each term with respect to x
2y · y′ = −2x         isolate the y′ term
y′ = −x/y             divide, assuming y ≠ 0

The term 2y · y′ comes from the chain rule. The outer function is squaring and the inside is y, itself a function of x.

At the point (3, 4) the slope is −3/4. At (3, −4), on the lower half, it is 3/4. One formula serves both, because the y value tells it which half you are on.

You can check the result with geometry. The radius from the origin to (3, 4) has slope 4/3. A tangent line to a circle is perpendicular to the radius, and perpendicular slopes multiply to −1. Indeed, (4/3)(−3/4) = −1.

Implicit differentiation in four moves
1 Differentiate both sides Take d/dx of every term 2 Attach y′ to y terms Chain rule: y is a function of x 3 Gather and factor All y′ terms on one side 4 Divide and evaluate Use a point that lies on the curve Differentiate both sides Take d/dx of every term 1 Attach y′ to y terms Chain rule: y is a function of x 2 Gather and factor All y′ terms on one side 3 Divide and evaluate Use a point that lies on the curve 4

Products that mix x and y

A term such as xy is a product of two functions of x, so it needs the product rule: d/dx (xy) = 1 · y + x · y′.

Consider the tilted ellipse x² + xy + y² = 7 at the point (1, 2). First confirm the point is on the curve: 1 + 2 + 4 = 7.

2x + (y + x · y′) + 2y · y′ = 0
x · y′ + 2y · y′ = −2x − y
y′ (x + 2y) = −(2x + y)
y′ = −(2x + y)/(x + 2y)

At (1, 2) this gives y′ = −4/5. The tangent line is therefore y − 2 = −(4/5)(x − 1).

If you only need the slope at one point, you can substitute the numbers immediately after differentiating, before solving. The line 2 + 2 + y′ + 4y′ = 0 gives 5y′ = −4 right away. Substitute after differentiating, never before: once x and y are replaced by numbers, there is nothing left that changes.

A curve with a loop

The equation x³ + y³ = 6xy describes a curve called the folium of Descartes, which has a leaf-shaped loop in the first quadrant. The point (3, 3) lies on it, since 27 + 27 = 54 = 6 · 9.

3x² + 3y² · y′ = 6y + 6x · y′      chain rule left, product rule right
y′ (3y² − 6x) = 6y − 3x²           collect y′
y′ = (2y − x²)/(y² − 2x)           divide through by 3

At (3, 3) the slope is (6 − 9)/(9 − 6) = −1. That matches the symmetry of the curve: swapping x and y leaves the equation unchanged, so the curve is a mirror image of itself across the line y = x, and it must cross that line at a right angle there.

At the origin both the numerator and the denominator are zero. The formula gives no value because two branches of the curve pass through that point, one horizontal and one vertical. No single slope describes it.

Finding horizontal and vertical tangents

Once you have y′ as a fraction, you can locate special points on a curve. A tangent is horizontal where the numerator is zero and the denominator is not. It is typically vertical where the denominator is zero and the numerator is not.

For the tilted ellipse, y′ = −(2x + y)/(x + 2y). Setting the numerator to zero gives y = −2x. That line is not yet the answer, because the points must also lie on the curve, so substitute:

x² + x(−2x) + (−2x)² = 7
x² − 2x² + 4x² = 7
3x² = 7
x = ±√(7/3) ≈ ±1.528,  with y = −2x ≈ ∓3.055

Those two points are the top and bottom of the ellipse. Setting the denominator to zero gives x = −2y, and the same substitution yields 3y² = 7. Those are the leftmost and rightmost points. The symmetry between the two calculations reflects the symmetry of the equation in x and y.

The step students most often skip is returning to the original equation. The condition from y′ describes a whole line or curve of candidates, and only the intersections with your curve count.

Exponentials inside the equation

The method works no matter which functions appear. Take e^y + xy = e, and note that the point (0, 1) satisfies it, since e¹ + 0 = e.

e^y · y′ + y + x · y′ = 0     chain rule on e^y, product rule on xy
y′ (e^y + x) = −y
y′ = −y/(e^y + x)

At (0, 1) the slope is −1/e, approximately −0.368. You could never have isolated y here with elementary algebra, yet the slope took three lines.

You can test the answer numerically. Put x = 0.01 into the tangent line to predict y ≈ 1 − 0.00368 = 0.99632. Substituting that pair into the left side of the equation gives a value that agrees with e to within about a thousandth of a percent, which is the sort of gap you expect from a straight line approximating a gentle curve.

Derivatives of inverse functions

Implicit differentiation is the cleanest way to differentiate an inverse function. Let y = arcsin x, which means sin y = x with y between −π/2 and π/2.

sin y = x
cos y · y′ = 1
y′ = 1/cos y = 1/√(1 − x²)      cos y ≥ 0 on this range

The formula holds for −1 < x < 1. At the endpoints the denominator vanishes and the graph becomes vertical.

For y = arctan x, start from tan y = x. Differentiating gives y′/cos² y = 1. Since 1/cos² y = 1 + tan² y = 1 + x², you get y′ = 1/(1 + x²) for every real x.

The same trick turns the derivative of the exponential into the derivative of the natural logarithm, as shown in derivatives of exponential and logarithmic functions. It also underlies logarithmic differentiation, where you take logarithms on purpose to create an implicit equation that is easier to handle.

Second derivatives

To find y″, differentiate the expression for y′ again, still treating y as a function of x. Then replace any y′ that appears.

For the circle, y′ = −x/y. Using the quotient rule:

y″ = −(1 · y − x · y′)/y²
   = −(y + x²/y)/y²          substitute y′ = −x/y
   = −(y² + x²)/y³
   = −25/y³                  use the original equation

The final substitution is a useful habit: the original equation often collapses a messy numerator. At (3, 4), y″ = −25/64. The negative sign says the upper half of the circle bends downward, while for negative y the sign flips and the lower half bends upward, exactly as a circle should.

When the method breaks down

Differentiating an equation assumes that near your point, y really is a differentiable function of x. A theorem from analysis, the implicit function theorem, says when that is guaranteed. Write the curve as F(x, y) = 0, where F has continuous partial derivatives. If the point is on the curve and the partial derivative of F with respect to y is not zero there, then near that point y is a differentiable function of x.

When that partial derivative is zero, inspect the point separately. On the circle at (5, 0), the tangent is vertical. At the origin on the folium, the curve crosses itself.

Be careful too with equations that have no solutions. Formally differentiating x² + y² = −1 gives y′ = −x/y, but no real point satisfies the equation, so the formula describes nothing.

Common mistakes

  • Dropping y′. The derivative of y³ with respect to x is 3y² · y′.
  • Adding y′ to x terms. The derivative of x³ is just 3x².
  • Missing the product rule. The term x²y becomes 2xy + x²y′.
  • Forgetting the right side. The derivative of a constant is 0, so 25 does not survive.
  • Using a point off the curve. Always substitute into the original equation first.

Once these habits are in place, the technique carries straight into related rates problems, where every variable depends on time and each one picks up its own rate when you differentiate.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 39 articles in Calculus →

Latest news on this topic