upgrade
upgrade

Differential Calculus

Chain Rule Examples

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

The chain rule is the workhorse of differentiation—it's how you handle any composite function, which means it shows up constantly on AP Calculus exams. You're being tested on your ability to recognize the "outer" and "inner" functions, apply the correct derivative rules in sequence, and multiply everything together without dropping terms. Whether you're differentiating a trigonometric function wrapped around a polynomial or an exponential nested inside another exponential, the chain rule is your go-to tool.

What separates strong exam performance from average is understanding the pattern: differentiate the outer function, leave the inner function alone, then multiply by the derivative of the inner function. This guide organizes chain rule examples by the type of outer function so you can see how the same principle applies across different contexts—exponential, trigonometric, power, logarithmic, and inverse functions. Don't just memorize formulas; know which structure each example demonstrates so you can adapt when the exam throws you a new combination.


Power and Polynomial Outer Functions

These examples feature a power or polynomial as the outer function. The key mechanism is applying the power rule to the outer function while treating the inner function as a single unit, then multiplying by the inner derivative.

Composite Polynomial Functions

  • General form [u(x)]n[u(x)]^n—differentiate as n[u(x)]n1u(x)n[u(x)]^{n-1} \cdot u'(x), bringing down the exponent and reducing it by one
  • Example ddx(3x2+2x+1)5\frac{d}{dx}(3x^2 + 2x + 1)^5 yields 5(3x2+2x+1)4(6x+2)5(3x^2 + 2x + 1)^4 \cdot (6x + 2), where the inner derivative is the polynomial's standard derivative
  • FRQ favorite—these appear frequently because they test both power rule mastery and chain rule mechanics in one problem

Square Root Functions with Inner Polynomials

  • Rewrite as a power function u(x)=[u(x)]1/2\sqrt{u(x)} = [u(x)]^{1/2} to apply the chain rule cleanly
  • Derivative formula ddxax2+bx+c=2ax+b2ax2+bx+c\frac{d}{dx}\sqrt{ax^2 + bx + c} = \frac{2ax + b}{2\sqrt{ax^2 + bx + c}}, which simplifies the fractional exponent
  • Watch for domain restrictions—the inner function must be positive, which can affect related rates and optimization problems

Power Functions with Linear Inner Functions

  • Simplest chain rule case (ax+b)n(ax + b)^n differentiates to n(ax+b)n1an(ax + b)^{n-1} \cdot a
  • Common error—forgetting to multiply by aa, the derivative of the inner linear function
  • Building block skill—if you can nail these, you're ready for more complex compositions

Compare: (3x2+2x)5(3x^2 + 2x)^5 vs. (3x+2)5(3x + 2)^5—both use the power rule outside, but the inner derivatives differ significantly (6x+26x + 2 vs. 33). On multiple choice, always check what's inside before selecting your answer.


Exponential Outer Functions

Exponential functions maintain their form when differentiated, making them predictable but requiring careful attention to the inner function. The mechanism: ddxeu(x)=eu(x)u(x)\frac{d}{dx}e^{u(x)} = e^{u(x)} \cdot u'(x)—the exponential reproduces itself, then multiplies by the inner derivative.

Exponential Functions with Polynomial Inner Functions

  • Base ee form ddxeax+b=aeax+b\frac{d}{dx}e^{ax + b} = ae^{ax + b}, where the exponential stays intact and multiplies by the inner derivative
  • Other bases ddxau(x)=au(x)ln(a)u(x)\frac{d}{dx}a^{u(x)} = a^{u(x)} \cdot \ln(a) \cdot u'(x)—don't forget the ln(a)\ln(a) factor
  • High-frequency topic—exponential growth and decay problems almost always require this differentiation

Nested Exponential Functions

  • Double composition eeax+be^{e^{ax + b}} requires applying the chain rule twice in succession
  • Derivative ddxeeax+b=eeax+beax+ba\frac{d}{dx}e^{e^{ax + b}} = e^{e^{ax + b}} \cdot e^{ax + b} \cdot a—each layer contributes its own factor
  • Strategy tip—work from the outermost function inward, writing each derivative factor as you go

