AP Calculus AB · Topic 3.2 · Reading guide, about 4 min

Differentiating when y is not isolated

Implicit differentiation: find dy/dx on curves like circles where y is not solved for, and write tangent lines.

In one minute

Some curves cannot be written as y=f(x)y=f(x) in a tidy way, and some, like a circle, are not a single function at all. Implicit differentiation lets you find the slope anyway. You differentiate both sides of the equation with respect to xx and solve for dydx\frac{dy}{dx}.

The whole technique rests on one idea: near a point on the curve, yy behaves like a function of xx, so any expression containing yy needs the chain rule.

Key terms

Implicit equation
An equation relating xx and yy without solving for yy, such as x2+y2=25x^2+y^2=25.
Explicit function
A function written with yy alone on one side, such as y=x2−3xy=x^2-3x.
Implicit differentiation
Differentiating both sides of an equation with respect to xx, treating yy as an unknown function of xx.
dy/dx
The slope of the tangent line to the curve at a point. In implicit problems it usually depends on both xx and yy.
Chain rule on y
The fact that ddx[yn]=nyn−1dydx\frac{d}{dx}[y^n]=n y^{n-1}\frac{dy}{dx} and ddx[sin⁡y]=cos⁡y dydx\frac{d}{dx}[\sin y]=\cos y\,\frac{dy}{dx}.
Tangent line
The line through a point on the curve with slope dydx\frac{dy}{dx} there, written y−y1=m(x−x1)y-y_1=m(x-x_1).
Horizontal tangent
A point where dydx=0\frac{dy}{dx}=0, which means the numerator of the slope formula is zero while the denominator is not.

Why y picks up dy/dx

Take x2+y2=25x^2+y^2=25. The term x2x^2 differentiates to 2x2x as usual. The term y2y^2 is the square of a quantity that changes with xx, so it is a composite function, with yy inside and squaring outside. Its derivative is 2y⋅dydx2y\cdot\frac{dy}{dx}. Without that last factor you would be treating yy as a constant.

Every derivative of a yy-expression works this way. The derivative of y3y^3 is 3y2dydx3y^2\frac{dy}{dx}. The derivative of sin⁡y\sin y is cos⁡y dydx\cos y\,\frac{dy}{dx}. The derivative of eye^y is eydydxe^y\frac{dy}{dx}. The derivative of yy itself is dydx\frac{dy}{dx}. Terms with only xx and constants behave as before.

The four-step method

First, differentiate both sides with respect to xx, adding dydx\frac{dy}{dx} wherever a yy-expression is differentiated. Second, use the product rule on mixed terms: ddx[xy]=1⋅y+x⋅dydx\frac{d}{dx}[xy]=1\cdot y+x\cdot\frac{dy}{dx}. Third, move every term containing dydx\frac{dy}{dx} to one side and everything else to the other. Fourth, factor out dydx\frac{dy}{dx} and divide.

The answer usually contains both xx and yy. That is normal: a circle has two different slopes above and below the same xx-value, so a formula in xx alone could not describe it. To get a number, you need both coordinates of the point.

Differentiating common pieces with respect to x
ExpressionDerivative with respect to x
y2y^22y dydx2y\,\frac{dy}{dx}
xyxyy+x dydxy+x\,\frac{dy}{dx}
x2yx^2y2xy+x2dydx2xy+x^2\frac{dy}{dx}
cos⁡y\cos y−sin⁡y dydx-\sin y\,\frac{dy}{dx}
exye^{xy}exy(y+xdydx)e^{xy}\left(y+x\frac{dy}{dx}\right)

A fully worked example

Find the tangent line to x2+xy+y2=7x^2+xy+y^2=7 at the point (1,2)(1,2).

Step 1: check the point lies on the curve. 1+2+4=71+2+4=7, so it does.

