Lesson 1 of 7 · 18 min

Implicit differentiation

Find dydx\frac{dy}{dx} for curves such as x2+y2=25x^2 + y^2 = 25 without solving for yy, by differentiating every term with respect to xx and using the chain rule on each yy term.

What you will be able to do

  • Differentiate an equation in implicit form term by term with respect to xx, using the chain rule on functions of yy.
  • Use the product rule on terms such as xyxy and x2y3x^2y^3.
  • Solve for dydx\frac{dy}{dx} and use it to find gradients, tangents, and horizontal and vertical tangents.

So far every curve you have differentiated was written as y=f(x)y = f(x). Plenty of curves are not. The circle x2+y2=25x^2 + y^2 = 25 fails the vertical line test, so it is not a function at all, yet it clearly has a tangent and a gradient at almost every point.

You could split the circle into y=25−x2y = \sqrt{25 - x^2} and y=−25−x2y = -\sqrt{25 - x^2} and differentiate each half. For a curve like x3+y3=6xyx^3 + y^3 = 6xy there is no tidy way to do that. Implicit differentiation avoids the problem: you differentiate the equation as it stands.

Interactive

The tangent to a circle

Drag the point round the top half of the circle x2+y2=25x^2 + y^2 = 25. At (3,4)(3, 4) the gradient is −34-\frac{3}{4}, and at (4,3)(4, 3) it is −43-\frac{4}{3}. Can you see the pattern −xy-\frac{x}{y}?

Key idea

The chain rule on a function of y

Treat yy as an unknown function of xx. Then any expression in yy is a composite function, and the chain rule gives

ddx(f(y))=f′(y) dydx\frac{d}{dx}\big(f(y)\big) = f'(y)\,\frac{dy}{dx}

For example, ddx(y2)=2ydydx\frac{d}{dx}(y^2) = 2y\frac{dy}{dx} and ddx(sin⁡(y))=cos⁡(y)dydx\frac{d}{dx}(\sin(y)) = \cos(y)\frac{dy}{dx}. Terms in xx alone differentiate as usual.

Here is the circle. Differentiate every term on both sides with respect to xx:

ddx(x2)+ddx(y2)=ddx(25)\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25) 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0

Solving for the derivative gives dydx=−xy\frac{dy}{dx} = -\frac{x}{y}, the pattern from the widget. The answer is in terms of both xx and yy, which is normal: you need both coordinates to say which point of the curve you mean.

Treating yy as a function of xx, what is ddx(y3)\frac{d}{dx}(y^3)?

Choose one answer

Implicit differentiation

  1. Put ddx\frac{d}{dx} in front of every term on both sides

    Constants differentiate to zero.

  2. Differentiate term by term

    Terms in xx as usual. Terms in yy pick up a factor of dydx\frac{dy}{dx}. Products such as xyxy need the product rule.

  3. Collect the dydx\frac{dy}{dx} terms on one side

    Move everything else to the other side.

  4. Factorise and divide

    Take out dydx\frac{dy}{dx} as a common factor and divide by what is left.

Common mistake

Products of x and y

xyxy is a product of two functions of xx, so

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

Writing ddx(xy)=xdydx\frac{d}{dx}(xy) = x\frac{dy}{dx} or dydx\frac{dy}{dx} alone is the most common error in this topic.

Determine dydx\frac{dy}{dx} for the ellipse x2+3y2=12x^2 + 3y^2 = 12, in terms of xx and yy.

fracdydx =
Reads asYour answer shows here as maths.

Worked example

Tangent to x2y+y3=10x^2y + y^3 = 10 at (3,1)(3, 1)

  • Simple familiar
  • Technology free

The point (3,1)(3, 1) lies on the curve x2y+y3=10x^2y + y^3 = 10. Determine the equation of the tangent to the curve at (3,1)(3, 1).

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Differentiate both sides with respect to xx: chain rule on yy terms, product rule on mixed terms.

  2. Collect the dydx\frac{dy}{dx} terms and solve.

  3. Substitute the point to get the gradient.

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

Watch out for

  • Differentiating x2yx^2y as 2xdydx2x\frac{dy}{dx}: the product rule gives two terms.

  • Forgetting that the derivative of the constant 1010 is 00.

The point (1,2)(1, 2) lies on the curve x2+xy+y2=7x^2 + xy + y^2 = 7. Determine the gradient of the curve at (1,2)(1, 2).

Because dydx\frac{dy}{dx} is a fraction in xx and yy, it tells you where the tangents are horizontal and vertical.

  • Horizontal tangent: the numerator is zero (and the denominator is not).
  • Vertical tangent: the denominator is zero (and the numerator is not).

Each condition gives a relationship between xx and yy. Solve it simultaneously with the curve's equation to find the points.

Worked example

Horizontal and vertical tangents of x2−xy+y2=3x^2 - xy + y^2 = 3

  • Complex familiar
  • Technology free

The curve x2−xy+y2=3x^2 - xy + y^2 = 3 is an ellipse tilted at 45°45°.

(a) Show that dydx=y−2x2y−x\frac{dy}{dx} = \frac{y - 2x}{2y - x}.

(b) Determine the coordinates of the points where the tangent is horizontal, and where it is vertical.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find dydx\frac{dy}{dx} as a fraction in xx and yy.

  2. Horizontal: set the numerator to zero. Vertical: set the denominator to zero.

  3. Solve each condition simultaneously with the equation of the curve.

  4. Check the other part of the fraction is not also zero.

Watch out for

  • Solving y=2xy = 2x without substituting into the curve, which gives a line, not points.

  • Forgetting the negative square root: x2=1x^2 = 1 gives x=±1x = \pm 1.

Without technology

Differentiate implicitly, solve for dydx\frac{dy}{dx} and substitute the point. Leave gradients exact, such as −45-\frac{4}{5}.

With technology

A CAS calculator has an implicit differentiation command (for example impDiff), and it can graph implicit curves so you can see the tangent. Still write the derivative you used.

Exam tip

Show the chain-rule factor

Markers look for the line where each yy term gains its dydx\frac{dy}{dx}. Write it in full before you rearrange, and give the final gradient exactly unless the question asks for a decimal.

Summary

  • Implicit differentiation finds dydx\frac{dy}{dx} without first making yy the subject.

  • Differentiate every term with respect to xx. Each yy term gains a factor of dydx\frac{dy}{dx}: ddx(yn)=nyn−1dydx\frac{d}{dx}(y^n) = ny^{n-1}\frac{dy}{dx}.

  • Use the product rule on mixed terms: ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}.

  • Collect the dydx\frac{dy}{dx} terms, factorise and divide. The result usually involves both xx and yy.

  • Horizontal tangents: numerator zero. Vertical tangents: denominator zero. Solve with the curve's equation.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 1 of 70% read

Save your progress with a free account