Tutorials › AP Calculus › Finding Missing Inner Derivative Factors

Chain Rule and Nested Functions · Tutorial 178 of 999

Finding Missing Inner Derivative Factors

Trace each nested input inward to find missing derivative factors, correct the result, and check that every layer has contributed.

Intermediate 9 min read

What You'll Learn

  • Trace a composite function from its outermost operation to its innermost input.
  • Identify the derivative factor contributed by each nested layer.
  • Correct missing factors in polynomial, trigonometric, and exponential derivatives.
  • Check a proposed derivative against a layer-by-layer factor list.
  • Recognize why a missing factor can change the answer or make a derivative zero.

Why a Correct-Looking Derivative Can Be Wrong

A chain-rule error often leaves the outer part of a derivative looking right. For example, differentiating a sine gives a cosine, and differentiating an exponential \(e^u\) gives \(e^u\). But if the input \(u\) depends on \(x\), its derivative must also appear.

With several nested operations, there may be more than one such factor. A dependable check is to trace the expression inward: at each layer, differentiate the current outer function and multiply by the derivative of its input. If a layer's input changes with \(x\), that layer contributes a factor.

Key idea: For a composite function, account for every changing input between the outside function and \(x\). A derivative that omits even one inner derivative factor is incomplete.

A Layer-by-Layer Check

Suppose a function has nested form \(y=F(G(H(x)))\). The chain rule gives

$$ \frac{dy}{dx} = F'(G(H(x)))\,G'(H(x))\,H'(x). $$

The factors correspond to the successive layers: the derivative of the outer function, the derivative of the middle function, and the derivative of the innermost function. For a deeper composition, continue in the same way until the input is \(x\).

This factor list is useful for diagnosis. If a proposed derivative has the right outer derivative but is missing \(H'(x)\), for instance, it has accounted for the outer and middle layers but not the innermost one. Do not rely only on whether the answer looks familiar; match each factor to a layer.

1
Identify the nesting.
Rewrite the function as named layers, starting with the innermost input.
2
Differentiate each layer.
Record the derivative of each layer with respect to its own input.
3
Multiply the factors.
Use the chain rule to multiply the layer derivatives, with each evaluated at the appropriate input.
4
Compare and check.
Match every factor in the proposed derivative to a layer. If one is absent, restore it and simplify only afterward.

Why Every Inner Factor Is Required

The chain rule follows from how changes pass through successive functions. If \(u=g(x)\) and \(y=f(u)\), a small change in \(x\) changes \(u\), and the change in \(u\) then changes \(y\). The rate of change from \(x\) to \(y\) is the product of the two local rates.

$$ \frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx} = f'(u)g'(x) = f'(g(x))g'(x). $$

For several layers, apply this relationship at each step. For example, if \(v=h(x)\), \(u=g(v)\), and \(y=f(u)\), then

$$ \frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dv}\cdot\frac{dv}{dx}. $$

Each factor is necessary because each describes one link in the dependence of \(y\) on \(x\). Leaving out a factor breaks that chain of rates. This also explains why an inner derivative can be \(1\), or can be \(0\) at a particular input: it still belongs in the formula, even if its value later makes no numerical change or makes the whole derivative zero.

Worked Example: A Polynomial Power with a Missing Factor

Worked Example: A Polynomial Power with a Missing Factor

Differentiate \(f(x)=(3x^2-2)^5\). A proposed answer is \(15(3x^2-2)^4\). Find the missing factor and check the correction.

First identify the layers. Let \(u=3x^2-2\), so \(f=u^5\). The outer derivative with respect to \(u\) is \(5u^4\). The inner derivative is

$$ \frac{du}{dx} = \frac{d}{dx}(3x^2-2) = 6x. $$

Therefore the complete derivative is

$$ f'(x) = 5u^4\cdot 6x = 30x(3x^2-2)^4. $$

The proposed answer includes the outer factor \(5(3x^2-2)^4\), but omits the inner factor \(6x\). To check by layers, differentiating \(u^5\) gives \(5u^4\), and passing from \(u\) to \(x\) contributes \(du/dx=6x\); their product is exactly \(30x(3x^2-2)^4\).

