Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Calculus BC
  3. ›3 Differentiation: Composite, Implicit and Inverse Functions
  4. ›3.1 Chain rule

AP Calculus BC · Unit 3 · Differentiation: Composite, Implicit and Inverse Functions

3.1 Chain rule

Identify layers in composite functions and use the chain rule to differentiate them.

  • 2 min read
  • 4 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/4Composite functions apply one function inside another
  1. 1Composite functions apply one function inside another
  2. 2The chain rule multiplies derivatives across layers
  3. 3Nested compositions need a derivative for every layer
  4. 4Choose the chain rule when an input varies
  5. Check your recall
  6. Practice: 10 questions
1

Part 1 of 4: Composite functions apply one function inside another

A composite function takes the output of one function as the input of another. In y=(3x+1)5y=(3x+1)^5y=(3x+1)5, the inner function is u=3x+1u=3x+1u=3x+1. The outer function raises its input to the fifth power, so y=u5y=u^5y=u5. Work from the innermost expression outward when identifying layers. Parentheses often reveal a layer, but they are not required. For example, sin⁡(x2)\sin(x^2)sin(x2) has inner function x2x^2x2 and outer function sine. Naming the layers helps you see which derivatives must be multiplied.

Exam tip

First rewrite f(g(x))f(g(x))f(g(x)) as f(u)f(u)f(u) with u=g(x)u=g(x)u=g(x). Then identify each derivative.

Key terms · tap one for its definition

composite function

A composite function uses the output of one function as the input of another.

inner function

The inner function produces the input supplied to another function in a composition.

Part 1 done

2

Part 2 of 4: The chain rule multiplies derivatives across layers

The chain rule differentiates a function whose input also depends on xxx. If y=f(g(x))y=f(g(x))y=f(g(x)), then dydx=f′(g(x))g′(x)\frac{dy}{dx}=f'(g(x))g'(x)dxdy​=f′(g(x))g′(x). Differentiate the outer function while leaving its input unchanged. Then multiply by the derivative of that input. For y=(3x+1)5y=(3x+1)^5y=(3x+1)5, this gives dydx=5(3x+1)4(3)=15(3x+1)4\frac{dy}{dx}=5(3x+1)^4(3)=15(3x+1)^4dxdy​=5(3x+1)4(3)=15(3x+1)4. The factor 3 comes from differentiating 3x+13x+13x+1. The rule also applies to functions such as sin⁡(x2)\sin(x^2)sin(x2): its derivative is cos⁡(x2)(2x)\cos(x^2)(2x)cos(x2)(2x). Both derivatives are needed because changing xxx also changes the inner input.

Common mistake

Do not stop at 5(3x+1)45(3x+1)^45(3x+1)4. That omits the derivative of the inner function.

Key term

chain rule

The chain rule differentiates f(g(x))f(g(x))f(g(x)) as f′(g(x))g′(x)f'(g(x))g'(x)f′(g(x))g′(x).

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the inner function in y=(2x−7)6y=(2x-7)^6y=(2x−7)6.
Show answer and explanation

Answer: C · Worked explanation

The inner function is 2x−72x-72x−7, because it supplies the input to the outer function that raises its input to the sixth power. The full expression (2x−7)6(2x-7)^6(2x−7)6 is the composite function, not the inner function by itself.
3

Part 3 of 4: Nested compositions need a derivative for every layer

A nested composition contains more than one inner layer. Differentiate from the outside inward, multiplying once for each layer. In y=sin⁡((x2+1)3)y=\sin((x^2+1)^3)y=sin((x2+1)3), the layers are sine, cubing, and x2+1x^2+1x2+1. Keeping each input intact makes the order easier to follow. You can simplify after every layer has contributed its derivative. If an inner derivative equals 1, its factor need not appear in the final expression. Otherwise, leaving out a factor changes the derivative.

Worked example

Differentiate three layers

