Calculus

Chain Rule vs Product Rule: When to Use Which in Calculus

Chain rule or product rule? Learn how to instantly identify which differentiation rule to apply, avoid common pitfalls, and work through examples that combine both.

Frequently asked questions

Can you use the chain rule and product rule in the same problem?

Yes. For y = x² · sin(3x), the outer structure is a product, so start with the product rule: y′ = 2x · sin(3x) + x² · (derivative of sin(3x)). That last derivative needs the chain rule and equals 3cos(3x). The result is y′ = 2x sin(3x) + 3x² cos(3x).

What is the derivative of sin(3x)?

The derivative of sin(3x) is 3cos(3x). The outer function is sine and the inner function is 3x. Differentiate the outer function to get cos(3x), then multiply by the derivative of the inner function, which is 3. Leaving off that factor of 3 is one of the most common calculus mistakes.

Is the derivative of a product the product of the derivatives?

No. The derivative of f(x)g(x) is f′(x)g(x) + f(x)g′(x), not f′(x)g′(x). A quick check is y = x · x = x², whose derivative is 2x. The product of the derivatives would be 1 · 1 = 1, which is wrong, while the product rule gives 1·x + x·1 = 2x.

Do you need the product rule to differentiate 5 sin(x)?

No. A constant factor just comes out front, so d/dx[5 sin x] = 5 cos x. The product rule is needed only when both factors depend on x, such as x · sin(x) or x³ · eˣ. If you used the product rule on 5 sin x anyway, you would still get 5 cos x, just with extra work.

How do you differentiate x · e^(2x)?

Treat it as a product with f = x and g = e^(2x). Then f′ = 1, and g′ = 2e^(2x) by the chain rule. The product rule gives y′ = 1 · e^(2x) + x · 2e^(2x) = e^(2x)(1 + 2x). Skipping the chain rule on e^(2x) would give the wrong answer.

Try these solvers

Calculus12 min read

How to Study for AP Calculus AB: Tips and Practice Strategy

Preparing for the AP Calculus AB exam? This guide covers everything from the exam format to FRQ strategies, study timelines, and the best ways to practice effectively.

Trigonometry10 min read

How to Use the Unit Circle: Complete Guide with Examples

The unit circle is the key to unlocking trigonometry. Learn how to find exact values of sin, cos, and tan for any standard angle with clear explanations and examples.

Calculus10 min read

Integration by Parts: Formula, Strategy, and Examples

Master integration by parts with the complete formula, the LIATE strategy for choosing u and dv, detailed worked examples from simple to advanced, and practice problems.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.