Mathwords logoReference LibraryMathwords

Product Rule

Product Rule

A formula for the derivative of the product of two functions.

 

Product Rule formula (uv)'=u'v+uv' with three examples showing derivatives of x·sin(x), e^(2x)·tan(x), and x²√(1+x).

 

See also

Derivative rules

Key Formula

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}\bigl[f(x)\cdot g(x)\bigr] = f'(x)\cdot g(x) + f(x)\cdot g'(x)
Where:
  • f(x)f(x) = The first function
  • g(x)g(x) = The second function
  • f(x)f'(x) = The derivative of the first function
  • g(x)g'(x) = The derivative of the second function

Worked Example

Problem: Find the derivative of h(x) = x² · sin(x).
Step 1: Identify the two functions being multiplied.
f(x)=x2,g(x)=sin(x)f(x) = x^2, \quad g(x) = \sin(x)
Step 2: Find the derivative of each function separately.
f(x)=2x,g(x)=cos(x)f'(x) = 2x, \quad g'(x) = \cos(x)
Step 3: Apply the product rule: multiply f'(x) by g(x), then add f(x) times g'(x).
h(x)=f(x)g(x)+f(x)g(x)=2xsin(x)+x2cos(x)h'(x) = f'(x)\cdot g(x) + f(x)\cdot g'(x) = 2x\cdot\sin(x) + x^2\cdot\cos(x)
Step 4: Write the final simplified result.
h(x)=2xsin(x)+x2cos(x)h'(x) = 2x\sin(x) + x^2\cos(x)
Answer: h'(x) = 2x sin(x) + x² cos(x)

Another Example

This example uses two polynomials, which lets you verify the product rule by expanding first and differentiating directly—a useful check that both methods give the same result.

Problem: Find the derivative of y = (3x + 1)(x³ − 2x).
Step 1: Identify the two polynomial factors.
f(x)=3x+1,g(x)=x32xf(x) = 3x + 1, \quad g(x) = x^3 - 2x
Step 2: Differentiate each factor.
f(x)=3,g(x)=3x22f'(x) = 3, \quad g'(x) = 3x^2 - 2
Step 3: Apply the product rule.
y=3(x32x)+(3x+1)(3x22)y' = 3(x^3 - 2x) + (3x + 1)(3x^2 - 2)
Step 4: Expand each part and combine like terms.
y=3x36x+9x36x+3x22=12x3+3x212x2y' = 3x^3 - 6x + 9x^3 - 6x + 3x^2 - 2 = 12x^3 + 3x^2 - 12x - 2
Step 5: You can verify this by expanding the original product first: (3x + 1)(x³ − 2x) = 3x⁴ + x³ − 6x² − 2x, then differentiating term by term to get the same answer.
ddx(3x4+x36x22x)=12x3+3x212x2  \frac{d}{dx}(3x^4 + x^3 - 6x^2 - 2x) = 12x^3 + 3x^2 - 12x - 2 \; \checkmark
Answer: y' = 12x³ + 3x² − 12x − 2

Frequently Asked Questions

Why can't you just multiply the derivatives of the two functions?
Because differentiation does not distribute over multiplication in that way. The derivative of f(x)·g(x) is NOT f'(x)·g'(x). The product rule accounts for the fact that both functions are changing simultaneously; you need to consider each function's rate of change while holding the other function in place. A quick counterexample: the derivative of x·x = x² is 2x, but 1·1 = 1, which is clearly wrong.
When do you use the product rule versus the chain rule?
Use the product rule when two functions are multiplied together, like f(x)·g(x). Use the chain rule when one function is composed inside another, like f(g(x)). For example, x²·sin(x) needs the product rule, while sin(x²) needs the chain rule. Some problems require both rules at once.
Does the product rule work for more than two functions?
Yes. For three functions f·g·h, the derivative is f'gh + fg'h + fgh'. The pattern extends to any number of factors: you differentiate one factor at a time while leaving the others unchanged, then add all those terms together.

Product Rule vs. Quotient Rule

Product RuleQuotient Rule
DefinitionDerivative of f(x) · g(x)Derivative of f(x) / g(x)
Formulaf'g + fg'(f'g − fg') / g²
When to useTwo functions multiplied togetherOne function divided by another
Sign between termsAddition (+)Subtraction (−), so order matters
DenominatorNoneg(x) squared

Why It Matters

The product rule is one of the first differentiation rules you learn in calculus and appears constantly in AP Calculus, university-level courses, and physics. Many real-world quantities—such as force (mass × acceleration) or revenue (price × quantity)—are naturally expressed as products of changing functions. Without the product rule, you would be unable to differentiate most functions that arise in applications.

Common Mistakes

Mistake: Multiplying the two derivatives together: writing the derivative of f·g as f'·g'.
Correction: The correct formula is f'g + fg'. Differentiation does not distribute over multiplication. A quick check with f(x) = g(x) = x shows the error: (x·x)' = 2x, not 1·1 = 1.
Mistake: Forgetting one of the two terms in the product rule, typically the second term fg'.
Correction: Always write both terms explicitly before simplifying. A helpful mnemonic is "first times derivative of the second, plus second times derivative of the first," and make sure you see two separate addends.

Related Terms

  • DerivativeThe broader concept the product rule computes
  • Derivative RulesCollection of rules including the product rule
  • FunctionThe objects being multiplied and differentiated
  • FormulaThe product rule is a key differentiation formula
  • ProductThe multiplication operation the rule addresses
  • Chain RuleDifferentiation rule for composite functions
  • Quotient RuleAnalogous rule for dividing two functions
  • Power RuleBasic rule often used within the product rule