Find dydx\frac{dy}{dx}dxdy​ for y=sin⁡((x2+1)3)y=\sin((x^2+1)^3)y=sin((x2+1)3).
  1. 1
    Differentiate sine: cos⁡((x2+1)3)\cos((x^2+1)^3)cos((x2+1)3).
  2. 2
    Differentiate the cubed input: 3(x2+1)23(x^2+1)^23(x2+1)2.
  3. 3
    Differentiate the innermost input: ddx(x2+1)=2x\frac{d}{dx}(x^2+1)=2xdxd​(x2+1)=2x.
  4. 4
    Multiply the three factors: dydx=cos⁡((x2+1)3) 3(x2+1)2(2x)\frac{dy}{dx}=\cos((x^2+1)^3)\,3(x^2+1)^2(2x)dxdy​=cos((x2+1)3)3(x2+1)2(2x).

Answer: dydx=6x(x2+1)2cos⁡((x2+1)3)\frac{dy}{dx}=6x(x^2+1)^2\cos((x^2+1)^3)dxdy​=6x(x2+1)2cos((x2+1)3).

Key term

nested composition

A nested composition has multiple function layers, each applied to the output of the layer inside it.

Part 3 done

4

Part 4 of 4: Choose the chain rule when an input varies

Look for a familiar function applied to an expression containing xxx. That expression is a varying input, so use the chain rule. For example, 4x−1=(4x−1)1/2\sqrt{4x-1}=(4x-1)^{1/2}4x−1​=(4x−1)1/2 needs the chain rule. Its derivative is 12(4x−1)−1/2(4)\frac{1}{2}(4x-1)^{-1/2}(4)21​(4x−1)−1/2(4). By contrast, x5x^5x5 needs only the power rule: its input is xxx, whose derivative is 1. Some expressions need more than one rule. In x2sin⁡(3x)x^2\sin(3x)x2sin(3x), use the product rule for the two factors. Then use the chain rule when differentiating sin⁡(3x)\sin(3x)sin(3x). Always identify the overall structure before differentiating its parts.

Exam tip

A product of factors is not itself a composition. Check each factor separately for inner layers.

Key term

product rule

The product rule differentiates u(x)v(x)u(x)v(x)u(x)v(x) as u′(x)v(x)+u(x)v′(x)u'(x)v(x)+u(x)v'(x)u′(x)v(x)+u(x)v′(x).

Note read

Check your recall[15 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Identify[2 marks]

    Identify the inner and outer functions in y=cos⁡(5x2)y=\cos(5x^2)y=cos(5x2).

    Show mark schemeHide mark scheme

    Model answer

    The inner function is 5x25x^25x2. The outer function is cosine.

    • 1 mark for identifying 5x25x^25x2 as the inner function
    • 1 mark for identifying cosine as the outer function
  2. 2.Calculate[3 marks]

    Calculate dydx\frac{dy}{dx}dxdy​ for y=(2x3−1)4y=(2x^3-1)^4y=(2x3−1)4.

    Show mark schemeHide mark scheme

    Model answer

    Differentiate the outer power and multiply by the inner derivative: dydx=4(2x3−1)3(6x2)=24x2(2x3−1)3\frac{dy}{dx}=4(2x^3-1)^3(6x^2)=24x^2(2x^3-1)^3dxdy​=4(2x3−1)3(6x2)=24x2(2x3−1)3.

    • 1 mark for differentiating the outer power to obtain 4(2x3−1)34(2x^3-1)^34(2x3−1)3
    • 1 mark for finding the inner derivative 6x26x^26x2
    • 1 mark for multiplying to obtain 24x2(2x3−1)324x^2(2x^3-1)^324x2(2x3−1)3
  3. 3.Calculate[4 marks]

    Calculate dydx\frac{dy}{dx}dxdy​ for y=sin⁡((x2+1)3)y=\sin((x^2+1)^3)y=sin((x2+1)3).

    Show mark schemeHide mark scheme

    Model answer

    dydx=cos⁡((x2+1)3)⋅3(x2+1)2⋅2x=6x(x2+1)2cos⁡((x2+1)3)\frac{dy}{dx}=\cos((x^2+1)^3)\cdot3(x^2+1)^2\cdot2x=6x(x^2+1)^2\cos((x^2+1)^3)dxdy​=cos((x2+1)3)⋅3(x2+1)2⋅2x=6x(x2+1)2cos((x2+1)3).

    • 1 mark for differentiating sine to obtain cos⁡((x2+1)3)\cos((x^2+1)^3)cos((x2+1)3)
    • 1 mark for differentiating the cubed layer to obtain 3(x2+1)23(x^2+1)^23(x2+1)2
    • 1 mark for differentiating x2+1x^2+1x2+1 to obtain 2x2x2x
    • 1 mark for multiplying the factors to obtain 6x(x2+1)2cos⁡((x2+1)3)6x(x^2+1)^2\cos((x^2+1)^3)6x(x2+1)2cos((x2+1)3)
  4. 4.Explain[3 marks]

    Explain why differentiating 4x−1\sqrt{4x-1}4x−1​ requires the chain rule, but differentiating x5x^5x5 does not.

    Show mark schemeHide mark scheme

    Model answer

    4x−1\sqrt{4x-1}4x−1​ applies a square root to the varying input 4x−14x-14x−1. Its derivative needs the outer derivative multiplied by 4. For x5x^5x5, the input is xxx, so the power rule gives 5x45x^45x4.

    • 1 mark for identifying 4x−14x-14x−1 as the varying input to the square root
    • 1 mark for stating that its derivative requires multiplication by the inner derivative 4
    • 1 mark for stating that x5x^5x5 needs only the power rule because its input is xxx
  5. 5.Describe[3 marks]

    Describe how to differentiate x2sin⁡(3x)x^2\sin(3x)x2sin(3x), and give its derivative.

    Show mark schemeHide mark scheme

    Model answer

    Use the product rule on x2x^2x2 and sin⁡(3x)\sin(3x)sin(3x). Use the chain rule to differentiate sin⁡(3x)\sin(3x)sin(3x) as 3cos⁡(3x)3\cos(3x)3cos(3x). Therefore, the derivative is 2xsin⁡(3x)+3x2cos⁡(3x)2x\sin(3x)+3x^2\cos(3x)2xsin(3x)+3x2cos(3x).

    • 1 mark for choosing the product rule for the two factors
    • 1 mark for using the chain rule to obtain 3cos⁡(3x)3\cos(3x)3cos(3x)
    • 1 mark for giving 2xsin⁡(3x)+3x2cos⁡(3x)2x\sin(3x)+3x^2\cos(3x)2xsin(3x)+3x2cos(3x)

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the quick check in the note above.

2.

Easy·Identify[1 mark]

For y=1+x4y=\sqrt{1+x^4}y=1+x4​, identify the outer function when the expression is viewed as a composition.
Show answer and explanation

Answer: C · Worked explanation

The outer function takes the entire expression 1+x41+x^41+x4 as its input and returns its square root. The function 1+x41+x^41+x4 is the inner function, since its output is supplied to the square-root function.
3.

Easy·Calculate[1 mark]

Calculate dydx\frac{dy}{dx}dxdy​ for y=(x+4)3y=(x+4)^3y=(x+4)3.
Show answer and explanation

Answer: B · Worked explanation

Differentiate the outer power to get 3(x+4)23(x+4)^23(x+4)2, then multiply by the derivative of the inner function x+4x+4x+4, which is 1. Thus the derivative is 3(x+4)23(x+4)^23(x+4)2. The tempting expression 3(x+4)2+13(x+4)^2+13(x+4)2+1 adds the inner derivative instead of multiplying by it.
4.

Easy·Identify[1 mark]

Which function requires the chain rule because a familiar function is applied to an input that varies with xxx?
Show answer and explanation

Answer: B · Worked explanation

In cos⁡(4x)\cos(4x)cos(4x), cosine is applied to the varying input 4x4x4x, so differentiating requires the derivative of that input as a factor. The other expressions can be differentiated directly with the power rule or constant multiple and sum rules; they do not have an outer function applied to a nontrivial inner input.
5.

Medium·Calculate[1 mark]

Calculate dydx\frac{dy}{dx}dxdy​ at x=1x=1x=1 if y=(5x−2)4y=(5x-2)^4y=(5x−2)4.
Show answer and explanation

Answer: C · Worked explanation

By the chain rule, dydx=4(5x−2)3(5)=20(5x−2)3\frac{dy}{dx}=4(5x-2)^3(5)=20(5x-2)^3dxdy​=4(5x−2)3(5)=20(5x−2)3. At x=1x=1x=1, this is 20(3)3=54020(3)^3=54020(3)3=540. The tempting value 108 comes from differentiating the outer power but omitting the factor 5, the derivative of the inner function.
6.

Medium·Calculate[1 mark]

Calculate dydx\frac{dy}{dx}dxdy​ for y=sin⁡(7x+1)y=\sin(7x+1)y=sin(7x+1).
Show answer and explanation

Answer: A · Worked explanation

The derivative of sine is cosine, leaving its input unchanged, and the derivative of the inner input 7x+17x+17x+1 is 7. Multiplying these gives 7cos⁡(7x+1)7\cos(7x+1)7cos(7x+1). The tempting expression cos⁡(7x+1)\cos(7x+1)cos(7x+1) omits the inner derivative, so it would be appropriate only if the input had derivative 1.
7.

Medium·Determine[2 marks]

Determine dydx\frac{dy}{dx}dxdy​ for y=(x3+2)5y=(x^3+2)^5y=(x3+2)5.
Show answer and explanation

Answer: A · Worked explanation

Differentiate the outer fifth power to obtain 5(x3+2)45(x^3+2)^45(x3+2)4, then multiply by the derivative of the inner function, 3x23x^23x2. The result is 15x2(x3+2)415x^2(x^3+2)^415x2(x3+2)4. The tempting expression 5(x3+2)45(x^3+2)^45(x3+2)4 leaves out the inner derivative factor.
8.

Medium·Calculate[2 marks]

A sensor's output is modeled by P(t)=(2t2+3)3P(t)=(2t^2+3)^3P(t)=(2t2+3)3, where ttt is measured in seconds. Calculate the instantaneous rate of change of PPP at t=1t=1t=1.
Show answer and explanation

Answer: B · Worked explanation

The chain rule gives P′(t)=3(2t2+3)2(4t)P'(t)=3(2t^2+3)^2(4t)P′(t)=3(2t2+3)2(4t). At t=1t=1t=1, this is 3(5)2(4)=3003(5)^2(4)=3003(5)2(4)=300 output units per second. The tempting value 75 differentiates the outer cube but fails to include the inner derivative 4t4t4t.
9.

Medium·Calculate[2 marks]

Calculate dydx\frac{dy}{dx}dxdy​ for y=(cos⁡(2x))3y=\bigl(\cos(2x)\bigr)^3y=(cos(2x))3.
Show answer and explanation

Answer: C · Worked explanation

Differentiate the outer cube to get 3cos⁡2(2x)3\cos^2(2x)3cos2(2x), then differentiate the cosine layer to get −sin⁡(2x)-\sin(2x)−sin(2x) and the inner input to get 2. Multiplying gives −6cos⁡2(2x)sin⁡(2x)-6\cos^2(2x)\sin(2x)−6cos2(2x)sin(2x). The tempting expression with coefficient -3 omits the derivative 2 of the innermost input.
10.

Hard·Determine[2 marks]

Determine the slope of y=((3x−1)2+4)3y=\bigl((3x-1)^2+4\bigr)^3y=((3x−1)2+4)3 at x=1x=1x=1.
Show answer and explanation

Answer: D · Worked explanation

By the chain rule, y′=3((3x−1)2+4)2⋅2(3x−1)⋅3y'=3\bigl((3x-1)^2+4\bigr)^2\cdot 2(3x-1)\cdot 3y′=3((3x−1)2+4)2⋅2(3x−1)⋅3. At x=1x=1x=1, the expression inside the cube is 8 and 3x−1=23x-1=23x−1=2, so the slope is 3(8)2(2)(2)(3)=23043(8)^2(2)(2)(3)=23043(8)2(2)(2)(3)=2304.

Keep going

Next topic3.2 Implicit differentiationPrevious topic2.10 Derivatives of tan, cot, sec and csc

More in Unit 3 · Differentiation: Composite, Implicit and Inverse Functions

  1. 3.1Chain ruleNotes · 10 questions
  2. 3.2Implicit differentiationNotes · 10 questions
  3. 3.3Differentiating inverse functionsNotes · 10 questions
  4. 3.4Derivatives of inverse trig functionsNotes · 10 questions
  5. 3.5Choosing a differentiation procedureNotes · 10 questions
  6. 3.6Higher-order derivativesNotes · 10 questions

All AP Calculus BC topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/4 read

  1. 1Composite functions apply one function inside another
  2. 2The chain rule multiplies derivatives across layers
  3. 3Nested compositions need a derivative for every layer
  4. 4Choose the chain rule when an input varies
  5. Check your recall
  6. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe