Mastering Differentiation: Composite and Implicit Functions

The Chain Rule

The Chain Rule is the fundamental tool for differentiating composite functions—functions inside of other functions. If you view a function like an onion, the Chain Rule is the mathematical equivalent of peeling it layer by layer, starting from the outside and working your way in.

Concept & Definition

Formally, if $g$ is differentiable at $x$ and $f$ is differentiable at $g(x)$, then the composite function $F = f \circ g$ defined by $F(x) = f(g(x))$ is differentiable at $x$.

The rule states that the derivative of a composite function is the derivative of the outer function evaluated at the inner function, multiplied by the derivative of the inner function.

Visual representation of the Chain Rule as nested function machines

Formulas & Notation

There are two primary ways to express the Chain Rule. You should be comfortable with both, as AP questions may switch between them.

1. Newton's Notation (Function Notation):
\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

2. Leibniz Notation:
If $y = f(u)$ and $u = g(x)$, then:
\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}
This format is particularly useful for visualizing the "cancellation" of differentials, though mathematically they are rates of change.

Step-by-Step Procedure

  1. Identify the layers: Determine which function is the "outer" ($f$) and which is the "inner" ($g$).
  2. Differentiate the outer: Find $f'$, keeping the inner function $g(x)$ exactly as it is.
  3. Differentiate the inner: Find $g'(x)$.
  4. Multiply: Multiply the result of step 2 by the result of step 3.

Worked Example

Problem: Find $f'(x)$ if $f(x) = \sin(3x^2 + 5x)$.

Solution:

  1. Outer function: $\sin(\dots)$ $\rightarrow$ Derivative is $\cos(\dots)$
  2. Inner function: $3x^2 + 5x$ $\rightarrow$ Derivative is $6x + 5$
  3. Apply Formula:
    f'(x) = \cos(\text{inner}) \cdot \frac{d}{dx}(\text{inner})
    f'(x) = \cos(3x^2 + 5x) \cdot (6x + 5)

Answer: $f'(x) = (6x+5)\cos(3x^2 + 5x)$


Implicit Differentiation

Sometimes functions are not written in the explicit form $y = f(x)$ (e.g., $y = x^2 + 1$). Instead, $x$ and $y$ are mixed together in an equation, such as $x^2 + y^2 = 25$. This is an implicit relation. Implicit differentiation allows us to find the slope of the tangent line ($\frac{dy}{dx}$) without solving for $y$ first.

The Core Concept

When differentiating implicit equations with respect to $x$:

  • Terms with only $x$ represent standard differentiation.
  • Terms with $y$ must currently be treated as composite functions $f(y(x))$. By the Chain Rule, differentiating a function of $y$ produces a $\frac{dy}{dx}$ term.

Key Rule:
\frac{d}{dx}[y^n] = ny^{n-1} \cdot \frac{dy}{dx}

Graph of a circle or ellipse showing a tangent line at a specific point

Procedure for Implicit Differentiation

  1. Differentiate both sides of the equation with respect to $x$.
  2. Apply the Chain Rule whenever you differentiate a term containing $y$ (multiply by $\frac{dy}{dx}$).
  3. Apply Product or Quotient rules if $x$ and $y$ are multiplied or divided (e.g., $xy$).
  4. Gather all terms containing $\frac{dy}{dx}$ on one side of the equation.
  5. Factor out $\frac{dy}{dx}$ and divide to isolate it.

Worked Example

Problem: Find $\frac{dy}{dx}$ for the circle $x^2 + y^2 = 25$.

Solution:

  1. Differentiate both sides:
    \frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25)
  2. Apply Chain Rule to y:
    2x + 2y \cdot \frac{dy}{dx} = 0
  3. Isolate terms with $\frac{dy}{dx}$:
    2y \frac{dy}{dx} = -2x
  4. Solve:
    \frac{dy}{dx} = \frac{-2x}{2y} = -\frac{x}{y}

Higher-Order Derivatives

Higher-order derivatives represent the rate of change of the rate of change. In physics, if $y$ is position, $y'$ is velocity, and $y''$ is acceleration.

Notation Breakdown

OrderPrime NotationLeibniz NotationDescription
First$y'$ or $f'(x)$$\frac{dy}{dx}$Slope/Velocity
Second$y''$ or $f''(x)$$\frac{d^2y}{dx^2}$Concavity/Acceleration
Third$y'''$ or $f'''(x)$$\frac{d^3y}{dx^3}$Jerk

Higher-Order Implicit Differentiation

A common AP Calculus BC exam question involves finding the second derivative ($y''$) of an implicit relation.

The Critical Substitution Step:
When finding $\frac{d^2y}{dx^2}$ implicitly:

  1. Find the first derivative $\frac{dy}{dx}$ in terms of $x$ and $y$.
  2. Differentiate that expression again (often using the Quotient Rule).
  3. Substitution: The result will likely contain a $\frac{dy}{dx}$ term. You MUST substitute your answer from Step 1 into this new equation to express the final answer solely in terms of $x$ and $y$.

Worked Example (Second Derivative)

Problem: Find $\frac{d^2y}{dx^2}$ if $y^2 = x$.

Solution:

  1. Find First Derivative:
    $2y \cdot y' = 1 \implies y' = \frac{1}{2y}$

  2. Find Second Derivative (Differentiate $y'$):
    y'' = \frac{d}{dx}\left(\frac{1}{2y}\right) = \frac{d}{dx}\left(\frac{1}{2}y^{-1}\right)
    y'' = -\frac{1}{2}y^{-2} \cdot y'
    y'' = -\frac{1}{2y^2} \cdot y'

  3. Substitute $y'$:
    Substitute $y' = \frac{1}{2y}$ into the equation above:
    y'' = -\frac{1}{2y^2} \cdot \left( \frac{1}{2y} \right)
    y'' = -\frac{1}{4y^3}


Common Mistakes & Pitfalls

1. The "Missing Link" in Chain Rule

Students frequently differentiate the outer function but forget to multiply by the derivative of the inner function.

  • Wrong: $\frac{d}{dx}(5x+1)^3 = 3(5x+1)^2$
  • Correct: $\frac{d}{dx}(5x+1)^3 = 3(5x+1)^2 \cdot \mathbf{5}$

2. Implicit $y$ Neglect

When differentiating implicitly, students often treat $y$ as a constant or just like $x$, forgetting the chain rule attachment ($\'$).

  • Wrong: $\frac{d}{dx}(y^3) = 3y^2$
  • Correct: $\frac{d}{dx}(y^3) = 3y^2 \cdot \mathbf{y'}$ or $3y^2 \frac{dy}{dx}$

3. The Product Rule in Implicit Differentiation

In terms like $xy$, students often forget this is a product of two functions.

  • Wrong: $\frac{d}{dx}(xy) = y \cdot 1$
  • Wrong: $\frac{d}{dx}(xy) = x \frac{dy}{dx}$
  • Correct: $\frac{d}{dx}(xy) = (1)y + x(\frac{dy}{dx})$ (Left d-Right + Right d-Left)

4. Forgetting to Substitute in Higher-Order Derivatives

On Free Response Questions (FRQs), if asked for $\frac{d^2y}{dx^2}$ in terms of $x$ and $y$, leaving a $\frac{dy}{dx}$ in the final answer will result in lost points. You must substitute the expression for the first derivative back in.