# Implicit Differentiation

> AP Calculus AB · Differentiation: Composite, Implicit, and Inverse Functions
> Source: https://www.owlsprep.com/study/ap-calculus-ab-u3-implicit-differentiation/

This guide covers implicit differentiation, a core chain rule application for AP Calculus AB. You will learn to find first and second derivatives of implicit relations, and solve common exam problems involving tangent and normal lines.

**Prerequisites:** [Chain rule for composite functions](https://www.owlsprep.com/study/ap-calculus-ab-u2-chain-rule/); Basic derivative rules for algebraic and trigonometric functions; [Point-slope form for linear equations](https://www.owlsprep.com/study/ap-calculus-ab-u2-tangent-line-approximation/)

## Learning objectives

- Distinguish between explicit and implicit functions
- Apply the chain rule to compute dy/dx for implicit relations
- Find equations of tangent and normal lines to implicit curves
- Calculate second derivatives of implicit functions
- Avoid common exam pitfalls when solving implicit differentiation problems

## What Is Implicit Differentiation?

An explicit function is written in the form $y = f(x)$, where $y$ is explicitly isolated on one side of the equation. However, many mathematical relations (such as circles, ellipses, and more complex curves) cannot be easily or fully solved for $y$ in terms of $x$.

Implicit differentiation is a technique to find $\frac{dy}{dx}$ directly from the original implicit relation, without rearranging to isolate $y$. It is not a new differentiation rule—it is simply a systematic application of the chain rule to implicit functions of $x$. Because $y$ is treated as a function of $x$ even when not written explicitly, every time we differentiate a term containing $y$, we must multiply by $\frac{dy}{dx}$ by the chain rule.

**Implicit Differentiation** — A technique to find the derivative $\frac{dy}{dx}$ of an implicit relation between $x$ and $y$, without needing to isolate $y$ explicitly as a function of $x$.

*Example:* Used to find derivatives of circles, ellipses, and other non-explicit curves.

## The Core Implicit Differentiation Process

The entire technique relies on one key chain rule result for any differentiable function $f(y)$, where $y$ is a function of $x$:

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

1. Differentiate every term on both sides of the relation with respect to $x$
2. Move all terms that include $\frac{dy}{dx}$ to the left side of the equation, and all other terms to the right
3. Factor out $\frac{dy}{dx}$ from the left side
4. Divide both sides by the remaining factor to isolate $\frac{dy}{dx}$ as a function of $x$ and $y$

When you have products or quotients of $x$ and $y$ terms (like $xy$, $x^2y$, or $\frac{y}{x}$), you still apply the product rule or quotient rule as normal, before adding the $\frac{dy}{dx}$ factor for $y$ terms.

**Worked example:** Find $\frac{dy}{dx}$ for the relation $x^2 + 3xy + y^2 = 6$.

1. Differentiate every term on both sides with respect to $x$:
2. $$\frac{d}{dx}(x^2) + \frac{d}{dx}(3xy) + \frac{d}{dx}(y^2) = \frac{d}{dx}(6)$$
3. Differentiate each term, applying product rule to $3xy$ and chain rule to $y^2$:
4. $$2x + 3\left(x \frac{dy}{dx} + y\right) + 2y \frac{dy}{dx} = 0$$
5. Collect all $\frac{dy}{dx}$ terms on the left, and constants/terms with only $x$ on the right:
6. $$3x \frac{dy}{dx} + 2y \frac{dy}{dx} = -2x - 3y$$
7. Factor out $\frac{dy}{dx}$ and isolate:
8. $$\frac{dy}{dx}(3x + 2y) = -(2x + 3y) \implies \frac{dy}{dx} = -\frac{2x + 3y}{3x + 2y}$$

> **Exam tip:** Always apply product/quotient rule first for mixed $x$-$y$ terms, then add the $\frac{dy}{dx}$ factor. Skipping the product rule (e.g. omitting the $y$ term for $\frac{d}{dx}(xy)$) is the most common first mistake on AP exams.

## Tangent and Normal Lines to Implicit Curves

One of the most common AP exam applications of implicit differentiation is finding the equation of a tangent or normal line to a point on an implicit curve. This works exactly the same way as finding tangent lines for explicit functions, once you have the slope $\frac{dy}{dx}$ from implicit differentiation.

1. Confirm the given point $(x_0, y_0)$ lies on the original curve (AP sometimes tests this by giving a point not on the curve)
2. Substitute $x_0$ and $y_0$ into your expression for $\frac{dy}{dx}$ to get the tangent slope $m_{\text{tan}}$
3. The slope of the normal line (perpendicular to the tangent) is the negative reciprocal: $m_{\text{norm}} = -\frac{1}{m_{\text{tan}}}$
4. Use point-slope form $y - y_0 = m(x - x_0)$ to write the final equation

**Worked example:** Find the equation of the tangent line to the curve $x^2 + 2xy + y^3 = 4$ at the point $(1, 1)$.

1. Confirm the point is on the curve: $1^2 + 2(1)(1) + 1^3 = 4$, which matches the right-hand side.
2. Differentiate implicitly to find $\frac{dy}{dx}$:
3. $$2x + 2\left(x \frac{dy}{dx} + y\right) + 3y^2 \frac{dy}{dx} = 0$$
4. Substitute $x=1$, $y=1$ to solve for the tangent slope $m$:
5. $$2(1) + 2\left(1 \cdot m + 1\right) + 3(1)^2 m = 0 \implies 2 + 2m + 2 + 3m = 0 \implies 5m = -4 \implies m = -\frac{4}{5}$$
6. Write the tangent line in point-slope form and simplify:
7. $$y - 1 = -\frac{4}{5}(x - 1) \implies y = -\frac{4}{5}x + \frac{9}{5}$$

> **Exam tip:** Always read the question carefully: if it asks for a normal line, not a tangent, you must use the negative reciprocal slope. AP exam writers regularly test this to catch students who skim the question.

## Second Derivatives of Implicit Functions

AP Calculus AB regularly asks for the second derivative $\frac{d^2y}{dx^2}$ of an implicit function, in terms of $x$ and $y$. The process is straightforward, but requires an extra step that many students forget.

After finding the first derivative $\frac{dy}{dx}$, you differentiate $\frac{dy}{dx}$ with respect to $x$ exactly as you differentiated the original equation: all terms containing $y$ or $\frac{dy}{dx}$ still require the chain rule, so you will get a $\frac{dy}{dx}$ factor when differentiating those terms. After differentiating, you must substitute the expression you already found for $\frac{dy}{dx}$ into the second derivative, so that the final result is only in terms of $x$ and $y$, not $\frac{dy}{dx}$. You can also use the original curve equation to simplify the final result by canceling constant terms.

**Worked example:** Find $\frac{d^2y}{dx^2}$ for the circle $x^2 + y^2 = 4$, in terms of $x$ and $y$.

1. Find the first derivative $\frac{dy}{dx}$:
2. $$2x + 2y \frac{dy}{dx} = 0 \implies \frac{dy}{dx} = -\frac{x}{y}$$
3. Differentiate $\frac{dy}{dx}$ with respect to $x$ using the quotient rule:
4. $$\frac{d^2y}{dx^2} = \frac{d}{dx}\left(-\frac{x}{y}\right) = -\frac{(1 \cdot y - x \cdot \frac{dy}{dx})}{y^2}$$
5. Substitute $\frac{dy}{dx} = -\frac{x}{y}$ into the expression:
6. $$\frac{d^2y}{dx^2} = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{\frac{y^2 + x^2}{y}}{y^2} = -\frac{x^2 + y^2}{y^3}$$
7. Simplify using the original equation $x^2 + y^2 = 4$:
8. $$\frac{d^2y}{dx^2} = -\frac{4}{y^3}$$

> **Exam tip:** Never leave $\frac{dy}{dx}$ in your final answer for the second derivative. AP graders will deduct points for unsubstituted $\frac{dy}{dx}$ terms on FRQ. Always substitute immediately after differentiating the first derivative.

## AP Style Practice Problems

**Check your understanding**

Test your understanding with this multiple-choice problem:

1. Given $​\sin(xy) = x + y$, which of the following is the correct expression for $​\frac{dy}{dx}$?

   - $\frac{1}{\cos(xy) - 1}$
   - $\frac{1 - y \cos(xy)}{x \cos(xy) - 1}$
   - $\frac{y \cos(xy) - 1}{1 - x \cos(xy)}$
   - $1 - y \cos(xy)$

   *Answer:* $\frac{1 - y \cos(xy)}{x \cos(xy) - 1}$

   *Why:* Correct! The full derivation differentiates both sides, applies product and chain rule, collects $​\frac{dy}{dx}$ terms, and isolates to get this result.

**Worked example:** Consider the curve defined by $y^3 - xy + 2x^2 = 4$. (a) Find $​\frac{dy}{dx}$ in terms of $x$ and $y$. (b) Find the slope of the tangent line to the curve at the point $(1, 1)$. (c) Find all points on the curve where the tangent line is horizontal.

1. Part (a): Differentiate both sides with respect to $x$:
2. $$3y^2 \frac{dy}{dx} - \left(x \frac{dy}{dx} + y\right) + 4x = 0$$
3. Collect and factor $​\frac{dy}{dx}$:
4. $$\frac{dy}{dx} (3y^2 - x) = y - 4x \implies \frac{dy}{dx} = \frac{y - 4x}{3y^2 - x}$$
5. Part (b): Substitute $x=1$, $y=1$ into $​\frac{dy}{dx}$:
6. $$m = \frac{1 - 4(1)}{3(1)^2 - 1} = \frac{-3}{2}$$
7. The slope of the tangent at $(1,1)$ is $​-\frac{3}{2}$.
8. Part (c): A horizontal tangent has slope $0$, so set the numerator equal to $0$ and confirm denominator is non-zero: $y - 4x = 0 \implies y = 4x$. Substitute into the original equation:
9. $$(4x)^3 - x(4x) + 2x^2 = 4 \implies 64x^3 - 2x^2 - 4 = 0 \implies 32x^3 - x^2 - 2 = 0$$
10. The only real solution is $x \approx 0.42$, so $y = 4x \approx 1.68$. The only point with a horizontal tangent is approximately $(0.42, 1.68)$.

## Common pitfalls

- **Wrong:** When differentiating $x^2 y$, writing $2x \frac{dy}{dx}$ and omitting the product rule term
  - Why it fails: Students focus so much on remembering the chain rule for $y$-terms that they forget mixed $x$-$y$ products require the product rule first
  - Correct: Always apply product/quotient rule to mixed terms first, then add the $​\frac{dy}{dx}$ factor for $y$-terms: $​\frac{d}{dx}(x^2 y) = 2xy + x^2 \frac{dy}{dx}$
- **Wrong:** When differentiating $​\cos(y)$, writing $​-\sin(y)$ and omitting the $​\frac{dy}{dx}$ factor
  - Why it fails: Students get accustomed to differentiating $x$-terms and forget that every function of $y$ needs the chain rule factor
  - Correct: After differentiating any function of $y$, immediately write the $​\frac{dy}{dx}$ factor as a routine step before moving to the next term
- **Wrong:** When finding slope at a point, plugging in $x_0, y_0$ before isolating $​\frac{dy}{dx}$
  - Why it fails: Students think plugging in early simplifies the problem, but it leads to lost terms and messy algebra errors
  - Correct: Isolate $​\frac{dy}{dx}$ as a function of $x$ and $y$ first, then substitute the point values to get the numerical slope
- **Wrong:** When finding horizontal tangents, setting the denominator of $​\frac{dy}{dx}$ equal to zero instead of the numerator
  - Why it fails: Students confuse horizontal and vertical tangent conditions
  - Correct: Slope zero means $​\frac{dy}{dx} = 0$, which requires the numerator to be zero (and the denominator non-zero) for a rational $​\frac{dy}{dx}$
- **Wrong:** When given only an $x$-coordinate for a tangent point, picking any $y$-value that solves the original equation
  - Why it fails: Implicit relations have multiple $y$-values for one $x$, and the wrong $y$ gives the wrong slope
  - Correct: Always use the given context (quadrant, position on the curve) to select the correct $y$-value before calculating slope

## Cheatsheet

| Category | Formula / Process | Notes |
| --- | --- | --- |
| Chain rule for $y$-terms | $\frac{d}{dx}\left[f(y)\right] = f'(y) \frac{dy}{dx}$ | Applies to any function of $y$, since $y$ is an implicit function of $x$ |
| Core implicit differentiation | 1. Differentiate both sides w.r.t $x$; 2. Collect $\frac{dy}{dx}$ terms left; 3. Factor $\frac{dy}{dx}$; 4. Isolate | No need to solve for $y$ first |
| Tangent line slope at $(x_0, y_0)$ | $m_{\text{tan}} = \frac{dy}{dx}\bigg\|_{(x_0, y_0)}$ | Always confirm $(x_0, y_0)$ is on the original curve first |
| Normal line slope | $m_{\text{norm}} = -\frac{1}{m_{\text{tan}}}$ | Undefined if tangent is horizontal, horizontal if tangent is vertical |
| Implicit second derivative | $\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)$ | Substitute $\frac{dy}{dx}$ to get final answer in terms of $x$ and $y$ only |
| Horizontal tangent | $\frac{dy}{dx} = 0 \implies \text{numerator} = 0, \text{denominator} \neq 0$ | Only valid if denominator is non-zero at the point |
| Vertical tangent | $\frac{dy}{dx}$ undefined $\implies \text{denominator} = 0, \text{numerator} \neq 0$ | Common AP follow-up question |

## What's next

Implicit differentiation is the foundational prerequisite for the remaining core topics in AP Calculus AB Unit 3: derivatives of inverse functions and related rates. Without mastering the chain rule application to implicit $y$-terms, you will not be able to correctly derive derivative formulas for inverse trigonometric functions or solve related rate problems, which make up a large share of AP Calculus AB FRQ points. This topic also builds the critical conceptual shift from derivatives of functions to derivatives of relations, a key foundation for advanced calculus topics.

- [Differentiating Inverse Functions](https://www.owlsprep.com/study/ap-calculus-ab-u3-differentiating-inverse-functions/)
- [Differentiating inverse trigonometric functions](https://www.owlsprep.com/study/ap-calculus-ab-u3-differentiating-inverse-trigonometric-functions/)
- [Selecting procedures for calculating derivatives](https://www.owlsprep.com/study/ap-calculus-ab-u3-selecting-procedures-for-calculating-derivatives/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-ab-u3-implicit-differentiation/
