Unit 3 · Topic 3.1 · about 30 minutes · 7 parts · 12 scored checks, 3 of them multiple choice, plus 2 from earlier lessons

AP Calculus AB 3.1: The Chain Rule

Unit 3: 5 to 10% of the multiple-choice section

What you'll be able to do

  • Use the chain rule to differentiate a composition of differentiable functions, from its formula or from tables of values.

Key vocabulary

TermWhat it meansThe exam trap
Composite functionA function of the form f(g(x)), in which f is applied to the output of g.A positive power written on a function's name, as in tan2⁡x, applies to the function's output, so read the notation closely before you name the layers. The exponent −1 is the exception you will meet in 3.4.
Inner and outer functionIn f(g(x)), g is the inner function, applied first, and f is the outer function, applied to the result.The inner function is the step you would evaluate first by hand, which is not always the piece written first.
Chain ruleIf g is differentiable at x and f is differentiable at g(x), then ddx[f(g(x))]=f′(g(x))⋅g′(x).Before you move on, check that each layer of the function has added exactly one factor to your answer.
Leibniz form of the chain ruleWith y=f(u) and u=g(x), dydx=dydu⋅dudx.A derivative with respect to x is finished only when it is written in terms of x, so put the inner function back in place of u.
Graphs of y = sin x and y = sin(2x) for x from 0 to pi, both starting at the origin. The dashed line tangent to y = sin x at x = 0 has slope 1, and the dashed line tangent to y = sin(2x) at x = 0 has slope 2, twice as steep.Tap to open the picture full size

Part 1 Think first How fast is it getting colder?

Commit to a guess before the lesson starts. Even a wrong guess makes the explanation easier to remember.

Predict first

A weather balloon rises at a steady 5 meters per second. In the layer of air it is climbing through, the temperature drops 0.006 degrees Celsius for every meter of height. How fast is the temperature around the balloon changing?

In short. The chain rule differentiates a composite function: the derivative of f(g(x)) is f′(g(x))⋅g′(x), wherever g is differentiable at x and f is differentiable at g(x).

  • Name the inner function, the one applied first, and the outer function, the one applied last.
  • Differentiate the outer function with the inside left unchanged, then multiply by the derivative of the inside.
  • In Leibniz notation dydx=dydu⋅dudx, so in a context the units of the two rates multiply.

Part 2 Learn it Inside and outside, one idea at a time

3a. Composite functions: the inside and the outside

A composite function is one function applied to the output of another. In h(x)=f(g(x)), the function g acts on x first, and f acts on whatever g produces. Call g the inner function and f the outer function.

To find them, imagine evaluating h by hand. For h(x)=(x2+1)5 at x=2, you would work out 22+1=5 first and raise it to the fifth power last. So the inner function is u=x2+1, and the outer function is u5.

The notation needs a careful read, because the same pieces can be put together in two orders:

  • sin⁡(x2) squares first and takes the sine last: inner x2, outer sin⁡u.
  • sin2⁡x means (sin⁡x)2. It takes the sine first and squares last: inner sin⁡x, outer u2.

An inner function can look very plain. In e−x the exponent −x is the inner function, and in ln⁡(5x) it is 5x. Only when the input is x itself, as in ex or ln⁡x, is there no inner function to deal with.

Quick check · Match

No calculator. Each function is a composition f(g(x)). Tap a function, then its inner function g(x).

3b. The chain rule

If g is differentiable at x and f is differentiable at g(x), the chain rule says

ddx[f(g(x))]=f′(g(x))⋅g′(x).

In words: the derivative of the outside, with the inside left as it is, times the derivative of the inside. The first factor never touches the inside; only the last factor differentiates it.

For h(x)=(x2+1)5, the outer function u5 has derivative 5u4, and the inner function x2+1 has derivative 2x:

h′(x)=5(x2+1)4⋅2x=10x(x2+1)4.

The rule works with any outer function whose derivative you know. For example, ddx[eg(x)]=eg(x)⋅g′(x), and ddx[ln⁡g(x)]=g′(x)g(x) wherever g(x)>0.

In Leibniz notation, with y=f(u) and u=g(x),

dydx=dydu⋅dudx.

The du looks as though it cancels, and in a context the units really do: degrees per meter times meters per second is degrees per second, as in the balloon. Finish every use of the rule by saying "times the derivative of the inside", and the last factor will not go missing.

Quick check · Multiple choice

No calculator. Which expression is the derivative of sin⁡(3x2)?

3c. Values from a table, and rates in context

Often you know the functions only through some of their values. At one input a, the chain rule for h(x)=f(g(x)) reads

h′(a)=f′(g(a))⋅g′(a).

Write that structure with the function names before any number. Then read the values in order: g(a) first, then f′ at that output, then g′(a).

Suppose g(1)=4, g′(1)=3, f′(1)=7 and f′(4)=−2. Then

h′(1)=f′(g(1))⋅g′(1)=f′(4)⋅3=−6.

The value f′(1)=7 is there to catch you. The outer derivative is taken at the inside value g(1)=4, not at the input 1.

In a context, each factor is a rate with its own units. Suppose a pond's temperature at depth d meters is T(d) degrees Celsius, and a sinking probe is at depth D(t) meters after t seconds. The temperature the probe reads is T(D(t)), and it changes at

T′(D(t))⋅D′(t)

degrees Celsius per second: degrees per meter, at the probe's current depth, times meters per second.

Quick check · Calculate

No calculator. A truck has used F(m) gallons of fuel after driving m miles, and it has driven s(t) miles t hours after it leaves the depot. At t=2, s(2)=110 and s′(2)=60. Also F′(60)=0.05 and F′(110)=0.03. At what rate, in gallons per hour, is the truck using fuel at t=2?

3d. Spotting a composition, and chains with three links

The chain rule applies whenever an inner function is anything other than x itself, even a very simple one. The derivative of e−x is −e−x, and the derivative of tan⁡(2x−1) is 2sec2⁡(2x−1).

The composition can also hide in the notation. sin2⁡x is (sin⁡x)2, so its derivative is 2sin⁡x⋅cos⁡x, not 2sin⁡x.

A product such as x2ex is not a composition, because neither factor is put inside the other. It takes the product rule, and it takes the chain rule only if one of its factors is a composition, as in x2e3x.

Some functions have three layers. For y=sin3⁡(5x)=[sin⁡(5x)]3, work from the outside in, and let each layer add one factor:

dydx=3[sin⁡(5x)]2⋅cos⁡(5x)⋅5=15sin2⁡(5x)cos⁡(5x).

Stop when the innermost function is x, whose derivative is 1. That is also why ex and sin⁡x need no extra factor: their inside is already x.

Quick check · Sort it

No calculator. Decide whether each function is a composition, one function applied to the output of another. Tap a function, then a bin.

A composition: use the chain rule

Not a composition

Part 3 Watch it done The chain rule on a square root

Watch each step, then do the last one yourself.

Let f(x)=x2+9. Use the chain rule to find f′(x).

  1. Step 1 · Name the two layers

    To evaluate f you work out x2+9 first and take the square root last. Inner function u=x2+9; outer function u=u1/2.

  2. Step 2 · Differentiate the outside, inside unchanged

    ddu[u1/2]=12u−1/2=12u, so the outer derivative at the inside is 12x2+9.

  3. Step 3 · Multiply by the derivative of the inside

    ddx[x2+9]=2x, so f′(x)=12x2+9⋅2x.

  4. Why this step?

    Why does the factor 2x belong in the answer?

    The square root reacts to changes in u, and u changes 2x times as fast as x does. In Leibniz form, dfdx=dfdu⋅dudx, so the rate with respect to x is the product of the two rates.

  5. Step 4 · Simplify

    f′(x)=2x2x2+9=xx2+9.

  6. Your step · Calculate

    No calculator. Finish it. For f(x)=x2+9, the chain rule gives f′(x)=xx2+9. What is f′(4)? Give an exact decimal.

Part 4 Try it A cooling cup and a classmate's claim

Try it · Calculate

No calculator. A cup of coffee is set on a counter. Its temperature t minutes later is T(t)=20+70e−0.1t degrees Celsius. At what rate is its temperature changing at t=0, in degrees Celsius per minute?

Try it · Decide and justify

No calculator. Let f(x)=cos⁡(4x). A classmate says f′(x)=−4sin⁡x, because the 4 is a constant and comes out in front. Is the classmate right?

Which reason supports your answer?

Part 5 Explain it Answer it as a free-response question

On the exam you write free response by hand, so work this one on paper. Nothing you type here leaves the page. Then open the model answer and check your work against each point.

Free response is 50% of the exam score. This one is shaped like Question 3, from free-response Part B (calculator not permitted).

Free-response practice · Question 3 style

No calculator. A runner's heart rate depends on how fast she runs. When she runs at v meters per second, her heart rate is R(v)=70+3v2 beats per minute. During a 20-minute workout, her speed t minutes after she starts is s(t) meters per second, where s is differentiable. Selected values of s(t) and s′(t) are given in the table.

t (minutes)05101520s(t) (meters per second)2.5343.53s′(t) (meters per second per minute)0.120.30.1−0.2−0.05

Let H(t)=R(s(t)) be her heart rate t minutes after she starts.

(a) Write an expression for H′(t) in terms of s(t) and s′(t).

