AP Calculus AB • Differentiation: Composite, Implicit, and Inverse Functions

Selecting Procedures for Calculating Derivatives

Master the art of choosing the right differentiation technique for any function you encounter.

AP Calculus AB illustration with a smooth curve, infinity sign, and measuring ruler
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

Historical Context & Motivation

The calculus as we know it grew from two independent traditions—Newton's fluxions and Leibniz's differentials—but both pioneers recognized early on that a single rule could never handle every function. As mathematics matured through the 18th and 19th centuries, the toolkit for differentiation expanded dramatically: the product rule, quotient rule, chain rule, and implicit differentiation each emerged to solve problems that simpler techniques could not address. The real skill in calculus has always been not merely memorizing these rules but knowing when to deploy each one—a skill that the AP exam tests directly.

1684 • Leibniz Publishes the Calculus

Gottfried Wilhelm Leibniz introduces the product rule and quotient rule in his foundational paper, providing the first systematic notation for derivatives.

1748 • Euler Formalizes the Chain Rule

Leonhard Euler develops techniques for differentiating composite functions, laying groundwork for what we now call the chain rule.

1770s • Implicit Differentiation Matures

Euler and Lagrange apply differentiation to relations that cannot be solved explicitly for y, establishing implicit differentiation as a core method.

1800s • Inverse Function Theorem

Cauchy and others rigorously prove that the derivative of an inverse function equals the reciprocal of the original function's derivative, completing the modern differentiation toolkit.

Today's AP Calculus AB student inherits this entire toolkit. The central challenge of this lesson is not learning a new rule but developing the strategic fluency to analyze a function's structure and select the most efficient procedure for computing its derivative. This meta-skill—recognizing which tool fits the problem—is what separates mechanical symbol-pushers from confident problem-solvers on the exam.

SECTION 2

Core Principles of Procedure Selection

Before diving into specific rules, internalize the guiding philosophy: every function you encounter is built from simpler pieces combined by arithmetic operations or composition. Your job is to identify the outermost operation that defines the function's structure—this operation dictates which differentiation rule to apply first. The five principles below form a decision framework you can use systematically.

1

Simplify First

Always check whether algebraic simplification—expanding, factoring, or rewriting radicals as fractional exponents—reduces the function to a form where the power rule alone suffices.
2

Identify the Outer Structure

Ask: is the outermost operation a sum, product, quotient, or composition? The answer tells you which rule to apply first—sum rule, product rule, quotient rule, or chain rule.
3

Chain Rule for Composition

If a function is nested inside another—f(g(x))—the chain rule is mandatory. Look for 'inner functions' like (3x + 1), sin(x), or eˣ embedded inside an outer operation.
4

Implicit When y Is Trapped

When y cannot be isolated explicitly, differentiate both sides with respect to x, apply the chain rule to every y-term (attaching dy/dx), and solve for dy/dx algebraically.
5

Inverse Function Derivatives

For inverse trig, inverse exponential, or general inverse functions, use the reciprocal relationship: (f⁻¹)′(a) = 1 / f′(f⁻¹(a)), or memorize the standard inverse trig formulas.
✦

KEY TAKEAWAY

Think of selecting a differentiation procedure like choosing the right wrench in an engine shop. A mechanic doesn't randomly grab tools—she identifies the bolt size first, then picks the matching wrench. Similarly, you must diagnose the function's structure (sum? product? composition? implicit relation?) before reaching for a rule. The diagnosis is the hard part; executing the rule is routine.

SECTION 3

Decision Flowchart for Differentiation

The following flowchart encapsulates the selection process. Start at the top with any function you need to differentiate and follow the decision path downward. Each diamond represents a structural question about the expression, and each rectangle names the procedure to apply.

