Unit 3: Differentiation: Composite, Implicit, and Inverse Functions

Understanding Composite Functions and the Chain Rule

A big shift in calculus happens when you stop differentiating “simple” formulas and start differentiating composite functions—functions built by plugging one function into another. If you can recognize a composite function and apply the chain rule, you can differentiate a huge range of expressions that appear on the AP exam.

What is a composite function?

A composite function is a function inside another function. If you have two functions f and g, then the composite f(g(x)) means: first apply g to x, then apply f to that result.

For example, if g(x)=3x^2+1 and f(u)=u^5, then

f(g(x))=(3x^2+1)^5

The key idea is that even though you see “one formula,” there are really layers.

Why the chain rule matters (conceptually)

Derivatives measure rates of change. In a composite function, the output changes because:

  1. x changes, which changes the “inside” quantity.
  2. That inside quantity changes, which then changes the “outside” output.

So the total rate of change is a product of “rate of outside change with respect to inside” times “rate of inside change with respect to x.” This is exactly what the chain rule multiplies.

A helpful analogy is a temperature sensor that converts temperature to voltage, then a computer converts voltage to a displayed number. If the room warms slightly, the display changes because temperature affects voltage and voltage affects the display. The overall sensitivity is the product of those sensitivities.

The chain rule (how it works)

When finding the derivative of a composite function, take the derivative of the outside function while treating the inside function as the “variable” (leave the inside alone). Then multiply by the derivative of the inside function.

If y=f(g(x)), then

\frac{dy}{dx}=f'(g(x))\cdot g'(x)

In Leibniz form, this is often written as

\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}

where you define an inside variable u=g(x) and an outside relationship y=f(u).

This notation is not just a trick—it matches the idea of rates multiplying: “change in y per change in u” times “change in u per change in x.”

A quick memory trick

A common personal mnemonic is “douter, inner, dinner”: differentiate the outer function, keep the inner expression unchanged, then multiply by the derivative of the inner expression.

Notation you must recognize

You may see derivatives written in several equivalent ways:

MeaningCommon notation
derivative of y with respect to x\frac{dy}{dx}, y'
derivative of ff'(x)
derivative evaluated at a pointf'(a)
derivative of a composition\frac{d}{dx}[f(g(x))]

On AP questions, the chain rule can appear in pure algebraic differentiation, in tangent line or slope questions, and in context (rates). Even in later units, it’s constantly used.

How to apply the chain rule step by step

When you see an expression, train yourself to ask: “What is the outer function, and what is the inner function?”

A reliable process is:

  1. Identify the outer operation (power, trig, exponential, root, etc.).
  2. Differentiate the outer function while keeping the inside unchanged.
  3. Multiply by the derivative of the inside.

If there are multiple layers, you apply the chain rule repeatedly (outside to inside).

Example 1: A power of a quadratic

Differentiate

y=(3x^2+1)^5

Identify layers: outer is u^5 and inner is u=3x^2+1.

Differentiate outer:

\frac{dy}{du}=5u^4

Differentiate inner:

\frac{du}{dx}=6x

Multiply and substitute back:

\frac{dy}{dx}=5(3x^2+1)^4\cdot 6x

A simplified form is:

\frac{dy}{dx}=30x(3x^2+1)^4

Common pitfall: writing 5(3x^2+1)^4 and forgetting to multiply by 6x.

Example 2: Multiple layers (nested composite)

Differentiate

y=\sin(\sqrt{1+x^3})

Identify layers:

  • Outer: \sin(\cdot)
  • Next inner: \sqrt{\cdot} which can be written as a power \left(\cdot\right)^{1/2}
  • Next inner: 1+x^3

Differentiate outward in:

\frac{dy}{dx}=\cos(\sqrt{1+x^3})\cdot\frac{d}{dx}[\sqrt{1+x^3}]

Then

\frac{d}{dx}[\sqrt{1+x^3}]=\frac{d}{dx}[(1+x^3)^{1/2}]=\frac{1}{2}(1+x^3)^{-1/2}\cdot\frac{d}{dx}[1+x^3]

