Tutorials › Calculus I › Chain Rule with Linear Inner Functions

Product, Quotient, and Chain Rules · Tutorial 458 of 1495

Chain Rule with Linear Inner Functions

Use the chain rule to differentiate a power of a linear expression, keeping track of the inner function’s constant derivative.

Intermediate 9 min read

What You'll Learn

  • Identify the outer power and the linear inner function.
  • Apply the chain rule to expressions of the form (ax + b) to a positive integer power.
  • Track the coefficient and sign contributed by the inner derivative.
  • Check results by expanding manageable powers and differentiating the polynomial.
  • Recognize and correct the common error of omitting the inner derivative.

Why a Linear Inner Function Matters

A power such as \(x^7\) can be differentiated directly with the power rule. An expression such as \((4x-1)^7\) has an extra layer: the seventh power is applied not to \(x\), but to the linear expression \(4x-1\). The chain rule accounts for how quickly that inner expression changes as \(x\) changes.

The extra factor is easy to overlook. It is also essential. Since \(4x-1\) changes four times as quickly as \(x\), differentiating the outer power alone does not give the correct derivative. The derivative must include the inner function’s derivative, \(4\).

Key idea: Differentiate the outer power while treating the linear expression as its input, then multiply by the derivative of that linear expression.

The Rule for a Power of a Linear Expression

