girgit.org

Continuity and Differentiability

When y won't stand alone: implicit differentiation

The big ideaWhen x and y are tied together by an equation you cannot easily solve for y, differentiate both sides with respect to x, treating y as a function of x, and then solve for \( \frac{dy}{dx} \).

In simple words

Sometimes y is hiding inside an equation and you cannot get it out on its own. You do not need to. Just find how fast each side changes as x changes. Every time you touch y, remember that y also moves when x moves. Then collect the bits and find how fast y changes.

Explicit and implicit

Until now every function came as \( y = f(x) \): y alone on one side. That is an explicit function. For example, \( x + y = 7 \) is easily rewritten as \( y = 7 - x \).

But look at \( x^3 + y^3 = 6xy \), or \( y + \cos y = x^2 \). There is no easy way to get y alone. Yet y still depends on x: change x and y has to change to keep the equation true. We say such an equation defines y as an implicit function of x. "Implicit" means "there, but not written out".

The method

Implicit differentiation

  • 1. Differentiate both sides with respect to x.
  • 2. Any term with y is a function of x, so use the chain rule: \( \frac{d}{dx}g(y) = g'(y) \cdot \frac{dy}{dx} \).
  • 3. Gather the \( \frac{dy}{dx} \) terms on one side and solve.

A simple check first. From \( x + y = 7 \): \( \frac{d}{dx}(x) + \frac{d}{dx}(y) = \frac{d}{dx}(7) \), so \( 1 + \frac{dy}{dx} = 0 \) and \( \frac{dy}{dx} = -1 \). Solving \( y = 7 - x \) first gives the same answer.

Guess first: what is d/dx of y²?

We know \( \frac{d}{dx}(x^2) = 2x \). Guess: is \( \frac{d}{dx}(y^2) = 2y \)?

Answer first, then move a point round the circle of worked example 1 and compare the numbers.

See what happens
No: \( \frac{d}{dx}(y^2) = 2y\frac{dy}{dx} \). We are differentiating with respect to x, and \( y^2 \) is "square" wrapped round "y", which itself depends on x. The chain rule gives the outer derivative, \( 2y \), times the inner derivative, \( \frac{dy}{dx} \). Only when the variable is the same as the one you differentiate with respect to does the extra factor vanish: \( \frac{d}{dx}(x^2) = 2x \cdot \frac{dx}{dx} = 2x \).

Worked example 1: a circle

Find \( \frac{dy}{dx} \) for \( x^2 + y^2 = 25 \).

  1. \( 2x + 2y\frac{dy}{dx} = 0 \).
  2. \( \frac{dy}{dx} = -\frac{x}{y} \) (for \( y \ne 0 \)).

At the point \( (3, 4) \) on this circle, the slope is \( -\frac{3}{4} \). That fits the picture: the radius to \( (3, 4) \) has slope \( \frac{4}{3} \), and the tangent is perpendicular to it.

Worked example 2: y inside a trig function

Find \( \frac{dy}{dx} \) if \( y + \cos y = x^2 \).

  1. \( \frac{dy}{dx} - \sin y \cdot \frac{dy}{dx} = 2x \).
  2. \( \frac{dy}{dx}(1 - \sin y) = 2x \), so \( \frac{dy}{dx} = \dfrac{2x}{1 - \sin y} \), valid where \( \sin y \ne 1 \).

Worked example 3: a product of x and y

Find \( \frac{dy}{dx} \) if \( x^3 + y^3 = 6xy \).

  1. Left: \( 3x^2 + 3y^2\frac{dy}{dx} \). Right, by the product rule: \( 6\left( y + x\frac{dy}{dx} \right) \).
  2. \( 3y^2\frac{dy}{dx} - 6x\frac{dy}{dx} = 6y - 3x^2 \).
  3. \( \frac{dy}{dx} = \dfrac{6y - 3x^2}{3y^2 - 6x} = \dfrac{2y - x^2}{y^2 - 2x} \), where \( y^2 \ne 2x \).

At \( (3, 3) \), which is on the curve since \( 27 + 27 = 54 = 6 \cdot 9 \): slope \( = \frac{6 - 9}{9 - 6} = -1 \).

Try it: walk the whole curve of worked example 3. The tangent always comes from the same formula, even where no "y =" exists.

Don't mix these up

  • Every y term gets a \( \frac{dy}{dx} \); x terms do not. \( \frac{d}{dx}(\sin y) = \cos y\frac{dy}{dx} \), but \( \frac{d}{dx}(\sin x) = \cos x \).
  • A term like \( xy \) is a product: \( \frac{d}{dx}(xy) = y + x\frac{dy}{dx} \), not just \( \frac{dy}{dx} \).
  • The answer for \( \frac{dy}{dx} \) may contain both x and y. That is normal for implicit functions.

Try it. Find \( \frac{dy}{dx} \): (a) \( 3x - 2y = \sin x \), (b) \( xy + y^2 = 10 \), (c) \( x^2 + xy + y^2 = 7 \).

Answer
(a) \( 3 - 2\frac{dy}{dx} = \cos x \), so \( \frac{dy}{dx} = \frac{3 - \cos x}{2} \). (b) \( y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0 \), so \( \frac{dy}{dx} = \frac{-y}{x + 2y} \). (c) \( 2x + y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0 \), so \( \frac{dy}{dx} = -\frac{2x + y}{x + 2y} \).

Words to know

Explicit function
y given on its own, \( y = f(x) \).
Implicit function
y tied to x by an equation, without being written alone.
Implicit differentiation
Differentiating both sides with respect to x, treating y as a function of x.
\( \frac{d}{dx}g(y) \)
\( g'(y)\frac{dy}{dx} \): the chain rule, because y depends on x.

What is \( \frac{d}{dx}(y^3) \), when y is a function of x?

  1. \( 3y^2 \)
  2. \( 3y^2\frac{dy}{dx} \)
  3. \( 3x^2 \)

For \( x^2 + y^2 = 25 \), what is the slope of the tangent at \( (4, -3) \)?

  1. \( -\frac{4}{3} \)
  2. \( \frac{4}{3} \)
  3. \( \frac{3}{4} \)

What is \( \frac{d}{dx}(xy) \)?

  1. \( \frac{dy}{dx} \)
  2. \( x\frac{dy}{dx} \)
  3. \( y + x\frac{dy}{dx} \)