The Chain Rule
Differentiating Composite Functions
The chain rule and implicit differentiation are two core tools for finding derivatives when functions are not written in the simplest direct form. The chain rule helps when one quantity depends on another quantity that itself depends on a third variable. Implicit differentiation helps when x and y are mixed together in one equation instead of y being isolated. These ideas matter because many real models in physics, biology, and engineering involve layered relationships or curves that cannot be solved neatly for y.
The chain rule works by tracking how a change moves through each layer of a composite function. If y = f(g(x)), then the derivative multiplies the rate of change of the outer function by the rate of change of the inner function. Implicit differentiation works by differentiating both sides of an equation with respect to x and treating y as a function of x. Whenever a y term is differentiated, a factor of dy/dx appears, and then algebra is used to solve for dy/dx.
Key Facts
- Chain rule: if y = f(g(x)), then dy/dx = f'(g(x))·g'(x)
- Power chain rule: d/dx[(u(x))^n] = n(u(x))^(n-1)·u'(x)
- Trig chain rule example: d/dx[sin(u)] = cos(u)·u'
- Exponential chain rule example: d/dx[e^(u)] = e^(u)·u'
- Implicit differentiation rule: d/dx[y] = dy/dx because y depends on x
- For x^2 + y^2 = r^2, implicit differentiation gives 2x + 2y(dy/dx) = 0, so dy/dx = -x/y
Vocabulary
- Composite function
- A function formed by putting one function inside another, such as f(g(x)).
- Chain rule
- A differentiation rule used to find the derivative of a composite function by multiplying derivatives of the layers.
- Implicit function
- A relationship between x and y given by an equation like x^2 + y^2 = 25, where y is not isolated.
- Implicit differentiation
- A method of differentiating an equation with x and y together by treating y as a function of x.
- dy/dx
- The derivative of y with respect to x, representing the slope or rate of change of y as x changes.
Common Mistakes to Avoid
- Forgetting to multiply by the derivative of the inside function, which makes a chain rule answer incomplete and too small. Every time a function is nested inside another, the inner derivative must appear.
- Differentiating y as if it were a constant in an implicit equation, which is wrong because y usually depends on x. Terms like d/dx[y^2] must become 2y(dy/dx), not just 2y.
- Solving for dy/dx before differentiating the whole equation, which often creates harder algebra or loses the structure of the problem. Differentiate both sides first, then collect dy/dx terms and solve.
- Applying the chain rule to a sum that is not actually nested, which mixes up composition with ordinary addition. In x^2 + sin x, each term is differentiated separately because one function is not inside the other.
Practice Questions
- 1 Find dy/dx if y = (3x^2 + 1)^5.
- 2 Use implicit differentiation to find dy/dx for the curve x^2 + xy + y^2 = 7.
- 3 Explain why differentiating y^3 with respect to x in an implicit equation gives 3y^2(dy/dx) instead of just 3y^2.