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 gg is differentiable at xx and ff is differentiable at g(x)g(x), then the composite function F=f∘gF = f \circ g defined by F(x)=f(g(x))F(x) = f(g(x)) is differentiable at xx.

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):
ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

2. Leibniz Notation:
If y=f(u)y = f(u) and u=g(x)u = g(x), then:
dydx=dydu⋅dudx\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" (ff) and which is the "inner" (gg).
  2. Differentiate the outer: Find f′f', keeping the inner function g(x)g(x) exactly as it is.
  3. Differentiate the inner: Find g′(x)g'(x).
  4. Multiply: Multiply the result of step 2 by the result of step 3.
Worked Example

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

Solution:

  1. Outer function: sin⁡(… )\sin(\dots) →\rightarrow Derivative is cos⁡(… )\cos(\dots)
  2. Inner function: 3x2+5x3x^2 + 5x →\rightarrow Derivative is 6x+56x + 5
  3. Apply Formula:
    f′(x)=cos⁡(inner)⋅ddx(inner)f'(x) = \cos(\text{inner}) \cdot \frac{d}{dx}(\text{inner})
    f′(x)=cos⁡(3x2+5x)⋅(6x+5)f'(x) = \cos(3x^2 + 5x) \cdot (6x + 5)

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


Implicit Differentiation

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

The Core Concept

When differentiating implicit equations with respect to xx:

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

Key Rule:
ddx[yn]=nyn−1⋅dydx\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 xx.
  2. Apply the Chain Rule whenever you differentiate a term containing yy (multiply by dydx\frac{dy}{dx}).
  3. Apply Product or Quotient rules if xx and yy are multiplied or divided (e.g., xyxy).
  4. Gather all terms containing dydx\frac{dy}{dx} on one side of the equation.
  5. Factor out dydx\frac{dy}{dx} and divide to isolate it.
Worked Example

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

Solution:

  1. Differentiate both sides:
    ddx(x2)+ddx(y2)=ddx(25)\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25)
  2. Apply Chain Rule to y:
    2x+2y⋅dydx=02x + 2y \cdot \frac{dy}{dx} = 0
  3. Isolate terms with dydx\frac{dy}{dx}:
    2ydydx=−2x2y \frac{dy}{dx} = -2x
  4. Solve:
    dydx=−2x2y=−xy\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 yy is position, y′y' is velocity, and y′′y'' is acceleration.

Notation Breakdown
OrderPrime NotationLeibniz NotationDescription
Firsty′y' or f′(x)f'(x)dydx\frac{dy}{dx}Slope/Velocity
Secondy′′y'' or f′′(x)f''(x)d2ydx2\frac{d^2y}{dx^2}Concavity/Acceleration
Thirdy′′′y''' or f′′′(x)f'''(x)d3ydx3\frac{d^3y}{dx^3}Jerk
Higher-Order Implicit Differentiation

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

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

  1. Find the first derivative dydx\frac{dy}{dx} in terms of xx and yy.
  2. Differentiate that expression again (often using the Quotient Rule).
  3. Substitution: The result will likely contain a dydx\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 xx and yy.
Worked Example (Second Derivative)

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

Solution:

  1. Find First Derivative:
    2y⋅y′=1  ⟹  y′=12y2y \cdot y' = 1 \implies y' = \frac{1}{2y}

  2. Find Second Derivative (Differentiate y′y'):
    y′′=ddx(12y)=ddx(12y−1)y'' = \frac{d}{dx}\left(\frac{1}{2y}\right) = \frac{d}{dx}\left(\frac{1}{2}y^{-1}\right)
    y′′=−12y−2⋅y′y'' = -\frac{1}{2}y^{-2} \cdot y'
    y′′=−12y2⋅y′y'' = -\frac{1}{2y^2} \cdot y'

  3. Substitute y′y':
    Substitute y′=12yy' = \frac{1}{2y} into the equation above:
    y′′=−12y2⋅(12y)y'' = -\frac{1}{2y^2} \cdot \left( \frac{1}{2y} \right)
    y′′=−14y3y'' = -\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: ddx(5x+1)3=3(5x+1)2\frac{d}{dx}(5x+1)^3 = 3(5x+1)^2
  • Correct: ddx(5x+1)3=3(5x+1)2⋅5\frac{d}{dx}(5x+1)^3 = 3(5x+1)^2 \cdot \mathbf{5}
2. Implicit yy Neglect

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

  • Wrong: ddx(y3)=3y2\frac{d}{dx}(y^3) = 3y^2
  • Correct: ddx(y3)=3y2⋅y′\frac{d}{dx}(y^3) = 3y^2 \cdot \mathbf{y'} or 3y2dydx3y^2 \frac{dy}{dx}
3. The Product Rule in Implicit Differentiation

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

  • Wrong: ddx(xy)=y⋅1\frac{d}{dx}(xy) = y \cdot 1
  • Wrong: ddx(xy)=xdydx\frac{d}{dx}(xy) = x \frac{dy}{dx}
  • Correct: ddx(xy)=(1)y+x(dydx)\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 d2ydx2\frac{d^2y}{dx^2} in terms of xx and yy, leaving a dydx\frac{dy}{dx} in the final answer will result in lost points. You must substitute the expression for the first derivative back in.