Chalk−1

Math · Calculus I · Concept

Implicit differentiation

Implicit differentiation finds d⁢y⁢/⁢d⁢x 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 d⁢y⁢/⁢d⁢x, then solve for d⁢y⁢/⁢d⁢x.

Try one — Chalk checks each line

A concrete case

Follow a point along a curve

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=6⁢x⁢y 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.

3.992480−40.01≈−0.752
Nudging x by 0.01 along two curves
CurvePointy at x=3.01Secant slopeExact slope
x2+y2 =25(3,4)3.992480−0.752−3⁢/4
x3+y3 =6⁢x⁢y(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 d⁢y⁢/⁢d⁢x. Here d⁢y⁢/⁢d⁢x 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 d⁢y⁢/⁢d⁢x, which you then solve for d⁢y⁢/⁢d⁢x.

dd⁢x[g⁡(y)]=g′(y)d⁢yd⁢x

Common terms

Every y term gains a factor of d⁢y⁢/⁢d⁢x. A product of x and y also needs the product rule, so it has two terms.

Derivatives with respect to x of common terms
TermDerivative with respect to xRule used
x22⁢xpower rule
yd⁢y⁢/⁢d⁢xy is a function of x
y22⁢y⋅d⁢y⁢/⁢d⁢xchain rule
y33y2⋅d⁢y⁢/⁢d⁢xchain rule
x⁢yy+x⋅d⁢y⁢/⁢d⁢xproduct rule
x2y2⁢x⁢y+x2⋅d⁢y⁢/⁢d⁢xproduct rule
sinycosy⋅d⁢y⁢/⁢d⁢xchain rule
a constant0constant rule

Why it works

Why every y term gets a d⁢y⁢/⁢d⁢x

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 2⁢y, and multiplies by the inside’s rate, d⁢y⁢/⁢d⁢x.

The circle shows that this agrees with solving first. On the upper half, y=25−x2, and the chain rule gives d⁢y⁢/⁢d⁢x=−x⁢/25−x2. Implicit differentiation gives 2⁢x+2⁢y⋅d⁢y⁢/⁢d⁢x=0, which is d⁢y⁢/⁢d⁢x=−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.

2⁢x+2⁢yd⁢yd⁢x=0⟹d⁢yd⁢x=−xy
2⁢x+2⁢yd⁢yd⁢x=0⟹d⁢yd⁢x=−xy

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 d⁢y⁢/⁢d⁢x to be nonzero at the point. Where it is 0, the tangent may be vertical, or the curve may cross itself.

d⁢yd⁢x=−y22⁢x⁢y+1
Implicit differentiation of xy2 +y =10 at (2,2)
StepWhat to doFor xy2+y =10
1Check that the point is on the curve2⋅22+2 =10
2Differentiate every term with respect to xy2+2⁢x⁢y⋅d⁢y⁢/⁢d⁢x+d⁢y⁢/⁢d⁢x =0
3Collect the d⁢y⁢/⁢d⁢x terms on one side(2⁢x⁢y+1)⁢d⁢y⁢/⁢d⁢x =−y2
4Divide, where the factor is not 0d⁢y⁢/⁢d⁢x =−y2/⁢(2⁢x⁢y+1)
5Substitute the point−4⁢/⁢(8+1) =−4⁢/9
6Write the tangent line if askedy =2−(4⁢/9)⁢(x−2)

Where it breaks

Where it breaks

The slope formula needs its denominator to be nonzero. On the circle, d⁢y⁢/⁢d⁢x=−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⁢/⁢y gives −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=6⁢x⁢y 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 2⁢y⋅d⁢y⁢/⁢d⁢x, not 0 and not 2⁢y. Only a number such as 25 has derivative 0.

dd⁢x(y2)=2⁢yd⁢yd⁢x≠2⁢y

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=3 is −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 d⁢y⁢/⁢d⁢x=… below. A term that lost its d⁢y⁢/⁢d⁢x reads ✗ with “Not the derivative of row 1. Check each term.” If every d⁢y⁢/⁢d⁢x is lost, as in 2⁢x+2⁢y=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 x d⁢y⁢/⁢d⁢x=0 under x⁢y=6, reads ✗ too. Look for a d⁢y⁢/⁢d⁢x 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 d⁢y⁢/⁢d⁢x=… 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 d⁢y⁢/⁢d⁢x row above, the row stays at ?. Writing d⁢y⁢/⁢d⁢x=−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⋅d⁢y⁢/⁢d⁢x=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⋅d⁢y⁢/⁢d⁢x=0, and substitute after. That gives d⁢y⁢/⁢d⁢x=−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⋅d⁢y⁢/⁢d⁢x=1, so d⁢y⁢/⁢d⁢x =1⁢/⁢(3y2) =(1⁢/3)x−2⁢/3. The same trick with y=lnx, so that ey=x, gives d⁢y⁢/⁢d⁢x=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⇒3y2d⁢yd⁢x=1⇒d⁢yd⁢x=13y2=13x−2⁢/3
y3=x⇒3y2d⁢yd⁢x=1⇒d⁢yd⁢x=13y2=13x−2⁢/3

Common mistakes

  • Differentiating y2 as 2⁢y. The derivative with respect to x is 2⁢y⋅d⁢y⁢/⁢d⁢x, because y changes as x changes and the chain rule counts that change.
  • Dropping a term of a product. The derivative of x⁢y is y+x⋅d⁢y⁢/⁢d⁢x, not y alone and not d⁢y⁢/⁢d⁢x 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 2⁢x+2⁢y⋅d⁢y⁢/⁢d⁢x=0, not 2⁢x+2⁢y⋅d⁢y⁢/⁢d⁢x=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 d⁢y⁢/⁢d⁢x 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 d⁢y⁢/⁢d⁢x, then solve for d⁢y⁢/⁢d⁢x.
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 d⁢y⁢/⁢d⁢x by implicit differentiation, then the tangent line at (3,4).

Find d⁢y⁢/⁢d⁢x on a circle and its tangent line →

Find a tangent slope on x3+y3=6⁢x⁢y →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Plot the circle in Graph Graph the circle and its tangent Write the steps in Math Study the 5 key terms Open worked example on a board Implicit differentiation in Math Reference

Your existing work stays on this device. Examples open as editable copies.