Implicit Differentiation

AP Calculus AB · Unit 3 — Differentiation: Composite, Implicit, and Inverse Functions

Differentiate both sides, then solve

When $y$ cannot be isolated (or it is ugly to do so), differentiate every term with respect to $x$, treating $y$ as a function of $x$. Every time $y$ is differentiated, the chain rule contributes a factor $\dfrac{dy}{dx}$.

So $\dfrac{d}{dx}\left(y^3\right)=3y^2\dfrac{dy}{dx}$, and $\dfrac{d}{dx}(xy)=y+x\dfrac{dy}{dx}$ (product rule and chain rule).

Then collect all $\dfrac{dy}{dx}$ terms on one side and factor. The answer normally contains both $x$ and $y$ — that is expected, not a mistake.

For a vertical tangent, look for where the denominator of $\frac{dy}{dx}$ is zero while the numerator is not; for a horizontal tangent, the numerator zero while the denominator is not.

Worked example: tangent line to an implicit curve

Given $x^2+xy+y^2=7$. Find $\dfrac{dy}{dx}$ and write the tangent line at the point $(1,2)$.

Solution

Differentiate both sides: $2x+\left(y+x\frac{dy}{dx}\right)+2y\frac{dy}{dx}=0$.

Collect: $\frac{dy}{dx}\left(x+2y\right)=-2x-y$, so $\frac{dy}{dx}=\dfrac{-2x-y}{x+2y}$.

At $(1,2)$: $\frac{dy}{dx}=\frac{-2-2}{1+4}=-\frac45$.

Tangent line: $y=2-\frac45(x-1)$.

Check that the point lies on the curve: $1+2+4=7$ ✓ — this step is worth doing, because the problem sometimes gives a point that is not on the curve as a trap.

Common mistake

Differentiating $y^2$ to get $2y$ (forgetting $\frac{dy}{dx}$) is the most common error, and it ruins every later step. For $\frac{d^2y}{dx^2}$ of an implicit function, remember that when differentiating a second time you must substitute back the expression for $\frac{dy}{dx}$ you just found — skip that step and the answer still contains $\frac{dy}{dx}$ and cannot be marked.

Key takeaway

Touch a $y$ and you must attach $\frac{dy}{dx}$. Collect onto one side and factor. Horizontal = numerator $0$, vertical = denominator $0$.

← The Chain Rule · All AP Calculus AB lessons · Practice AP Calculus AB questions (free, instant scoring) · Derivatives of Inverse Functions →