Chapter 3: Chain Rule & Implicit Differentiation

AP Calculus AB & BC  |  Unit 1: Differentiation

Learning Objectives

3.1 The Chain Rule

Many real-world functions are compositions — one function applied inside another. For example, $h(x) = \sin(x^2)$ is $\sin$ applied to $x^2$. The chain rule tells us how to differentiate these.

Theorem: The Chain Rule

If $h(x) = f(g(x))$, where $g$ is differentiable at $x$ and $f$ is differentiable at $g(x)$, then:

$$h'(x) = f'(g(x)) \cdot g'(x)$$

In words: Derivative of the outer function (evaluated at the inner function) times the derivative of the inner function.

Leibniz form: If $y = f(u)$ and $u = g(x)$, then $\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}$.

A useful memory device: "Outside, then Inside." Differentiate the outer shell, keep the inside unchanged, then multiply by the derivative of the inside.

Example 3.1 — Basic Chain Rule Applications

Differentiate each function.

  1. $h(x) = (3x^2 + 1)^5$
    Outer: $u^5$, Inner: $3x^2 + 1$
    $h'(x) = 5(3x^2+1)^4 \cdot 6x = 30x(3x^2+1)^4$
  2. $h(x) = \sin(x^3)$
    Outer: $\sin(u)$, Inner: $x^3$
    $h'(x) = \cos(x^3) \cdot 3x^2 = 3x^2\cos(x^3)$
  3. $h(x) = e^{2x}$
    Outer: $e^u$, Inner: $2x$
    $h'(x) = e^{2x} \cdot 2 = 2e^{2x}$
  4. $h(x) = \ln(x^2 + 4)$
    Outer: $\ln(u)$, Inner: $x^2+4$
    $h'(x) = \dfrac{1}{x^2+4} \cdot 2x = \dfrac{2x}{x^2+4}$
TRY IT

Differentiate $f(x) = \cos(5x^3 - 2x)$.

Show Answer
Outer: $\cos(u)$, Inner: $5x^3 - 2x$
$f'(x) = -\sin(5x^3-2x) \cdot (15x^2 - 2) = -(15x^2-2)\sin(5x^3-2x)$

The Generalized Power Rule

The chain rule applied to $[g(x)]^n$ gives a commonly used special case:

Generalized Power Rule

$$\frac{d}{dx}[g(x)]^n = n[g(x)]^{n-1} \cdot g'(x)$$

This works for any real exponent $n$ — including fractions and negatives.

Example 3.2 — Generalized Power Rule

Differentiate $f(x) = \sqrt{4 - x^2} = (4-x^2)^{1/2}$.

$$f'(x) = \frac{1}{2}(4-x^2)^{-1/2} \cdot (-2x) = \frac{-x}{\sqrt{4-x^2}}$$

This gives the slope of the upper semicircle of radius 2 at any point.

Chaining Multiple Rules

When a function requires both the product/quotient rule and the chain rule, apply from the outermost layer inward.

Example 3.3 — Chain + Product Rule

Differentiate $g(x) = x^2 \sin(3x)$.

Product rule: $g'(x) = 2x\sin(3x) + x^2 \cdot \cos(3x)\cdot 3 = 2x\sin(3x) + 3x^2\cos(3x)$

A composite function $f(g(x))$ and its derivative — notice how the chain rule accounts for both layers of change.

Figure 3.1 — Chain Rule: $h(x)=\sin(x^2)$ and $h'(x)=2x\cos(x^2)$

3.2 Implicit Differentiation

Some curves are defined by equations like $x^2 + y^2 = 25$ that cannot easily be solved for $y$ explicitly. Implicit differentiation lets us find $\frac{dy}{dx}$ without isolating $y$.

Implicit Differentiation Procedure

  1. Differentiate both sides of the equation with respect to $x$.
  2. Whenever you differentiate a term involving $y$, apply the chain rule: the derivative of $y^n$ is $ny^{n-1}\dfrac{dy}{dx}$.
  3. Collect all $\dfrac{dy}{dx}$ terms on one side.
  4. Factor out $\dfrac{dy}{dx}$ and solve.

Example 3.4 — Circle: $x^2 + y^2 = 25$

Find $\dfrac{dy}{dx}$ and the equation of the tangent line at $(3, 4)$.

Step 1: Differentiate both sides w.r.t. $x$: $$2x + 2y\frac{dy}{dx} = 0$$

Step 2: Solve for $\dfrac{dy}{dx}$: $$\frac{dy}{dx} = -\frac{x}{y}$$

Step 3: At $(3,4)$: slope $= -\dfrac{3}{4}$

Step 4: Tangent line: $y - 4 = -\dfrac{3}{4}(x-3)$, which simplifies to $3x + 4y = 25$.

TRY IT

Use implicit differentiation to find $\dfrac{dy}{dx}$ for $x^3 + y^3 = 6xy$.

