Math concepts

Implicit Differentiation: Worked Examples and Tangent Checks

October 29, 20268 min read
Implicit Differentiation: Worked Examples and Tangent Checks

The equation x2+y2=25x^2+y^2=25 describes a circle. It does not present yy as one formula in xx: its upper and lower halves give different values of yy for most xx. Yet you can still find the slope at a point on either half. Implicit differentiation differentiates the relation itself, while treating yy locally as a function of xx. This guide works through the calculation, checks each answer against its original equation, and shows exactly where the usual slope formula stops working.

If you need the idea of slope first, read what a derivative measures. The chain-rule examples explain why differentiating an expression in yy produces an extra factor. Here we use those rules on equations containing both variables.

What changes when y is not isolated?

For an explicit function such as y=x2+1y=x^2+1, differentiating gives dy/dx=2xdy/dx=2x. For a relation such as x2+y2=25x^2+y^2=25, a point can move along the curve while both coordinates change. Locally, where the curve can be written as y(x)y(x), the term y2y^2 means (y(x))2(y(x))^2. The chain rule therefore gives

ddx(y2)=2ydydx.\frac{d}{dx}(y^2)=2y\frac{dy}{dx}.

That dy/dxdy/dx factor is the step most often missed. It is not an arbitrary decoration: the square changes as its input yy changes, and yy changes as xx changes. The same reasoning gives d(y3)/dx=3y2(dy/dx)d(y^3)/dx=3y^2(dy/dx) and d(sin⁡y)/dx=cos⁡y(dy/dx)d(\sin y)/dx=\cos y(dy/dx). A mixed term xyxy needs the product rule as well: d(xy)/dx=y+x(dy/dx)d(xy)/dx=y+x(dy/dx). Paul Garrett's Math Insight refresher works through that combination of rules.

The method is consistent across examples:

  1. Check that the requested point satisfies the original equation. A slope at a point outside the curve has no meaning.
  2. Differentiate every term with respect to xx. Attach dy/dxdy/dx whenever a differentiated term depends on yy.
  3. Gather the dy/dxdy/dx terms, factor, and divide only if the factor is nonzero.
  4. Substitute the point and check the slope against the local shape, another branch, or the tangent equation.

Do not substitute a point before differentiating. Doing so turns the coordinate values into constants and erases the very changes you want to measure. Also keep the undivided derivative equation: it can reveal a vertical tangent when the divided formula has a zero denominator.

Example 1: circle, ordinary tangent

Find the slope of x2+y2=25x^2+y^2=25 at (3,4)(3,4). First check membership: 32+42=9+16=253^2+4^2=9+16=25. The point is on the circle. Differentiate both sides, treating yy as y(x)y(x):

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

Move 2x2x and divide by 2y2y, provided y≠0y\ne0:

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

At (3,4)(3,4), the slope is −3/4-3/4. The tangent line through the point is y−4=−(3/4)(x−3)y-4=-(3/4)(x-3). For a small move to the right on the upper half, the height decreases, so the negative sign is sensible. You can check without trusting the symbolic steps: the upper branch is y=25−x2y=\sqrt{25-x^2} for −5<x<5-5<x<5, whose derivative is −x/25−x2-x/\sqrt{25-x^2}. At x=3x=3, that also gives −3/4-3/4. The lower branch has a different yy and hence a different slope at the same xx.

The branch check matters because the relation is not one global function y(x)y(x). Implicit differentiation gives the slope of the local branch through the specified point. The yy coordinate cannot be discarded when several points share one xx value.

One curve, two kinds of tangent

Now keep the same circle but move to (5,0)(5,0). It lies on the curve because 52+02=255^2+0^2=25. Substituting into −x/y-x/y would divide by zero. It would be a mistake to report a numerical slope or to say that the curve has no tangent. Return to the equation before division:

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

At (5,0)(5,0), this would demand 10+0(dy/dx)=010+0(dy/dx)=0 if a finite dy/dxdy/dx existed. No finite value can satisfy it. Geometrically the circle reaches its rightmost point and turns back. Its tangent there is the vertical line x=5x=5, with undefined dy/dxdy/dx. The relation remains smooth as a curve; it simply cannot be expressed locally as a differentiable function of xx at that point.

Same curveEquation checkDivided formulaTangent
(3,4)(3,4)9+16=259+16=25−3/4-3/4 since y≠0y\ne0y−4=−(3/4)(x−3)y-4=-(3/4)(x-3)
(5,0)(5,0)25+0=2525+0=25Not allowed: y=0y=0Vertical line x=5x=5

There is a complementary way to check. Treat xx as a local function of yy: 2x(dx/dy)+2y=02x(dx/dy)+2y=0, so dx/dy=−y/xdx/dy=-y/x when x≠0x\ne0. At (5,0)(5,0), dx/dy=0dx/dy=0. As yy changes slightly, xx changes only to higher order, exactly the picture of a vertical tangent. At (0,5)(0,5) the roles reverse: dy/dx=0dy/dx=0, so the tangent is horizontal. These statements concern ordinary tangent geometry, not a license to divide by zero in either formula.

