Implicit differentiation and related rates AA HL

Implicit differentiation finds a gradient when yy is not written on its own, and related rates use the same idea with time as the variable. The first section shows how to differentiate every term, rearrange for the gradient and use it for tangents, normals and second derivatives. The second shows how to link two changing quantities with one equation, differentiate it with respect to time and substitute at the end. Most questions are exact and need no calculator, so practise the algebra by hand.

Formulas at a glance

The power rule, standard derivatives, chain rule, product rule, quotient rule, the equation of a line through a point and the area, volume and surface area formulas for circles and solids are in the formula booklet. Differentiating a power of yy, and linking two rates through time, are not: both come from the chain rule, so build them from it each time.

Power rule

ddx(xn)=nxn−1\dfrac{d}{dx}(x^n)=nx^{n-1}

In the booklet

Standard derivatives

ddxsin⁡x=cos⁡x, ddxcos⁡x=−sin⁡x, ddxex=ex, ddxln⁡x=1x\dfrac{d}{dx}\sin x=\cos x,\ \dfrac{d}{dx}\cos x=-\sin x,\ \dfrac{d}{dx}e^x=e^x,\ \dfrac{d}{dx}\ln x=\dfrac1x

In the booklet

Chain rule

dydx=dydu⋅dudx\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx}

In the booklet

Product rule

(uv)′=u′v+uv′(uv)'=u'v+uv'

In the booklet

Quotient rule

(uv)′=u′v−uv′v2\left(\dfrac{u}{v}\right)'=\dfrac{u'v-uv'}{v^2}

In the booklet

Differentiating a power of yy with respect to xx

ddx(yn)=nyn−1dydx\dfrac{d}{dx}(y^n)=ny^{n-1}\dfrac{dy}{dx}

Not in the booklet

Equation of a tangent through (x1,y1)(x_1,y_1) with gradient mm

y−y1=m(x−x1)y-y_1=m(x-x_1)

In the booklet

Linking two rates through time

dydt=dydx×dxdt\dfrac{dy}{dt}=\dfrac{dy}{dx}\times\dfrac{dx}{dt}

Not in the booklet

Area of a circle

A=πr2A=\pi r^2

In the booklet

Volume of a sphere

V=43πr3V=\tfrac43\pi r^3

In the booklet

Surface area of a sphere

A=4πr2A=4\pi r^2

In the booklet

Volume of a cone

V=13πr2hV=\tfrac13\pi r^2h

In the booklet

Which method to use

Decide whether the question is about a curve at one moment, where xx is the variable, or about quantities changing with time, where tt is the variable. Then look at what is given.

The question hasUseNotes
An equation in xx and yy with yy not on its own, and dydx\dfrac{dy}{dx} wantedDifferentiate every term with respect to xx, adding a factor dydx\dfrac{dy}{dx} to each term in yyCollect the dydx\dfrac{dy}{dx} terms on one side, factorise, then divide
A term such as xyxy or x2yx^2yThe product rule, with dydx\dfrac{dy}{dx} coming from the yy factorDo not treat the yy factor as a constant
A gradient, tangent or normal at a point on the curveSubstitute both coordinates into dydx\dfrac{dy}{dx}, then use y−y1=m(x−x1)y-y_1=m(x-x_1)For a normal, use −1m-\dfrac{1}{m} as the gradient
A second derivative d2ydx2\dfrac{d^2y}{dx^2} of an implicit curveDifferentiate dydx\dfrac{dy}{dx} implicitly again, then replace dydx\dfrac{dy}{dx} with the first resultThe original equation often simplifies the final answer
Two quantities changing with time, and the rate of one is wantedOne equation linking them, differentiated with respect to ttSubstitute the known values only after differentiating
The area or volume of a circle or solid changingThe booklet formula and the chain rule, for example dVdt=dVdr×drdt\dfrac{dV}{dt}=\dfrac{dV}{dr}\times\dfrac{dr}{dt}Keep the radius as a variable until the derivative is taken
A right-angled triangle whose sides change, such as a sliding ladderPythagoras' theorem, differentiated with respect to ttA length that is getting shorter has a negative rate
A person or point moving along a line, with a shadow or other similar trianglesSimilar triangles to link the lengths, then differentiate with respect to ttRead whether the question asks for the speed of the tip or the rate of change of the length