Compare: e3x+1e^{3x + 1} vs. eexe^{e^x}—the first has a linear inner function (derivative includes factor of 3), while the second has an exponential inner function (derivative includes factor of exe^x). Nested compositions are rare on MC but can appear in FRQ contexts.


Trigonometric Outer Functions

Trigonometric functions follow predictable derivative patterns, but the chain rule adds the inner function's derivative as a multiplier. The mechanism: differentiate the trig function normally, keep the inner function unchanged inside, then multiply by the inner derivative.

Trigonometric Functions with Polynomial Inner Functions

  • Sine and cosine ddxsin(ax+b)=acos(ax+b)\frac{d}{dx}\sin(ax + b) = a\cos(ax + b) and ddxcos(ax+b)=asin(ax+b)\frac{d}{dx}\cos(ax + b) = -a\sin(ax + b)
  • Tangent and secant—remember ddxtan(u)=sec2(u)u\frac{d}{dx}\tan(u) = \sec^2(u) \cdot u' and ddxsec(u)=sec(u)tan(u)u\frac{d}{dx}\sec(u) = \sec(u)\tan(u) \cdot u'
  • Sign errors kill—track negative signs carefully, especially with cosine derivatives

Combinations of Trigonometric and Exponential Functions

  • Trig outside exponential ddxsin(eax)=cos(eax)aeax\frac{d}{dx}\sin(e^{ax}) = \cos(e^{ax}) \cdot ae^{ax}—differentiate sine, then multiply by the exponential's derivative
  • Exponential outside trig ddxesin(ax)=esin(ax)acos(ax)\frac{d}{dx}e^{\sin(ax)} = e^{\sin(ax)} \cdot a\cos(ax)—exponential reproduces, multiplies by sine's derivative
  • Two-layer chain rule—identify which function is "outermost" to determine the order of operations

Compare: sin(ex)\sin(e^x) vs. esin(x)e^{\sin(x)}—same two functions, opposite nesting order. The first gives cos(ex)ex\cos(e^x) \cdot e^x; the second gives esin(x)cos(x)e^{\sin(x)} \cdot \cos(x). If an FRQ asks you to differentiate and simplify, knowing the nesting order is everything.


Logarithmic Outer Functions

