Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Calculus

Implicit Differentiation, Step by Step

By MathSolver Pro Editorial Team · Published

Implicit differentiation finds dy/dx for curves defined by an equation in x and y, without first solving for y. You differentiate both sides with respect to x, treat y as a function of x so the chain rule applies, and then solve for dy/dx.

Explicit and implicit equations

An explicit equation gives yy directly as a formula in xx, such as y=x2+1y = x^2 + 1. Many important curves are instead described implicitly, by an equation linking xx and yy. The circle x2+y2=25x^2 + y^2 = 25 is a familiar example. Solving it for yy gives two functions, y=25−x2y = \sqrt{25 - x^2} for the top half and y=−25−x2y = -\sqrt{25 - x^2} for the bottom, and differentiating each separately is awkward.

Other curves cannot be solved for yy at all with ordinary algebra, such as x3+y3=6xyx^3 + y^3 = 6xy or ey+xy=ee^y + xy = e. Their graphs still have tangent lines at almost every point, and implicit differentiation is the tool that finds the slopes. The method relies entirely on the chain rule, so it is worth reviewing derivative rules explained first if that rule feels shaky.

The method in four steps

  1. Differentiate both sides of the equation with respect to xx.
  2. Whenever you differentiate an expression containing yy, multiply by dydx\frac{dy}{dx}, because yy is a function of xx and the chain rule applies.
  3. Collect every term containing dydx\frac{dy}{dx} on one side and everything else on the other.
  4. Factor out dydx\frac{dy}{dx} and divide to isolate it.

The key fact behind step 2 is this chain rule identity, where ff is any differentiable function:

ddxf(y)=f′(y) dydx\frac{d}{dx}f(y) = f'(y)\,\frac{dy}{dx}

So ddxy2=2ydydx\frac{d}{dx}y^2 = 2y\frac{dy}{dx}, ddxsin⁡y=cos⁡y dydx\frac{d}{dx}\sin y = \cos y\,\frac{dy}{dx} and ddxey=eydydx\frac{d}{dx}e^y = e^y\frac{dy}{dx}. Products such as xyxy need the product rule as well: ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}.

Example: the circle

Example 1: slope of x2+y2=25x^2 + y^2 = 25 at (3,4)(3, 4)

  1. Differentiate both sides: 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0.
  2. Solve: dydx=−xy\frac{dy}{dx} = -\frac{x}{y}.
  3. At (3,4)(3, 4): slope =−34= -\frac{3}{4}. Tangent line: y−4=−34(x−3)y - 4 = -\frac{3}{4}(x - 3), or y=−34x+254y = -\frac{3}{4}x + \frac{25}{4}.
  4. Check with the explicit top half: ddx25−x2=−x25−x2\frac{d}{dx}\sqrt{25 - x^2} = \frac{-x}{\sqrt{25 - x^2}}, which is −34-\frac{3}{4} at x=3x = 3.

Notice that the implicit answer works for both halves at once: at (3,−4)(3, -4) the slope is +34+\frac{3}{4}. The formula also shows where the tangents are horizontal, when x=0x = 0, at (0,5)(0, 5) and (0,−5)(0, -5), and where they are vertical, when y=0y = 0, at (5,0)(5, 0) and (−5,0)(-5, 0). The answer contains yy as well as xx, which is normal for implicit derivatives; you need a point on the curve, not just an xx value, to get a number.

Examples that cannot be solved for y

Example 2: the folium of Descartes, x3+y3=6xyx^3 + y^3 = 6xy

  1. Differentiate, using the product rule on the right: 3x2+3y2dydx=6y+6xdydx3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx}.
  2. Collect: (3y2−6x)dydx=6y−3x2(3y^2 - 6x)\frac{dy}{dx} = 6y - 3x^2.
  3. Divide and simplify by 3: dydx=2y−x2y2−2x\frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}.
  4. The point (3,3)(3, 3) lies on the curve, since 27+27=54=6⋅927 + 27 = 54 = 6 \cdot 9. The slope there is 6−99−6=−1\frac{6 - 9}{9 - 6} = -1.

