Tutorials › Calculus I › Decomposing Expressions into Rule Sequences

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

Decomposing Expressions into Rule Sequences

Learn to map a complicated expression to the differentiation rules it requires, then apply those rules in a reliable order.

Intermediate 10 min read

What You'll Learn

  • Identify the outermost operation in an expression and choose its differentiation rule.
  • Plan how to differentiate each component of a sum, product, quotient, or composition.
  • Record the order of rules before simplifying the derivative.
  • Apply the product, quotient, and chain rules with their required conditions.
  • Check a planned derivative by testing component derivatives and evaluating at a point.

Why Plan a Derivative Before Calculating?

A complicated expression can contain several layers of operations. Differentiating it reliably requires more than remembering individual rules: first identify which rules apply, and in what order. A short plan makes the structure visible before algebra begins.

For instance, the expression \((x^2+1)^3(2x-1)^2\) is a product of two factors, and each factor is a power of another function. Its derivative therefore needs the product rule and the chain rule. If you expand first, you may create more terms without making the underlying differentiation any clearer.

Here the goal is to translate an expression into an ordered rule sequence: name the operation at the outer level, then identify what is needed to differentiate its components. Carry out the algebra only after this plan is clear.

The Rules a Plan Can Call For

Let \(u\) and \(v\) be differentiable functions of \(x\). A sum or difference is differentiated term by term:

$$ \frac{d}{dx}\bigl(u(x)\pm v(x)\bigr)=u'(x)\pm v'(x). $$

For a product, both factors must be differentiated in the two terms specified by the product rule:

$$ \frac{d}{dx}\bigl(u(x)v(x)\bigr)=u'(x)v(x)+u(x)v'(x). $$

For a quotient, the denominator must be nonzero at the point where the derivative is taken. Under that condition, the quotient rule is

$$ \frac{d}{dx}\left(\frac{u(x)}{v(x)}\right) = \frac{u'(x)v(x)-u(x)v'(x)}{[v(x)]^2}. $$

For a composition \(f(g(x))\), the functions must be differentiable at the relevant inputs: \(g\) at \(x\), and \(f\) at \(g(x)\). The chain rule is

$$ \frac{d}{dx}f(g(x))=f'(g(x))g'(x). $$

These rules answer different structural questions. A sum asks for derivatives of its terms; a product asks for derivatives of both factors; a quotient asks for derivatives of its numerator and denominator; and a composition asks for the derivative of the outer function and the derivative of its input.

Planning principle: Name the operation that combines the largest pieces of the expression first. Then list the rules needed to differentiate those pieces. Keep this sequence separate from the later algebraic simplification.

A Reliable Planning Procedure

Before calculating, write down the main operation in the whole expression. For each piece that the corresponding rule requires you to differentiate, repeat the same inspection. A sum does not require a special rule beyond differentiating each term, but a term may itself be a product, quotient, or composition.

1
Locate the outer operation.
Ask whether the whole expression is a sum, product, quotient, or composition.
2
Write the rule sequence.
State the rule for the outer operation, then note the rules needed for each component derivative.
3
Check the conditions.
In particular, confirm that any denominator is nonzero where the quotient rule is used, and that the component functions are differentiable there.
4
Apply the rules before simplifying.
Keep factors and terms grouped so that each part of the rule remains visible.

The order in a plan is not a claim that every expression must be differentiated in one rigid order. It records dependencies: applying the outer rule produces component derivatives, and those derivatives may require further rules. The important point is to account for every component before collecting or simplifying terms.

Worked Examples

Worked Example: A Sum of Compositions

Differentiate \(f(x)=(3x^2-2x+1)^4+(x^3+2)^2\). First, identify the outermost operation: addition. The sum rule means we differentiate each term separately. Each term is a power of an inner polynomial, so each also requires the chain rule and the power rule.

Rule sequence: sum rule; then chain rule and power rule for the first term; then chain rule and power rule for the second term; finally differentiate the inner polynomials.

For the first term, the outer power has derivative \(4(3x^2-2x+1)^3\). The inner polynomial has derivative \(6x-2\). Thus:

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

For the second term, the outer power has derivative \(2(x^3+2)\), and the inner polynomial has derivative \(3x^2\). Therefore:

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

Combining these derivatives by the sum rule gives

$$ f'(x) = 4(3x^2-2x+1)^3(6x-2) + 2(x^3+2)(3x^2). $$

As a check, evaluate the component derivatives at \(x=0\). The first inner polynomial is \(1\), and its derivative is \(-2\), so its powered term has derivative \(4(1)^3(-2)=-8\). The second inner polynomial is \(2\), and its derivative is \(0\), so its powered term has derivative \(2(2)(0)=0\). The sum is \(-8\). Substituting \(x=0\) in the displayed formula also gives \(-8+0=-8\).

Worked Example: A Product of Composite Factors

Differentiate \(g(x)=(x^2+1)^3(2x-1)^2\). The entire expression is a product. Each factor is a power of an inner function, so the plan calls for the product rule first, followed by the chain rule and power rule for each factor.

Rule sequence: product rule; chain rule and power rule for \((x^2+1)^3\); chain rule and power rule for \((2x-1)^2\).

Differentiate the first factor:

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

Differentiate the second factor:

$$ \frac{d}{dx}(2x-1)^2 = 2(2x-1)(2). $$

Now apply the product rule, retaining the two terms in the required order:

$$ \begin{aligned} g'(x) &= \bigl[3(x^2+1)^2(2x)\bigr](2x-1)^2 + (x^2+1)^3\bigl[2(2x-1)(2)\bigr]\\ &= 6x(x^2+1)^2(2x-1)^2 + 4(x^2+1)^3(2x-1). \end{aligned} $$

Check at \(x=0\). The first factor is \(1\) and its derivative is \(0\). The second factor is \(1\), while its derivative is \(2(-1)(2)=-4\). The product rule therefore gives \(0\cdot1+1\cdot(-4)=-4\). The displayed formula gives \(0+4(1)^3(-1)=-4\), as required.

Worked Example: A Quotient of Composite Expressions

Differentiate \(h(x)=\dfrac{(x^2+1)^2}{(3x+2)^3}\). The outer operation is division, so begin with the quotient rule. The numerator and denominator are each powers of inner functions, which require the chain rule and power rule. The quotient rule applies only when the denominator is nonzero: here \(3x+2\ne0\), so \(x\ne-\frac23\).

Rule sequence: quotient rule; chain rule and power rule for the numerator; chain rule and power rule for the denominator.

The numerator derivative is

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

The denominator derivative is

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

Apply the quotient rule, using \(u=(x^2+1)^2\) and \(v=(3x+2)^3\):

$$ \begin{aligned} h'(x) &= \frac{4x(x^2+1)(3x+2)^3-(x^2+1)^2\,9(3x+2)^2}{[(3x+2)^3]^2}\\ &= \frac{4x(x^2+1)(3x+2)^3-9(x^2+1)^2(3x+2)^2}{(3x+2)^6}, \qquad x\ne-\frac23. \end{aligned} $$

Check at \(x=0\). The numerator has value \(1\) and derivative \(0\). The denominator has value \(8\) and derivative \(9(2)^2=36\). The quotient rule gives \((0\cdot8-1\cdot36)/8^2=-36/64=-9/16\). Substituting \(x=0\) in the displayed derivative gives \((0-9\cdot1\cdot4)/64=-36/64=-9/16\). The two checks agree.

Why the Sequence Produces a Correct Derivative

The planning procedure works because each rule expresses the derivative of a whole expression using the derivatives of its components. For a product, for example, the product rule says exactly how the derivative of the whole product depends on the two factor derivatives. If either factor is itself a composition, the chain rule specifies how to obtain its derivative from the outer and inner derivatives.

More generally, consider an expression built from constants, \(x\), and differentiable functions by finitely many additions, products, quotients with nonzero denominators, and compositions for which the component functions are differentiable at the relevant inputs. Start with the simplest pieces: constants have derivative \(0\), and \(x\) has derivative \(1\). Whenever a larger expression is formed, use the rule for the operation that formed it. That rule is valid under the stated conditions and uses only derivatives of expressions already formed from simpler pieces. Repeating this process reaches every component and gives the derivative of the whole expression. Thus the plan is reliable provided every rule is applied to the operation it describes and its conditions hold.

This justification also explains why a plan is useful: it helps prevent an expression from being treated as though it had a different outer operation. A product is not differentiated by applying the chain rule to the whole product, and a composition is not differentiated by using the product rule merely because it contains multiplication inside its formula.

Common Pitfall: Applying the Right Rules to the Wrong Structure

For \(g(x)=(x^2+1)^3(2x-1)^2\), a plausible-looking but incorrect calculation is

$$ g'(x)\overset{\text{wrong}}{=} \bigl[3(x^2+1)^2(2x)\bigr] \bigl[2(2x-1)(2)\bigr]. $$

This multiplies the derivatives of the two factors. No product rule states that the derivative of a product equals the product of the derivatives. The whole expression is a product, so its derivative must have two terms:

$$ g'(x)= \bigl[3(x^2+1)^2(2x)\bigr](2x-1)^2 + (x^2+1)^3\bigl[2(2x-1)(2)\bigr]. $$

The incorrect result also fails a direct check at \(x=0\). It gives \(0\cdot(-4)=0\), whereas the product rule gives \(-4\). Writing the rule sequence before simplifying makes the missing terms easier to spot.

When This Planning Habit Matters

Planning is most useful when several rules interact. It separates two tasks that can otherwise become confused: deciding what differentiation rules apply, and simplifying the resulting algebra. The first task is about the structure of the expression; the second is about algebraic manipulation.

Before starting a calculation, ask:

  • What operation combines the largest pieces of the expression?
  • Which component derivatives does that rule require?
  • Are any of those components themselves products, quotients, or compositions?
  • Do the relevant differentiability and nonzero-denominator conditions hold?

Once these questions have clear answers, the derivative can be computed one rule at a time. The resulting expression may later be simplified, but simplification should not obscure whether each required term and inner derivative has been included.

Check Your Understanding

For each question, identify the rule sequence before carrying out any differentiation.

  1. For \(p(x)=(x^2+3)^5+(2x-1)^4\), what is the outer rule, and what rules are needed for each term?
  2. For \(q(x)=(x^2+1)(x^3-2)^2\), list the rule sequence needed to differentiate the expression.
  3. For \(r(x)=\dfrac{(2x+1)^3}{x^2+4}\), state the first rule to apply and the condition that permits it.
  4. Why is multiplying the derivatives of two factors not a valid way to differentiate their product?
  5. For a sum whose two terms are each compositions, which rule applies to the whole expression, and which rule applies within each term?

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