Skip to content
IB Diploma ProgrammeSL & HL

Implicit differentiation and related rates

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Implicit differentiation and related rates notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Implicit differentiation and related rates notes as text: skim, search, and jump between subtopics.

~14 min read

1. Implicit differentiation

When y cannot easily be made the subject, differentiate every term with respect to x. A term in y is a function of x, so the chain rule gives an extra factor dy/dx.

A term in x alone is differentiated as usual. Then collect the terms in dy/dx and make it the subject.

The markscheme gives a method mark for an attempt at implicit differentiation. The last mark needs dy/dx in terms of x and y.

d/dx(yⁿ) = nyⁿ⁻¹dy/dx

d/dx(f(y)) = f'(y)dy/dx

Worked example 13 marks

Consider the curve x² + (y - 2)² = 4. Find an expression for dy/dx in terms of x and y.

  1. 1

    attempt to use implicit differentiation (M1) [1]

  2. 2

    2x + 2(y-2)dy/dx = 0 (A1) [1]

  3. 3

    dy/dx = (-x)/(y-2) = x/(2-y), in terms of x and y A1 [1]

2. Products and gradient at a point

A term such as xy is a product of two functions of x. Use the product rule, and remember that the derivative of y is dy/dx.

After differentiating, move every term containing dy/dx to one side and factorise. Divide to make dy/dx the subject.

To find the gradient at a point, substitute both coordinates into the expression. The answer is a number.

d/dx(xy) = y + xdy/dx

d/dx(x²y) = 2xy + x²dy/dx

Worked example 15 marks

A curve has equation x² + xy + y² = 7.(a) Find an expression for dy/dx in terms of x and y.(b) Find the gradient of the curve at the point (1, 2).

  1. 1

    (a)

  2. 2

    attempt to differentiate implicitly, using the product rule on xy (M1) [1]

  3. 3

    2x + y + xdy/dx + 2ydy/dx = 0 (A1) [1]

  4. 4

    collect and factorise: (x + 2y)dy/dx = -(2x +y) (M1) [1]

  5. 5

    dy/dx = -(2x + y)/(x + 2y) (A1) [1]

  6. 6

    (b)

  7. 7

    substitute x = 1, y = 2: dy/dx = -4/5 (A1) [1]

3. Horizontal and vertical tangents

Write dy/dx as a fraction. The tangent is horizontal where the numerator is zero. The gradient is undefined where the denominator is zero, and the tangent is vertical.

Setting one factor to zero gives a relation between x and y. Put it into the equation of the curve to find the coordinates. Give every solution, not only the first.

A point found this way must lie on the curve. Check that the other factor is not also zero there.

dy/dx = (N(x,y))/(M(x,y))

horizontal: N = 0, M ≠ 0 vertical: M = 0, N ≠ 0

Worked example 12 marks

Consider the curve x² + (y - 2)² = 4, for which dy/dx = x/(2 - y). Hence or otherwise, find the values of x for which the gradient of the curve is undefined.

  1. 1

    gradient undefined where y - 2 = 0, so y = 2 (M1) [1]

  2. 2

    x² + 0 = 4, so x = 2 and x = -2 A1 [1]

6. Optimisation: stationary points

Set the derivative equal to zero, solve and substitute back. Where the question says exact, give a surd or fraction: the markscheme awards A0 for x = 0.707.

Worked example 16 marks

Consider the function v(x) = ln x, where x ∈ R, x > 0. For v, it is given that k(x) = x/((1 + x²)^(3/2)) and k'(x) = (1 - 2x²)/((1 + x²)^(5/2)). The maximum value of k(x) is denoted by k_max.(i) Determine the exact value of x where k_max occurs. You are not required to justify that this value of x leads to a maximum.(ii) Show that k_max = (2√3)/9.

  1. 1

    (i) sets k'(x) = 0 and attempts to solve for x: x² = 1/2 (M1) [1]

  2. 2

    x = 1/(√2), the exact positive value A1 [1]

  3. 3

    (ii) substitutes their value of x into k(x): k(1/(√2)) = (1/(√2))/((1 + 1/2)^(3/2)) (M1) [1]

  4. 4

    (1 + 1/2)^(3/2) = (3/2)^(3/2) (A1) [1]

  5. 5

    = (3√3)/(2√2) A1 [1]

  6. 6

    k_max = 1/(√2) × (2√2)/(3√3) = 2/(3√3) A1 [1]

  7. 7

    = (2√3)/9 (AG)