and

\frac{d}{dx}[1+x^3]=3x^2

Combine:

\frac{dy}{dx}=\cos(\sqrt{1+x^3})\cdot\frac{1}{2}(1+x^3)^{-1/2}\cdot 3x^2

A clean final form is:

\frac{dy}{dx}=\frac{3x^2\cos(\sqrt{1+x^3})}{2\sqrt{1+x^3}}

Common pitfall: treating \sqrt{1+x^3} as \sqrt{1}+\sqrt{x^3}. Radicals do not distribute over addition.

Chain rule intuition with units (a quick reality check)

In applied problems, units can help you see why multiplication makes sense. If u has units “meters” and y has units “joules,” then \frac{dy}{du} has units “joules per meter.” If \frac{du}{dx} has units “meters per second,” then the product has units “joules per second,” a rate of energy change with time.

Exam Focus
  • Typical question patterns:
    • Differentiate expressions like \left(ax+b\right)^n, \sin(g(x)), e^{g(x)}, or nested composites with 2–3 layers.
    • Find the slope of the tangent line to a composite at a point (differentiate, then evaluate).
    • Write the derivative in a specific form (factored, simplified, or with negative exponents removed).
  • Common mistakes:
    • Forgetting to multiply by the derivative of the inside function.
    • Misidentifying the outermost function (especially when roots, reciprocals, or powers are present).
    • Algebra errors after differentiating (incorrect simplification, losing parentheses).

The Chain Rule Combined with Product, Quotient, and Function Notation

On the AP exam, the chain rule almost never appears in isolation for long. Realistic expressions combine multiple differentiation rules, so your goal is to recognize which rule is responsible for which part of the expression.

Why combinations matter

Earlier differentiation rules (power, product, quotient) handle structure like multiplying expressions or dividing them. The chain rule handles nesting (one function inside another). Many functions do both at once.

For example:

y=(x^2+1)^3\cos(5x)

This needs the product rule because it’s a product of two factors, and the chain rule inside each factor.

Product rule with chain rule inside

If

y=a(x)b(x)

then

y'=a'(x)b(x)+a(x)b'(x)

If either factor is composite, you use the chain rule when computing its derivative.

Example 1: Product of two composites

Differentiate

y=(x^2+1)^3\cos(5x)

Let

a(x)=(x^2+1)^3

b(x)=\cos(5x)

Then

y'=a'(x)b(x)+a(x)b'(x)

Compute a'(x) using chain rule:

a'(x)=3(x^2+1)^2\cdot 2x=6x(x^2+1)^2

Compute b'(x) using chain rule:

b'(x)=-\sin(5x)\cdot 5=-5\sin(5x)

Substitute:

y'=6x(x^2+1)^2\cos(5x)+(x^2+1)^3(-5\sin(5x))

You can factor if helpful:

y'=(x^2+1)^2\left(6x\cos(5x)-5(x^2+1)\sin(5x)\right)

Common pitfall: differentiating only one factor (forgetting product rule) or applying product rule but missing the chain rule within a factor.

Quotient rule with chain rule inside

If

y=\frac{a(x)}{b(x)}

then

y'=\frac{a'(x)b(x)-a(x)b'(x)}{(b(x))^2}

Again, chain rule may be needed in a'(x) and or b'(x).

Example 2: Quotient with nesting

Differentiate

y=\frac{\sqrt{1+x^2}}{1-\sin(x)}

Rewrite the radical as a power:

a(x)=(1+x^2)^{1/2}

b(x)=1-\sin(x)

Compute derivatives:

a'(x)=\frac{1}{2}(1+x^2)^{-1/2}\cdot 2x=\frac{x}{\sqrt{1+x^2}}

b'(x)=-\cos(x)

Apply quotient rule:

y'=\frac{\left(\frac{x}{\sqrt{1+x^2}}\right)(1-\sin(x))-\sqrt{1+x^2}(-\cos(x))}{(1-\sin(x))^2}

A correct unsimplified form is often acceptable on AP, but the structure and parentheses must be correct.

