← Back to course

Linearity Rules

The linearity rules of differentiation state that constants factor out and sums/differences differentiate term-by-term: ddx[c⋅f(x)]=c⋅f′(x)\frac{d}{dx}[c \cdot f(x)] = c \cdot f'(x) and ddx[f(x)±g(x)]=f′(x)±g′(x)\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x). These rules let you break complex expressions into simple pieces without returning to limits.

Linearity Rules of Differentiation

Once you master the derivatives of basic functions, you need efficient rules for combining them. The linearity rules are the foundation: the constant multiple rule and the sum/difference rule.

The Two Core Rules

RuleFormula
Constant Multipleddx[c⋅f(x)]=c⋅f′(x)\frac{d}{dx}[c \cdot f(x)] = c \cdot f'(x)
Sum/Differenceddx[f(x)±g(x)]=f′(x)±g′(x)\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x)

The constant multiple rule says constants "ride along"—they factor out untouched. The sum/difference rule says you differentiate term by term, preserving addition and subtraction. Together, these properties define linearity in calculus.

Why They Work

Both rules follow directly from the limit definition. For the constant multiple rule: ddx[cf(x)]=lim⁡h→0cf(x+h)−cf(x)h=clim⁡h→0f(x+h)−f(x)h=cf′(x).\frac{d}{dx}[c f(x)] = \lim_{h\to0} \frac{c f(x+h) - c f(x)}{h} = c \lim_{h\to0}\frac{f(x+h)-f(x)}{h} = c f'(x).

Since limits are linear, the same logic applies to sums: the limit of a sum is the sum of limits.

Applying the Rules

In practice, differentiate entire polynomial-like expressions in one pass, term by term. For f(x)=3x4−5x2+7f(x) = 3x^4 - 5x^2 + 7:

  • ddx[3x4]=3(4x3)=12x3\frac{d}{dx}[3x^4] = 3(4x^3) = 12x^3
  • ddx[−5x2]=−5(2x)=−10x\frac{d}{dx}[-5x^2] = -5(2x) = -10x
  • ddx[7]=0\frac{d}{dx}[7] = 0

Result: f′(x)=12x3−10xf'(x) = 12x^3 - 10x.

Linearity also handles fractional and negative exponents. For g(x)=4x−3x2+2xg(x) = 4\sqrt{x} - \dfrac{3}{x^2} + 2x, rewrite as g(x)=4x1/2−3x−2+2xg(x) = 4x^{1/2} - 3x^{-2} + 2x, then differentiate: g′(x)=2x−1/2+6x−3+2=2x+6x3+2.g'(x) = 2x^{-1/2} + 6x^{-3} + 2 = \frac{2}{\sqrt{x}} + \frac{6}{x^3} + 2.

Common Pitfalls

Don't multiply derivatives for sums: ddx[f(x)+g(x)]≠f′(x)⋅g′(x)\frac{d}{dx}[f(x)+g(x)] \neq f'(x) \cdot g'(x). Sums stay as sums.

Preserve the sign: ddx[f(x)−g(x)]=f′(x)−g′(x)\frac{d}{dx}[f(x)-g(x)] = f'(x) - g'(x), not f′(x)+g′(x)f'(x)+g'(x).

Handle negatives carefully: ddx[−7x3]=−21x2\frac{d}{dx}[-7x^3] = -21x^2.

Mastering linearity is essential—every advanced rule (product, quotient, chain) builds on this foundation.

Practice problems

Practice similar problems interactively, with instant feedback.

Start Closing the Gap