Example 2: a mixed product and three terms

Find dy/dxdy/dx for x2+xy+y2=7x^2+xy+y^2=7 at (1,2)(1,2). The point check gives 1+2+4=71+2+4=7. Differentiate term by term. The first derivative is 2x2x; the product xyxy contributes y+x(dy/dx)y+x(dy/dx); and y2y^2 contributes 2y(dy/dx)2y(dy/dx):

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

Collect the derivative terms and factor them:

(x+2y)dydx=−(2x+y),dydx=−2x+yx+2ywhen x+2y≠0.(x+2y)\frac{dy}{dx}=-(2x+y),\qquad \frac{dy}{dx}=-\frac{2x+y}{x+2y}\quad\text{when }x+2y\ne0.

At (1,2)(1,2), the numerator is 44 and the denominator is 55, so the slope is −4/5-4/5. The tangent line is y−2=−(4/5)(x−1)y-2=-(4/5)(x-1). Check the differentiated equation directly at the point: 2(1)+2+1(−4/5)+2(2)(−4/5)=4−4=02(1)+2+1(-4/5)+2(2)(-4/5)=4-4=0. This substitution tests both the product-rule contribution and the final fraction. If you had differentiated xyxy as just x(dy/dx)x(dy/dx), you would miss the standalone yy and obtain the wrong slope.

The division condition x+2y≠0x+2y\ne0 is part of the result, even when your requested point satisfies it. A denominator that vanishes elsewhere requires separate analysis from the undivided equation, as in the circle example. A single symbolic fraction never answers every tangent question on its own.

Example 3: a cubic relation

Consider y3+xy=2y^3+xy=2 at (1,1)(1,1). Check: 13+1⋅1=21^3+1\cdot1=2. Differentiate, using the chain rule on the cube and product rule on xyxy:

3y2dydx+y+xdydx=0.3y^2\frac{dy}{dx}+y+x\frac{dy}{dx}=0.

After factoring,

(3y2+x)dydx=−y,dydx=−y3y2+xif 3y2+x≠0.(3y^2+x)\frac{dy}{dx}=-y,\qquad \frac{dy}{dx}=-\frac{y}{3y^2+x}\quad\text{if }3y^2+x\ne0.

At (1,1)(1,1) this gives −1/4-1/4, so the tangent is y−1=−(1/4)(x−1)y-1=-(1/4)(x-1). Put the answer back in the differentiated equation: 3(−1/4)+1+(−1/4)=03(-1/4)+1+(-1/4)=0. This quick residual check catches a missing factor of three or a sign error. It does not prove the entire derivation by itself, but it is a useful final filter.

Diagnose the missing-factor error

Suppose someone differentiates x2+y2=25x^2+y^2=25 as 2x+2y=02x+2y=0. That is not an equation for the tangent slope. It treats yy as if dy/dx=1dy/dx=1, even though the circle determines how yy responds to xx. At (3,4)(3,4) it says 6+8=06+8=0, an immediate contradiction. The correct derivative 2x+2y(dy/dx)=02x+2y(dy/dx)=0 instead gives 6+8(−3/4)=06+8(-3/4)=0.

A second trap is to divide first and ask questions later. The formula −x/y-x/y is valid where y≠0y\ne0; it does not declare the endpoints (±5,0)(\pm5,0) nonexistent. Keep the original relation, point check, and undivided derivative together. That three-part record tells you what happens where the formula is undefined.

If a problem changes with time rather than with xx, the same chain-rule idea becomes related rates: replace dy/dxdy/dx by the appropriate time derivatives and track units. To practice the derivative rules underneath this method, use Math Zen's derivatives topic. A good self-test is to redo Example 2 with a different valid point, then verify that the point satisfies the equation before evaluating your slope.

Frequently asked questions

Why does every derivative of yy need dy/dxdy/dx? Because yy changes with xx along the local branch. The chain rule multiplies the derivative with respect to yy by dy/dxdy/dx. For example, d(y3)/dx=3y2(dy/dx)d(y^3)/dx=3y^2(dy/dx).

Can I solve for yy first? Yes, if doing so is convenient and you choose the correct branch and domain. The circle's upper branch gives the same slope as implicit differentiation at (3,4)(3,4). Solving explicitly can be difficult or introduce multiple branches, which is why differentiating the relation is useful.

Does an undefined dy/dxdy/dx always mean a vertical tangent? No. An undefined fraction is a prompt to inspect the original curve and undivided derivative. At (5,0)(5,0) on this circle, a vertical tangent is confirmed geometrically and by dx/dy=0dx/dy=0. Singular points on other curves may behave differently.

What is the fastest check after solving? Confirm the point is on the original curve, substitute your slope into the undivided differentiated equation, and check any denominator used to isolate dy/dxdy/dx. Those three checks catch different errors.

Put This Into Practice