Show Answer
Differentiate: $3x^2 + 3y^2\dfrac{dy}{dx} = 6y + 6x\dfrac{dy}{dx}$
Collect: $3y^2\dfrac{dy}{dx} - 6x\dfrac{dy}{dx} = 6y - 3x^2$
Factor: $\dfrac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2$
Solve: $\dfrac{dy}{dx} = \dfrac{6y - 3x^2}{3y^2 - 6x} = \dfrac{2y - x^2}{y^2 - 2x}$

Example 3.5 — Implicit Curve with Multiple Terms

Find $\dfrac{dy}{dx}$ for $\sin(xy) = x + y$.

Differentiate left side using chain rule + product rule:
$\cos(xy) \cdot (y + x\dfrac{dy}{dx}) = 1 + \dfrac{dy}{dx}$

Expand: $y\cos(xy) + x\cos(xy)\dfrac{dy}{dx} = 1 + \dfrac{dy}{dx}$

Collect $\dfrac{dy}{dx}$: $x\cos(xy)\dfrac{dy}{dx} - \dfrac{dy}{dx} = 1 - y\cos(xy)$

Solve: $\dfrac{dy}{dx} = \dfrac{1 - y\cos(xy)}{x\cos(xy) - 1}$

AP Exam Tip: On the AP exam, implicit differentiation often appears in FRQ problems asking you to find a tangent line, a normal line, or to verify a given expression for $\dfrac{dy}{dx}$. Always show your differentiation steps clearly — partial credit is awarded for the setup even if arithmetic errors occur later.

The circle $x^2+y^2=25$ with its tangent line at $(3,4)$. Drag the point to see how the slope $-x/y$ changes.

Figure 3.2 — Implicit Curve: Circle with Tangent Line via Implicit Differentiation

3.3 Derivatives of Inverse Trig Functions

We derive these using implicit differentiation. Let $y = \arcsin(x)$, so $\sin(y) = x$. Differentiating: $\cos(y)\dfrac{dy}{dx} = 1$, giving $\dfrac{dy}{dx} = \dfrac{1}{\cos(y)} = \dfrac{1}{\sqrt{1-x^2}}$.

FunctionDerivativeDomain
$\arcsin(x)$$\dfrac{1}{\sqrt{1-x^2}}$$|x| < 1$
$\arccos(x)$$\dfrac{-1}{\sqrt{1-x^2}}$$|x| < 1$
$\arctan(x)$$\dfrac{1}{1+x^2}$all $x$
$\text{arccot}(x)$$\dfrac{-1}{1+x^2}$all $x$
$\text{arcsec}(x)$$\dfrac{1}{|x|\sqrt{x^2-1}}$$|x| > 1$

Combined with the chain rule, these become powerful. For instance, $\dfrac{d}{dx}[\arctan(3x)] = \dfrac{1}{1+(3x)^2} \cdot 3 = \dfrac{3}{1+9x^2}$.

Example 3.6 — Combining Chain Rule with Inverse Trig

Find $\dfrac{d}{dx}\left[\arcsin\!\left(\tfrac{x}{2}\right)\right]$.

Let $u = x/2$. Then $\dfrac{d}{dx}[\arcsin(u)] = \dfrac{1}{\sqrt{1-u^2}} \cdot \dfrac{1}{2} = \dfrac{1}{2\sqrt{1-x^2/4}} = \dfrac{1}{\sqrt{4-x^2}}$

TRY IT

Find $\dfrac{d}{dx}[\arctan(x^2)]$.

Show Answer
Chain rule with $u = x^2$:
$\dfrac{d}{dx}[\arctan(x^2)] = \dfrac{1}{1+(x^2)^2} \cdot 2x = \dfrac{2x}{1+x^4}$

AP Exam Tip: You must memorize the derivatives of $\arcsin$, $\arccos$, and $\arctan$ — they appear on nearly every AP Calculus exam, both MC and FRQ. Note that $\dfrac{d}{dx}[\arcsin] + \dfrac{d}{dx}[\arccos] = 0$ — they are negatives of each other.

$\arctan(x)$ and its derivative $\dfrac{1}{1+x^2}$. The derivative is always positive (arctan is always increasing) and approaches 0 as $|x|\to\infty$.

Figure 3.3 — $\arctan(x)$ and its derivative $\dfrac{1}{1+x^2}$

Practice Problems

1

Differentiate $f(x) = (2x^3 - 5)^4$.

Show Solution
Chain rule with outer $u^4$ and inner $2x^3-5$:
$f'(x) = 4(2x^3-5)^3 \cdot 6x^2 = 24x^2(2x^3-5)^3$
2

Find the derivative of $g(x) = e^{x^2 - 3x}$.

Show Solution
Outer: $e^u$, Inner: $x^2-3x$
$g'(x) = e^{x^2-3x} \cdot (2x-3) = (2x-3)e^{x^2-3x}$
3

Differentiate $h(x) = \dfrac{1}{(x^2+1)^3}$. Hint: rewrite as $(x^2+1)^{-3}$.