Derivative Procedure Selection FlowchartGiven f(x) — find f′(x)Can you simplifyalgebraically?YESNOSimplify firstIs y explicitin terms of x?YESNOImplicit Diff.Outermostoperation?Sum/Diff Rule±Product/Quotient× or ÷Chain Rulef(g(x))Inverse Func.f⁻¹Multiple rules may combine — e.g., chain rule inside a product rule
Start at the top with any expression. First attempt simplification, then check whether the relation is implicit or explicit, and finally identify the outermost operation to select the appropriate rule. Many problems require combining multiple rules (e.g., product rule on the outside with chain rule on an inner factor).
💡

AP Exam Tip

On multiple-choice questions, quickly scanning the answer choices can reveal which technique was intended. If the answers involve dy/dx solved algebraically, implicit differentiation is almost certainly required. If answers contain nested derivatives multiplied together, expect the chain rule.

SECTION 4

Mathematical Framework

This section collects the key derivative formulas you must have at your fingertips. Each formula corresponds to a structural pattern in the function. Recognizing which formula matches is the essence of procedure selection.

CHAIN RULE

d/dx[f(g(x))]=f′(g(x))⋅g′(x)d/dx [f(g(x))] = f′(g(x)) · g′(x)

Apply when a function is composed inside another. Differentiate the outer function evaluated at the inner, then multiply by the derivative of the inner function.

PRODUCT RULE

d/dx[f(x)⋅g(x)]=f′(x)⋅g(x)+f(x)⋅g′(x)d/dx [f(x) · g(x)] = f′(x) · g(x) + f(x) · g′(x)

Apply when two functions are multiplied together. Each factor takes a turn being differentiated while the other is held constant.

QUOTIENT RULE

d/dx[f(x)/g(x)]=[f′(x)⋅g(x)−f(x)⋅g′(x)]/[g(x)]2d/dx [f(x)/g(x)] = [f′(x)·g(x) − f(x)·g′(x)] / [g(x)]²

Apply when one function is divided by another. Remember: 'low d-high minus high d-low, over the square of what's below.'

IMPLICIT DIFFERENTIATION

d/dx[F(x,y)]=Fx+Fy⋅(dy/dx)=0→solvefordy/dxd/dx [F(x, y)] = Fₓ + F_y · (dy/dx) = 0 → solve for dy/dx

When differentiating a relation F(x, y) = 0, treat y as a function of x. Every time you differentiate a y-term, attach a factor of dy/dx via the chain rule, then isolate dy/dx.

INVERSE FUNCTION DERIVATIVE

(f−1)′(a)=1/f′(f−1(a))(f⁻¹)′(a) = 1 / f′(f⁻¹(a))

If f is invertible and f′(f⁻¹(a)) ≠ 0, the derivative of the inverse at a equals the reciprocal of the original function's derivative evaluated at the corresponding point.

A critical point: these rules are not mutually exclusive. A single problem might require you to apply the product rule at the outermost level, with the chain rule applied to one of the factors, and the inner function itself might involve an inverse trig derivative. Procedure selection is a recursive process—at each layer of the function's structure, you re-diagnose and apply the appropriate rule.

SECTION 5

Classifying Functions by Structure

The table below maps common function forms to their recommended differentiation procedures. Study the 'Structure Clue' column—these are the visual patterns that should trigger immediate recognition during an exam.

Function FormStructure CluePrimary RuleExample
xⁿ, cxⁿSingle power of xPower ruled/dx [5x³] = 15x²
f(x) ± g(x)Terms added/subtractedSum/Difference ruled/dx [x² + sin x]
f(x) · g(x)Two distinct factors multipliedProduct ruled/dx [x² · eˣ]
f(x) / g(x)Function divided by anotherQuotient ruled/dx [sin x / x²]
f(g(x))Function inside a functionChain ruled/dx [sin(3x²)]
F(x, y) = 0y not isolated; mixed x, yImplicit differentiationx² + y² = 25
f⁻¹(x), arcsin x, etc.Inverse notation or arc-prefixInverse function derivatived/dx [arctan x] = 1/(1+x²)

Function structures mapped to differentiation procedures

