# Implicit Differentiation: Step-by-Step Method and Examples

> Learn implicit differentiation step by step: find dy/dx for circles and curves you cannot solve for y, find tangent lines, and compute the second derivative.

Source: https://practicecalculus.com/blog/implicit-differentiation
Updated: 2026-09-16

## Key takeaways

- Implicit differentiation finds $\frac{dy}{dx}$ without solving for $y$: differentiate both sides with respect to $x$, then solve for $\frac{dy}{dx}$.
- Every time you differentiate a term containing $y$, the chain rule attaches a factor of $\frac{dy}{dx}$, so $\frac{d}{dx}(y^2) = 2y\frac{dy}{dx}$.
- Terms like $xy$ are products and need the product rule: $\frac{d}{dx}(xy) = y + x\frac{dy}{dx}$.
- For the circle $x^2 + y^2 = 25$, the slope is $\frac{dy}{dx} = -\frac{x}{y}$, and the second derivative is $-\frac{25}{y^3}$.

Not every curve comes as $y = f(x)$. The circle $x^2 + y^2 = 25$ is not a function at all, and an equation like $x^3 + y^3 = 6xy$ cannot be solved for $y$ in any reasonable way. Yet both curves have perfectly good tangent lines. **Implicit differentiation** finds their slopes without ever solving for $y$.

## What is implicit differentiation?

An equation like $y = x^2 + 1$ defines $y$ **explicitly**: $y$ is alone on one side. An equation like $x^2 + y^2 = 25$ defines $y$ **implicitly**: the relationship between $x$ and $y$ is there, but tangled together.

Implicit differentiation means differentiating both sides of such an equation with respect to $x$, while treating $y$ as an unknown function of $x$. The result is an equation you can solve for $\frac{dy}{dx}$.

The one new idea is how to differentiate a term with $y$ in it. Since $y$ is a function of $x$, the [chain rule](/blog/chain-rule) applies:

$$\frac{d}{dx}\big[f(y)\big] = f'(y)\cdot\frac{dy}{dx}$$

So $\frac{d}{dx}(y^2) = 2y\frac{dy}{dx}$, $\frac{d}{dx}(\sin y) = \cos y\,\frac{dy}{dx}$ and $\frac{d}{dx}(e^y) = e^y\frac{dy}{dx}$. Compare with $\frac{d}{dx}(x^2) = 2x$, where no extra factor appears because the derivative of $x$ with respect to $x$ is 1.

## How to do implicit differentiation, step by step

1. **Differentiate both sides** with respect to $x$, term by term.
2. **Attach $\frac{dy}{dx}$** every time you differentiate something containing $y$. Use the product rule on terms like $xy$ or $x^2y$.
3. **Collect** all terms with $\frac{dy}{dx}$ on one side and everything else on the other.
4. **Factor out** $\frac{dy}{dx}$.
5. **Divide** to isolate $\frac{dy}{dx}$.

To find a slope at a specific point, plug in both $x$ and $y$ at the end.

## Worked example 1: the slope of a circle

Find $\frac{dy}{dx}$ for $x^2 + y^2 = 25$, and the tangent line at $(3, 4)$.

**Step 1. Differentiate both sides.**

$$\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25)$$

**Step 2. Attach $\frac{dy}{dx}$ to the $y$ term.** The constant 25 has derivative 0.

$$2x + 2y\frac{dy}{dx} = 0$$

**Step 3. Solve.** Subtract $2x$ and divide by $2y$:

$$\frac{dy}{dx} = -\frac{x}{y}$$

**Step 4. Evaluate at $(3, 4)$.** First check the point is on the circle: $9 + 16 = 25$. The slope is $-\frac{3}{4}$.

**Step 5. Tangent line.** Using point-slope form:

$$y - 4 = -\tfrac{3}{4}(x - 3) \quad\Longrightarrow\quad y = -\tfrac{3}{4}x + \tfrac{25}{4}$$

```graph
title: 'Circle x² + y² = 25 with its tangent line at the point (3, 4)'
caption: 'Implicit differentiation gives slope $-\frac{x}{y} = -\frac{3}{4}$ at $(3, 4)$, so the tangent line is $y = -\frac{3}{4}x + \frac{25}{4}$. It is perpendicular to the radius, which has slope $\frac{4}{3}$.'
x: [-9, 11]
y: [-6, 6.5]
functions:
  - expr: sqrt(25 - x^2)
    label: upper half of the circle
  - expr: -sqrt(25 - x^2)
    label: lower half of the circle
  - expr: -0.75x + 6.25
    label: tangent at (3, 4)
    dashed: true
points:
  - [3, 4, '(3, 4)']
```