Function notation and the chain rule (AP-style)

AP problems often present derivatives using function notation instead of explicit formulas.

If you are told h(x)=f(g(x)), then

h'(x)=f'(g(x))\cdot g'(x)

This is especially common in multiple choice and free response, where they might give tables of values.

Example 3: Chain rule using a table

Suppose h(x)=f(g(x)) and you are given:

  • g(2)=5
  • g'(2)=-3
  • f'(5)=4

Then

h'(2)=f'(g(2))\cdot g'(2)=f'(5)\cdot(-3)=4\cdot(-3)=-12

Common pitfall: using f'(2) instead of f'(g(2)). The derivative of the outside must be evaluated at the inside value.

Exam Focus
  • Typical question patterns:
    • Differentiate a function requiring product or quotient rule with chain rule embedded.
    • Use a table of values to compute h'(a) for a composition h(x)=f(g(x)).
    • Identify which expression correctly represents a derivative (conceptual multiple choice).
  • Common mistakes:
    • Dropping parentheses around a full factor when applying product or quotient rule.
    • Evaluating f' at the wrong input in a composition (mixing up x and g(x)).
    • Incorrectly simplifying (canceling terms that don’t factor, or distributing exponents incorrectly).

Implicit Differentiation: When y Is Defined Indirectly

Not every relationship comes in the form y=f(x). Sometimes x and y are linked by an equation where y is not isolated, or it’s difficult (or impossible) to solve explicitly for y. In those cases, implicit differentiation lets you find \frac{dy}{dx} directly.

What “implicit” means

An equation like

x^2+y^2=25

defines y implicitly as a function of x (actually two functions: the top and bottom halves of the circle). You can solve for y here, but implicit differentiation is often faster and works even when solving for y is messy.

Why implicit differentiation matters

Implicit differentiation is a main tool for:

  • Finding slopes of curves that are not functions (circles, sideways parabolas).
  • Differentiating equations where isolating y is algebraically painful.
  • Building derivatives for inverse trig functions (a major connection in this unit).

The AP exam loves to test this skill, especially in contexts where you must combine implicit differentiation with product rule, chain rule, and then evaluate at a point.

The key idea: y depends on x

When you differentiate with respect to x, you must treat y as a function y(x). That means:

  • The derivative of y is \frac{dy}{dx}.
  • If your variable doesn’t match the differentiation variable x, you follow it with the appropriate derivative factor. For example, differentiating y^2 requires a chain rule factor:

\frac{d}{dx}[y^2]=2y\frac{dy}{dx}

A note about \frac{dx}{dy}

Sometimes students think of implicit differentiation as “solving for the derivative of x with respect to y,” especially when rearranging derivatives as reciprocals. The derivatives are related by

\frac{dx}{dy}=\frac{1}{\frac{dy}{dx}}

That reciprocal relationship can be useful, but on AP Calculus AB, you will most often be asked for \frac{dy}{dx} (slope with respect to x).

The implicit differentiation process

A standard method is:

  1. Differentiate both sides with respect to x.
  2. Every time you differentiate a term containing y, include a factor of \frac{dy}{dx}.
  3. Collect all terms with \frac{dy}{dx} on one side.
  4. Factor out \frac{dy}{dx} and solve.

Example 1: Circle slope (and tangent line)

Find \frac{dy}{dx} if

x^2+y^2=25

Differentiate both sides:

\frac{d}{dx}[x^2]+\frac{d}{dx}[y^2]=\frac{d}{dx}[25]

Compute derivatives:

2x+2y\frac{dy}{dx}=0

Solve for \frac{dy}{dx}:

2y\frac{dy}{dx}=-2x

\frac{dy}{dx}=-\frac{x}{y}

At the point (3,4), substitute x=3 and y=4:

\frac{dy}{dx}=-\frac{3}{4}

So the slope of the tangent line is -\frac{3}{4}. Because the tangent line passes through (3,4), point-slope form gives the tangent line equation:

y-4=-\frac{3}{4}(x-3)

Example 2: Implicit differentiation with products and trig

Find \frac{dy}{dx} if