7. Optimisation with a constraint

Use the constraint to write the quantity as a function of one variable in the domain the context allows. Set the derivative to zero, show the point is a maximum (second derivative negative) or minimum (positive), then answer the question asked.

Worked example 16 marks

A farmer has 60 m of fencing. She uses it to make a rectangular pen against a straight wall. The wall forms one side, so fencing is needed on three sides only. The two sides that meet the wall have length x m. Determine the greatest possible area of the pen.

  1. 1

    the side parallel to the wall is 60 - 2x, so A = x(60 - 2x) = 60x - 2x² (M1)(A1) [2]

  2. 2

    differentiate and set equal to zero: dA/dx = 60 - 4x = 0, so x = 15 (M1)(A1) [2]

  3. 3

    d²A/dx² = -4 < 0, so the point is a maximum (R1) [1]

  4. 4

    A = 15 × 30 = 450 m² (A1) [1]

8. Optimisation: end points

On a closed interval, the greatest or least value may be at an end point. Evaluate the function at every stationary point inside the interval and at both end points, then compare. A solution of f'(x) = 0 outside the interval is not used.

Worked example 15 marks

Let f(x) = x³ - 6x² + 9x for 0 ≤ x ≤ 5. Determine the greatest value of f(x).

  1. 1

    f'(x) = 3x² - 12x + 9 = 3(x-1)(x-3) = 0, so x = 1 and x = 3 (M1)(A1) [2]

  2. 2

    evaluate at the stationary points and the end points: f(0) = 0, f(1) = 4, f(3) = 0, f(5) = 125 - 150 + 45 = 20 (M1)(A1) [2]

  3. 3

    the greatest value is 20, at the end point x = 5, not at the local maximum (R1) [1]