Section 1 of 2 AHL5.14 AHL5.12

Implicit differentiation

Implicit differentiation finds dydx\dfrac{dy}{dx} for a relation in which yy is not written as a function of xx, such as x2+y3=10x^2+y^3=10. Differentiate every term with respect to xx, remembering that each yy term gains a factor of dydx\dfrac{dy}{dx}, then rearrange to make dydx\dfrac{dy}{dx} the subject. It also covers products such as xyxy and gradients at a point.

The method

There is no separate formula to learn here: implicit differentiation is a technique built entirely from the chain rule, so it is not listed in the formula booklet.

Implicit differentiation

Differentiate both sides of an equation in xx and yy with respect to xx. Because yy is itself a function of xx, every yy-term picks up a dydx\dfrac{dy}{dx} factor from the chain rule. Once every term is differentiated, rearrange to isolate dydx\dfrac{dy}{dx}.

Not in the formula booklet - technique

Mixed terms need the product rule too

A term like xyxy contains both variables, so differentiate it as a product: ddx(xy)=y+xdydx\dfrac{d}{dx}(xy) = y + x\dfrac{dy}{dx}. Then collect every dydx\dfrac{dy}{dx} term on one side and factorise before dividing through.

Useful for tangent and normal problems on circles and other implicitly defined curves. For a second derivative, differentiate your expression for dydx\dfrac{dy}{dx} implicitly again, then replace each dydx\dfrac{dy}{dx} in the result with the first derivative.

Key terms

What is an implicit relation?

It is an equation in which xx and yy are mixed together and yy is not isolated. Some implicit relations cannot be rearranged into the form y=f(x)y=f(x).

e.g. x3+xy=7x^3+xy=7 is implicit, whereas y=x3+7y=x^3+7 is written explicitly.

How do you differentiate xyxy?

xyxy is a product of two functions of xx, so use the product rule. The yy factor gives a dydx\dfrac{dy}{dx} term.

e.g. ddx(x2y)=2xy+x2dydx\dfrac{d}{dx}(x^2y)=2xy+x^2\dfrac{dy}{dx}.

How do you make dydx\dfrac{dy}{dx} the subject?

After differentiating, collect every term containing dydx\dfrac{dy}{dx} on one side, factorise it out, then divide.

e.g. For x2+xy=3x^2+xy=3, differentiating gives 2x+y+xdydx=02x+y+x\dfrac{dy}{dx}=0, so dydx=−2x+yx\dfrac{dy}{dx}=-\dfrac{2x+y}{x}.

How do you find the gradient at a point on an implicit curve?

After isolating dydx\dfrac{dy}{dx}, substitute both the xx-coordinate and the yy-coordinate of the point, because the expression usually contains both.

e.g. For x2+4y2=20x^2+4y^2=20, dydx=−x4y\dfrac{dy}{dx}=-\dfrac{x}{4y}, so at (2,2)(2,2) the gradient is −14-\dfrac14.

Worked example, step by step

The question No calculator needed [6 marks]

The curve CC has equation x2y+y3=10x^2y+y^3=10. The point P(1,2)P(1,2) lies on CC.

(a) Find dydx\dfrac{dy}{dx} in terms of xx and yy.

(b) Find the equation of the normal to CC at PP, giving your answer in the form ax+by+c=0ax+by+c=0, where aa, bb and cc are integers.

Worked solution: worked example

Answer: (a) dydx=−2xyx2+3y2\dfrac{dy}{dx}=-\dfrac{2xy}{x^2+3y^2} (b) 13x−4y−5=013x-4y-5=0

Step 1 - Differentiate every term with respect to xx.

