Which rule when?
Each rule is simple on its own. The hard part is often seeing which one an expression needs. The answer lies in how the expression is built.
The last thing you would work out
Imagine working out the value of the expression for some x, say x equals 2, step by step. The very last thing you would do decides the rule:
- The last step is adding or subtracting: a sum. Differentiate it term by term.
- The last step is multiplying two things that both contain x: a product. Use the product rule.
- The last step is dividing by something that contains x: a fraction. Use the quotient rule.
- The last step is taking sin, cos, ln, e to the power of, or a power of something more than plain x: a function of an inside. Use the chain rule.
For example:
- 3 x to the power 4 minus sine of x plus 2: the last step is adding up the terms, so term by term.
- x squared times e to the power x: the last step is multiplying x squared by e to the power x, so the product rule.
- the quantity x plus 1, over the quantity x minus 1: the last step is dividing, so the quotient rule.
- e to the power x squared: the last step is e to the power of x squared, an inside that isn't plain x, so the chain rule.
Rules inside rules
Often one rule leads to another. In x e to the power 2 x, the last step is multiplying, so the product rule comes first. But one of the parts, e to the power 2 x, has an inside, so its derivative needs the chain rule. See The product rule.
In a sum, each term can need its own rule. sine of x squared plus x times ln of x is a sum, so we take it term by term: the first term needs the chain rule, and the second the product rule.
Work from the outside in: find the rule for the whole expression first, and then the rules for its parts.
Numbers in disguise
Some expressions look like functions but are plain numbers, because there is no x in them: e squared, ln of 5 and sine of 3. Their derivative is 0, like that of any other number. And a number in front, such as the 4 in 4 cosine of x, needs no product rule: it simply stays.
In the app
Here, you make this choice by what you tap. Tap a whole term to take it out of the d/dx on its own, tap one part of a product, or the top or bottom of a fraction, to use the product or quotient rule, and tap the inside of a function to use the chain rule.
Ask what you would work out last. That tells you the rule, and you then work your way inwards.