The answer passes a geometry check. The radius to $(3, 4)$ has slope $\frac{4}{3}$, and a tangent to a circle is perpendicular to the radius, so its slope should be the negative reciprocal, $-\frac{3}{4}$. It is.

Notice that $-\frac{x}{y}$ works on **both** halves of the circle at once. At $(3, -4)$ it gives $+\frac{3}{4}$, correct for the lower half. Solving for $y$ first would have forced you to handle $y = \sqrt{25-x^2}$ and $y = -\sqrt{25-x^2}$ separately.

## Does implicit differentiation give the same answer as solving for y?

Yes, whenever you can solve for $y$. Take the upper half of the circle, $y = \sqrt{25 - x^2} = (25 - x^2)^{1/2}$. The chain rule gives

$$\frac{dy}{dx} = \tfrac{1}{2}(25 - x^2)^{-1/2}\cdot(-2x) = -\frac{x}{\sqrt{25 - x^2}}$$

But $\sqrt{25 - x^2}$ is just $y$, so this is $-\frac{x}{y}$, exactly what implicit differentiation produced. The two methods always agree. Implicit differentiation is simply faster, it covers every branch of the curve in one formula, and it still works when solving for $y$ is impossible.

So when should you pick it? A good rule: if isolating $y$ would need a square root with $\pm$, a cube root of something messy, or is simply not possible, differentiate implicitly. If the equation is already $y = \ldots$, differentiate it directly.

## Worked example 2: a product term

Find $\frac{dy}{dx}$ for $x^2 + xy + y^2 = 7$, and the slope at $(1, 2)$.

**Step 1. Differentiate term by term.** The middle term $xy$ is a product, so it needs the product rule: $\frac{d}{dx}(xy) = 1\cdot y + x\frac{dy}{dx}$.

$$2x + y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0$$

**Step 2. Collect the $\frac{dy}{dx}$ terms.**

$$(x + 2y)\frac{dy}{dx} = -(2x + y)$$

**Step 3. Divide.**

$$\frac{dy}{dx} = -\frac{2x + y}{x + 2y}$$

**Step 4. Evaluate.** The point is on the curve, since $1 + 2 + 4 = 7$. The slope is $-\frac{2 + 2}{1 + 4} = -\frac{4}{5}$.

## Worked example 3: a curve you cannot solve for y

The folium of Descartes is $x^3 + y^3 = 6xy$. Find the slope at $(3, 3)$.

**Step 1. Differentiate.** The right side is $6$ times the product $xy$:

$$3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx}$$

**Step 2. Collect.** Move the $\frac{dy}{dx}$ terms left and the rest right:

$$3y^2\frac{dy}{dx} - 6x\frac{dy}{dx} = 6y - 3x^2$$

**Step 3. Factor and divide**, cancelling the common 3:

$$\frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}$$

**Step 4. Evaluate at $(3, 3)$.** Check: $27 + 27 = 54 = 6\cdot 9$. The slope is $\frac{6 - 9}{9 - 6} = -1$.

## Worked example 4: the derivative of arcsin x

Implicit differentiation is how the inverse trig derivatives are found. Let $y = \arcsin x$, so $\sin y = x$ with $-\frac{\pi}{2} \le y \le \frac{\pi}{2}$.

**Step 1. Differentiate.** $\cos y\,\frac{dy}{dx} = 1$, so $\frac{dy}{dx} = \frac{1}{\cos y}$.

**Step 2. Rewrite in terms of $x$.** Since $\cos^2 y = 1 - \sin^2 y = 1 - x^2$, and $\cos y \ge 0$ on that interval, $\cos y = \sqrt{1 - x^2}$.

$$\frac{d}{dx}\arcsin x = \frac{1}{\sqrt{1 - x^2}}$$

The same trick, applied to $e^y = x$, proves that the derivative of $\ln x$ is $\frac{1}{x}$, as shown in [derivatives of exponential and log functions](/blog/derivatives-of-exponential-and-logarithmic-functions).

## Finding the second derivative implicitly