xy+\sin(y)=x^2

Differentiate term by term.

For xy, use product rule, remembering y depends on x:

\frac{d}{dx}[xy]=x\frac{dy}{dx}+y

For \sin(y), use chain rule:

\frac{d}{dx}[\sin(y)]=\cos(y)\frac{dy}{dx}

For x^2:

\frac{d}{dx}[x^2]=2x

Put it together:

x\frac{dy}{dx}+y+\cos(y)\frac{dy}{dx}=2x

Group \frac{dy}{dx} terms:

\left(x+\cos(y)\right)\frac{dy}{dx}=2x-y

Solve:

\frac{dy}{dx}=\frac{2x-y}{x+\cos(y)}

Common pitfalls:

  • Treating \sin(y) as if it were \sin(x) and writing \cos(y) without \frac{dy}{dx}.
  • Differentiating xy as if it were just y or just x (forgetting product rule).

Finding a second derivative implicitly

Sometimes you’re asked for \frac{d^2y}{dx^2}. Once you have \frac{dy}{dx}, differentiate that expression with respect to x again, still treating y as a function of x (so y terms still trigger chain rule). A practical tip is to simplify the first derivative before starting the second derivative.

Example 3: Second derivative for a circle

From

x^2+y^2=25

we found

\frac{dy}{dx}=-\frac{x}{y}

Differentiate again:

\frac{d^2y}{dx^2}=\frac{d}{dx}\left(-\frac{x}{y}\right)

Use quotient rule with a(x)=-x and b(x)=y:

\frac{d^2y}{dx^2}=\frac{(-1)y-(-x)\frac{dy}{dx}}{y^2}

Simplify:

\frac{d^2y}{dx^2}=\frac{-y+x\frac{dy}{dx}}{y^2}

Now substitute \frac{dy}{dx}=-\frac{x}{y}:

\frac{d^2y}{dx^2}=\frac{-y+x\left(-\frac{x}{y}\right)}{y^2}

\frac{d^2y}{dx^2}=\frac{-y-\frac{x^2}{y}}{y^2}

Combine the numerator over a common denominator y:

\frac{d^2y}{dx^2}=\frac{-\frac{y^2+x^2}{y}}{y^2}

\frac{d^2y}{dx^2}=-\frac{x^2+y^2}{y^3}

Using the original equation x^2+y^2=25:

\frac{d^2y}{dx^2}=-\frac{25}{y^3}

Exam Focus
  • Typical question patterns:
    • Find \frac{dy}{dx} for an implicitly defined curve and evaluate slope at a given point.
    • Find the equation of a tangent line (requires slope from implicit differentiation and a point).
    • Find \frac{d^2y}{dx^2} for an implicit relation.
  • Common mistakes:
    • Forgetting \frac{dy}{dx} when differentiating terms like y^n or \sin(y).
    • Solving for \frac{dy}{dx} incorrectly due to algebra errors when collecting terms.
    • Plugging a point into the derivative before simplifying, then mixing numbers with symbols in a confusing way.

Derivatives of Inverse Functions

In AP Calculus, inverse functions show up both as explicit inverses (like f^{-1}) and as inverse trig functions (like \arcsin). The central skill is being able to find the derivative of an inverse without necessarily finding the inverse formula.

What is an inverse function?

A function f has an inverse function f^{-1} if f is one-to-one on its domain (or is restricted to be one-to-one). The inverse reverses the input-output process:

f(f^{-1}(x))=x

f^{-1}(f(x))=x

Conceptually: if f takes you from “input space” to “output space,” then f^{-1} takes you back.

Why the derivative of an inverse matters

Sometimes you can’t easily find an explicit formula for f^{-1}, but you still want information about it—especially slopes. A classic AP-style question is: given information about f and f', find (f^{-1})'(a).

Geometrically, the graph of f^{-1} is the reflection of f across the line

y=x

Slopes transform in a reciprocal way under this reflection.

The inverse function derivative formula

Assume f is differentiable and has an inverse, and let

y=f^{-1}(x)

Then

f(y)=x