Logarithmic differentiation produces reciprocal forms, and the chain rule adds the inner derivative in the numerator. The mechanism: ddxln(u(x))=u(x)u(x)\frac{d}{dx}\ln(u(x)) = \frac{u'(x)}{u(x)}—the inner function goes in the denominator, its derivative in the numerator.

Natural Logarithm with Polynomial Inner Functions

  • Standard form ddxln(ax+b)=aax+b\frac{d}{dx}\ln(ax + b) = \frac{a}{ax + b}, a clean rational function result
  • Quadratic inner ddxln(ax2+bx+c)=2ax+bax2+bx+c\frac{d}{dx}\ln(ax^2 + bx + c) = \frac{2ax + b}{ax^2 + bx + c}—numerator is always the inner derivative
  • Logarithmic differentiation technique—useful for products and quotients; take ln\ln of both sides, then differentiate

Logarithms with Other Bases

  • Change of base applies ddxloga(u)=u(x)u(x)ln(a)\frac{d}{dx}\log_a(u) = \frac{u'(x)}{u(x) \cdot \ln(a)}—extra ln(a)\ln(a) factor in denominator
  • Less common on exams—but worth knowing since it tests your understanding of logarithm properties
  • Conversion strategy—rewrite as ln(u)ln(a)\frac{\ln(u)}{\ln(a)} if the formula feels unfamiliar

Compare: ln(x2+1)\ln(x^2 + 1) vs. [ln(x)]2[\ln(x)]^2—the first is a logarithm of a sum (chain rule gives 2xx2+1\frac{2x}{x^2 + 1}), while the second is a logarithm squared (power rule outside gives 2ln(x)1x2\ln(x) \cdot \frac{1}{x}). Misreading the structure is a common trap.


Inverse Trigonometric Outer Functions

Inverse trig derivatives produce algebraic expressions involving square roots, and the chain rule multiplies these by the inner derivative. The mechanism requires memorizing the base derivatives, then applying the chain rule normally.

Inverse Sine and Cosine with Inner Functions

  • Arcsine derivative ddxarcsin(u)=u(x)1[u(x)]2\frac{d}{dx}\arcsin(u) = \frac{u'(x)}{\sqrt{1 - [u(x)]^2}}—note the square root in the denominator
  • Arccosine derivative ddxarccos(u)=u(x)1[u(x)]2\frac{d}{dx}\arccos(u) = \frac{-u'(x)}{\sqrt{1 - [u(x)]^2}}—same form, opposite sign
  • Domain awareness—the inner function must satisfy 1u(x)1-1 \leq u(x) \leq 1 for real outputs

Inverse Tangent with Inner Functions

  • Arctangent derivative ddxarctan(u)=u(x)1+[u(x)]2\frac{d}{dx}\arctan(u) = \frac{u'(x)}{1 + [u(x)]^2}—no square root, simpler form
  • Integration connection—recognizing this form helps with antiderivatives involving 11+x2\frac{1}{1 + x^2}
  • Exam frequency—arctangent appears more often than arcsine/arccosine due to its simpler derivative structure

Compare: arcsin(2x)\arcsin(2x) vs. arctan(2x)\arctan(2x)—both have inner derivative 2, but arcsine gives 214x2\frac{2}{\sqrt{1 - 4x^2}} while arctangent gives 21+4x2\frac{2}{1 + 4x^2}. Know which formula matches which inverse function.


Rational and Combined Structures

Some chain rule problems involve quotients or require combining the chain rule with other differentiation rules. The mechanism: apply the quotient rule when needed, but recognize when rewriting as a power function simplifies the work.

Rational Functions Requiring Chain Rule

  • Quotient rule combination—for u(x)v(x)\frac{u(x)}{v(x)} where uu or vv is composite, apply quotient rule first, chain rule within
  • Power rewrite trick 1(ax+b)n=(ax+b)n\frac{1}{(ax + b)^n} = (ax + b)^{-n}—often easier than quotient rule
  • Simplification expected—exam answers typically require factoring and reducing the final expression

Compare: Using quotient rule on 1(x2+1)2\frac{1}{(x^2 + 1)^2} vs. rewriting as (x2+1)2(x^2 + 1)^{-2}—the power rule approach gives 2(x2+1)32x=4x(x2+1)3-2(x^2 + 1)^{-3} \cdot 2x = \frac{-4x}{(x^2 + 1)^3} more directly. Choose your method strategically.


Quick Reference Table

ConceptBest Examples
Power rule outside(ax+b)n(ax + b)^n, (ax2+bx+c)n(ax^2 + bx + c)^n, ax+b\sqrt{ax + b}
Exponential outsideeax+be^{ax + b}, ex2e^{x^2}, au(x)a^{u(x)}
Trig outsidesin(ax+b)\sin(ax + b), cos(x2)\cos(x^2), tan(ex)\tan(e^x)
Logarithm outsideln(ax+b)\ln(ax + b), ln(x2+1)\ln(x^2 + 1), loga(u)\log_a(u)
Inverse trig outsidearcsin(2x)\arcsin(2x), arctan(x2)\arctan(x^2), arccos(ax)\arccos(ax)
Nested compositionseexe^{e^x}, sin(ex)\sin(e^x), esin(x)e^{\sin(x)}
Combined with quotient rule1(ax+b)n\frac{1}{(ax + b)^n}, exx2+1\frac{e^x}{x^2 + 1}

Self-Check Questions

  1. What do sin(3x+1)\sin(3x + 1) and e3x+1e^{3x + 1} have in common when you differentiate them, and how do their outer function derivatives differ?

  2. If you're given ddx[ln(x2+5x)]\frac{d}{dx}[\ln(x^2 + 5x)], what expression appears in the numerator, and why?

  3. Compare the derivatives of (x2+1)4(x^2 + 1)^4 and x2+1\sqrt{x^2 + 1}—what's the same about the process, and what changes?

  4. For arctan(3x)\arctan(3x) vs. arcsin(3x)\arcsin(3x), both have inner derivative 3. Write out both full derivatives and identify what distinguishes them.

  5. An FRQ gives you f(x)=ecos(2x)f(x) = e^{\cos(2x)} and asks for f(x)f'(x). Walk through the chain rule layers—what's the outer function, what's the inner function, and what's the final derivative?