Example 3: ey+xy=ee^y + xy = e at (0,1)(0, 1)

  1. Check the point: e1+0=ee^1 + 0 = e.
  2. Differentiate: eydydx+y+xdydx=0e^y\frac{dy}{dx} + y + x\frac{dy}{dx} = 0.
  3. Solve: dydx=−yey+x\frac{dy}{dx} = \frac{-y}{e^y + x}.
  4. At (0,1)(0, 1): dydx=−1e≈−0.368\frac{dy}{dx} = -\frac{1}{e} \approx -0.368.

Example 4: sin⁡(xy)=x\sin(xy) = x

  1. The chain rule and product rule together: cos⁡(xy)(y+xdydx)=1\cos(xy)\left(y + x\frac{dy}{dx}\right) = 1.
  2. Expand and isolate: xcos⁡(xy)dydx=1−ycos⁡(xy)x\cos(xy)\frac{dy}{dx} = 1 - y\cos(xy).
  3. dydx=1−ycos⁡(xy)xcos⁡(xy)\frac{dy}{dx} = \frac{1 - y\cos(xy)}{x\cos(xy)}.

Second derivatives

To find d2ydx2\frac{d^2y}{dx^2}, differentiate the first derivative implicitly again, then substitute the first derivative back in. For the circle, start from y′=−xyy' = -\frac{x}{y} and use the quotient rule:

y′′=−y−x y′y2=−y+x2yy2=−x2+y2y3=−25y3y'' = -\frac{y - x\,y'}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2} = -\frac{x^2 + y^2}{y^3} = -\frac{25}{y^3}

The last step uses the original equation, x2+y2=25x^2 + y^2 = 25, to simplify, a trick that often helps. The result is negative on the top half, where y>0y > 0, so the curve is concave down there, and positive on the bottom half, which matches the picture of a circle.

Deriving inverse function derivatives

Implicit differentiation explains where the derivatives of inverse functions come from. Let y=arctan⁡xy = \arctan x. Then tan⁡y=x\tan y = x. Differentiating gives sec⁡2y dydx=1\sec^2 y\,\frac{dy}{dx} = 1, so dydx=1sec⁡2y=11+tan⁡2y=11+x2\frac{dy}{dx} = \frac{1}{\sec^2 y} = \frac{1}{1 + \tan^2 y} = \frac{1}{1 + x^2}.

The same approach with y=ln⁡xy = \ln x, rewritten as ey=xe^y = x, gives eydydx=1e^y\frac{dy}{dx} = 1, so dydx=1ey=1x\frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}. In general, the slope of an inverse function is the reciprocal of the original slope at the matching point, as described in our article on inverse functions.

When the variables depend on time, the same idea works with respect to tt instead of xx. Every variable gets its own rate.

Example 5: a sliding ladder

  1. A 10 ft ladder leans against a wall. Its foot slides away at 2 ft/s. How fast is the top sliding down when the foot is 6 ft from the wall?
  2. Let xx be the distance of the foot from the wall and yy the height of the top: x2+y2=100x^2 + y^2 = 100.
  3. Differentiate with respect to tt: 2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0.
  4. When x=6x = 6, the original equation gives y=8y = 8. Solve for the unknown rate: dydt=−xydxdt=−68⋅2=−1.5\frac{dy}{dt} = -\frac{x}{y}\frac{dx}{dt} = -\frac{6}{8}\cdot 2 = -1.5 ft/s.
  5. The negative sign means the top is moving down at 1.5 ft/s.

Common mistakes

  • Forgetting the dydx\frac{dy}{dx} factor when differentiating a term with yy.
  • Treating xyxy as a single variable instead of using the product rule.
  • Differentiating the constant on the right as if it were a variable; constants give 0.
  • Substituting numbers before differentiating, which freezes quantities that are changing.
  • Using a point that is not actually on the curve. Always check the point first.

