How do you differentiate a function built by composing one function inside another?
Topic 3.1 The Chain Rule: differentiate composite functions using the chain rule.
A focused answer to AP Calculus AB Topic 3.1, stating and applying the chain rule for composite functions, in both the Leibniz and outside-inside forms, with worked examples combining it with the power, trig, exponential and log rules.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
The College Board (Topic 3.1) introduces the chain rule, the tool for differentiating a composite function - a function inside another function, such as , , or . Almost every interesting derivative beyond the basic rules needs it, so this is the single most important rule in Unit 3.
The rule
The phrase to internalise is "derivative of the outer (with the inner left untouched), times the derivative of the inner". The inner function is copied unchanged into the outer derivative, and then a separate factor is multiplied on.
Identifying outer and inner
A reliable procedure
Differentiating a composite cleanly is a matter of decomposition: name the inner function , differentiate the outer treating as a single variable, then multiply by . Writing and off to the side before assembling keeps the two factors straight.
Why the chain rule multiplies the rates
The Leibniz form makes the meaning vivid: if changes times as fast as , and changes times as fast as , then changes the product of those rates as fast as . A concrete picture helps. Suppose a car's distance depends on the engine's revolutions, and the revolutions depend on time. If the car moves km per revolution and the engine turns revolutions per minute, the car moves km per minute - the two rates multiply. The chain rule is exactly this composition of rates, and it is why a small change in propagates through the inner function and then through the outer function, picking up a factor at each stage. This also explains why the inner derivative can never be dropped: it is the rate at which the inside responds to , without which the outer rate has nothing to act on.
Nesting and combining with other rules
The chain rule extends to deeper nesting by applying it repeatedly, peeling one layer at a time from the outside in. For you differentiate sine to get , multiply by the derivative of , which itself needs the chain rule to give , ending at . The chain rule also combines with the product and quotient rules: in you use the product rule, and the factor is differentiated by the chain rule to . On the exam, most no-calculator derivatives are really chain-rule problems with one or two extra layers, so fluency here pays off everywhere in Units 3 to 8. A good final check is to confirm that every inner function contributed its derivative as a factor; a missing factor is almost always a forgotten inner derivative.
Exam-style practice questions
Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
AP 2021 (style)1 marksSection I (multiple choice, no calculator). If , then (A) (B) (C) (D) Show worked answer →
The correct answer is (B), .
The outer function is "raise to the 4th power" and the inner is . The chain rule gives (derivative of outer, evaluated at the inner)(derivative of inner): . Choice (A) is the classic error of forgetting the inner derivative .
AP 2023 (style)4 marksSection II (free response, no calculator). Let . (a) Identify the outer and inner functions. (b) Differentiate . (c) Differentiate , naming the inner function.Show worked answer →
A 4-point chain-rule question.
(a) (1 point) Outer is ; inner is . Note itself needs the chain rule with inner .
(b) (2 points) .
(c) (1 point) Inner is , so .
Related dot points
- Topic 3.2 Implicit Differentiation: find the derivative of a relation defined implicitly by an equation in x and y.
A focused answer to AP Calculus AB Topic 3.2, explaining implicit differentiation for relations where y is not solved for, treating y as a function of x and applying the chain rule, with worked examples and tangent-line problems.
- Topic 3.3 Differentiating Inverse Functions: find the derivative of the inverse of a function at a point using the reciprocal relationship.
A focused answer to AP Calculus AB Topic 3.3, deriving and applying the inverse-function derivative formula, which relates the slope of an inverse function to the reciprocal of the original function's slope, with worked point evaluations.
- Topic 3.4 Differentiating Inverse Trigonometric Functions: state and apply the derivatives of the inverse trigonometric functions.
A focused answer to AP Calculus AB Topic 3.4, giving the derivatives of arcsin, arccos, arctan and the other inverse trig functions, showing where they come from, and combining them with the chain rule in worked examples.
- Topic 3.5 Selecting Procedures for Calculating Derivatives: choose and combine the appropriate differentiation rules for a given function.
A focused answer to AP Calculus AB Topic 3.5, on recognizing the structure of a function and choosing which differentiation rules to apply and in what order, combining the power, product, quotient and chain rules, with worked multi-rule examples.
- Topic 2.5 Applying the Power Rule: differentiate power functions using the power rule, including negative and fractional exponents.
A focused answer to AP Calculus AB Topic 2.5, stating and applying the power rule for derivatives, including negative and fractional exponents after rewriting roots and reciprocals, with worked examples.
- Topic 2.7 Derivatives of cos x, sin x, e to the x, and ln x: state and apply the derivatives of the four basic transcendental functions.
A focused answer to AP Calculus AB Topic 2.7, giving the derivatives of sine, cosine, the natural exponential e to the x, and the natural logarithm ln x, with worked examples combining them with the linearity rules.
Sources & how we know this
- AP Calculus AB and BC Course and Exam Description — College Board (2020)