From the free course AP/College Calculus AB on Lykke
Advanced Differentiation: Chain Rule and Implicit Differentiation
Key concepts: Chain Rule · Composite Functions · Implicit Differentiation · Inverse Function Derivatives · Higher-Order Derivatives
Techniques for differentiating complex composite functions and non-explicit equations.
Advanced Differentiation: Chain Rule and Implicit Differentiation
In the foundational study of calculus, we often treat functions as isolated entities—simple mappings where an input $x$ directly produces an output $y$. However, the real world rarely operates in such isolation. Systems are nested, variables are intertwined, and dependencies are often hidden within complex equations.
To navigate these complexities, we must move beyond basic power and product rules into Advanced Differentiation. This domain focuses on the Chain Rule (the calculus of nested systems), Implicit Differentiation (the calculus of intertwined variables), and the derivatives of Inverse Functions. Mastering these techniques is not merely an academic exercise; it is the prerequisite for understanding backpropagation in neural networks, orbital mechanics in aerospace engineering, and the sensitivity analysis of financial derivatives.
The Chain Rule: Differentiating Composite Functions
The Chain Rule is arguably the most important tool in a mathematician’s arsenal. It allows us to compute the derivative of a composite function—a function inside another function. If we define $h(x) = f(g(x))$, the Chain Rule provides the mechanism to find $h'(x)$ by decomposing the rate of change into its constituent parts.
1. Formal Definition and Notation
There are two primary ways to express the Chain Rule, each offering a different conceptual lens:
-
Lagrange’s Notation: If $h(x) = f(g(x))$, then: $$h'(x) = f'(g(x)) \cdot g'(x)$$ This emphasizes the "outside-in" approach: differentiate the outer function while keeping the inner function intact, then multiply by the derivative of the inner function.
-
Leibniz’s Notation: If $y = f(u)$ and $u = g(x)$, then: $$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$$ This emphasizes the "rate of change" perspective: the total change is the product of the intermediate rates of change, much like a series of gears where the final speed depends on the ratio of every gear in the sequence.
2. The Mechanics of "Outside-In"
When applying the Chain Rule, we treat the inner function $g(x)$ as a single variable (often called $u$). We differentiate the "shell" first.
Theorem: The Chain Rule Let $g$ be differentiable at $x$ and let $f$ be differentiable at $g(x)$. Then the composite function $h = f \circ g$ is differentiable at $x$ and $h'(x) = f'(g(x))g'(x)$.
3. Common Chain Rule Patterns
| Function Type | General Form $y = f(g(x))$ | Derivative $y'$ |
|---|---|---|
| Power of a Function | $[g(x)]^n$ | $n[g(x)]^{n-1} \cdot g'(x)$ |
| Exponential | $e^{g(x)}$ | $e^{g(x)} \cdot g'(x)$ |
| Trigonometric | $\sin(g(x))$ | $\cos(g(x)) \cdot g'(x)$ |
| Logarithmic | $\ln(g(x))$ | $\frac{1}{g(x)} \cdot g'(x)$ |
Implicit Differentiation: Solving Intertwined Relations
Most functions we encounter in early calculus are explicit: $y$ is isolated on one side ($y = x^2 + 5$). However, many mathematical models are implicit, meaning $y$ is buried within the equation (e.g., $x^2 + y^2 = 25$).
1. What is Implicit Differentiation?
Implicit differentiation is the process of differentiating both sides of an equation with respect to $x$, treating $y$ as a differentiable function of $x$. This is essentially a specialized application of the Chain Rule. Whenever we differentiate a term containing $y$, we must append a $\frac{dy}{dx}$ (or $y'$) factor.
2. The Algorithm
- Differentiate both sides of the equation with respect to $x$.
- Apply the Chain Rule to all terms involving $y$ (the derivative of $y^n$ is $ny^{n-1} \cdot \frac{dy}{dx}$).
- Collect all terms containing $\frac{dy}{dx}$ on one side of the equation.
- Factor out $\frac{dy}{dx}$.
- Solve for $\frac{dy}{dx}$ by dividing.
3. Worked Example: The Folium of Descartes
Consider the equation $x^3 + y^3 = 6xy$. To find the slope of the tangent line at any point $(x, y)$:
\begin{aligned}
\frac{d}{dx}[x^3 + y^3] &= \frac{d}{dx}[6xy] \\
3x^2 + 3y^2 \frac{dy}{dx} &= 6(y + x \frac{dy}{dx}) \quad \text{(using Product Rule on 6xy)} \\
3x^2 + 3y^2 y' &= 6y + 6xy' \\
3y^2 y' - 6xy' &= 6y - 3x^2 \\
y'(3y^2 - 6x) &= 6y - 3x^2 \\
y' &= \frac{6y - 3x^2}{3y^2 - 6x} = \frac{2y - x^2}{y^2 - 2x}
\end{aligned}
4. Why It Matters: Orthogonal Trajectories
Implicit differentiation allows us to find families of curves that intersect others at right angles (orthogonal trajectories). This is vital in physics for mapping electric field lines relative to equipotential surfaces.
Derivatives of Inverse Functions
If a function $f$ has an inverse $f^{-1}$, there is a direct relationship between their derivatives. This is highly useful when the derivative of the original function is easy to compute, but the inverse is difficult to differentiate directly.
1. The Inverse Function Theorem
If $f$ is a differentiable function that is one-to-one on an interval $I$, and $f'(f^{-1}(a)) \neq 0$, then the inverse function $g = f^{-1}$ is differentiable at $a$ and: $$g'(a) = \frac{1}{f'(g(a))}$$
In simpler terms, the slope of the inverse function at point $(a, b)$ is the reciprocal of the slope of the original function at point $(b, a)$.
2. Inverse Trigonometric Functions
We derive the derivatives of inverse trig functions using implicit differentiation. For example, to find the derivative of $y = \arcsin(x)$:
- Rewrite as $\sin(y) = x$.
- Differentiate implicitly: $\cos(y) \cdot \frac{dy}{dx} = 1$.
- Solve for $\frac{dy}{dx} = \frac{1}{\cos(y)}$.
- Use the identity $\cos(y) = \sqrt{1 - \sin^2(y)}$. Since $\sin(y) = x$, then $\cos(y) = \sqrt{1 - x^2}$.
- Result: $\frac{d}{dx}[\arcsin(x)] = \frac{1}{\sqrt{1 - x^2}}$.
3. Summary of Inverse Trig Derivatives
| Function $f(x)$ | Derivative $f'(x)$ | Domain Restrictions |
|---|---|---|
| $\arcsin(x)$ | $\frac{1}{\sqrt{1-x^2}}$ | $-1 < x < 1$ |
| $\arccos(x)$ | $-\frac{1}{\sqrt{1-x^2}}$ | $-1 < x < 1$ |
| $\arctan(x)$ | $\frac{1}{1+x^2}$ | All real $x$ |
| $\text{arcsec}(x)$ | $\frac{1}{\vert x\vert \sqrt{x^2-1}}$ | $\vert x\vert > 1$ |
Higher-Order Derivatives
A derivative is itself a function, and if it is differentiable, we can differentiate it again. This process yields higher-order derivatives.
1. Notation and Interpretation
- First Derivative ($f'$ or $\frac{dy}{dx}$): Velocity; the rate of change of position.
- Second Derivative ($f''$ or $\frac{d^2y}{dx^2}$): Acceleration; the rate of change of velocity.
- Third Derivative ($f'''$ or $\frac{d^3y}{dx^3}$): Jerk; the rate of change of acceleration.
2. Concavity and the Second Derivative
The second derivative tells us about the "bending" of the graph:
- If $f''(x) > 0$, the graph is concave up (holds water).
- If $f''(x) < 0$, the graph is concave down (sheds water).
- An inflection point occurs where $f''(x)$ changes sign.
Pitfalls and Best Practices
Even experienced practitioners stumble on advanced differentiation. Here are the most common points of failure:
1. The "Missing Link" in the Chain Rule
The most common error is forgetting to multiply by the derivative of the inner function.
- Wrong: $\frac{d}{dx}(\sin(x^2)) = \cos(x^2)$
- Right: $\frac{d}{dx}(\sin(x^2)) = \cos(x^2) \cdot 2x$
2. Misinterpreting Inverse Notation
The notation $f^{-1}(x)$ refers to the inverse function, not the reciprocal $1/f(x)$.
- $(\sin(x))^{-1} = \csc(x)$
- $\sin^{-1}(x) = \arcsin(x)$ These have entirely different derivatives.
3. Implicit Differentiation of Constants
When differentiating an equation like $x^2 + y^2 = 25$, students often forget to differentiate the constant on the right side.
- Wrong: $2x + 2yy' = 25$
- Right: $2x + 2yy' = 0$
4. Higher-Order Leibniz Notation
The notation $\frac{d^2y}{dx^2}$ is often confusing. The "2" is placed differently in the numerator and denominator because it represents the operator $(\frac{d}{dx})$ being applied twice to $y$: $$\frac{d}{dx} \left( \frac{dy}{dx} \right) = \frac{d^2y}{dx^2}$$
Comparison of Differentiation Methods
| Method | Best Used For | Key Difficulty |
|---|---|---|
| Power/Product/Quotient | Explicit polynomial/rational functions | Managing algebraic expansion |
| Chain Rule | Nested functions, $f(g(x))$ | Identifying the "inner" vs "outer" layers |
| Implicit | Circles, ellipses, non-functions | Isolating $y'$ algebraically |
| Logarithmic | Variable-to-variable powers ($x^x$) | Remembering to multiply by $y$ at the end |
Source Materials
Study AP/College Calculus AB on Lykke
This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.
Add the free extensionSign in to open every sectionAll sections of AP/College Calculus AB · Browse more course pages