Introduction
A product can contain several features at once: a constant multiplier, a factor that is a sum, or a sum of several products. Differentiating such an expression requires keeping track of which rule applies to each part.
The product rule handles the multiplication of two differentiable functions. The constant-multiple rule handles a fixed coefficient, and the sum rule handles addition. Used together, these rules let us differentiate expressions such as \(5x^2(x+3)\) or \(x(x^2+2x+1)\) without first expanding them.
The main discipline is to identify the factors before differentiating. In particular, the derivative of a product is not generally the product of the derivatives.
The Rules Used Together
Suppose \(u\) and \(v\) are differentiable functions of \(x\). The product rule says that the derivative of their product is
Both terms matter: differentiate the first factor while leaving the second unchanged, then leave the first factor unchanged while differentiating the second.
If \(c\) is a constant and \(u\) is differentiable, the constant-multiple rule is
If \(u\) and \(v\) are differentiable, the sum rule is
These rules apply at every point where the functions involved are differentiable. Polynomials are differentiable for all real \(x\), so the polynomial examples below have no exceptional real inputs.
Products with a Sum as One Factor
When a factor is written as a sum, it is still one factor in the product rule. For example, in \(x(x^2+2x+1)\), the two factors are \(x\) and \(x^2+2x+1\). The sum rule is then used to differentiate the second factor.
More generally, if \(u,v,w\) are differentiable functions, the product \(u(v+w)\) has derivative
This follows by using the product rule with factors \(u\) and \(v+w\), and then using the sum rule to differentiate \(v+w\). There is no need to expand the product first.
Worked Example: A Constant Times a Product with a Sum
Differentiate \(5x^2(x+3)\). Treat \(5\) as a constant multiplier and \(x^2\) and \(x+3\) as the two product factors. The power rule gives \(\frac{d}{dx}(x^2)=2x\), and the sum rule gives \(\frac{d}{dx}(x+3)=1+0=1\).
First apply the constant-multiple rule, then the product rule:
To check, expand the original expression first: \(5x^2(x+3)=5x^3+15x^2\). Differentiating this polynomial gives \(15x^2+30x\), which agrees with the product-rule result.
In that calculation, the constant \(5\) multiplies both contributions from the product rule. It could instead be included in the first factor, by taking \(u=5x^2\) and \(v=x+3\). Either choice gives the same result, provided the constant is retained throughout the calculation.
When Both Factors Need Term-by-Term Differentiation
A factor can contain several terms, and the other factor can also be a sum. The product rule still has only two contributions. Within each contribution, differentiate the chosen factor term by term using the sum rule.
Worked Example: A Variable Times a Quadratic Sum
Differentiate \(x(x^2+2x+1)\). The first factor is \(x\), whose derivative is \(1\). The second factor is a sum. Its derivative is \(2x+2+0=2x+2\).
To check, expand first: \(x(x^2+2x+1)=x^3+2x^2+x\). Its derivative is \(3x^2+4x+1\), matching the result above.
The product rule does not require the factors to be single terms. It requires two differentiable functions. A polynomial sum can be treated as one function, and its derivative is found by applying the sum rule to its terms.
Constant Multiples and Sums of Products
Sometimes the entire expression is a sum of products, and each product has its own constant multiplier. Apply the product rule to each product, apply the constant-multiple rule to its coefficient, and then add the resulting derivatives.
Worked Example: A Sum of Two Constant-Multiple Products
Differentiate \(2x(x+1)+3(x^2-2)\). The expression is a sum of two terms, so differentiate each term separately.
For the first term, the product factors are \(x\) and \(x+1\). For the second, \(3\) is a constant multiplier, and \(\frac{d}{dx}(x^2-2)=2x\).
For a check, expand the original expression:
Its derivative is \(10x+2+0=10x+2\), as obtained using the combined rules.
It is useful to preserve the original grouping until the product rule has been applied. This makes it easier to see which terms belong to each product and reduces the chance of dropping a constant or a factor.
Why the Combined Rules Work
The combined procedures follow directly from the rules applied in sequence. This derivation also clarifies the conditions: each factor must be differentiable at the point under consideration, and constant multipliers must not depend on \(x\).
For the first formula, regard \(uv\) as one function and apply the constant-multiple rule. Then apply the product rule to \(uv\):
For the second formula, apply the sum rule to the two products and the product rule to each product:
Each step uses a rule under its stated condition: the sum rule requires differentiability of both terms, and the product rule requires differentiability of both factors. Thus the combined formulas introduce no new assumption beyond differentiability of the functions involved and constancy of \(c\).
A Common Mistake: Omitting a Product-Rule Term
A frequent error is to differentiate only one factor of a product. For example, a mistaken calculation might say
This differentiates \(x^2\) but omits the contribution from differentiating \(x+3\). The product rule requires two terms. With the constant multiplier included, the correction is
The omitted term is \(5x^2\), which is not zero because \(\frac{d}{dx}(x+3)=1\). A reliable check is to expand the original polynomial and differentiate it: \(5x^2(x+3)=5x^3+15x^2\), so its derivative must be \(15x^2+30x\). The incomplete answer \(10x(x+3)=10x^2+30x\) fails that check.
A Reliable Workflow
For an expression involving constants, sums, and products, use a consistent sequence. Keep the factors visible until each product-rule contribution has been written.
Identify the two factors in each product, even when a factor is itself a sum.
Keep each constant outside its derivative or carry it as part of a factor, without dropping it.
Differentiate one factor at a time, leaving the other factor unchanged in each term.
Use the sum rule inside any factor that contains addition or subtraction.
Combine like terms, then compare with a derivative obtained by expanding the polynomial.
Why This Skill Matters
Expressions are not always presented in expanded form. A factored form can make the structure of a function easier to see, while an expanded form can make its polynomial terms easier to differentiate. Being able to apply the rules without changing forms lets you choose the approach that best suits the calculation.
For polynomial products, expansion provides a useful independent check. It is not required for the product rule to work, and in larger expressions expanding may create more algebra than necessary. The essential habit is to track each contribution correctly: constants remain attached, sums are differentiated term by term, and every product produces both product-rule terms.
Check Your Understanding
For each question, identify the relevant rule before carrying out the calculation.
- Differentiate \(4x^3(x-2)\) using the constant-multiple and product rules.
- Differentiate \(x^2(x^2+3x)\), showing how you differentiate the sum inside the second factor.
- Differentiate \(3x(x+4)+2(x^2-1)\) by applying the sum rule to the two products.
- In the product rule, why must both \(u'v\) and \(uv'\) appear?
- Check your answer to one of the first three questions by expanding the original expression and differentiating the resulting polynomial.