Skip to content
LoveToCalc

Theorem — what does that mean?

Difference rule

A difference is differentiated one term at a time, and the minus sign stays where it is.

In Swedish: Deriveringsregel för differenser

ddx(f(x)−g(x))=f′(x)−g′(x)

x
The variable

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

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.

Last reviewed October 13, 2026 ·How pages are reviewed

Calculate it in practice

CalculusAll formulas