Show Solution
$h(x) = (x^2+1)^{-3}$
$h'(x) = -3(x^2+1)^{-4} \cdot 2x = \dfrac{-6x}{(x^2+1)^4}$
4

Use implicit differentiation to find $\dfrac{dy}{dx}$ for $x^2 + 3y^2 = 12$.

Show Solution
Differentiate: $2x + 6y\dfrac{dy}{dx} = 0$
Solve: $\dfrac{dy}{dx} = -\dfrac{2x}{6y} = -\dfrac{x}{3y}$
5

Find the slope of the tangent to $x^2 - xy + y^2 = 7$ at the point $(1, 3)$.

Show Solution
Differentiate: $2x - (y + x\dfrac{dy}{dx}) + 2y\dfrac{dy}{dx} = 0$
At $(1,3)$: $2 - 3 - \dfrac{dy}{dx} + 6\dfrac{dy}{dx} = 0 \Rightarrow 5\dfrac{dy}{dx} = 1$
Slope $= \dfrac{1}{5}$
6

Differentiate $f(x) = \arctan\!\left(\dfrac{x}{3}\right)$.

Show Solution
$f'(x) = \dfrac{1}{1+(x/3)^2} \cdot \dfrac{1}{3} = \dfrac{1}{3 \cdot \frac{9+x^2}{9}} = \dfrac{3}{9+x^2}$
7

Find $\dfrac{d}{dx}[\arcsin(\sqrt{x})]$.

Show Solution
Let $u = x^{1/2}$, so $\dfrac{du}{dx} = \dfrac{1}{2\sqrt{x}}$
$\dfrac{d}{dx}[\arcsin(u)] = \dfrac{1}{\sqrt{1-u}} \cdot \dfrac{du}{dx} = \dfrac{1}{\sqrt{1-x}} \cdot \dfrac{1}{2\sqrt{x}} = \dfrac{1}{2\sqrt{x(1-x)}}$
8

(AP Style) Let $x^2y + y^3 = 10$. Find $\dfrac{dy}{dx}$ and determine whether the curve has a horizontal tangent at the point where $x = 0$.

Show Solution
Differentiate: $2xy + x^2\dfrac{dy}{dx} + 3y^2\dfrac{dy}{dx} = 0$
Solve: $\dfrac{dy}{dx}(x^2 + 3y^2) = -2xy$
$\dfrac{dy}{dx} = \dfrac{-2xy}{x^2+3y^2}$

At $x=0$: Find $y$ from $0 + y^3 = 10 \Rightarrow y = \sqrt[3]{10}$
$\dfrac{dy}{dx}\big|_{x=0} = \dfrac{0}{3y^2} = 0$ ✓ Horizontal tangent exists at $(0, \sqrt[3]{10})$.

📋 Chapter Summary

Core Concepts

Chain Rule

If $y = f(g(x))$, then $\dfrac{dy}{dx} = f'(g(x)) \cdot g'(x)$. Differentiate the outer function, then multiply by the derivative of the inner function.

Implicit Differentiation

Differentiate both sides of an equation with respect to $x$. When differentiating a $y$-term, apply chain rule: $\frac{d}{dx}[y^n] = ny^{n-1}\frac{dy}{dx}$.

Related Rates

Differentiate a geometric/physical relationship with respect to time $t$. Write an equation relating variables, then differentiate implicitly using chain rule.

Inverse Trig Derivatives

$(\arcsin u)' = \dfrac{u'}{\sqrt{1-u^2}}$   $(\arctan u)' = \dfrac{u'}{1+u^2}$

Key Formulas

Chain Rule (Leibniz form)

$\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}$

Chain Rule (repeated)

$\dfrac{d}{dx}[f(g(h(x)))] = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)$

Implicit slope

$\dfrac{dy}{dx} = -\dfrac{F_x}{F_y}$ where $F(x,y) = 0$ is the implicit equation.

General power rule

$\dfrac{d}{dx}[u^n] = nu^{n-1} \cdot u'$ for any differentiable $u$.

Related Rates Strategy

  1. Draw a diagram — label all variables and given rates
  2. Write a relationship — find an equation relating the variables
  3. Differentiate — with respect to $t$, using the chain rule
  4. Substitute & solve — plug in known values at the specified instant

📘 Key Terms

Chain Rule Rule for differentiating composite functions: $(f \circ g)' = f'(g(x)) \cdot g'(x)$.
Composite Function A function of the form $f(g(x))$ where one function is applied inside another.
Implicit Differentiation Differentiating an equation relating $x$ and $y$ without first solving for $y$ explicitly.
Related Rates Using differentiation to find how fast one quantity changes with respect to time given the rate of change of another.
Inverse Trig Functions $\arcsin$, $\arccos$, $\arctan$ — have specific derivative formulas derived via implicit differentiation.
← Chapter 2: Derivatives Chapter 4: Applications of Derivatives ›