The implicit differentiation calculator carries out every step, collects the derivative terms and can evaluate the slope at a point. For explicit functions, use the derivative calculator.

Why the method is valid

Implicit differentiation assumes that near the point of interest, the curve really is the graph of some differentiable function y(x)y(x), even if we cannot write that function down. Substituting it into the equation turns the equation into an identity in xx, true for every xx near the point. Two expressions that are equal for every xx must have equal derivatives, which is why we may differentiate both sides.

The assumption fails only at special points, such as where the tangent is vertical or where the curve crosses itself. The folium of Descartes crosses itself at the origin, and there the derivative formula gives 00\frac{0}{0}. At such points the curve is not locally the graph of a single function, so it has no single slope. The implicit function theorem, met in multivariable calculus, states exactly when the assumption is safe.

A shortcut with partial derivatives

If the curve is written as F(x,y)=0F(x, y) = 0, there is a compact formula for the slope that follows from the same reasoning:

dydx=−FxFy\frac{dy}{dx} = -\frac{F_x}{F_y}

Here FxF_x and FyF_y are partial derivatives, found by differentiating with respect to one variable while treating the other as a constant. For the circle, F=x2+y2−25F = x^2 + y^2 - 25 gives Fx=2xF_x = 2x and Fy=2yF_y = 2y, so the slope is −xy-\frac{x}{y}, as before. The partial derivative calculator computes FxF_x and FyF_y for you.

Practice problems with answers

  1. x2−y2=9x^2 - y^2 = 9. Answer: dydx=xy\frac{dy}{dx} = \frac{x}{y}.
  2. xy=12xy = 12, slope at (3,4)(3, 4). Answer: dydx=−yx\frac{dy}{dx} = -\frac{y}{x}, which is −43-\frac{4}{3} there.
  3. y3+y=xy^3 + y = x. Answer: dydx=13y2+1\frac{dy}{dx} = \frac{1}{3y^2 + 1}, which is always positive, so the curve always rises.
  4. cos⁡y=x\cos y = x. Answer: dydx=−1sin⁡y\frac{dy}{dx} = -\frac{1}{\sin y}, which leads to the derivative of arccosine.

For each one, check your answer by choosing a point on the curve, estimating the slope numerically from a nearby point, and comparing.

Where implicit curves appear

Implicit equations are common in practice. Conic sections such as ellipses and hyperbolas are naturally written implicitly. In economics, an indifference curve links quantities of two goods that give a consumer the same satisfaction, and its slope, found implicitly, is the rate at which the consumer will trade one good for the other. In thermodynamics, equations of state link pressure, volume and temperature, and implicit differentiation gives how one changes when another is varied. Whenever two quantities are tied together by a rule rather than a formula, this method gives their rate of change.

Frequently asked questions

Why do I multiply by dy/dx when differentiating y terms?

Because yy is a function of xx, so any expression in yy is a composition, and the chain rule requires multiplying by the derivative of the inner function, which is dydx\frac{dy}{dx}.

Why does the answer contain both x and y?

The curve may pass through several points with the same xx value, each with a different slope. Including yy identifies which point you mean. On the circle, x=3x = 3 gives slope −34-\frac{3}{4} at (3,4)(3, 4) and 34\frac{3}{4} at (3,−4)(3, -4).

When should I use implicit instead of explicit differentiation?

Use it when yy cannot be isolated, when isolating it produces several branches or messy roots, or when time-dependent quantities are linked by an equation, as in related rates.

How do I find where an implicit curve has a horizontal tangent?

Set the numerator of dydx\frac{dy}{dx} equal to zero, solve together with the original equation, and check that the denominator is not also zero at those points.

Can implicit differentiation give a different answer from the explicit method?

No, they always agree, though they may look different. The implicit answer is usually written with yy in it; substituting the explicit formula for yy turns it into the explicit derivative.

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.