Step 2: differentiate each term. x2x^2 gives 2x2x. The product xyxy gives y+xdydxy+x\frac{dy}{dx}. The term y2y^2 gives 2ydydx2y\frac{dy}{dx}. The constant 7 gives 0. So 2x+y+xdydx+2ydydx=02x+y+x\frac{dy}{dx}+2y\frac{dy}{dx}=0.

Step 3: collect and solve. (x+2y)dydx=−(2x+y)(x+2y)\frac{dy}{dx}=-(2x+y), so dydx=−2x+yx+2y\frac{dy}{dx}=-\frac{2x+y}{x+2y}.

Step 4: substitute (1,2)(1,2). The numerator is 2+2=42+2=4 and the denominator is 1+4=51+4=5, so dydx=−45\frac{dy}{dx}=-\frac{4}{5}.

Step 5: write the line. y−2=−45(x−1)y-2=-\frac{4}{5}(x-1).

Slopes on a circle and special points

For x2+y2=25x^2+y^2=25, differentiating gives 2x+2ydydx=02x+2y\frac{dy}{dx}=0, so dydx=−xy\frac{dy}{dx}=-\frac{x}{y}. At (3,4)(3,4) the slope is −34-\frac{3}{4}, and at (3,−4)(3,-4) it is +34+\frac{3}{4}. The tangent at a point is perpendicular to the radius, and −xy-\frac{x}{y} is the negative reciprocal of the radius slope yx\frac{y}{x}.

Horizontal tangents occur where the numerator of dydx\frac{dy}{dx} is zero, here at x=0x=0, the points (0,5)(0,5) and (0,−5)(0,-5). Vertical tangents occur where the denominator is zero and the numerator is not, here at y=0y=0, the points (±5,0)(\pm 5,0). Always check that the point you find is on the curve.

How it connects

  • Back to 3.1: every dydx\frac{dy}{dx} you attach to a yy-term is the chain rule at work.
  • Back to 2.8: mixed terms such as xyxy and x2yx^2y need the product rule.
  • Forward to 3.6: a second derivative on an implicit curve differentiates your formula for dydx\frac{dy}{dx} and then substitutes it back in.
  • Forward to 4.4: linked rates differentiate an equation with respect to time instead of xx, using the identical method.
  • Forward to 5.12: tangent lines and concavity on implicit curves build directly on this topic.

Common mistakes

  • Dropping dy/dx. Writing ddx[y2]=2y\frac{d}{dx}[y^2]=2y treats yy like a constant. Always append dydx\frac{dy}{dx} to the derivative of a yy-expression.
  • Forgetting the product rule on xy. The derivative of xyxy is not dydx\frac{dy}{dx} and not yy. It is y+xdydxy+x\frac{dy}{dx}.
  • Solving too early or incorrectly. Gather all dydx\frac{dy}{dx} terms on one side before factoring. A sign slip when moving terms across the equals sign is the most common algebra error here.
  • Plugging in a point that is not on the curve. Substitute both coordinates, and verify them in the original equation first.

How it shows up on the exam

  • Free-response parts give an equation such as x3+y3=6xyx^3+y^3=6xy or a circle-like curve and ask for dydx\frac{dy}{dx}, then a tangent line or an xx-value where the tangent is horizontal or vertical.
  • Multiple-choice items ask for dydx\frac{dy}{dx} in terms of xx and yy, or the slope at a given point, with wrong choices that omit a dydx\frac{dy}{dx} factor.
  • Some problems ask you to justify why a tangent is vertical, which requires showing the denominator is zero while the numerator is not.

Check yourself

  1. What is ddx[y3]\frac{d}{dx}[y^3], and why does it need an extra factor?
  2. How would you differentiate xsin⁡y=4x\sin y=4 with respect to xx?
  3. On x2+y2=25x^2+y^2=25, where are the tangent lines horizontal, and where are they vertical?
  4. Why can the slope formula contain yy even though you are finding a slope at an xx-value?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.