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.