The term x2yx^2y is a product, so ddx(x2y)=2xy+x2dydx,ddx(y3)=3y2dydx,ddx(10)=0.\dfrac{d}{dx}(x^2y)=2xy+x^2\dfrac{dy}{dx},\qquad\dfrac{d}{dx}(y^3)=3y^2\dfrac{dy}{dx},\qquad\dfrac{d}{dx}(10)=0. Therefore 2xy+x2dydx+3y2dydx=0.2xy+x^2\dfrac{dy}{dx}+3y^2\dfrac{dy}{dx}=0. M1 - Differentiate with respect to xx, using the product rule and a factor dydx\dfrac{dy}{dx} on each term in yy A1 - 2xy+x2dydx+3y2dydx=02xy+x^2\dfrac{dy}{dx}+3y^2\dfrac{dy}{dx}=0

Why? Because yy is a function of xx, the chain rule gives each term in yy a factor dydx\dfrac{dy}{dx}. The product rule handles x2yx^2y, where both factors vary.

Step 2 - Make dydx\dfrac{dy}{dx} the subject.

Collect the terms that contain dydx\dfrac{dy}{dx} and factorise: (x2+3y2)dydx=−2xy⇒dydx=−2xyx2+3y2.(x^2+3y^2)\dfrac{dy}{dx}=-2xy\quad\Rightarrow\quad\dfrac{dy}{dx}=-\dfrac{2xy}{x^2+3y^2}. M1 - Collect and factorise the dydx\dfrac{dy}{dx} terms A1 - dydx=−2xyx2+3y2\dfrac{dy}{dx}=-\dfrac{2xy}{x^2+3y^2}

Why? The dydx\dfrac{dy}{dx} terms are on one side and everything else is on the other, so a single division finishes part (a).

Step 3 - Find the gradient of the tangent at PP.

Substitute x=1x=1 and y=2y=2: dydx=−2(1)(2)12+3(2)2=−413.\dfrac{dy}{dx}=-\dfrac{2(1)(2)}{1^2+3(2)^2}=-\dfrac{4}{13}.

Why? The expression contains both xx and yy, so both coordinates of PP are needed.

Step 4 - Find the gradient of the normal.

The normal is perpendicular to the tangent, so its gradient is the negative reciprocal of −413-\dfrac{4}{13}, which is 134\dfrac{13}{4}. M1 - Substitute PP to find the tangent gradient −413-\dfrac{4}{13} and take the negative reciprocal

Why? Perpendicular lines have gradients whose product is −1-1. Turning the fraction upside down and changing the sign gives it.

Step 5 - Write the equation of the normal.

y−2=134(x−1)⇒4y−8=13x−13⇒13x−4y−5=0.y-2=\dfrac{13}{4}(x-1)\quad\Rightarrow\quad4y-8=13x-13\quad\Rightarrow\quad13x-4y-5=0. A1 - 13x−4y−5=013x-4y-5=0

Why? Multiply by 44 to clear the fraction, then collect everything on one side to meet the form ax+by+c=0ax+by+c=0. The point (1,2)(1,2) gives 13−8−5=013-8-5=0, as it should.

Marks (6):
M1 Differentiate with respect to xx, using the product rule and a factor dydx\dfrac{dy}{dx} on each term in yy
A1 2xy+x2dydx+3y2dydx=02xy+x^2\dfrac{dy}{dx}+3y^2\dfrac{dy}{dx}=0
M1 Collect and factorise the dydx\dfrac{dy}{dx} terms
A1 dydx=−2xyx2+3y2\dfrac{dy}{dx}=-\dfrac{2xy}{x^2+3y^2}
M1 Substitute PP to find the tangent gradient −413-\dfrac{4}{13} and take the negative reciprocal
A1 13x−4y−5=013x-4y-5=0

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Medium
No calc
[6 marks]
For the circle x2+y2=25x^2+y^2=25, find the equation of the tangent at the point (3,4).(3,4).
[6]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[6 marks]
The curve x2−y2=1x^2-y^2=1 is defined implicitly.