For the circle, we found $y' = -\frac{x}{y}$. To get $y''$, differentiate this again with the quotient rule, remembering that $y$ is still a function of $x$:

**Step 1. Quotient rule.**

$$y'' = -\frac{(1)(y) - x\,y'}{y^2} = -\frac{y - x y'}{y^2}$$

**Step 2. Substitute $y' = -\frac{x}{y}$.**

$$y'' = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2}$$

**Step 3. Clear the small fraction** by multiplying top and bottom by $y$:

$$y'' = -\frac{y^2 + x^2}{y^3}$$

**Step 4. Use the original equation.** Since $x^2 + y^2 = 25$:

$$y'' = -\frac{25}{y^3}$$

This makes sense. On the upper half ($y > 0$), $y''$ is negative, so the arc is concave down. On the lower half ($y < 0$), it is positive and the arc is concave up. At $(3, 4)$, $y'' = -\frac{25}{64}$.

> **Tip:** the move in step 4, replacing an expression with a constant from the original equation, comes up in almost every implicit second derivative. Always look for it before you stop simplifying.

## Common mistakes in implicit differentiation

1. **Forgetting $\frac{dy}{dx}$.** Writing $\frac{d}{dx}(y^2) = 2y$. Every $y$ term gets the factor.
2. **Skipping the product rule.** $\frac{d}{dx}(xy)$ is $y + x\frac{dy}{dx}$, not $\frac{dy}{dx}$ and not $1\cdot\frac{dy}{dx}$.
3. **Attaching $\frac{dy}{dx}$ to $x$ terms.** $\frac{d}{dx}(x^3) = 3x^2$, with no extra factor.
4. **Not differentiating the right side.** The constant 25 becomes 0, but $6xy$ must be differentiated too.
5. **Plugging in only $x$.** Implicit slopes usually depend on both coordinates. Use the full point.
6. **Forgetting to substitute $y'$** when finding the second derivative, leaving $y'$ inside the answer for $y''$.

## Quick reference

| Term          | Derivative with respect to $x$                    |
| ------------- | ------------------------------------------------- |
| $x^n$         | $nx^{n-1}$                                        |
| $y^n$         | $ny^{n-1}\,\frac{dy}{dx}$                         |
| $xy$          | $y + x\,\frac{dy}{dx}$                            |
| $x^2y$        | $2xy + x^2\,\frac{dy}{dx}$                        |
| $\sin y$      | $\cos y\,\frac{dy}{dx}$                           |
| $e^y$         | $e^y\,\frac{dy}{dx}$                              |
| $\ln y$       | $\frac{1}{y}\,\frac{dy}{dx}$                      |
| constant      | $0$                                               |

## Make it routine with practice

Implicit differentiation is a mechanical skill with one new habit: tag every $y$ with a $\frac{dy}{dx}$. Do that consistently and the algebra takes care of itself. The interactive lesson below gives you curves to differentiate with instant feedback, and it is also the best preparation for [related rates](/blog/related-rates), which use exactly this technique with time as the variable.

## Frequently asked questions

### What is implicit differentiation?

It is a way to find $\frac{dy}{dx}$ when $y$ is defined by an equation like $x^2 + y^2 = 25$ instead of a formula $y = f(x)$. You differentiate both sides with respect to $x$, treating $y$ as a function of $x$, and then solve the result for $\frac{dy}{dx}$.

### Why do you multiply by dy/dx in implicit differentiation?

Because $y$ is secretly a function of $x$, so a term like $y^3$ is really a composite function. The chain rule says its derivative is $3y^2$ times the derivative of the inside, which is $\frac{dy}{dx}$.

### When should I use implicit differentiation?

Use it when the equation is hard or impossible to solve for $y$, such as $x^3 + y^3 = 6xy$, or when solving would give a messy $\pm$ square root. It is also the method behind related rates problems and the derivatives of inverse functions.

### Can the answer to implicit differentiation contain y?

Yes, and it usually does. A slope like $-\frac{x}{y}$ is a complete answer. To get a number, plug in both coordinates of a point on the curve.

### How do you find the second derivative implicitly?

Differentiate your formula for $\frac{dy}{dx}$ again with respect to $x$, using the quotient rule and attaching $\frac{dy}{dx}$ wherever $y$ appears. Then substitute your first-derivative formula for $\frac{dy}{dx}$ and simplify, often using the original equation.
