Mathematics/Lessons/Differentiation/Implicit Differentiation
Pure · Differentiation · Year 2

Implicit Differentiation

Not every curve gives up $y$ in terms of $x$ — differentiate the equation as it stands, and let the chain rule carry the weight.

9 min read 4 worked examples

Differentiating equations that aren't solved for y

Equations like $y=3x^2+2$ are explicit: $y$ is written directly in terms of $x$, ready to differentiate term by term. But an equation like $x^2+y^2=25$ is implicit — $y$ isn't isolated, and often can't be without splitting into multiple branches (here, $y=\pm\sqrt{25-x^2}$).

Implicit differentiation avoids rearranging altogether. Treat $y$ as an unspecified function of $x$, differentiate both sides of the equation term by term with respect to $x$, and apply the chain rule to any term involving $y$ — since $y$ itself depends on $x$.

$\dfrac{d}{dx}(y^2)=\dfrac{d}{dx}(y^2)\times\dfrac{dy}{dx}=2y\dfrac{dy}{dx}$
The core mechanism

Every time a term contains $y$, differentiating it with respect to $x$ requires the chain rule: differentiate with respect to $y$ first, then multiply by $\dfrac{dy}{dx}$. So $\dfrac{d}{dx}(y^n)=ny^{n-1}\dfrac{dy}{dx}$, and any term mixing $x$ and $y$ (like $xy$ or $x^2y^3$) additionally needs the product rule.

After differentiating every term, $\dfrac{dy}{dx}$ appears scattered throughout the equation. Collect all terms containing $\dfrac{dy}{dx}$ on one side, factor it out, and divide to make $\dfrac{dy}{dx}$ the subject — usually leaving an expression in terms of both $x$ and $y$.

Tangents and normals to implicit curves

Once $\dfrac{dy}{dx}$ has been found implicitly, finding a tangent or normal at a given point $(x_1,y_1)$ on the curve works exactly as before: substitute the point's coordinates into the (typically mixed) expression for $\dfrac{dy}{dx}$ to get a numerical gradient, then use $y-y_1=m(x-x_1)$ — with $m$ itself for the tangent, or $-\dfrac{1}{m}$ for the normal.

Worked example 1

Differentiating a circle implicitly
Find $\dfrac{dy}{dx}$ for the curve $x^2+y^2=25$.
MethodDifferentiate term by term, applying the chain rule to the y² term
1
Differentiate both sides with respect to $x$: $\dfrac{d}{dx}(x^2)+\dfrac{d}{dx}(y^2)=\dfrac{d}{dx}(25)$.
Differentiate every term in the equation, left and right.
2
$2x+2y\dfrac{dy}{dx}=0$.
$x^2$ differentiates normally; $y^2$ needs the chain rule, giving $2y\frac{dy}{dx}$; the constant 25 differentiates to 0.
3
$2y\dfrac{dy}{dx}=-2x \Rightarrow \dfrac{dy}{dx}=-\dfrac{x}{y}$.
Rearrange to make dy/dx the subject.
▪ solved
Sense-check

On the circle $x^2+y^2=25$, the gradient $-\dfrac{x}{y}$ is the negative reciprocal of $\dfrac{y}{x}$ — exactly what's expected, since the radius to any point has gradient $\dfrac{y}{x}$, and a tangent to a circle is always perpendicular to the radius at that point.

Worked example 2

A curve mixing x and y (needs the product rule too)
Find $\dfrac{dy}{dx}$ for the curve $x^2+3xy+y^2=9$.
MethodDifferentiate term by term; the xy term needs the product rule
1
Differentiate $x^2$: gives $2x$. Differentiate $y^2$: gives $2y\dfrac{dy}{dx}$ (chain rule).
Same as Example 1 for these two terms.
2
Differentiate $3xy$ using the product rule with $u=3x$, $v=y$: $\dfrac{d}{dx}(3xy)=3x\dfrac{dy}{dx}+3y$.
A term mixing x and y is a product, and y depends on x, so the product rule is needed.
3
Putting it together: $2x+3x\dfrac{dy}{dx}+3y+2y\dfrac{dy}{dx}=0$.
Differentiate the right-hand side (constant 9) to 0, and combine all differentiated terms.
4
Collect $\dfrac{dy}{dx}$ terms: $\dfrac{dy}{dx}(3x+2y)=-2x-3y$.
Move all non-dy/dx terms to the other side, then factor dy/dx out.
5
$\dfrac{dy}{dx}=-\dfrac{2x+3y}{3x+2y}$.
Divide to isolate dy/dx.
▪ solved

