Skip to content

Implicit differentiation: derivatives, tangents and stationary points

Implicit differentiation finds derivatives when xx and yy are related by an equation that has not, or cannot easily, be rearranged into y=f(x)y=f(x). The central idea is simple: differentiate every term with respect to xx, remembering that yy is itself a function of xx.

You should be confident with:

Why does dydx\dfrac{dy}{dx} appear?

Section titled “Why does dydx\dfrac{dy}{dx}dxdy​ appear?”

Suppose yy depends on xx. Differentiating y2y^2 with respect to xx requires the chain rule:

ddx(y2)=ddy(y2)dydx=2ydydx.\frac{d}{dx}(y^2) =\frac{d}{dy}(y^2)\frac{dy}{dx} =2y\frac{dy}{dx}.

The factor dydx\dfrac{dy}{dx} records the fact that a change in xx causes a change in yy. More generally,

ddx(f(y))=f(y)dydx.\frac{d}{dx}\bigl(f(y)\bigr)=f'(y)\frac{dy}{dx}.

Useful cases include

ddx(yn)=nyn1dydx,ddx(siny)=cosydydx,\frac{d}{dx}(y^n)=ny^{n-1}\frac{dy}{dx}, \qquad \frac{d}{dx}(\sin y)=\cos y\frac{dy}{dx},

and

ddx(ey)=eydydx.\frac{d}{dx}(e^y)=e^y\frac{dy}{dx}.

By contrast, ddx(x2)=2x\dfrac{d}{dx}(x^2)=2x because xx is already the variable with respect to which we are differentiating.

For an equation involving xx and yy:

  1. Differentiate both sides with respect to xx.
  2. Apply the chain rule to every expression involving yy.
  3. Use the product rule if xx and yy are multiplied together.
  4. Collect every term containing dydx\dfrac{dy}{dx}.
  5. Factor out dydx\dfrac{dy}{dx} and rearrange.

Find dydx\dfrac{dy}{dx} for

x2+y2=25.x^2+y^2=25.

Differentiate each term with respect to xx:

2x+2ydydx=0.2x+2y\frac{dy}{dx}=0.

Now isolate dydx\dfrac{dy}{dx}:

2ydydx=2x,2y\frac{dy}{dx}=-2x, dydx=xy.\boxed{\frac{dy}{dx}=-\frac{x}{y}}.

This result makes geometric sense. At (3,4)(3,4) the radius from the origin has gradient 4/34/3, so the tangent, which is perpendicular to the radius, has gradient 3/4-3/4.

Example 2: collect several derivative terms

Section titled “Example 2: collect several derivative terms”

Given

x2+xy+y2=7,x^2+xy+y^2=7,

find dydx\dfrac{dy}{dx}.

The middle term needs the product rule:

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

Therefore

2x+xdydx+y+2ydydx=0.2x+x\frac{dy}{dx}+y+2y\frac{dy}{dx}=0.

Collect the terms containing dydx\dfrac{dy}{dx}:

(x+2y)dydx=(2x+y).(x+2y)\frac{dy}{dx}=-(2x+y).

Hence

dydx=2x+yx+2y.\boxed{\frac{dy}{dx}=-\frac{2x+y}{x+2y}}.

Do not treat xyxy as though yy were constant. Both factors vary with xx.

Find dydx\dfrac{dy}{dx} if

ey+x2y=4.e^y+x^2y=4.

Differentiate:

eydydx+(2xy+x2dydx)=0.e^y\frac{dy}{dx} +\left(2xy+x^2\frac{dy}{dx}\right)=0.

Collect and factor:

(ey+x2)dydx=2xy.\left(e^y+x^2\right)\frac{dy}{dx}=-2xy.

Therefore

dydx=2xyey+x2.\boxed{\frac{dy}{dx}=-\frac{2xy}{e^y+x^2}}.

Once dydx\dfrac{dy}{dx} is known, substitute the given point to obtain the tangent gradient. A line through (x1,y1)(x_1,y_1) with gradient mm has equation

yy1=m(xx1).y-y_1=m(x-x_1).

If the tangent gradient is m0m\ne 0, the normal gradient is

mnormal=1m.m_{\text{normal}}=-\frac{1}{m}.

The curve

x2+xy+y2=7x^2+xy+y^2=7

passes through (1,2)(1,2). From Example 2,

dydx=2x+yx+2y.\frac{dy}{dx}=-\frac{2x+y}{x+2y}.

At (1,2)(1,2),

mtangent=2(1)+21+2(2)=45.m_{\text{tangent}} =-\frac{2(1)+2}{1+2(2)} =-\frac45.

The tangent is

y2=45(x1).\boxed{y-2=-\frac45(x-1)}.

The normal gradient is 5/45/4, so the normal is

y2=54(x1).\boxed{y-2=\frac54(x-1)}.

Keep the equations in point-gradient form unless another form is requested. It reduces avoidable algebra.

At a stationary point, the tangent is horizontal, so

dydx=0.\frac{dy}{dx}=0.

If

dydx=N(x,y)D(x,y),\frac{dy}{dx}=\frac{N(x,y)}{D(x,y)},

then a stationary point normally satisfies N(x,y)=0N(x,y)=0, provided D(x,y)0D(x,y)\ne 0. You must combine this condition with the original curve equation.

Find the stationary points of

x2+xy+y2=7.x^2+xy+y^2=7.