Recap

  • Implicit differentiation: differentiate every term with respect to x. A term in y gets a factor dy/dx from the chain rule.
  • Use the product rule on xy: d/dx(xy) = y + xdy/dx. Then collect, factorise and divide.
  • Horizontal tangent: numerator of dy/dx is zero. Undefined gradient: denominator is zero. Put the result into the curve's equation.
  • Related rates: write the formula, differentiate with respect to t, then substitute the instant. A decreasing quantity has a negative rate.
  • For a relationship such as PV = k, differentiate throughout with respect to t with the product rule.
  • Optimisation: set f'(x) = 0, solve, then find the value. Use the constraint to reduce to one variable.
  • On a closed interval, compare f at every stationary point and both end points. Reject solutions outside the domain.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Write down d/dx(y³).1 mark
    Answer
    1. 3y²dy/dx (A1)

    Trap: Writing 3y² and leaving out the factor dy/dx.

  2. Do not use a calculator. A curve has equation x² + y² = 25. Find the gradient of the curve at the point (3, 4).3 marks
    Answer
    1. 2x + 2ydy/dx = 0 (M1)
    2. dy/dx = -x/y (A1)
    3. at (3, 4) the gradient is -3/4 (A1)

    Trap: Moving 2x across without changing its sign, which gives x/y and a gradient of +3/4.

  3. Do not use a calculator. A curve has equation x³ + y³ = 9xy. Show that the point (2, 4) lies on the curve, and find the gradient of the curve at this point.4 marks
    Answer
    1. LHS = 8 + 64 = 72 and RHS = 9 × 2 × 4 = 72 (A1)
    2. attempt to differentiate implicitly, with the product rule on 9xy (M1)
    3. 3x² + 3y²dy/dx = 9y + 9xdy/dx (A1)
    4. at (2, 4): 12 + 48dy/dx = 36 + 18dy/dx, so 30dy/dx = 24 and the gradient is 4/5 (A1)

    Trap: Differentiating 9xy as 9y only, so the term 9xdy/dx is lost.

  4. Do not use a calculator. A curve has equation x² + xy + y² = 3. Find the coordinates of the points on the curve where the tangent is horizontal.5 marks
    Answer
    1. 2x + y + (x + 2y)dy/dx = 0 (M1)(A1)
    2. horizontal tangent: dy/dx = 0, so 2x + y = 0 and y = -2x (M1)
    3. substitute into the curve: x² - 2x² + 4x² = 3, so x² = 1 (M1)
    4. x = 1, y = -2 and x = -1, y = 2: the points are (1, -2) and (-1, 2) (A1)

    Trap: Stopping at y = -2x. The coordinates need the equation of the curve, and there are two points.

  5. Do not use a calculator. The radius of a circular ripple increases at 3 cm s⁻¹. Find the rate at which the area of the ripple is increasing at the instant when its circumference is 20π cm.3 marks
    Answer
    1. dA/dt = dA/dr × dr/dt = 2π r × 3 (M1)
    2. 2π r = 20π, so r = 10 (A1)
    3. dA/dt = 2π(10)(3) = 60π cm² s⁻¹ (A1)

    Trap: Substituting the circumference 20π as r. The circumference is 2π r, so r = 10.

  6. Do not use a calculator. The edge of a cube is increasing so that its volume increases at 12 cm³ s⁻¹. Find the rate at which the edge is increasing at the instant when the total surface area of the cube is 54 cm².5 marks
    Answer
    1. V = x³, so dV/dt = 3x²dx/dt (M1)
    2. 12 = 3x²dx/dt (A1)
    3. surface area 6x² = 54 (M1)
    4. x = 3 (A1)
    5. dx/dt = 12/27 = 4/9 cm s⁻¹ (A1)

    Trap: Using 54 as the edge length, or taking 12 as dx/dt. 54 is an area and 12 is dV/dt.

  7. A ladder of length 5 m leans against a vertical wall. The foot of the ladder slides away from the wall at 0.3 m s⁻¹. Determine the rate at which the top of the ladder moves down the wall at the instant when the foot is 3 m from the wall.4 marks
    Answer
    1. let x and y be the distances along the ground and up the wall: x² + y² = 25 (M1)
    2. 2xdx/dt + 2ydy/dt = 0 (A1)
    3. when x = 3, y = 4 (A1)
    4. dy/dt = -(3 × 0.3)/4 = -0.225, so the top moves down at 0.225 m s⁻¹ (A1)

    Trap: Leaving the answer as +0.225. The top is moving down, so dy/dt is negative.

  8. Do not use a calculator. A square sheet of card has side 24 cm. A square of side x cm is cut from each corner, and the sides are folded up to make an open box. Determine the greatest volume of the box.6 marks
    Answer
    1. the base has side 24 - 2x and the height is x, so V = x(24 - 2x)² (A1)
    2. attempt to differentiate: dV/dx = (24 - 2x)² - 4x(24 - 2x) (M1)
    3. dV/dx = (24 - 2x)(24 - 6x) (A1)
    4. dV/dx = 0 gives x = 12 or x = 4 (M1)
    5. x = 12 is rejected because 0 < x < 12 and it gives V = 0 (R1)
    6. V = 4 × 16² = 1024 cm³ (A1)

    Trap: Giving x = 4 as the answer, or keeping x = 12. The question asks for the volume, and the domain is 0 < x < 12.

  9. Do not use a calculator. A straight river is 3 km wide. A power station P is on one bank. A factory F is on the other bank, 2 km downstream from the point directly opposite P. A cable runs under the water from P to a point Q on the far bank, x km downstream from the point opposite P, then along the bank from Q to F, where 0 ≤ x ≤ 2. Cable under the water costs 5 thousand dollars per km and cable along the bank costs 4 thousand dollars per km. Determine the exact least cost of the cable.7 marks
    Answer
    1. C(x) = 5√(9 + x²) + 4(2 - x) (M1)(A1)
    2. C'(x) = 5x/(√(9 + x²)) - 4 (A1)
    3. C'(x) = 0: 5x = 4√(9 + x²), squaring gives 25x² = 144 + 16x², so x = ± 4 (M1)
    4. x = -4 makes 5x negative, so it is not a root; x = 4 is outside 0 ≤ x ≤ 2. There is no stationary point in the interval (R1)
    5. evaluate at the end points: C(0) = 15 + 8 = 23, C(2) = 5√13 (M1)
    6. (5√13)² = 325 < 529 = 23², so the least cost is 5√13 thousand dollars, with the cable laid straight from P to F (x = 2) (A1)

    Trap: Using x = 4, which gives C = 17: that point is outside the domain, so the least value is at an end point.

  10. Do not use a calculator. A funnel is a cone with its point at the bottom. The cone has height 12 cm and the radius of its top is 4 cm. Water drains out at a constant rate of 2 cm³ s⁻¹. When the depth of water is h cm, the volume of water is V cm³. (a) Show that V = (π h³)/27. (b) Find the rate at which the depth is changing when h = 6. (c) Determine the rate at which the area of the water surface is changing when h = 6, stating whether it is increasing or decreasing.8 marks
    Answer
    1. (a) by similar triangles the water surface has radius r = h/3 (M1)
    2. V = 1/3π(h/3)² h = (π h³)/27 (A1)(AG)
    3. (b) dV/dt = (π h²)/9dh/dt (M1)(A1)
    4. dV/dt = -2 and h = 6: -2 = 4πdh/dt (M1)
    5. dh/dt = -1/2π: the depth decreases at 1/2π cm s⁻¹ (A1)
    6. (c) S = π r² = (π h²)/9, so dS/dt = (2π h)/9dh/dt (M1)
    7. dS/dt = 4π/3 × (-1/2π) = -2/3: the area is decreasing at 2/3 cm² s⁻¹ (A1)

    Trap: Differentiating V = 1/3π r² h with r held constant, or entering the drain rate as +2. Replace r by h/3 first, and a draining volume has a negative rate.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
