Implicit differentiation finds dy/dx when y is tied to x by an equation you have not solved for y. Differentiate both sides with respect to x, multiply the derivative of every y term by dy/dx, then solve for dy/dx.
The circle x2+y2=25 passes through (3,4), since 9+16=25. Move x from 3 to 3.01 and stay on the upper half of the circle. Then y2=25−3.012=15.9399, and y≈3.992480. The point moved right 0.01 and down about 0.007520, a slope of about −0.752.
This circle can be solved for y. The upper half is y=√25−x2, and that formula gives the exact slope −3/4 at x=3. Many curves cannot be solved so neatly. The curve x3+y3=6xy passes through (3,3), and moving x to 3.01 moves y to about 2.989726, a slope of about −1.03. No convenient formula for y is at hand, yet the curve has a slope there, exactly −1.
Implicit differentiation finds both slopes the same way, straight from the equation.
0.013.992480−4≈−0.752
Nudging x by 0.01 along two curves
Curve
Point
y at x=3.01
Secant slope
Exact slope
x2+y2=25
(3,4)
3.992480
−0.752
−3/4
x3+y3=6xy
(3,3)
2.989726
−1.027
−1
The rule
Differentiate both sides
Treat y as an unknown function of x,y(x), defined near the point by the equation. Differentiate both sides with respect to x. A term in x alone differentiates as usual. A term holding y is a function of a function, so the chain rule multiplies its derivative by dy/dx. Here dy/dx is the slope you want, the derivative of y with respect to x.
Both sides stay equal as x moves along the curve, so their derivatives are equal too. The result is one equation in x,y and dy/dx, which you then solve for dy/dx.
dxd[g(y)]=g′(y)dxdy
Common terms
Every y term gains a factor of dy/dx. A product of x and y also needs the product rule, so it has two terms.
Derivatives with respect to x of common terms
Term
Derivative with respect to x
Rule used
x2
2x
power rule
y
dy/dx
y is a function of x
y2
2y⋅dy/dx
chain rule
y3
3y2⋅dy/dx
chain rule
xy
y+x⋅dy/dx
product rule
x2y
2xy+x2⋅dy/dx
product rule
siny
cosy⋅dy/dx
chain rule
a constant
0
constant rule
Why it works
Why every y term gets a dy/dx
On the curve, y is a function of x, even when no formula for it is written down. Then y2 is (y(x))2, a square with y(x) inside. The chain rule differentiates the outside, giving 2y, and multiplies by the inside’s rate, dy/dx.
The circle shows that this agrees with solving first. On the upper half, y=√25−x2, and the chain rule gives dy/dx=−x/√25−x2. Implicit differentiation gives 2x+2y⋅dy/dx=0, which is dy/dx=−x/y. With y=√25−x2 the two are the same formula, and at (3,4) both give −3/4.
The answer usually holds both x and y. That is expected, because one x can give several points on a curve. At x=3 the circle passes through (3,4) and (3,−4), with slopes −3/4 and +3/4.
2x+2ydxdy=0⟹dxdy=−yx
2x+2ydxdy=0⟹dxdy=−yx
The method
The method in six steps
Write each step as its own line. The table works through xy2+y=10 at the point (2,2).
Step 4 is where the answer can quietly fail. Dividing needs the factor in front of dy/dx to be nonzero at the point. Where it is 0, the tangent may be vertical, or the curve may cross itself.
dxdy=−2xy+1y2
Implicit differentiation of xy2+y=10 at (2,2)
Step
What to do
For xy2+y=10
1
Check that the point is on the curve
2⋅22+2=10
2
Differentiate every term with respect to x
y2+2xy⋅dy/dx+dy/dx=0
3
Collect the dy/dx terms on one side
(2xy+1)dy/dx=−y2
4
Divide, where the factor is not 0
dy/dx=−y2/(2xy+1)
5
Substitute the point
−4/(8+1)=−4/9
6
Write the tangent line if asked
y=2−(4/9)(x−2)
Where it breaks
Where it breaks
The slope formula needs its denominator to be nonzero. On the circle, dy/dx=−x/y fails at (5,0) and (−5,0). There the tangent is vertical, and near those points the circle is not the graph of any function y(x).
The point must lie on the curve. Putting (3,3) into the circle’s −x/ygives −1, a number that means nothing, because 9+9=25. Check the equation first.
The equation must describe a curve at all. The equation x2+y2=−1 has no points, yet the same steps still produce −x/y. Where a curve crosses itself, as x3+y3=6xy does at the origin, there is no single tangent, and the formula gives 0/0.
The slip students make most is treating y as a constant. The derivative of y2 with respect to x is 2y⋅dy/dx, not 0 and not 2y. Only a number such as 25 has derivative 0.
dxd(y2)=2ydxdy=2y
Check your answer
Check your answer
A slope found implicitly can be compared with a slope found another way.
Solve for y when you can. The circle’s upper half is y=√25−x2, whose ordinary derivative at x=3is −3/4, the same as −x/y at (3,4).
Use the geometry. A tangent to a circle is perpendicular to the radius. The radius to (3,4) has slope 4/3, and (4/3)(−3/4)=−1, as perpendicular slopes must give.
Try a nearby point. Move x by 0.01, find the new y from the equation, and compare the secant slope with your formula, as the case did.
To have Chalk check the work, write the equation on the first row of a Math box, the differentiated equation on the next row, and dy/dx=… below. A term that lost its dy/dx reads ✗ with “Not the derivative of row 1. Check each term.” If every dy/dx is lost, as in 2x+2y=0 under x2+y2=25, the row has nothing to mark it as a derivative, and Chalk leaves it at ? instead. A product that lost a piece, such as xdy/dx=0 under xy=6, reads ✗ too. Look for a dy/dx on every y term yourself.
A slope evaluated at a point written with a bar, such as the slope at (3,4) equal to −3/4, reads ✓ when a dy/dx=… row sits above it and the point lies on the curve. The wrong value, 3/4, reads ✗. With the point off the curve, or no dy/dx row above, the row stays at ?. Writing dy/dx=−3/4 on its own row reads ✗, because without the point it claims that slope everywhere on the curve.
For the slope of x3+y3=28 at (1,3), a student puts in x=1 first and differentiates 1+y3=28. What goes wrong?
That gives 3y2⋅dy/dx=0, a slope of 0, which is wrong. Putting in x=1 first freezes x, so the x3 term loses its rate. The equation holds all along the curve, so differentiate first, 3x2+3y2⋅dy/dx=0, and substitute after. That gives dy/dx=−x2/y2=−1/9.
Why it works, and where it leads
Implicit differentiation assumes that the equation really does define y as a differentiable function of x near the point. The implicit function theorem says when it does. Write the equation as F(x,y)=0. If the derivative of F with respect to y alone is not 0 at the point, one smooth y(x) passes through it nearby. That derivative is exactly the factor you divide by in step 4.
The method also proves the power rule for fractional exponents. If y=x1/3, then y3=x. Differentiating gives 3y2⋅dy/dx=1, so dy/dx=1/(3y2)=(1/3)x−2/3. The same trick with y=lnx, so that ey=x, gives dy/dx=1/x.
Next comes related rates. There x and y both change with time t, and the same differentiation with respect to t links their rates.
y3=x⇒3y2dxdy=1⇒dxdy=3y21=31x−2/3
y3=x⇒3y2dxdy=1⇒dxdy=3y21=31x−2/3
Common mistakes
Differentiating y2 as 2y. The derivative with respect to x is 2y⋅dy/dx, because y changes as x changes and the chain rule counts that change.
Dropping a term of a product. The derivative of xy is y+x⋅dy/dx, not y alone and not dy/dx alone, because both x and y change.
Substituting a point that is not on the curve. (3,3) does not satisfy x2+y2=25,so −x/y=−1 there describes nothing. Check the equation before you substitute.
Giving the constant a derivative. The 25 in x2+y2=25 has derivative 0, so the differentiated equation is 2x+2y⋅dy/dx=0, not 2x+2y⋅dy/dx=25.
Dividing by a factor that is 0 at the point. At (5,0) on the circle, −x/y divides by 0. The slope is not a number there, because the tangent is vertical.
Key terms
Implicit differentiation
Finding dy/dx from an equation in x and y without solving for y: differentiate both sides with respect to x, multiply the derivative of each y term by dy/dx, then solve for dy/dx.
Implicit relation
An equation in x and y, such as x2+y2=25, that isn’t solved for y. It can describe curves that no single function y=f(x) covers.
Chain rule
The rule for differentiating a function inside another function: [f(g(x))]′=f′(g(x))⋅g′(x). Differentiate the outside, keeping the inside as it is, then multiply by the derivative of the inside.
Tangent line
The line that matches a curve’s direction at a point, with slope equal to the derivative there. It can cross the curve elsewhere. In trigonometry, “tangent” also names tanθ=sinθ/cosθ.
Derivative
The instantaneous rate of change of a function: the limit of the average rate of change as the step shrinks to zero, when that limit exists. On a graph it is the slope of the tangent line.
Work through an example
For the circle x2+y2=25, find dy/dx by implicit differentiation, then the tangent line at (3,4).