Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Differentiate Products and Quotients of Composites

Use the product or quotient rule for the outer structure and the chain rule inside each nested factor. Keep the two jobs apart: name the factors first, differentiate each one on its own line, and only then assemble.

Recognize the task

Two factors are multiplied or divided, and at least one of them is itself composite: x2e3xx^2 e^{3x}, sin⁡(2x)cos⁡(3x)\sin(2x)\cos(3x), (x2+1)3x(x^2+1)^3\sqrt{x}, e−xx2+1\frac{e^{-x}}{x^2+1}. Test: cover one factor with your hand. If what is left needs the chain rule on its own, you are here.
The inner job is the method for composite functions; the outer job is the product rule or the quotient rule.

Two ways to do it

Product or quotient rule outside, chain rule insideusual choice
(uv)′=u′v+uv′,(uv)′=u′v−uv′v2(uv)' = u'v + uv', \qquad \left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}
Each of u′u' and v′v' is computed separately, with the chain rule where a factor is nested.
Quotient as a productone less formula
uv=u v−1  ⇒  u′v−1−u v−2 v′\frac{u}{v} = u\,v^{-1} \;\Rightarrow\; u'v^{-1} - u\,v^{-2}\,v'
Rewrite the quotient with a negative power and use only the product rule. The answer needs rearranging into one fraction at the end.

Steps

StepOn y=x2e3xy = x^2 e^{3x}
1Name the factors. Write uu and vv on separate lines. For a quotient, uu is the top and vv the bottom.u=x2,v=e3xu = x^2,\quad v = e^{3x}
2Differentiate u on its own line. Here a plain power rule.Power rule ↗u′=2xu' = 2x
3Differentiate v on its own line, with the chain rule if it is composite. The exponential keeps its form and gains the inner derivative 33.Chain rule ↗v′=3e3xv' = 3e^{3x}
4Assemble with the product (or quotient) rule. Copy uu, vv, u′u', v′v' into the product rule pattern. Do not simplify while copying.Product rule ↗y′=2x e3x+x2⋅3e3xy' = 2x\,e^{3x} + x^2\cdot 3e^{3x}
5Factor out the common pieces. A factored answer shows at once where the derivative is zero, which the next question usually asks.y′=x e3x(2+3x)y' = x\,e^{3x}(2 + 3x)

Worked examples

Example 1 · product of two trig composites

product rule
y=sin⁡(2x)cos⁡(3x)y = \sin(2x)\cos(3x)
u=sin⁡2xu = \sin 2x, v=cos⁡3xv = \cos 3x
u′=2cos⁡2x,v′=−3sin⁡3xu' = 2\cos 2x,\quad v' = -3\sin 3x
chain rule in each factor
y′=2cos⁡2xcos⁡3x−3sin⁡2xsin⁡3xy' = 2\cos 2x\cos 3x - 3\sin 2x\sin 3x
u′v+uv′u'v + uv'

Example 2 · quotient with an exponential on top

quotient rule
y=e−xx2+1y = \frac{e^{-x}}{x^2+1}
u=e−xu = e^{-x}, v=x2+1v = x^2 + 1
u′=−e−x,v′=2xu' = -e^{-x},\quad v' = 2x
chain rule on e−xe^{-x}
y′=−e−x(x2+1)−e−x⋅2x(x2+1)2y' = \frac{-e^{-x}(x^2+1) - e^{-x}\cdot 2x}{(x^2+1)^2}
u′v−uv′v2\frac{u'v - uv'}{v^2}
y′=−e−x(x+1)2(x2+1)2y' = -\frac{e^{-x}(x+1)^2}{(x^2+1)^2}
factor −e−x-e^{-x}; x2+2x+1=(x+1)2x^2 + 2x + 1 = (x+1)^2

Example 3 · power of a bracket times a root

factoring at the end
y=(x2+1)3xy = (x^2+1)^3\sqrt{x}
u=(x2+1)3u = (x^2+1)^3, v=x1/2v = x^{1/2}
u′=6x(x2+1)2,v′=12xu' = 6x(x^2+1)^2,\quad v' = \frac{1}{2\sqrt{x}}
chain rule; power rule
y′=6x(x2+1)2x+(x2+1)32xy' = 6x(x^2+1)^2\sqrt{x} + \frac{(x^2+1)^3}{2\sqrt{x}}
u′v+uv′u'v + uv'
y′=(x2+1)2 (13x2+1)2xy' = \frac{(x^2+1)^2\,(13x^2 + 1)}{2\sqrt{x}}
common factor (x2+1)22x\frac{(x^2+1)^2}{2\sqrt{x}}; 12x2+x2+112x^2 + x^2 + 1

See it happen

The product rule says: change one factor at a time and add the effects. The chain rule says: inside a factor, change one layer at a time and multiply the effects. The two rules never compete, because they act at different depths of the expression.

Common mistakes

Multiplying the derivatives of the factors

✗ (x2e3x)′=2x⋅3e3x(x^2 e^{3x})' = 2x\cdot 3e^{3x}
✓ (x2e3x)′=2x e3x+x2⋅3e3x(x^2 e^{3x})' = 2x\,e^{3x} + x^2\cdot 3e^{3x}

Forgetting the chain rule inside a factor

✗ v′=e3xv' = e^{3x}
✓ v′=3e3xv' = 3e^{3x}

Swapping the order in the quotient rule

✗ uv′−u′vv2\frac{uv' - u'v}{v^2}
✓ u′v−uv′v2\frac{u'v - uv'}{v^2}, the derivative of the top comes first

Stopping before factoring

✗ y′=2x e3x+3x2e3xy' = 2x\,e^{3x} + 3x^2 e^{3x} when asked where y′=0y' = 0
✓ y′=x e3x(2+3x)y' = x\,e^{3x}(2 + 3x) shows the zeros x=0x = 0 and x=−23x = -\tfrac{2}{3} at once