Chalk−1

Math · Calculus I · Worked example

Combine the chain rule and the product rule

Differentiate y=x2e3⁢x.

y=x2e3⁢x

Try one — Chalk checks each line

Find the top-level structure

Work out x2e3⁢x for x=1: you find x2=1 and e3⋅1=e3 separately, then multiply them. The last operation is a multiplication, so the function is a product, and the product rule comes first.

Write the product rule

The derivative of a product is the first factor’s derivative times the second factor, plus the first factor times the second factor’s derivative. Here the first factor is x2 and the second is e3⁢x.

(fg)′=f′g+fg′

Differentiate the first factor

x2 needs only the power rule.

dd⁢xx2=2⁢x

Differentiate the second factor with the chain rule

e3⁢x is a composition: the inside is 3⁢x and the outside is eu. The outside gives e3⁢x, copied unchanged, and the inside gives 3.

dd⁢xe3⁢x=e3⁢x⋅3=3e3⁢x

Put the product rule together

Substitute both derivatives into the product rule.

d⁢yd⁢x=2⁢x⋅e3⁢x+x2⋅3e3⁢x

Factor the answer

Both terms contain x and e3⁢x, so factor them out. The factored form shows where the slope is zero: e3⁢x is never 0, so d⁢y⁢/⁢d⁢x=0 only at x=0 and at x=−2⁢/3.

d⁢yd⁢x=xe3⁢x(2+3⁢x)

Result

d⁢y⁢/⁢d⁢x =2⁢xe3⁢x+3x2e3⁢x =xe3⁢x(2+3⁢x).

d⁢yd⁢x=xe3⁢x(2+3⁢x)

Your turn

1. One like the example

Differentiate y=x⁢(2⁢x+1)4.

Show the answer and explanation

d⁢y⁢/⁢d⁢x =(2⁢x+1)3(10⁢x+1).

The top level is the product of x and (2⁢x+1)4. The product rule gives 1⋅(2⁢x+1)4+x⋅[(2⁢x+1)4]′, and the chain rule gives [(2⁢x+1)4]′ =4⁢(2⁢x+1)3⋅2 =8⁢(2⁢x+1)3. That makes d⁢y⁢/⁢d⁢x =(2⁢x+1)4+8⁢x⁢(2⁢x+1)3. Factoring out (2⁢x+1)3 leaves (2⁢x+1)+8⁢x=10⁢x+1.

y=x⁢(2⁢x+1)4d⁢yd⁢x=(2⁢x+1)4+8⁢x⁢(2⁢x+1)3d⁢yd⁢x=(2⁢x+1)3(10⁢x+1)

2. A variation

Differentiate y=e2⁢x/⁢x. Here the top-level structure is a quotient.

Show the answer and explanation

d⁢y⁢/⁢d⁢x =e2⁢x(2⁢x−1)⁢/x2, for x≠0.

The quotient rule takes the top’s derivative times the bottom, minus the top times the bottom’s derivative, all over the bottom squared. The top e2⁢x needs the chain rule and gives 2e2⁢x. The bottom x gives 1. The result is (2e2⁢x⋅x−e2⁢x)⁢/x2 =e2⁢x(2⁢x−1)⁢/x2.

y=e2⁢xxd⁢yd⁢x=2e2⁢x⋅x−e2⁢xx2d⁢yd⁢x=e2⁢x(2⁢x−1)x2

3. Somewhere new

Differentiate y=sin(x ex). Which rule comes first this time?

Show the answer and explanation

d⁢y⁢/⁢d⁢x =(1+x)excos(x ex).

The sine is applied last, so the chain rule comes first, with the inside x ex. The outside gives cos(x ex). The inside is a product, and the product rule gives ex+x ex. Multiply to get (1+x)excos(x ex).

y=sin(xex)d⁢yd⁢x=cos(xex)⋅(ex+xex)d⁢yd⁢x=(1+x)excos(xex)

Keep exploring

Open the steps in Math: the Checker marks both the expanded and the factored derivative ✓.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check the derivative in Math Study the 4 key terms Open worked example on a board Chain rule in Math Reference

Your existing work stays on this device. Examples open as editable copies.