Sums, Differences and Constant Multiples
Most functions are built from simpler pieces added together or multiplied by numbers. These rules let you differentiate them one piece at a time.
The derivative of a constant is 0. A constant multiplier stays in front: \((kf)' = kf'\). Sums and differences split up: \((f \pm g)' = f' \pm g'\). Together with the power rule, these let you differentiate any polynomial term by term, and many other functions once they are rewritten as sums of powers. They do not say anything about products or quotients of two functions.
1The four rules
| Rule | Formula | Why |
|---|---|---|
| Constant | \(\frac{d}{dx}[c] = 0\) | A flat line has slope 0 |
| Constant multiple | \(\frac{d}{dx}[k\,f(x)] = k\,f'(x)\) | Stretching a graph vertically by k multiplies every slope by k |
| Sum | \(\frac{d}{dx}[f + g] = f' + g'\) | Rates of change add |
| Difference | \(\frac{d}{dx}[f - g] = f' - g'\) | Rates of change subtract |
Each rule comes straight from the limit definition. For a sum, \(\dfrac{[f(x + h) + g(x + h)] - [f(x) + g(x)]}{h}\) regroups as \(\dfrac{f(x + h) - f(x)}{h} + \dfrac{g(x + h) - g(x)}{h}\), and the limit of a sum is the sum of the limits: \(f'(x) + g'(x)\). For a constant multiple, the \(k\) factors out of the difference quotient in the same way. For a constant, the top of the difference quotient is \(c - c = 0\) for every \(h\).
2Term by term
\(\dfrac{d}{dx}\left[4x^5 - 3x^2 + 7x - 9\right]\)
- 1Sum and difference rules: differentiate term by term.
- 2Constant multiples stay in front: \(4 \cdot 5x^4 = 20x^4\), \(3 \cdot 2x = 6x\), \(7 \cdot 1 = 7\).
- 3The constant \(-9\) has derivative 0.
\(f(x) = 3\sqrt{x} - \dfrac{2}{x} + \pi^2\)
- 1Rewrite: \(3x^{1/2} - 2x^{-1} + \pi^2\). Note \(\pi^2\) is a number (about 9.87), not a variable.
- 2Term by term: \(3 \cdot \tfrac12 x^{-1/2} - 2 \cdot (-1)x^{-2} + 0\).
\(\pi^2\), \(e^3\) and \(\ln 5\) are numbers. Their derivatives are 0. Only expressions that contain \(x\) change when \(x\) changes.
3Rewrite before you differentiate
Products and quotients need their own rules, but some can be rewritten into sums first: expand a product, or split a fraction whose denominator is a single term.
\(\dfrac{d}{dx}\left[(2x - 1)^2\right]\)
- 1There is no rule yet for a power of a whole expression, so expand: \((2x - 1)^2 = 4x^2 - 4x + 1\).
- 2Differentiate: \(8x - 4\).
\(\dfrac{d}{dx}\left[\dfrac{x^2 + 3}{x}\right]\)
- 1A single-term denominator divides each term on top: \(\dfrac{x^2}{x} + \dfrac{3}{x} = x + 3x^{-1}\).
- 2Differentiate: \(1 - 3x^{-2}\).
\(\dfrac{d}{dx}[(2x - 1)(2x - 1)]\) is not \(2 \cdot 2 = 4\). Derivatives split across sums, not products. Expand first (or use the product rule).
\(\dfrac{x^2 + 3}{x}\) can be split, because the bottom is one term. \(\dfrac{3}{x^2 + x}\) cannot be split into \(\dfrac{3}{x^2} + \dfrac{3}{x}\); that is a different function.
4Using the rules
\(f(x) = x^3 - 6x^2 + 9x + 1\)
- 1A horizontal tangent has slope 0, so solve \(f'(x) = 0\).
- 2\(f'(x) = 3x^2 - 12x + 9 = 3(x^2 - 4x + 3) = 3(x - 1)(x - 3)\).
- 3Zero at \(x = 1\) and \(x = 3\). Heights: \(f(1) = 5\), \(f(3) = 1\).
“\(f'(x) = 3(x - 1)(x - 3)\), which is 0 at \(x = 1\) and \(x = 3\). The tangent line is horizontal at \((1, 5)\) and \((3, 1)\).”
Using a table of derivatives
\(f'(1) = 5\) and \(g'(1) = 7\). Find \(h'(1)\) for \(h(x) = 2f(x) - 3g(x) + 10\).
- 1\(h'(x) = 2f'(x) - 3g'(x) + 0\).
- 2\(h'(1) = 2(5) - 3(7) = 10 - 21 = -11\).
5Rates in context
When the input and output have units, so does the derivative: output units per input unit. In business, the derivative of a cost function is called the marginal cost, the approximate cost of producing one more item.
Marginal cost
A bakery’s cost to make \(q\) loaves in a day is \(C(q) = 500 + 12q - 0.01q^2\) dollars. Find \(C'(200)\) and explain what it means.
- 1\(C'(q) = 0 + 12 - 0.02q\). The fixed cost, 500, disappears: it does not change with \(q\).
- 2\(C'(200) = 12 - 4 = 8\).
- 3Units: dollars per loaf. Check with actual costs: \(C(201) - C(200) = 7.99\), very close to 8.
“\(C'(200) = 8\): when the bakery makes 200 loaves, its cost is increasing at a rate of $8 per loaf.”
Quick reference
| Function | Derivative |
|---|---|
| \(c\) | 0 |
| \(kx^n\) | \(knx^{n - 1}\) |
| \(f + g\) | \(f' + g'\) |
| \(f - g\) | \(f' - g'\) |
| \(kf\) | \(kf'\) |
| Product or quotient | Expand or split first if you can; otherwise use the product or quotient rule |