Differentiate both sides with respect to x:

f'(y)\frac{dy}{dx}=1

So

\frac{dy}{dx}=\frac{1}{f'(y)}

Now replace y with f^{-1}(x):

(f^{-1})'(x)=\frac{1}{f'(f^{-1}(x))}

A very common evaluated-at-a-point version is:

(f^{-1})'(a)=\frac{1}{f'(f^{-1}(a))}

How to use the formula in practice

To compute (f^{-1})'(a), you typically:

  1. Find b=f^{-1}(a), meaning find the b such that f(b)=a.
  2. Compute f'(b).
  3. Take the reciprocal.

Another way to say this (especially at a specific point) is: to find the derivative of the inverse at an input value, take the reciprocal of the derivative of the original function at the corresponding swapped point. If a point on f is (b,a), then the corresponding point on f^{-1} is (a,b).

Example 1: Inverse derivative at a point (no explicit inverse needed)

Let

f(x)=x^3+1

Find (f^{-1})'(9).

Find f^{-1}(9) by solving f(b)=9:

b^3+1=9

b^3=8

b=2

So f^{-1}(9)=2. Differentiate f:

f'(x)=3x^2

Evaluate at 2:

f'(2)=12

Take the reciprocal:

(f^{-1})'(9)=\frac{1}{12}

Example 2: Using a point on the graph

Suppose you know f(4)=10 and f'(4)=7. Find (f^{-1})'(10).

Because f(4)=10, you know f^{-1}(10)=4. Then

(f^{-1})'(10)=\frac{1}{f'(f^{-1}(10))}=\frac{1}{f'(4)}=\frac{1}{7}

Example 3: Point-swapping viewpoint

Say you want the derivative of the inverse function g=f^{-1} at the point with coordinates (1,2) on g, meaning you want g'(1). That point corresponds to the swapped point (2,1) on f. So you would find f'(2) and then take the reciprocal to get g'(1). This also matches the idea that f'(x) represents slope: inverse slopes are reciprocals at corresponding swapped points.

Important conditions and misconceptions

  • f^{-1} exists only if f is one-to-one (or restricted to be one-to-one). Problems may explicitly say f is increasing or give a restricted domain.
  • Do not confuse f^{-1}(x) with \frac{1}{f(x)}. The notation f^{-1} means inverse function, not reciprocal.
  • The formula requires f'(f^{-1}(x))\neq 0. If f' is zero at the relevant point, the inverse has a vertical tangent there (and the derivative of the inverse is undefined).
Exam Focus
  • Typical question patterns:
    • Given f(a)=b and f'(a), find (f^{-1})'(b).
    • Given a graph of f, estimate the slope of f^{-1} at a point by using reciprocal slopes.
    • Explain whether an inverse exists on a given interval (one-to-one reasoning).
    • Expect only a small number of these on a typical exam (often about 1–2), so prioritize accuracy over overcomplicating the process.
  • Common mistakes:
    • Plugging a directly into f' instead of using f^{-1}(a) inside the derivative formula.
    • Treating f^{-1}(x) as \frac{1}{f(x)}.
    • Forgetting to check that f is one-to-one (or that the problem has restricted the domain).

Derivatives of Inverse Trigonometric Functions

Inverse trigonometric functions are special cases of inverse functions, and their derivatives are a direct application of implicit differentiation plus right-triangle or Pythagorean-identity reasoning. In AP Calculus AB, the most central inverse trig derivatives are for \arcsin, \arccos, and \arctan.

Some students prefer to memorize these derivative rules, but you can also re-derive them using implicit differentiation and trig identities, which is useful for conceptual questions.

What inverse trig functions mean (and why ranges matter)

Trig functions are not one-to-one over all real numbers, so they don’t have global inverses unless we restrict their ranges.

  • y=\arcsin(x) means \sin(y)=x with

-\frac{\pi}{2}\le y\le\frac{\pi}{2}

  • y=\arccos(x) means \cos(y)=x with

0\le y\le\pi

  • y=\arctan(x) means \tan(y)=x with

-\frac{\pi}{2}