x = 2 (only), for x² = 4x = 2 and x = -2. One value earns (M1)A0.
x = 0.707, or x = ±1/(√2)x = 1/(√2): the exact value, positive because x > 0. A decimal, or ±, earns A0.
dy/dx left in terms of x only, or y onlydy/dx in terms of x and y. The final A1 needs both.

Frequently asked questions

How do I find dy/dx when y cannot easily be made the subject?
Use implicit differentiation: differentiate every term with respect to x. A term in y gets an extra factor dy/dx from the chain rule. Then collect the terms in dy/dx and make it the subject. The final mark needs dy/dx in terms of x and y.
How do I find where a curve has a horizontal or vertical tangent?
Write dy/dx as a fraction. The tangent is horizontal where the numerator is zero, and vertical where the denominator is zero. Put the resulting relation into the equation of the curve to find the coordinates, and give every solution.
What is a related rate and how do I solve one?
A related rate links two rates through a formula. Write the formula, differentiate with respect to t using the chain rule, then substitute the values for the given instant. For V=4/3π r³ the rate is dV/dr=4π r². A quantity that is decreasing has a negative rate.
How do I find the maximum or minimum of a quantity that has a constraint?
Use the constraint to write the quantity as a function of one variable. Set the derivative equal to zero and solve. Show the point is a maximum with a negative second derivative, or a minimum with a positive one. Where the question says exact, give a surd or fraction.
How do I find the greatest or least value of a function on a closed interval?
Evaluate the function at every stationary point inside the interval and at both end points, then compare. The greatest or least value may be at an end point. A solution of f'(x) = 0 outside the interval is not used.
Why do I lose the mark when I give x = 0.707 in an optimisation answer?
Where the question says exact, a decimal earns A0. Give x = 1/(√2), the exact value, positive because x > 0. A decimal, or ±, earns A0. Likewise x² = 4 gives x = 2 and x = -2, and one value only earns (M1)A0.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters