Unit 3, lesson 29

Implicit Differentiation

How to find the slope of a curve given by an equation in x and y without solving for y, when that slope makes sense, and how to get second derivatives the same way.

  • Theory part 57
  • Practice part 58
  • Differentiation Rules

Theory, part 57

Practice, part 58

A circle is easy to draw but it is not the graph of a single function, since most vertical lines meet it twice. Still, it has a tangent line at every point, and away from the far left and right points that tangent has an ordinary finite slope. Implicit differentiation finds the slope of that tangent straight from the equation, even for curves where solving for yy is hard or impossible.

Key terms

Implicit curves

Definition An implicit curve is the set of points (x,y)(x, y) in the plane that satisfy an equation F(x,y)=0F(x, y) = 0, or more generally an equation between two expressions in xx and yy. The equation defines the curve implicitly, as opposed to an explicit formula y=f(x)y = f(x).

In plain words The curve is everything that makes the equation true. It may loop, cross itself, or have several points above the same xx.

Example The circle x2+y2=25x^2 + y^2 = 25 contains both (3,4)(3, 4) and (3,−4)(3, -4), so it is not the graph of a function of xx. The curve x3+y3=6xyx^3 + y^3 = 6xy passes through (3,3)(3, 3), since 27+27=54=6⋅3⋅327 + 27 = 54 = 6 \cdot 3 \cdot 3.

Local branches

Definition Let (a,b)(a, b) be a point of the curve. A local branch of the curve through (a,b)(a, b) is a function y=g(x)y = g(x) with g(a)=bg(a) = b, defined on an open interval II containing aa, such that for some open interval JJ containing bb the points of the curve inside the rectangle I×JI \times J are exactly the points (x,g(x))(x, g(x)) with xx in II. For a curve F(x,y)=0F(x, y) = 0, the implicit function theorem from multivariable calculus says that such a branch exists, and is differentiable, whenever FF has continuous first partial derivatives near (a,b)(a, b) and ∂F∂y(a,b)≠0\frac{\partial F}{\partial y}(a, b) \neq 0.

In plain words Zoom in close enough to a point, and the curve usually looks like the graph of an ordinary function. That small piece is a branch, and it is what dydx\frac{dy}{dx} describes.

Example On the circle x2+y2=25x^2 + y^2 = 25, the branch through (3,4)(3, 4) is y=25−x2y = \sqrt{25 - x^2} for −5<x<5-5 < x < 5, with J=(0,6)J = (0, 6) for example, and the branch through (3,−4)(3, -4) is y=−25−x2y = -\sqrt{25 - x^2}. At (5,0)(5, 0) there is no branch of the form y=g(x)y = g(x), because every rectangle around that point holds two points of the circle above each xx slightly less than 55 and none to its right.

Differentiating an equation

Definition Suppose y=g(x)y = g(x) is a differentiable local branch of the curve. Substituting it into the equation gives an identity in xx on an open interval, so both sides have equal derivatives there. Differentiate both sides with respect to xx, treating yy as a function of xx and using the chain rule, for example

ddxyn=nyn−1dydx,ddx(xy)=y+xdydx.\frac{d}{dx} y^n = n y^{n-1} \frac{dy}{dx}, \qquad \frac{d}{dx} (xy) = y + x \frac{dy}{dx}.

In plain words Differentiate every term as usual, and each time you differentiate something containing yy, attach a factor dydx\frac{dy}{dx}.

Example Differentiating x2+y2=25x^2 + y^2 = 25 with respect to xx gives

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

The derivative dy/dx

Definition After differentiating the equation, solve the result for dydx\frac{dy}{dx}. The formula obtained gives the slope of the local branch at any point of the curve where a differentiable branch exists and the coefficient of dydx\frac{dy}{dx} is not zero.

In plain words The slope comes out as an expression in both xx and yy. You need the full point (x,y)(x, y) to evaluate it, which is how it tells the two branches of a circle apart.

Example Solving 2x+2ydydx=02x + 2y \frac{dy}{dx} = 0 on the circle gives

dydx=−xy,y≠0.\frac{dy}{dx} = -\frac{x}{y}, \qquad y \neq 0.

At (3,4)(3, 4) the slope is −34-\frac{3}{4} and at (3,−4)(3, -4) it is 34\frac{3}{4}. For x3+y3=6xyx^3 + y^3 = 6xy, differentiating gives

3x2+3y2y′=6y+6xy′,3x^2 + 3y^2 y' = 6y + 6xy',

so collecting the y′y' terms and dividing by 3(y2−2x)3(y^2 - 2x) gives

y′=2y−x2y2−2x,y2≠2x.y' = \frac{2y - x^2}{y^2 - 2x}, \qquad y^2 \neq 2x.

At (3,3)(3, 3) this is 6−99−6=−1\frac{6 - 9}{9 - 6} = -1, and the tangent line is y=3−(x−3)y = 3 - (x - 3), or y=6−xy = 6 - x.

Higher implicit derivatives

Definition To find d2ydx2\frac{d^2 y}{dx^2}, differentiate the formula for dydx\frac{dy}{dx} with respect to xx, again treating yy as a function of xx. Then replace every dydx\frac{dy}{dx} by its formula and simplify, using the original equation where it helps. The result holds on the same points as the formula for dydx\frac{dy}{dx}, provided the branch is twice differentiable there.

In plain words Do it again, then substitute the first derivative back in. The original equation often tidies the answer.

Example On x2+y2=25x^2 + y^2 = 25 with y≠0y \neq 0, y′=−xyy' = -\frac{x}{y}. The quotient rule gives

y′′=−y−xy′y2=−y+x2yy2=−x2+y2y3=−25y3.y'' = -\frac{y - x y'}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2} = -\frac{x^2 + y^2}{y^3} = -\frac{25}{y^3}.

At (3,4)(3, 4), y′′=−2564y'' = -\frac{25}{64}. It is negative, as it should be on the upper half of the circle, which bends downward.

Points where the solved formula fails

Definition The formula for dydx\frac{dy}{dx} breaks down at points of the curve where the coefficient of dydx\frac{dy}{dx} is zero. At such a point the curve may have a vertical tangent, a cusp, or a self crossing, or there may be no differentiable branch y=g(x)y = g(x) at all. These points must be examined separately.

In plain words A zero in the denominator is a warning sign. The curve is doing something that a single function of xx cannot do smoothly there.

Example On the circle, y′=−xyy' = -\frac{x}{y} fails at (5,0)(5, 0) and (−5,0)(-5, 0), where the tangent lines are vertical. On x3+y3=6xyx^3 + y^3 = 6xy, the formula becomes 00\frac{0}{0} at the origin, where the curve crosses itself with two tangent lines, y=0y = 0 and x=0x = 0. No single slope describes that point.

Check yourself

  1. Find the slope of xy=6xy = 6 at (2,3)(2, 3) by implicit differentiation.
Show the answer

Differentiating gives y+xy′=0y + x y' = 0, so y′=−yxy' = -\frac{y}{x} and the slope at (2,3)(2, 3) is −32-\frac{3}{2}.

  1. For x2−y2=1x^2 - y^2 = 1, show that y′′=−1y3y'' = -\frac{1}{y^3} wherever y≠0y \neq 0.
Show the answer

Differentiating gives 2x−2yy′=02x - 2y y' = 0, so y′=xyy' = \frac{x}{y}. The quotient rule and then x2−y2=1x^2 - y^2 = 1 give

y′′=y−xy′y2=y−x2yy2=y2−x2y3=−1y3.y'' = \frac{y - x y'}{y^2} = \frac{y - \frac{x^2}{y}}{y^2} = \frac{y^2 - x^2}{y^3} = -\frac{1}{y^3}.
  1. Where does the implicit formula for dydx\frac{dy}{dx} fail on the curve y2=x3y^2 = x^3?
Show the answer

Differentiating gives 2yy′=3x22y y' = 3x^2, so y′=3x22yy' = \frac{3x^2}{2y}, which fails where y=0y = 0. On the curve that means only the origin, where the curve has a cusp.

How this lesson connects