Anatomy of a Nested Function: sin²(eˣ)Identifying layers for rule selectionLAYER 1 (Outermost) — Power of a function → Chain Rule[ ]² means u² where u = sin(eˣ)d/du [u²] = 2u → 2·sin(eˣ) × d/dx[sin(eˣ)]LAYER 2 (Middle) — Trig of a function → Chain Rule againsin(v) where v = eˣd/dv [sin v] = cos v → cos(eˣ) × d/dx[eˣ]LAYER 3 (Innermost) — Exponential → Basic ruled/dx [eˣ] = eˣFull result: 2·sin(eˣ)·cos(eˣ)·eˣThree layers → chain rule applied twice, peeling from outside in
This diagram decomposes sin²(eˣ) into three nested layers. At each layer, the chain rule is applied: differentiate the outer function, then multiply by the derivative of everything inside. The final answer is the product of all three layer derivatives.

SECTION 6

Worked Example

Let's walk through a problem that requires selecting and combining multiple differentiation procedures. Consider the function: y = x² · arctan(3x). Find dy/dx.

Differentiating y = x² · arctan(3x)

  1. 1

    Step 1 — Identify the Outermost Structure

    The function is a product of two factors: f(x) = x² and g(x) = arctan(3x). Since the outermost operation is multiplication, the product rule is the first rule to apply.
    dy/dx = f′(x)·g(x) + f(x)·g′(x)
  2. 2

    Step 2 — Differentiate the First Factor

    f(x) = x², so by the power rule, f′(x) = 2x. No chain rule is needed because the argument is simply x.
    f′(x) = 2x
  3. 3

    Step 3 — Differentiate the Second Factor (Chain Rule + Inverse Trig)

    g(x) = arctan(3x). This is a composition: the outer function is arctan(u) and the inner function is u = 3x. We need the chain rule. The derivative of arctan(u) is 1/(1 + u²), and the derivative of 3x is 3. By the chain rule: g′(x) = [1/(1 + (3x)²)] · 3 = 3/(1 + 9x²).
    g′(x) = 3/(1 + 9x²)
  4. 4

    Step 4 — Assemble Using the Product Rule

    Substituting back into the product rule formula: dy/dx = (2x)·arctan(3x) + x²·[3/(1 + 9x²)]. This expression is fully simplified.
    dy/dx = 2x·arctan(3x) + 3x²/(1 + 9x²)
ℹ

Procedure Audit

Notice the layered selection: product rule governed the overall structure, while the chain rule (combined with the inverse trig formula) handled the second factor. Always work from the outside in.

SECTION 7

Common Pitfalls & Comparisons

Selecting the wrong procedure—or omitting a necessary step—is the most frequent source of errors on the AP exam. The table below catalogs common mistakes alongside the correct approach, helping you build error-awareness before exam day.

Common MistakeWhy It's WrongCorrect Approach
Forgetting the inner derivative in the chain ruled/dx[sin(3x)] ≠ cos(3x); the factor of 3 from the inner function is missingd/dx[sin(3x)] = cos(3x)·3 = 3cos(3x)
Using the product rule on f(g(x))Composition is not multiplication; sin(x²) ≠ sin(x)·x²Recognize nesting and apply the chain rule
Applying the quotient rule when simplification worksx³/x = x²; the quotient rule gives the same answer but wastes time and invites algebra errorsSimplify to x² first, then power rule: 2x
Forgetting dy/dx on y-terms in implicit diff.y depends on x, so d/dx[y²] = 2y·(dy/dx), not just 2yEvery y-term gets a dy/dx factor via chain rule
Confusing (f⁻¹)′ with 1/fThe inverse function f⁻¹ is not the reciprocal 1/f; their derivatives are entirely differentUse (f⁻¹)′(a) = 1/f′(f⁻¹(a))

Error catalog for differentiation procedure selection

✦

KEY TAKEAWAY