Find d2ydx2\dfrac{d^2y}{dx^2} in terms of yy only, giving your answer in simplified form.
[6]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[5 marks]
A curve is defined by x2+xy+y2=7.x^2 + xy + y^2 = 7. Find dydx.\dfrac{dy}{dx}.
[5]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 17 marks

Common mistakes

  • Dropping dydx\dfrac{dy}{dx} on a y-term. Every term containing yy needs a dydx\dfrac{dy}{dx} factor from the chain rule - forgetting it on even one term gives a completely wrong equation to rearrange.
  • Treating xyxy as a simple product of constants. A mixed term like xyxy needs the product rule, not just "differentiate xx, differentiate yy" - the correct result is y+xdydxy + x\dfrac{dy}{dx}, not 1⋅dydx1 \cdot \dfrac{dy}{dx}.
  • Stopping before isolating dydx\dfrac{dy}{dx}. After differentiating, the dydx\dfrac{dy}{dx} terms are usually scattered across the equation - you must collect them, factorise, and divide before the answer is complete.

Try some questions on implicit differentiation

Syllabus content covered

CodeSyllabus content
AHL5.12Higher derivatives. Familiarity with the notations dnydxn\dfrac{d^ny}{dx^n}, f(n)(x)f^{(n)}(x).
AHL5.14Implicit differentiation. Related rates of change. Appropriate use of the chain rule or implicit differentiation.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

What is implicit differentiation?

A way of differentiating an equation in xx and yy that isn't rearranged into y=f(x)y = f(x). You differentiate both sides with respect to xx, applying the chain rule so every yy-term gains a dydx\dfrac{dy}{dx} factor, then rearrange to isolate dydx\dfrac{dy}{dx}.

How do I set up a related rates of change problem?

Write a fixed equation connecting the quantities involved - Pythagoras' theorem, a volume or area formula, similar triangles or a trigonometric relationship. Then differentiate both sides implicitly with respect to time and substitute the known rate and value to solve for the unknown rate.

Why does differentiating a y-term give a dy/dx?

Because yy is itself a function of xx, so differentiating any expression in yy with respect to xx needs the chain rule: ddx(yn)=nyn−1dydx\dfrac{d}{dx}(y^n) = ny^{n-1}\dfrac{dy}{dx}.

Why can't I substitute the known values before differentiating?

Substituting a fixed value too early turns a variable into a constant, so its derivative silently disappears from the equation. Differentiate the whole connecting equation first, with every quantity still a variable, and only substitute known numbers afterwards.

How do I find the equation of a tangent to an implicit curve?

Find dydx\dfrac{dy}{dx}, substitute the coordinates of the point to get the gradient mm, then use y−y1=m(x−x1)y-y_1=m(x-x_1).

Should the answer to a related rates question be positive or negative?

The sign shows direction: a positive rate means the quantity is increasing and a negative rate means it is decreasing. If a question asks how fast something is falling, a negative value such as −0.4-0.4 m/s means it is falling at 0.40.4 m/s.

Why do both x and y appear in my expression for dy/dx?

The relation does not give yy as a function of xx, so the gradient generally depends on both coordinates. Substitute both values to find the gradient at a point.

What if the equation has more variables than I have rates for?

Use the geometry to eliminate a variable before differentiating, as long as you substitute a relationship and not a particular value. For a cone with h=2rh=2r, the volume V=13πr2hV=\dfrac{1}{3}\pi r^{2}h becomes V=23πr3V=\dfrac{2}{3}\pi r^{3}, which has only one variable besides VV.

When does an implicit curve have a vertical tangent?

Where the denominator of dydx\dfrac{dy}{dx} is zero and the numerator is not. For x2+4y2=20x^2+4y^2=20, dydx=−x4y\dfrac{dy}{dx}=-\dfrac{x}{4y} is undefined at y=0y=0, which gives the points (±25,0)(\pm2\sqrt5,0).

What units does a related rate have?

The unit is the unit of the quantity divided by the unit of time. A volume measured in cm3\text{cm}^{3}, changing with time measured in seconds, has a rate in cm3s−1\text{cm}^{3}\,\text{s}^{-1}.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.