Worked example 3

Finding a tangent to an implicit curve
Find the equation of the tangent to $x^2+y^2=25$ at the point $(3,4)$.
MethodSubstitute into dy/dx, then use the tangent line formula
1
From Example 1, $\dfrac{dy}{dx}=-\dfrac{x}{y}$.
Reuse the implicit derivative found earlier for the same curve.
2
At $(3,4)$: $\dfrac{dy}{dx}=-\dfrac{3}{4}$.
Substitute the point's coordinates.
3
Tangent: $y-4=-\dfrac{3}{4}(x-3)$.
Use y − y₁ = m(x − x₁) with the gradient just found.
4
$4y-16=-3x+9 \Rightarrow 3x+4y=25$.
Multiply through by 4 and rearrange to a clean linear form.
▪ solved

Worked example 4

Normal to a curve with an exponential term · Challenge
The curve $y^3+xy=e^x-1$ passes through $(0,1)$. Find the equation of the normal at this point.
MethodDifferentiate implicitly, substitute, then use the negative reciprocal gradient
1
Differentiate term by term: $\dfrac{d}{dx}(y^3)=3y^2\dfrac{dy}{dx}$ (chain rule); $\dfrac{d}{dx}(xy)=x\dfrac{dy}{dx}+y$ (product rule); $\dfrac{d}{dx}(e^x-1)=e^x$.
Each term needs its own rule: chain rule for y³, product rule for xy.
2
$3y^2\dfrac{dy}{dx}+x\dfrac{dy}{dx}+y=e^x$.
Combine into one differentiated equation.
3
$\dfrac{dy}{dx}(3y^2+x)=e^x-y \Rightarrow \dfrac{dy}{dx}=\dfrac{e^x-y}{3y^2+x}$.
Collect and isolate dy/dx.
4
At $(0,1)$: $\dfrac{dy}{dx}=\dfrac{e^0-1}{3(1)^2+0}=\dfrac{1-1}{3}=0$.
Substitute the given point.
5
The tangent gradient is $0$, so the normal is vertical: $x=0$.
A normal perpendicular to a horizontal tangent is a vertical line through the same point — the negative-reciprocal formula breaks down here since dividing by 0 is undefined, so this case must be reasoned about directly.
▪ solved
Look deeper

Whenever an implicit tangent gradient comes out as $0$, the normal isn't found by "flipping and negating" $0$ (which is undefined) — it's simply the vertical line $x=x_1$ through the point. Always check for this special case before applying $-\dfrac{1}{m}$ automatically.

Common mistake

Forgetting to multiply by $\dfrac{dy}{dx}$ when differentiating a term containing $y$ — e.g. writing $\dfrac{d}{dx}(y^2)=2y$ instead of $2y\dfrac{dy}{dx}$. Also common: treating a mixed term like $xy$ as if only one variable needs differentiating, instead of applying the full product rule.

Check yourself

Find $\dfrac{dy}{dx}$ for the curve $x^3+y^3=6xy$.
(Hint: the right-hand side is a product of x and y, and needs the product rule.)

Method
1
Differentiate: $3x^2+3y^2\dfrac{dy}{dx}=6\left(x\dfrac{dy}{dx}+y\right)$.
Chain rule on y³, product rule on 6xy.
2
$3x^2+3y^2\dfrac{dy}{dx}=6x\dfrac{dy}{dx}+6y$.
Expand the right-hand side.
3
$\dfrac{dy}{dx}(3y^2-6x)=6y-3x^2 \Rightarrow \dfrac{dy}{dx}=\dfrac{6y-3x^2}{3y^2-6x}=\dfrac{2y-x^2}{y^2-2x}$.
Collect, factor out dy/dx, divide, then simplify by cancelling a factor of 3.
▪ solved