Most derivative errors are not computational—they are structural. You typically execute the algebra correctly but apply the wrong rule. Building a mental checklist (simplify → explicit or implicit? → outermost operation) prevents the vast majority of exam mistakes, much like a pilot's pre-flight checklist prevents errors that no amount of flying skill can fix.

SECTION 8

Connections to Advanced Topics

The procedure-selection skills you develop here extend naturally into more advanced calculus and analysis. In AP Calculus BC and beyond, you will encounter additional techniques—but the same diagnostic framework applies.

AB ConceptAdvanced ExtensionWhat Changes
Chain rule for f(g(x))Multivariable chain rule (∂f/∂x, ∂f/∂y)Partial derivatives replace ordinary ones; multiple paths of dependency
Implicit differentiationImplicit function theorem (multivariable)Conditions for when implicit differentiation is valid; Jacobian matrices
Inverse function derivativeInverse function theorem (analysis)Generalizes to ℝⁿ; requires non-singular Jacobian at the point
Product/quotient ruleLogarithmic differentiation (BC)Taking ln of both sides converts products to sums, simplifying complex expressions

From AB foundations to advanced extensions

One technique worth previewing is logarithmic differentiation, which appears on the BC exam. When a function like y = xˢⁱⁿˣ has a variable in both the base and the exponent, none of the standard AB rules apply directly. By taking the natural log of both sides (ln y = sin x · ln x) and differentiating implicitly, you convert the problem into one solvable with the product rule and implicit differentiation—tools you already own. This illustrates how mastering procedure selection at the AB level creates a foundation for every subsequent calculus course.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A student needs to differentiate h(x) = (2x + 1)⁵. Which procedure should the student select as the primary rule, and why? (A) Power rule only, because the exponent is 5 (B) Chain rule, because (2x + 1) is an inner function raised to a power (C) Product rule, because (2x + 1)⁵ can be viewed as five factors multiplied (D) Quotient rule, because the expression can be rewritten as a fraction (E) Implicit differentiation, because the function is a polynomial expression
  • A. Power rule only, because the exponent is 5
  • B. Chain rule, because (2x + 1) is an inner function raised to a power
  • C. Product rule, because (2x + 1)⁵ can be viewed as five factors multiplied
  • D. Quotient rule, because the expression can be rewritten as a fraction
  • E. Implicit differentiation, because the function is a polynomial expression
Show answer (B)
Correct: (B). The function h(x) = (2x + 1)⁵ is a composition: the outer function is u⁵ and the inner function is u = 2x + 1. The chain rule gives h′(x) = 5(2x + 1)⁴ · 2 = 10(2x + 1)⁴. (A) is wrong because the power rule alone (d/dx[xⁿ] = nxⁿ⁻¹) applies only when the base is just x, not a more complex expression. (C) is technically possible but wildly impractical—expanding five factors and using the product rule repeatedly is far more error-prone than one application of the chain rule. (D) is wrong because there is no division present. (E) is wrong because y is explicitly defined in terms of x; implicit differentiation is unnecessary.

Question 2: BASIC CALCULATION

Find d/dx [eˢⁱⁿˣ]. (A) eˢⁱⁿˣ (B) cos x · eˢⁱⁿˣ (C) sin x · eˢⁱⁿˣ (D) eᶜᵒˢˣ (E) eˢⁱⁿˣ / cos x
  • A. eˢⁱⁿˣ
  • B. cos x · eˢⁱⁿˣ
  • C. sin x · eˢⁱⁿˣ
  • D. eᶜᵒˢˣ
  • E. eˢⁱⁿˣ / cos x
Show answer (B)
Correct: (B). This is a chain rule problem: the outer function is eᵘ (derivative eᵘ) and the inner function is u = sin x (derivative cos x). By the chain rule, d/dx[eˢⁱⁿˣ] = eˢⁱⁿˣ · cos x. (A) forgets the inner derivative entirely—a classic chain-rule omission. (C) incorrectly uses sin x instead of its derivative cos x. (D) changes the exponent to cos x, which is not a valid operation. (E) divides by cos x instead of multiplying, confusing the chain rule with something else entirely.

