The rule
(f − g)′ = f′ − g′
The derivative of a difference is the difference of the derivatives. It is the sum rule with a minus sign, and holds when f and g are both differentiable at the point in question.
Worked examples
A polynomial. f(x) = x⁴ − 3x² − 7x. Differentiate each term with the power rule:
f′(x) = 4x³ − 6x − 7
At x = 2 that is 32 − 12 − 7 = 13.
Mixed functions. f(x) = eˣ − ln x gives f′(x) = eˣ − 1/x, each term by its own rule.
A bracket. f(x) = 3x − (x² + 2x). The bracket is subtracted as a whole, so its derivative is too:
f′(x) = 3 − (2x + 2) = 1 − 2x
Why it holds
(f − g) is f + (−1)·g. The sum rule splits it into f′ and the derivative of (−1)·g, and the constant factor rule turns that into −g′.
Common mistakes
- Losing the sign of the second term in a bracket. 3 − (2x + 2) is 1 − 2x, not 3 − 2x + 2.
- Treating it like a product. (f − g)′ is f′ − g′, but (f·g)′ is not f′·g′. That one is the product rule.
- Forgetting that a constant term vanishes. In x² − 5 the −5 contributes 0.
Common questions
Is this a separate rule from the sum rule?
It is the same idea with a different sign. Many books treat the two together as the linearity of the
derivative.