A linear function has the form \(u(x)=ax+b\), where \(a\) and \(b\) are constants. Its derivative is \(u'(x)=a\). The constant term \(b\) contributes no derivative; the coefficient \(a\) determines the rate of change.

For a positive integer \(n\), the power rule gives the derivative of the outer function \(F(u)=u^n\) as \(F'(u)=nu^{n-1}\). Applying the chain rule to the composition \(F(u(x))=(ax+b)^n\) gives the following formula.

Theorem: If \(a,b\in\mathbb{R}\), \(n\) is a positive integer, and \(u(x)=ax+b\), then \(u'(x)=a\) and \(\frac{d}{dx}(ax+b)^n=na(ax+b)^{n-1}\). The formula includes \(a=0\): in that case the expression is constant and its derivative is zero.

The two factors \(n\) and \(a\) have different sources. The factor \(n\) comes from differentiating the outer power. The factor \(a\) comes from differentiating the inner linear function. Keep both factors, including the sign of \(a\).

Why the Inner Derivative Appears

The chain rule explains the method, but the appearance of the inner derivative can also be seen directly from the difference quotient. Let \(F\) be differentiable at \(u=ax+b\), and first suppose \(a\ne 0\). For an increment \(h\ne 0\), the change in the inner expression is \(ah\). Therefore, the difference quotient for the composite function can be rewritten as follows:

$$ \begin{aligned} \frac{F(a(x+h)+b)-F(ax+b)}{h} &=\frac{F(ax+b+ah)-F(ax+b)}{h}\\ &=a\frac{F(u+ah)-F(u)}{ah}, \qquad u=ax+b. \end{aligned} $$

As \(h\) tends to zero, \(ah\) also tends to zero. By the definition of \(F'(u)\), the quotient \(\frac{F(u+ah)-F(u)}{ah}\) tends to \(F'(u)\). Thus the composite’s difference quotient tends to \(aF'(u)\). If \(a=0\), the inner expression is constant, so the composite is constant and has derivative zero. In either case, the derivative is \(F'(ax+b)a\), which is the chain rule for a linear inner function.

Now take \(F(u)=u^n\). Since \(n\) is a positive integer, the power rule gives \(F'(u)=nu^{n-1}\). Substituting \(u=ax+b\) and multiplying by \(a\) yields the stated formula. This derivation shows why the inner derivative is a factor: an increment \(h\) in \(x\) produces an increment \(ah\) in the input to the outer function.

A Reliable Calculation Process

For a power of a linear expression, identify the outer function and the inner function before differentiating. Then find each derivative and multiply them. This makes the roles of the exponent and the linear coefficient visible.

1
Identify the inner expression.
Write \(u=ax+b\), keeping the sign of every term.
2
Differentiate the outer power.
For \(u^n\), the derivative with respect to \(u\) is \(nu^{n-1}\).
3
Differentiate the inner expression.
For \(u=ax+b\), this derivative is \(a\).
4
Multiply and simplify.
Multiply the outer derivative by \(a\), then write the result as a function of \(x\).

Worked Examples

Worked Example: A Seventh Power with a Positive Coefficient

Differentiate \(f(x)=(4x-1)^7\).

The inner function is \(u(x)=4x-1\), so \(u'(x)=4\). The outer function is \(F(u)=u^7\), so \(F'(u)=7u^6\). Multiply the outer derivative by the inner derivative:

$$ \begin{aligned} f'(x) &=7(4x-1)^6\cdot 4\\ &=28(4x-1)^6. \end{aligned} $$

Check the factors: lowering the exponent gives \(7\), and differentiating \(4x-1\) gives \(4\), so the coefficient is \(7\cdot4=28\). At \(x=1\), the result gives \(f'(1)=28(4-1)^6=28\cdot729=20412\). The inner derivative is constant and positive, consistent with the positive factor in the result.

Worked Example: A Negative Inner Coefficient

Differentiate \(g(x)=(3-2x)^5\). Here the inner function is \(u(x)=3-2x\), whose derivative is \(u'(x)=-2\). The outer derivative is \(5u^4\). Therefore,

$$ \begin{aligned} g'(x) &=5(3-2x)^4\cdot(-2)\\ &=-10(3-2x)^4. \end{aligned} $$

Check the sign and coefficient: the outer derivative contributes \(5\), while the inner derivative contributes \(-2\), and \(5\cdot(-2)=-10\). At \(x=0\), \(g'(0)=-10\cdot3^4=-10\cdot81=-810\). The negative sign is required because the inner expression decreases as \(x\) increases.

Worked Example: Checking by Expanding a Square

Differentiate \(h(x)=(5x+2)^2\), and check the result by expanding first.

Using the chain rule, the outer derivative is \(2(5x+2)\), and the inner derivative is \(5\). Thus

$$ \begin{aligned} h'(x) &=2(5x+2)\cdot5\\ &=10(5x+2)\\ &=50x+20. \end{aligned} $$

For an independent check, expand the square and differentiate the resulting polynomial:

$$ \begin{aligned} (5x+2)^2 &=(5x+2)(5x+2)\\ &=25x^2+10x+10x+4\\ &=25x^2+20x+4,\\ \frac{d}{dx}(25x^2+20x+4) &=50x+20. \end{aligned} $$

The expanded calculation matches the chain-rule result. The check also confirms that the factor \(5\) from the inner expression is necessary.

Worked Example: Checking a Fourth Power by Expansion

Differentiate \(p(x)=(1-3x)^4\). The inner derivative is \(-3\), and the outer derivative is \(4u^3\). Consequently,

$$ \begin{aligned} p'(x) &=4(1-3x)^3\cdot(-3)\\ &=-12(1-3x)^3. \end{aligned} $$

To check, expand the original expression and differentiate each term:

$$ \begin{aligned} (1-3x)^4 &=1-12x+54x^2-108x^3+81x^4,\\ \frac{d}{dx}(1-12x+54x^2-108x^3+81x^4) &=-12+108x-324x^2+324x^3. \end{aligned} $$

Expanding the chain-rule result gives the same polynomial:

$$ \begin{aligned} -12(1-3x)^3 &=-12(1-9x+27x^2-27x^3)\\ &=-12+108x-324x^2+324x^3. \end{aligned} $$

The two calculations agree term by term.

Common Mistake: Omitting the Inner Derivative

A frequent error is to lower the exponent and multiply only by the old exponent. For example, the incorrect calculation

$$ \frac{d}{dx}(4x-1)^7=7(4x-1)^6 $$

has treated \(4x-1\) as though its derivative were \(1\). But \(\frac{d}{dx}(4x-1)=4\), so the corrected calculation is

$$ \frac{d}{dx}(4x-1)^7 =7(4x-1)^6\cdot4 =28(4x-1)^6. $$

Another error is to lose a negative sign. For \((3-2x)^5\), the inner derivative is \(-2\), not \(2\), so the derivative is \(-10(3-2x)^4\). A useful check is to differentiate the entire inner expression, including its coefficient and sign, before multiplying.

What the Formula Tells You

The expression \((ax+b)^n\) is defined for every real \(x\) when \(n\) is a positive integer, so there is no restriction on \(x\) for this formula. If \(a=0\), the expression becomes the constant \(b^n\), and the formula correctly gives zero. If \(n=1\), it gives \(\frac{d}{dx}(ax+b)=a\), the derivative of the linear function itself.

Most importantly, the coefficient \(a\) is not an optional adjustment. The derivative describes the rate of change with respect to \(x\), and the inner expression changes at rate \(a\). A negative \(a\) reverses the sign of the derivative factor; a larger \(|a|\) scales its magnitude. This is why checking the inner derivative is part of the calculation, not merely a final detail.

Check Your Understanding

For each question, identify the inner derivative before simplifying the derivative.

  1. Differentiate \((6x+1)^4\).
  2. Differentiate \((2-5x)^3\), and explain where the negative sign comes from.
  3. Differentiate \((7x-4)^2\), then check by expanding the square.
  4. What is the derivative of \((9)^5\) when it is viewed as a constant function of \(x\)?
  5. In differentiating \((ax+b)^n\), which factor comes from the outer power, and which comes from the inner function?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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