Calculus guide · 7 min read

Implicit Differentiation Step by Step (With Examples)

Some equations, like x^2 + y^2 = 25, do not give you y by itself, so you cannot differentiate y = f(x) directly. Implicit differentiation lets you find dy/dx anyway by differentiating both sides and treating y as a function of x. This guide walks through the method with fully worked examples, from circles to second derivatives.

The Key Idea: y Is a Function of x

In implicit differentiation you differentiate every term with respect to xx, but you remember that yy secretly depends on xx. That means every yy term needs the chain rule.

ddx[yn]=nyn−1dydx\frac{d}{dx}\left[y^n\right] = ny^{n-1}\frac{dy}{dx}

Compare these side by side:

  • ddx[x3]=3x2\frac{d}{dx}[x^3] = 3x^2, because xx is the variable you are differentiating with respect to.
  • ddx[y3]=3y2dydx\frac{d}{dx}[y^3] = 3y^2 \frac{dy}{dx}, because yy is an inside function of xx.
  • ddx[sin⁡y]=cos⁡y dydx\frac{d}{dx}[\sin y] = \cos y \, \frac{dy}{dx}, for the same reason.
  • ddx[25]=0\frac{d}{dx}[25] = 0, because constants still have a derivative of 0.

Think of it this way: whenever you take the derivative of something with yy in it, you tack on a dydx\frac{dy}{dx} (also written y′y').

The 4-Step Method

  1. Differentiate both sides of the equation with respect to xx.
  2. Attach dydx\frac{dy}{dx} to every term that came from differentiating a yy expression. Use the product rule for terms like xyxy.
  3. Collect every term containing dydx\frac{dy}{dx} on one side and everything else on the other side.
  4. Factor out dydx\frac{dy}{dx} and divide to solve for it.

Your answer will usually contain both xx and yy. That is normal. To get a number, plug in a point (x,y)(x, y) that lies on the curve.

Example 1: A Circle and Its Tangent Line

Example: Find dydx\frac{dy}{dx} for x2+y2=25x^2 + y^2 = 25, then find the tangent line at (3,4)(3, 4).

  1. Differentiate both sides: 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0.
  2. Move the xx term over: 2ydydx=−2x2y\frac{dy}{dx} = -2x.
  3. Divide by 2y2y: dydx=−xy\frac{dy}{dx} = -\frac{x}{y}.
  4. Check that (3,4)(3, 4) is on the circle: 9+16=259 + 16 = 25. It is.
  5. Plug in the point: dydx=−34\frac{dy}{dx} = -\frac{3}{4}.
  6. Use point-slope form for the tangent line: y−4=−34(x−3)y - 4 = -\frac{3}{4}(x - 3), which simplifies to y=−34x+254y = -\frac{3}{4}x + \frac{25}{4}.

Sanity check: the radius from (0,0)(0, 0) to (3,4)(3, 4) has slope 43\frac{4}{3}, and a tangent to a circle is perpendicular to the radius. The negative reciprocal of 43\frac{4}{3} is −34-\frac{3}{4}, which matches.

Example 2: When You Need the Product Rule

Terms like 6xy6xy are a product of xx and yy, so they need the product rule.

ddx[xy]=1⋅y+x⋅dydx=y+xdydx\frac{d}{dx}[xy] = 1 \cdot y + x \cdot \frac{dy}{dx} = y + x\frac{dy}{dx}

Example: Find dydx\frac{dy}{dx} for x3+y3=6xyx^3 + y^3 = 6xy, then find the slope at (3,3)(3, 3).

  1. Differentiate both sides: 3x2+3y2dydx=6y+6xdydx3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx}.
  2. Collect the dydx\frac{dy}{dx} terms on the left: 3y2dydx−6xdydx=6y−3x23y^2\frac{dy}{dx} - 6x\frac{dy}{dx} = 6y - 3x^2.
  3. Factor: dydx(3y2−6x)=6y−3x2\frac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2.
  4. Divide and cancel the common factor of 3:
dydx=6y−3x23y2−6x=2y−x2y2−2x\frac{dy}{dx} = \frac{6y - 3x^2}{3y^2 - 6x} = \frac{2y - x^2}{y^2 - 2x}
  1. Check the point: 27+27=5427 + 27 = 54 and 6(3)(3)=546(3)(3) = 54, so (3,3)(3, 3) is on the curve.
  2. Plug in: dydx=2(3)−99−2(3)=−33=−1\frac{dy}{dx} = \frac{2(3) - 9}{9 - 2(3)} = \frac{-3}{3} = -1.

Example 3: A y Inside a Trig Function

Example: Find dydx\frac{dy}{dx} for sin⁡(x+y)=y2\sin(x + y) = y^2.

  1. The left side is a chain rule problem with inside x+yx + y. The derivative of the inside is 1+dydx1 + \frac{dy}{dx}.
  2. Differentiate both sides: cos⁡(x+y)(1+dydx)=2ydydx\cos(x + y)\left(1 + \frac{dy}{dx}\right) = 2y\frac{dy}{dx}.
  3. Distribute: cos⁡(x+y)+cos⁡(x+y)dydx=2ydydx\cos(x + y) + \cos(x + y)\frac{dy}{dx} = 2y\frac{dy}{dx}.
  4. Collect the dydx\frac{dy}{dx} terms on the right: cos⁡(x+y)=2ydydx−cos⁡(x+y)dydx\cos(x + y) = 2y\frac{dy}{dx} - \cos(x + y)\frac{dy}{dx}.
  5. Factor and divide:
dydx=cos⁡(x+y)2y−cos⁡(x+y)\frac{dy}{dx} = \frac{\cos(x + y)}{2y - \cos(x + y)}

Finding the Second Derivative Implicitly

To find d2ydx2\frac{d^2y}{dx^2}, differentiate your first derivative again, then substitute the first derivative back in.

Example: Find d2ydx2\frac{d^2y}{dx^2} for x2+y2=25x^2 + y^2 = 25.

  1. From Example 1, y′=−xyy' = -\frac{x}{y}.
  2. Use the quotient rule, remembering that yy still depends on xx: y′′=−(1)(y)−x⋅y′y2=−y−xy′y2y'' = -\frac{(1)(y) - x \cdot y'}{y^2} = -\frac{y - xy'}{y^2}.
  3. Substitute y′=−xyy' = -\frac{x}{y}: y′′=−y+x2yy2y'' = -\frac{y + \frac{x^2}{y}}{y^2}.
  4. Multiply the top and bottom by yy: y′′=−y2+x2y3y'' = -\frac{y^2 + x^2}{y^3}.
  5. Use the original equation, x2+y2=25x^2 + y^2 = 25: y′′=−25y3y'' = -\frac{25}{y^3}.

That last substitution is a common trick. Whenever the original equation shows up inside your answer, replace it with its value.

Paste a curve into the VeilGPT solver to check your steps when the algebra gets long.

Common mistakes

  • Forgetting to attach dy/dx after differentiating a y term, which turns the derivative of y^2 into 2y instead of 2y(dy/dx).
  • Differentiating xy as just x(dy/dx) or just y, when the product rule gives y + x(dy/dx).
  • Writing the derivative of a constant on the right side as the constant itself instead of 0.
  • Plugging in a point that is not actually on the curve, which gives a slope that means nothing.

Try one yourself

Find dy/dx for x^2 + 3xy + y^2 = 11 and the slope at the point (1, 2)

Work it out, then check every step with the VeilGPT calculus solver.

Check it with VeilGPT

Questions about this topic

When should I use implicit differentiation?

Use it when y is mixed in with x and is hard or impossible to isolate, such as x^3 + y^3 = 6xy. It also works for related rates problems, where every variable depends on time.

Why does my answer for dy/dx contain y?

Because the curve is defined by a relationship between x and y, the slope depends on the exact point. Plug in both coordinates of a point on the curve to get a number.

Can I solve for y first and differentiate normally?

Sometimes. For x^2 + y^2 = 25 you could write y = sqrt(25 - x^2), but that only covers the top half of the circle. Implicit differentiation handles the whole curve at once and is often less algebra.

More study guides