AP Calculus AB/BC

Part 3 · applications-of-derivatives

Implicit differentiation

Differentiating an equation you cannot solve for y — which is most equations, and the technique behind related rates and inverse functions.

By the end of this chapter you can

  • Differentiate an equation implicitly and solve for dy/dx
  • Explain why every y produces a dy/dx factor
  • Find the tangent line to an implicitly defined curve
  • Derive the derivative of an inverse function

x2+y2=25x^2 + y^2 = 25 is a circle, and no function describes it — a circle fails the vertical line test. Yet it plainly has a tangent line at every point, so a derivative exists locally even though yy is not a function of xx globally.

Implicit differentiation gets that derivative without ever solving for yy.

The one rule

Differentiate both sides with respect to xx, treating yy as a function of xx. Every yy you differentiate produces a factor of dydx\tfrac{dy}{dx}, by the chain rule.

For x2+y2=25x^2 + y^2 = 25:

2x+2ydydx=0dydx=xy2x + 2y\frac{dy}{dx} = 0 \qquad\Longrightarrow\qquad \frac{dy}{dx} = -\frac{x}{y}

  • ddxx2=2x\frac{d}{d x} x^{2} = 2 x
  • ddyy2=2y\frac{d}{d y} y^{2} = 2 y
checked by the build

The second line is where the dydx\tfrac{dy}{dx} comes from: differentiating y2y^2 with respect to yy gives 2y2y, and the chain rule multiplies by dydx\tfrac{dy}{dx} to convert it to a derivative with respect to xx.

Checking against the explicit route

The circle is one of the rare cases where you can solve for yy, which makes it a good check. The upper half is y=25x2y = \sqrt{25 - x^2}:

  • ddx25x2=x25x2\frac{d}{d x} \sqrt{25 - x^{2}} = - \frac{x}{\sqrt{25 - x^{2}}}
checked by the build

That is xy-\tfrac{x}{y}, since y=25x2y = \sqrt{25-x^2} on the upper half. The two routes agree, and the implicit one gave the answer in one line without a square root and without splitting the circle into halves.

That economy is the point. For x3+y3=6xyx^3 + y^3 = 6xy — the folium of Descartes — solving for yy means a cubic formula. Differentiating implicitly takes a line:

3x2+3y2dydx=6y+6xdydx3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx}

Collect the dydx\tfrac{dy}{dx} terms on one side and factor:

dydx=6y3x23y26x\frac{dy}{dx} = \frac{6y - 3x^2}{3y^2 - 6x}

The answer depends on both xx and yy, which is normal for an implicit derivative and is exactly right — a curve that doubles back has different slopes at two points with the same xx.

Products need the product rule

A term with both variables needs the product rule and the chain rule:

ddx(xy)=1y+xdydx\frac{d}{dx}(xy) = 1\cdot y + x\frac{dy}{dx}

  • xxy=y\frac{\partial}{\partial x} x y = y
checked by the build

That verified line is the first half — the derivative of xyxy treating yy as constant is yy — and the second half, xdydxx\tfrac{dy}{dx}, is what implicit differentiation adds. Missing it is the same omission as before, wearing a different hat.

Tangent lines

The usual exam question: find the tangent to x2+y2=25x^2 + y^2 = 25 at (3,4)(3, 4).

dydx=xy=34\tfrac{dy}{dx} = -\tfrac{x}{y} = -\tfrac{3}{4}, so the tangent is

y4=34(x3)y - 4 = -\tfrac34(x - 3)

Sanity check: the radius to (3,4)(3,4) has slope 43\tfrac43, and 34-\tfrac34 is its negative reciprocal — the tangent is perpendicular to the radius, as a circle’s tangent must be. Geometry confirming calculus is a free check, and worth taking.

Inverse functions

Implicit differentiation gives the inverse-function rule immediately. If y=f1(x)y = f^{-1}(x) then f(y)=xf(y) = x, and differentiating both sides:

f(y)dydx=1dydx=1f(y)f'(y)\frac{dy}{dx} = 1 \qquad\Longrightarrow\qquad \frac{dy}{dx} = \frac{1}{f'(y)}

The derivative of an inverse is the reciprocal of the original’s derivative, evaluated at the corresponding point.

That is where the inverse trigonometric derivatives come from:

  • ddxasin(x)=11x2\frac{d}{d x} \operatorname{asin}{\left(x \right)} = \frac{1}{\sqrt{1 - x^{2}}}
  • ddxatan(x)=1x2+1\frac{d}{d x} \operatorname{atan}{\left(x \right)} = \frac{1}{x^{2} + 1}
  • ddxlog(x)=1x\frac{d}{d x} \log{\left(x \right)} = \frac{1}{x}
checked by the build

For arcsin\arcsin: if y=arcsinxy = \arcsin x then siny=x\sin y = x, so cosydydx=1\cos y \tfrac{dy}{dx} = 1, giving dydx=1cosy\tfrac{dy}{dx} = \tfrac{1}{\cos y}. Then cosy=1sin2y=1x2\cos y = \sqrt{1 - \sin^2 y} = \sqrt{1 - x^2}, and the standard result drops out.

The third line is the same trick on ey=xe^y = x, which is why ln\ln differentiates to 1x\tfrac1x — a result that looks like it should need its own proof and does not.