Question 3: INTERMEDIATE

Find dy/dx if x² + xy + y² = 7. (A) −(2x + y) / (x + 2y) (B) (2x + y) / (x + 2y) (C) −2x / (x + 2y) (D) −(2x + y) / (2y) (E) (2x + y) / (x − 2y)
  • A. −(2x + y) / (x + 2y)
  • B. (2x + y) / (x + 2y)
  • C. −2x / (x + 2y)
  • D. −(2x + y) / (2y)
  • E. (2x + y) / (x − 2y)
Show answer (A)
Correct: (A). Implicit differentiation is required because y cannot be easily isolated. Differentiating both sides: 2x + (y + x·dy/dx) + 2y·dy/dx = 0, where the xy term uses the product rule and the y² term uses the chain rule. Collecting dy/dx terms: dy/dx·(x + 2y) = −2x − y, so dy/dx = −(2x + y)/(x + 2y). (B) has the wrong sign—it drops the negative. (C) omits the y from the numerator, forgetting the product rule on xy. (D) omits the x term from the denominator, losing the product-rule contribution from the xy differentiation. (E) has a sign error in the denominator.

Question 4: APPLIED

4 pts
Let f be a differentiable function with the values f(2) = 5, f′(2) = 3, f(5) = 2, and f′(5) = −4. Define g(x) = f(f(x)). Find g′(2). Then find the equation of the tangent line to y = g(x) at x = 2.
Show answer
Point allocation (4 points): [1 pt] Identify g(x) = f(f(x)) as a composition and write the chain rule: g′(x) = f′(f(x)) · f′(x). [1 pt] Substitute x = 2: g′(2) = f′(f(2)) · f′(2) = f′(5) · f′(2) = (−4)(3) = −12. [1 pt] Find the point: g(2) = f(f(2)) = f(5) = 2, so the point is (2, 2). [1 pt] Tangent line: y − 2 = −12(x − 2), or equivalently y = −12x + 26.

Question 5: CRITICAL THINKING

3 pts
Let f be an invertible, differentiable function. Given that f(3) = 7 and f′(3) = 5, find (f⁻¹)′(7). Justify your choice of differentiation procedure and explain why the chain rule is implicitly involved.
Show answer
Point allocation (3 points): [1 pt] State the inverse function derivative formula: (f⁻¹)′(a) = 1/f′(f⁻¹(a)). Since f(3) = 7, we know f⁻¹(7) = 3. [1 pt] Compute: (f⁻¹)′(7) = 1/f′(f⁻¹(7)) = 1/f′(3) = 1/5. [1 pt] Justification: The inverse function derivative formula is derived by differentiating f(f⁻¹(x)) = x using the chain rule. The left side gives f′(f⁻¹(x)) · (f⁻¹)′(x) = 1, so (f⁻¹)′(x) = 1/f′(f⁻¹(x)). The chain rule is the underlying engine—implicit in the formula—because f⁻¹(x) is composed inside f.

SUMMARY

Lesson Summary

Summary

Selecting a differentiation procedure begins with analyzing the function's architecture. Simplify first whenever possible to reduce the problem to basic rules. If the function is defined implicitly, use implicit differentiation, remembering to attach dy/dx to every y-term via the chain rule. For explicit functions, identify the outermost operation: sums trigger the sum rule, products trigger the product rule, quotients trigger the quotient rule, and compositions trigger the chain rule. For inverse functions, apply the inverse function derivative formula or the memorized inverse trig derivatives.

Most real problems require layering multiple rules—product rule on the outside with chain rule on a factor, or implicit differentiation that internally uses the product rule. The key meta-skill is diagnosing structure before computing, working from the outermost layer inward. Master this recursive decision process and you will handle any derivative the AP exam presents with confidence and efficiency.

Varsity Tutors • AP Calculus AB • Selecting Procedures for Calculating Derivatives