As a numerical check at \(x=1\), \(u=3(1)^2-2=1\) and \(du/dx=6(1)=6\). Thus \(f'(1)=5(1)^4\cdot6=30\). The proposed expression gives \(15(1)^4=15\), confirming that it is missing a factor.

Worked Example: A Trigonometric Function of a Composite Angle

Worked Example: A Trigonometric Function of a Composite Angle

Differentiate \(g(x)=\sin(2x^2+3x)\). A proposed answer is \(\cos(2x^2+3x)\). Correct it and check the result.

Set \(u=2x^2+3x\), so \(g=\sin u\). Differentiating the outer function gives \(\cos u\). Differentiating its input gives

$$ \frac{du}{dx} = \frac{d}{dx}(2x^2+3x) = 4x+3. $$

Multiplying the two factors gives

$$ g'(x) = \cos(u)(4x+3) = (4x+3)\cos(2x^2+3x). $$

The proposed answer has the correct outer derivative, but it leaves out \(du/dx=4x+3\). At \(x=1\), the angle is \(2+3=5\), and the inner derivative is \(4+3=7\), so the complete derivative has value \(7\cos(5)\). The proposed expression gives only \(\cos(5)\). The factor list—\(\cos(u)\) from the sine layer and \(4x+3\) from its input—confirms the correction.

Worked Example: Two Nested Inputs in an Exponential

Worked Example: Two Nested Inputs in an Exponential

Differentiate \(h(x)=e^{(x^2+1)^3}\). A proposed answer is \(3(x^2+1)^2e^{(x^2+1)^3}\). Locate the missing factor and check the full derivative.

There are three layers. Let \(u=x^2+1\), let \(v=u^3\), and let \(h=e^v\). The outer exponential contributes \(e^v\), and the power layer contributes

$$ \frac{dv}{du}=3u^2. $$

The innermost layer contributes

$$ \frac{du}{dx}=2x. $$

Multiplying all three layer derivatives gives

$$ h'(x) = e^v\cdot 3u^2\cdot 2x = 6x(x^2+1)^2e^{(x^2+1)^3}. $$

The proposed answer accounts for differentiating \(e^v\) and \(u^3\), but omits \(du/dx=2x\). At \(x=1\), \(u=2\), \(v=8\), and the three factors are \(e^8\), \(3(2)^2=12\), and \(2(1)=2\). Their product is \(24e^8\). The proposed expression gives \(12e^8\). The layer-by-layer product confirms that the corrected derivative includes the missing factor \(2x\).

When a Missing Factor Is a Constant

An inner derivative does not have to contain \(x\). For example, the input \(5x-1\) has derivative \(5\). Therefore, differentiating \(\cos(5x-1)\) gives \(-5\sin(5x-1)\), not merely \(-\sin(5x-1)\). The factor is still required even though it is constant.

Likewise, an inner derivative may equal \(1\), as for the input \(x\). In that case, omitting the factor does not alter the written value, but the chain-rule reasoning still includes it. A useful check is to record the factor before simplifying; this makes it less likely that a nontrivial constant will disappear unnoticed.

A Common Mistake: Stopping at the Outer Derivative

A frequent error is to recognize the familiar outer derivative and stop. For \(y=e^{(4x-1)^2}\), for instance, the incorrect calculation might be

$$ \text{Incorrect:}\qquad y'=e^{(4x-1)^2}\cdot 2(4x-1). $$

This differentiates the exponential with respect to its exponent and differentiates the square with respect to \(4x-1\), but it stops before differentiating \(4x-1\) with respect to \(x\). The omitted factor is \(4\). Correcting the calculation gives

$$ y' = e^{(4x-1)^2}\cdot 2(4x-1)\cdot 4 = 8(4x-1)e^{(4x-1)^2}. $$

At \(x=1\), the exponent is \(9\), and the factors are \(e^9\), \(2(3)=6\), and \(4\). Their product is \(24e^9\), while the incorrect expression gives \(6e^9\). The difference comes precisely from the missing derivative of the innermost input.

Why the Factor Check Matters

A missing factor can cause more than a constant-scale error. It may change where a derivative is zero. In the polynomial example, the correct derivative contains \(x\), while the proposed derivative did not. At \(x=0\), the correct derivative is zero because the inner input has derivative \(6x=0\); the proposed expression would not reflect that behavior.

For this reason, avoid checking only whether the answer has the right general appearance. The reliable test is structural: list the nested inputs, write down the derivative contributed by each, and confirm that all of them occur in the product. If one is zero at a particular value, keep it in the formula until after the factors have been accounted for.

Takeaway: A chain-rule derivative is complete only when every changing input contributes its derivative. Trace the nesting all the way to \(x\), then compare the factor list with the proposed expression.

Check Your Understanding

For each function, identify the inner derivative factor that must appear. Then write the complete derivative.

  1. Differentiate \(p(x)=(x^2-4)^6\). Which factor would be missing from \(6(x^2-4)^5\)?
  2. Differentiate \(q(x)=\cos(3x^2-x)\). What factor accompanies \(-\sin(3x^2-x)\)?
  3. Differentiate \(r(x)=e^{(2x+1)^3}\). List all layer factors before simplifying.
  4. A proposed derivative for \(\sin(7x)\) is \(\cos(7x)\). What factor is missing, and what is the corrected derivative?
  5. Explain why a factor should still be included in the chain-rule calculation when its value is zero at a particular input.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon
Clinical Biostats