Unit 3 · Topic 3.2 Beta

Implicit Differentiation

4 min read · freeNot practiced

So far every function came as y=y = a formula in xx. Many curves do not. The circle x2+y2=25x^2 + y^2 = 25 and the tilted oval x2+xy+y2=7x^2 + xy + y^2 = 7 mix xx and yy in one equation, and solving for yy is either messy or gives two formulas. Implicit differentiation finds the slope at a point straight from the equation, with no solving for yy first.

Explicit and implicit

A function is given explicitly when yy stands alone: y=25−x2y = \sqrt{25 - x^2}. It is given implicitly when an equation links xx and yy, such as x2+y2=25x^2 + y^2 = 25. The whole circle fails the vertical line test, so it is not the graph of one function. But zoom in near the point (3,4)(3, 4) and you see a small arc that does pass the test. On that arc, yy is a function of xx, even if we never write its formula, and its slope is what we want.

The tilted ellipse x² + xy + y² = 7 in crimson on axes from −4 to 4. A dashed vertical line x = 1 meets it at (1, 2) and (1, −3), so y is not a function of x. A blue tangent line at (1, 2) has slope −4/5.
Figure 1. The curve x2+xy+y2=7x^2 + xy + y^2 = 7. The line x=1x = 1 meets it twice, yet near (1,2)(1, 2) the curve has one tangent line, with slope −45-\frac{4}{5}. LevlPrep original diagram.

The key step: the chain rule on yy

Treat yy as an unknown function of xx. Then a term like y2y^2 is a composite function: the inside is yy, the outside is the square. By the chain rule,

ddx(y2)=2y⋅dydx\frac{d}{dx}\left(y^2\right) = 2y \cdot \frac{dy}{dx}

The factor dydx\frac{dy}{dx} is the derivative of the inside function. It appears every time you differentiate a term that holds yy, and never for a term that holds only xx:

TermDerivative with respect to xxWhy
x3x^33x23x^2only xx: no extra factor
y3y^33y2dydx3y^2\frac{dy}{dx}chain rule, inside yy
sin⁡y\sin ycos⁡y⋅dydx\cos y \cdot \frac{dy}{dx}chain rule, inside yy
eye^yeydydxe^y\frac{dy}{dx}chain rule, inside yy
xyxyy+xdydxy + x\frac{dy}{dx}product rule; the yy factor gives dydx\frac{dy}{dx}
7700a constant

The routine

  1. Apply ddx\frac{d}{dx} to both sides of the equation and write the new equation in full, with its right side (often =0= 0).
  2. Move every term that holds dydx\frac{dy}{dx} to one side and everything else to the other.
  3. Factor out dydx\frac{dy}{dx} and divide.
  4. For a slope at a point, substitute both coordinates after differentiating.

Worked example 1. Find the slope of the circle x2+y2=25x^2 + y^2 = 25 at (3,4)(3, 4).

Differentiate both sides: 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0.

Solve: dydx=−2x2y=−xy\frac{dy}{dx} = -\frac{2x}{2y} = -\frac{x}{y}.

At (3,4)(3, 4): dydx=−34\frac{dy}{dx} = -\frac{3}{4}. Check with the picture: at the upper right of the circle the curve falls as xx grows, so a negative slope makes sense.

Worked example 2. Find dydx\frac{dy}{dx} for x2+xy+y2=7x^2 + xy + y^2 = 7, and the slope at (1,2)(1, 2).

Check the point first: 1+2+4=71 + 2 + 4 = 7, so (1,2)(1, 2) is on the curve.

Differentiate both sides, using the product rule on xyxy: 2x+(y+xdydx)+2ydydx2x + \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx}=0= 0.

Collect: (x+2y)dydx(x + 2y)\frac{dy}{dx}=−(2x+y)= -(2x + y), so dydx\frac{dy}{dx}=−2x+yx+2y= -\frac{2x + y}{x + 2y}.

At (1,2)(1, 2): dydx\frac{dy}{dx}=−2+21+4= -\frac{2 + 2}{1 + 4}=−45= -\frac{4}{5}. The tangent line is y−2=−45(x−1)y - 2 = -\frac{4}{5}(x - 1).

Worked example 3. Find dydx\frac{dy}{dx} for ey+y=x2e^y + y = x^2.

Differentiate: eydydx+dydx=2xe^y\frac{dy}{dx} + \frac{dy}{dx} = 2x. Both terms on the left hold yy, so both get dydx\frac{dy}{dx}.

Factor: (ey+1)dydx=2x(e^y + 1)\frac{dy}{dx} = 2x, so dydx=2xey+1\frac{dy}{dx} = \frac{2x}{e^y + 1}.

Reading the answer

The formula for dydx\frac{dy}{dx} usually holds both xx and yy. That is not a flaw: on the circle, the points (3,4)(3, 4) and (3,−4)(3, -4) share x=3x = 3 but have slopes −34-\frac{3}{4} and 34\frac{3}{4}. You need both coordinates to know which point you mean, and the point must lie on the curve.

A fraction for dydx\frac{dy}{dx} also shows special points. Where the numerator is 0 and the denominator is not, the slope is 0 and the tangent line is flat. Where the denominator is 0 and the numerator is not, the slope is undefined and the tangent line is vertical, as at (−5,0)(-5, 0) and (5,0)(5, 0) on the circle. Always check that such a point is actually on the curve.

Slips that cost points

  • Forgetting dydx\frac{dy}{dx} on a yy-term. Writing 2x+2y=02x + 2y = 0 for the circle loses the whole problem.
  • Skipping the product rule. ddx(xy)\frac{d}{dx}(xy) is y+xdydxy + x\frac{dy}{dx}, two terms, not dydx\frac{dy}{dx} alone.
  • Differentiating one side only. Apply ddx\frac{d}{dx} to both sides, and keep the "=0= 0".
  • Substituting too early. Put in the point's coordinates only after differentiating; a number has derivative 0.
  • Mixing notations. Keep dydx\frac{dy}{dx} (or y′y') separate from dydy and from dydt\frac{dy}{dt}.

Spot a mistake on this page?