We have

dydx=2x+yx+2y.\frac{dy}{dx}=-\frac{2x+y}{x+2y}.

For a stationary point,

2x+y=0,2x+y=0,

so y=2xy=-2x. Substitute this into the original equation:

x2+x(2x)+(2x)2=7,x^2+x(-2x)+(-2x)^2=7, 3x2=7.3x^2=7.

Thus

x=±73.x=\pm\sqrt{\frac73}.

Since y=2xy=-2x, the stationary points are

(73,273)and(73,273).\boxed{ \left(\sqrt{\frac73},-2\sqrt{\frac73}\right) \quad\text{and}\quad \left(-\sqrt{\frac73},2\sqrt{\frac73}\right) }.

At these points x+2y=3x0x+2y=-3x\ne0, so the derivative is defined.

For an implicitly defined curve, differentiate the first derivative equation again. Do not assume yy becomes constant on the second differentiation.

Example 6: finding and using d2ydx2\dfrac{d^2y}{dx^2}

Section titled “Example 6: finding and using d2ydx2\dfrac{d^2y}{dx^2}dx2d2y​”

For the circle

x2+y2=25,x^2+y^2=25,

the first differentiated equation is

2x+2ydydx=0.2x+2y\frac{dy}{dx}=0.

Differentiate this equation again:

2+2[(dydx)2+yd2ydx2]=0.2+2\left[\left(\frac{dy}{dx}\right)^2+y\frac{d^2y}{dx^2}\right]=0.

The square appears because the product rule gives

ddx(ydydx)=dydxdydx+yd2ydx2.\frac{d}{dx}\left(y\frac{dy}{dx}\right) =\frac{dy}{dx}\frac{dy}{dx}+y\frac{d^2y}{dx^2}.

Rearranging,

d2ydx2=1+(dydx)2y.\boxed{ \frac{d^2y}{dx^2} =-\frac{1+\left(\frac{dy}{dx}\right)^2}{y} }.

At (0,5)(0,5), dydx=0\dfrac{dy}{dx}=0, so

d2ydx2=15<0.\frac{d^2y}{dx^2}=-\frac15<0.

Therefore (0,5)(0,5) is a local maximum of the upper branch of the circle. At (0,5)(0,-5), the second derivative is 1/5>01/5>0, so the lower branch has a local minimum there.

You can also differentiate an explicit formula for dydx\dfrac{dy}{dx}, but this often introduces a quotient rule. Differentiating the simpler first-derivative equation is usually cleaner.

If a curve is written as

F(x,y)=0,F(x,y)=0,

then, where Fy0F_y\ne0,

dydx=FxFy.\boxed{\frac{dy}{dx}=-\frac{F_x}{F_y}}.

Here FxF_x means differentiate with respect to xx while holding yy constant, and FyF_y means differentiate with respect to yy while holding xx constant. This formula explains why the numerator and denominator in an implicit derivative often resemble partial derivatives. At A level, the step-by-step method is normally clearer and earns the method marks.

Incorrect:

ddx(y3)=3y2.\frac{d}{dx}(y^3)=3y^2.

Correct:

ddx(y3)=3y2dydx.\frac{d}{dx}(y^3)=3y^2\frac{dy}{dx}.

Incorrect:

ddx(xy)=xdydx.\frac{d}{dx}(xy)=x\frac{dy}{dx}.

Correct:

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

Differentiate and rearrange symbolically first. Early substitution can hide terms and makes the method harder to check.

Setting the whole fraction equal to zero without checking it

Section titled “Setting the whole fraction equal to zero without checking it”

A fraction is zero when its numerator is zero and its denominator is non-zero. A zero denominator may represent a vertical tangent or a point at which the derivative formula is undefined.

Using the negative reciprocal in the wrong place

Section titled “Using the negative reciprocal in the wrong place”

dydx\dfrac{dy}{dx} gives the tangent gradient. Take the negative reciprocal only when finding the normal gradient.

  1. Given x2+3y2=12x^2+3y^2=12, find dydx\dfrac{dy}{dx}.
  2. Given x2y+y3=10x^2y+y^3=10, find dydx\dfrac{dy}{dx}.
  3. Find the tangent to x2+xy+y2=7x^2+xy+y^2=7 at (2,1)(2,1).
  4. For x2+4y2=16x^2+4y^2=16, find the stationary points and classify them.
  1. dydx=x3y\displaystyle \frac{dy}{dx}=-\frac{x}{3y}.
  2. dydx=2xyx2+3y2\displaystyle \frac{dy}{dx}=-\frac{2xy}{x^2+3y^2}.
  3. Since dydx=2x+yx+2y\displaystyle \frac{dy}{dx}=-\frac{2x+y}{x+2y}, the gradient at (2,1)(2,1) is 5/4-5/4. The tangent is y1=54(x2)\displaystyle y-1=-\frac54(x-2).
  4. dydx=x4y\displaystyle \frac{dy}{dx}=-\frac{x}{4y}, so stationary points require x=0x=0. The curve gives (0,2)(0,2) and (0,2)(0,-2). Differentiating 2x+8ydydx=02x+8y\dfrac{dy}{dx}=0 again shows d2ydx2=1/(4y)\dfrac{d^2y}{dx^2}=-1/(4y) at a stationary point. Hence (0,2)(0,2) is a local maximum and (0,2)(0,-2) is a local minimum.