(b) Find H′(10). Using correct units, interpret the meaning of this value in the context of the problem.

(c) Is her heart rate increasing or decreasing at t=15? Justify your answer.

Model answer

(a) By the chain rule, H′(t)=R′(s(t))⋅s′(t). Since R′(v)=6v, H′(t)=6s(t)⋅s′(t).

(b) H′(10)=R′(s(10))⋅s′(10)=6(4)(0.1)=2.4. Ten minutes into the workout, her heart rate is increasing at 2.4 beats per minute per minute.

(c) H′(15)=6s(15)⋅s′(15)=6(3.5)(−0.2)=−4.2. Her heart rate is decreasing at t=15, because H′(15)<0.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself Two functions in a table

The three case questions use the same table. Answer them from it.

The functions f and g are differentiable for all real numbers. The table gives values of each function and its derivative at selected inputs.

Values of f, g and their derivatives
xf(x)f′(x)g(x)g′(x)
1233-1
25-214
34642
41523

Case question 1 · Calculate

No calculator. Let h(x)=f(g(x)). What is h′(2)?

Case question 2 · Multiple choice

No calculator. Let k(x)=g(f(x)). What is k′(3)?

Case question 3 · Multiple choice

No calculator. Let m(x)=f(x). What is m′(4)?

The rest stand on their own and do not use the case.

Check yourself · Spot the error

No calculator. A student finds dydx for y=cos2⁡(3x). Tap the first line with a mistake.

Check yourself · Fill the statement

No calculator. Tap a blank, then tap an answer.

Let y=u4 and u=3x+1, so dydu=4u3. Then dudx is , and dydx, written in terms of x, is .

Part 7 Keep it Bring back earlier ideas

The chain rule leans on every derivative rule from Unit 2. Pulling two of them back now keeps them quick.

From 2.9 The Quotient Rule · Calculate

No calculator. Let h(x)=f(x)g(x), where f(3)=2, f′(3)=5, g(3)=4 and g′(3)=−1. What is h′(3)? Give an exact decimal.

From 2.5 Applying the Power Rule · Calculate

No calculator. Let f(x)=1x4. Find f′(2). Give an exact decimal.

In three lines

  • A composite function f(g(x)) has an inner function g, applied first, and an outer function f, applied last.
  • The chain rule gives f′(g(x))⋅g′(x): the outer derivative at the unchanged inside, times the derivative of the inside.
  • With values, look up g(a) first; in a context, the units of the two rates multiply.

Exam strategy for this topic

  • Section I Part A, Multiple Choice (calculator not permitted): 29 questions in 62 minutes.
  • Section I Part B, Multiple Choice (graphing calculator required): 13 questions in 38 minutes.
  • Section II Part A, Free Response (graphing calculator required): 2 questions in 30 minutes.
  • Section II Part B, Free Response (calculator not permitted): 4 questions in 60 minutes.

When a question gives values of two functions and their derivatives, write the structure first, such as h′(2)=f′(g(2))⋅g′(2), and then look up g(2) before anything else. Free-response answers are expected to show that structure, not only the number. In a context, give the units of the rate, which come from multiplying the units of the two rates.

Questions students ask

How do I tell which function is the inside one?

Evaluate the function at a number in your head. The step you do first is the inner function, and the step you do last is the outer one. For (x2+1)5 you add first and raise to the fifth power last.

When do I stop multiplying factors?

When the innermost layer is x itself. Each layer adds the derivative of its inside, and an inside of x adds a factor of 1, which changes nothing.

Is sin2⁡x the same function as sin⁡(x2)?

No. sin2⁡x means (sin⁡x)2, and its derivative is 2sin⁡xcos⁡x. sin⁡(x2) is the sine of x2, and its derivative is 2xcos⁡(x2).

Can the chain rule show up inside the product or quotient rule?

Yes, often. For x2e3x, the product rule gives 2x⋅e3x+x2⋅ddx[e3x], and the chain rule supplies ddx[e3x]=3e3x, so the derivative is 2xe3x+3x2e3x.

Do the du's in dydu⋅dudx really cancel?

A derivative is a limit, not a fraction, so nothing literally cancels. The notation was chosen so the chain rule reads that way, and it is a reliable memory aid. In a context the units do cancel, which is a good check on your setup.

Course alignment, for teachers

AP Calculus AB topic 3.1, Unit 3: Differentiation: Composite, Implicit, and Inverse Functions.

  • Skill 1.C: Identify an appropriate mathematical rule or procedure based on the classification of a given expression (e.g., Use the chain rule to find the derivative of a composite function).

This lesson maps the one essential knowledge statement of the topic to the part that teaches each one: 1 is checked by a scored question. The map is in the lesson file.