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 directly as a formula in , such as . Many important curves are instead described implicitly, by an equation linking and . The circle is a familiar example. Solving it for gives two functions, for the top half and for the bottom, and differentiating each separately is awkward.
Other curves cannot be solved for at all with ordinary algebra, such as or . 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
- Differentiate both sides of the equation with respect to .
- Whenever you differentiate an expression containing , multiply by , because is a function of and the chain rule applies.
- Collect every term containing on one side and everything else on the other.
- Factor out and divide to isolate it.
The key fact behind step 2 is this chain rule identity, where is any differentiable function:
So , and . Products such as need the product rule as well: .
Example: the circle
Example 1: slope of at
- Differentiate both sides: .
- Solve: .
- At : slope . Tangent line: , or .
- Check with the explicit top half: , which is at .
Notice that the implicit answer works for both halves at once: at the slope is . The formula also shows where the tangents are horizontal, when , at and , and where they are vertical, when , at and . The answer contains as well as , which is normal for implicit derivatives; you need a point on the curve, not just an value, to get a number.
Examples that cannot be solved for y
Example 2: the folium of Descartes,
- Differentiate, using the product rule on the right: .
- Collect: .
- Divide and simplify by 3: .
- The point lies on the curve, since . The slope there is .
Example 3: at
- Check the point: .
- Differentiate: .
- Solve: .
- At : .
Example 4:
- The chain rule and product rule together: .
- Expand and isolate: .
- .
Second derivatives
To find , differentiate the first derivative implicitly again, then substitute the first derivative back in. For the circle, start from and use the quotient rule:
The last step uses the original equation, , to simplify, a trick that often helps. The result is negative on the top half, where , 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 . Then . Differentiating gives , so .
The same approach with , rewritten as , gives , so . 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.
Related rates
When the variables depend on time, the same idea works with respect to instead of . Every variable gets its own rate.
Example 5: a sliding ladder
- 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?
- Let be the distance of the foot from the wall and the height of the top: .
- Differentiate with respect to : .
- When , the original equation gives . Solve for the unknown rate: ft/s.
- The negative sign means the top is moving down at 1.5 ft/s.
Common mistakes
- Forgetting the factor when differentiating a term with .
- Treating 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 , even if we cannot write that function down. Substituting it into the equation turns the equation into an identity in , true for every near the point. Two expressions that are equal for every 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 . 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 , there is a compact formula for the slope that follows from the same reasoning:
Here and are partial derivatives, found by differentiating with respect to one variable while treating the other as a constant. For the circle, gives and , so the slope is , as before. The partial derivative calculator computes and for you.
Practice problems with answers
- . Answer: .
- , slope at . Answer: , which is there.
- . Answer: , which is always positive, so the curve always rises.
- . Answer: , 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 is a function of , so any expression in is a composition, and the chain rule requires multiplying by the derivative of the inner function, which is .
Why does the answer contain both x and y?
The curve may pass through several points with the same value, each with a different slope. Including identifies which point you mean. On the circle, gives slope at and at .
When should I use implicit instead of explicit differentiation?
Use it when 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 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 in it; substituting the explicit formula for turns it into the explicit derivative.