# Constant, sum, difference, and constant multiple rules

> AP Calculus AB · Differentiation: Definition and Fundamental Properties
> Source: https://www.owlsprep.com/study/ap-calculus-ab-u2-constant-sum-difference-and-constant/

This module covers the core linear differentiation rules for AP Calculus AB: constant rule, constant multiple rule, sum rule, and difference rule. You'll learn to apply these rules, avoid common exam traps, and solve AP-style problems.

**Prerequisites:** Limit definition of the derivative; Basic properties of limits; Polynomial algebra

## Learning objectives

- State and derive the four core linear differentiation rules
- Apply the rules to differentiate polynomials and linear combinations of functions
- Avoid common AP exam pitfalls when applying these rules
- Use the rules to solve tangent line and applied real-world problems

## The Constant Rule

The constant rule is the simplest differentiation rule, applying to constant functions that output the same value for every input and have no dependence on $x$. It is derived directly from the limit definition of the derivative, and matches the intuitive fact that a horizontal line has a slope of 0 everywhere.

**Constant Rule** — For any real constant $c$, the derivative of the constant function $f(x) = c$ is always equal to zero.

*Notation:* \frac{d}{dx}[c] = 0

*Example:* $\frac{d}{dx}[12] = 0$, $\frac{d}{dx}[e] = 0$

**Derivation:** Derive the constant rule from the limit definition of the derivative

*Starting from:* Derivative definition: $f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$, for $f(x) = c$

1. Substitute $f(x+h) = c$ and $f(x) = c$ into the definition:

   $$\lim_{h \to 0} \frac{c - c}{h}$$
2. Simplify the numerator:

   $$\lim_{h \to 0} \frac{0}{h} = \lim_{h \to 0} 0$$
3. Evaluate the limit of a constant:

   $$f'(x) = 0$$

*Conclusion:* The derivative of any constant is zero, confirming the constant rule.

**Worked example:** Find the derivative of $g(x) = -\frac{9\pi}{4}$ with respect to $x$.

1. Confirm that $-\frac{9\pi}{4}$ is a constant: it has no dependence on the input variable $x$, so it fits the definition of a constant function.
2. Recall the constant rule formula:
3. $$\frac{d}{dx}[c] = 0 \text{ for any real constant } c$$
4. Substitute $c = -\frac{9\pi}{4}$ into the rule.
5. Final result:
6. $$\frac{d}{dx}\left[-\frac{9\pi}{4}\right] = 0$$

> **Exam tip:** On the AP exam, constants like $\pi$, $e$, and arbitrary constants labeled $k$ in problems are still constants — always apply the constant rule to them, don't mistake them for variables.

## The Constant Multiple Rule

The constant multiple rule extends differentiation to terms that have a constant coefficient multiplied by a non-constant function. It lets us pull constant coefficients out of derivatives, which is an essential step for term-by-term differentiation of polynomials.

**Constant Multiple Rule** — If $c$ is a constant and $f(x)$ is differentiable, the derivative of $c$ times $f(x)$ equals $c$ multiplied by the derivative of $f(x)$.

*Notation:* \frac{d}{dx}[c \cdot f(x)] = c \cdot f'(x)

**Derivation:** Derive the constant multiple rule from limit properties

*Starting from:* Constant multiple property of limits and the derivative definition

1. Start with the derivative definition for $c f(x):
2. $$\frac{d}{dx}\left[c f(x)\right] = \lim_{h \to 0} \frac{c f(x+h) - c f(x)}{h}$$
3. Factor the constant $c$ out of the limit:
4. $$c \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$
5. Recognize the limit as $f'(x)$, the derivative of $f(x)$:

*Conclusion:* Thus, $\frac{d}{dx}\left[c f(x)\right] = c f'(x)$, which proves the rule.

**Worked example:** Given that $\frac{d}{dx}[x^3] = 3x^2$, use the constant multiple rule to find the derivative of $y = -5x^3$.

1. Rewrite $y$ to match the constant multiple rule form: $y = -5 \cdot f(x)$, where $c = -5$ and $f(x) = x^3$.
2. Apply the constant multiple rule:
3. $$\frac{dy}{dx} = c \cdot f'(x) = -5 \cdot \frac{d}{dx}[x^3]$$
4. Substitute the known derivative $\frac{d}{dx}[x^3] = 3x^2$.
5. Simplify to get the final result:
6. $$\frac{dy}{dx} = -5(3x^2) = -15x^2$$

> **Exam tip:** Never forget that negative constants are still constants — keep the negative sign with the constant when you pull it out, don't accidentally drop it during simplification.

## The Sum and Difference Rules

The sum and difference rules allow us to differentiate linear combinations of functions term-by-term, which is required to differentiate any polynomial. These rules follow directly from the limit property that the limit of a sum is the sum of the limits. The difference rule can also be derived by combining the sum rule with the constant multiple rule for $c=-1$.

**Sum and Difference Rules** — If $f(x)$ and $g(x)$ are both differentiable at $x$, the derivative of a sum or difference of functions equals the sum or difference of their individual derivatives. This extends to any finite number of terms.

*Notation:* \frac{d}{dx}\left[f(x) + g(x)\right] = f'(x) + g'(x) \\ \frac{d}{dx}\left[f(x) - g(x)\right] = f'(x) - g'(x)

**Worked example:** Differentiate $f(x) = 5x^4 - 3x^2 + 2x - 9$ with respect to $x$, given that $\frac{d}{dx}[x^n] = nx^{n-1}$.

1. Split the function into individual terms using the sum and difference rules:
2. $$\frac{d}{dx}[5x^4 - 3x^2 + 2x - 9] = \frac{d}{dx}[5x^4] - \frac{d}{dx}[3x^2] + \frac{d}{dx}[2x] - \frac{d}{dx}[9]$$
3. Apply the constant multiple rule to each variable term, and the constant rule to the final term:
4. $$= 5 \cdot \frac{d}{dx}[x^4] - 3 \cdot \frac{d}{dx}[x^2] + 2 \cdot \frac{d}{dx}[x] - 0$$
5. Substitute the power rule derivative for each power of $x$:
6. $$= 5(4x^3) - 3(2x) + 2(1) - 0$$
7. Simplify to get the final derivative:
8. $$f'(x) = 20x^3 - 6x + 2$$

> **Exam tip:** Always check that you have differentiated every term in the function, including the final constant term — it is easy to forget it and accidentally carry it over into the final derivative.

## Combined AP-Style Applications

**Check your understanding**

Test your understanding with this AP-style multiple choice question:

1. If $f(x) = \frac{1}{3}x^6 - 9x + 5e$, what is $f'(x)$?

   - A) $2x^5 - 9 + 5e$
   - B) $2x^5 - 9$
   - C) $2x^6 - 9 + 5$
   - D) $2x^5 - 9e$

   *Why:* Distractor A leaves the constant $5e$ undifferentiated, C incorrectly differentiates the constant, D incorrectly treats $e$ as a variable. The constant rule gives $\frac{d}{dx}[5e] = 0$, so the correct derivative is $2x^5 - 9$.

**Worked example:** Let $f(x) = 8x^3 - 12x^2 + 4x - 10$. (a) Use the core rules to find $f'(x)$ (you may use the power rule). (b) Find the slope of the tangent line at $x = 2$. (c) Write the equation of the tangent line at $x = 2$.

1. Part (a): Split into terms and apply rules:
2. $$f'(x) = \frac{d}{dx}[8x^3] - \frac{d}{dx}[12x^2] + \frac{d}{dx}[4x] - \frac{d}{dx}[10]$$
3. $$f'(x) = 8(3x^2) - 12(2x) + 4(1) - 0 = 24x^2 - 24x + 4$$
4. Part (b): Slope equals $f'(2)$. Substitute $x=2$:
5. $$f'(2) = 24(2)^2 - 24(2) + 4 = 52$$
6. Part (c): Find the point $(2, f(2))$:
7. $$f(2) = 8(8) - 12(4) + 4(2) - 10 = 14, \text{ so point } (2, 14)$$
8. Use point-slope form and simplify:
9. $$y - 14 = 52(x - 2) \implies y = 52x - 90$$

**Worked example:** The monthly profit from selling $x$ custom bicycles is $P(x) = -150x^2 + 6000x - 350$, where $P(x)$ is profit in US dollars. Marginal profit (the derivative of $P(x)$) approximates the change in profit from selling one additional bicycle. Find the marginal profit when 15 bicycles are sold, including units.

1. Find the marginal profit function $MP(x) = P'(x)$ using the differentiation rules:
2. $$MP(x) = \frac{d}{dx}[-150x^2] + \frac{d}{dx}[6000x] - \frac{d}{dx}[350] = -300x + 6000$$
3. Substitute $x=15$:
4. $$MP(15) = -300(15) + 6000 = 1500$$
5. Interpret in context: When 15 bicycles have been sold, profit increases by approximately \$1500 for the next additional bicycle sold.

## Common pitfalls

- **Wrong:** Differentiating $y = 7$ to get $y' = 7$
  - Why it fails: Students confuse the constant value itself with its derivative, forgetting the constant rule always outputs zero.
  - Correct: Mark any term without an input variable as a constant, and write 0 for its derivative immediately before moving on.
- **Wrong:** Differentiating $y = -4x^2$ to get $y' = -8x^2$
  - Why it fails: Students only apply the derivative to the variable part and leave the original power of $x$ unchanged, forgetting to multiply the constant coefficient by the derivative of the variable part.
  - Correct: After finding the derivative of the variable part, always multiply it by the full constant coefficient, including its sign.
- **Wrong:** Differentiating $f(x) = \pi x$ to get $f'(x) = x + \pi$
  - Why it fails: Students confuse the constant $\pi$ with a variable and unnecessarily apply the product rule.
  - Correct: All Greek letters and arbitrary labeled constants ($k, a, b$) are constants, so apply the constant multiple rule to pull them out.
- **Wrong:** Writing $\frac{d}{dx}[3x + 4] = 3 + 4 = 7$
  - Why it fails: Students forget to apply the constant rule to the constant term and incorrectly carry the constant into the derivative.
  - Correct: Cross out constant terms after replacing their derivative with 0 to avoid accidental carryover.
- **Wrong:** Differentiating $f(x) = x^3 - 2x^2 + x - 4$ to get $f'(x) = 3x^2 - 4x + 1 - 4 = 3x^2 - 4x - 3$
  - Why it fails: Students fail to replace the final constant with zero, leaving it in the final derivative.
  - Correct: Count the number of terms in the original function and confirm you have one fewer non-zero term in the derivative (for polynomials with a constant term).

## Cheatsheet

| Rule Name | Formula | Key Notes |
| --- | --- | --- |
| Constant Rule | $\frac{d}{dx}[c] = 0$ | $c$ is any real constant ($\pi, e, k$ included) with no $x$ dependence |
| Constant Multiple Rule | $\frac{d}{dx}[c \cdot f(x)] = c \cdot f'(x)$ | Applies to any constant $c$ (positive/negative) and any differentiable $f(x)$ |
| Sum Rule | $\frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)$ | Extends to any finite number of terms: derivative of sum = sum of derivatives |
| Difference Rule | $\frac{d}{dx}[f(x) - g(x)] = f'(x) - g'(x)$ | Equivalent to sum rule with $c=-1$ applied to $g(x)$ |
| Combined Linear Differentiation | $\frac{d}{dx}[c_1 f(x) + c_2 g(x)] = c_1 f'(x) + c_2 g'(x)$ | General form for any linear combination of two differentiable functions |
| Negative Constant Multiple | $\frac{d}{dx}[-k f(x)] = -k f'(x)$ | Always keep the negative sign with the constant when applying the rule |

## What's next

These four rules establish the linearity of differentiation, the foundational property that underpins all differentiation you will do for the rest of AP Calculus AB. Every advanced rule from the product rule to the chain rule relies on this linearity, and common errors here will lead to mistakes on nearly every subsequent differentiation problem. Mastery of this topic is also essential for understanding linearity of integration later in the course, which inherits this property directly from differentiation.

- [Derivatives of cos, sin, e^x, ln(x)](https://www.owlsprep.com/study/ap-calculus-ab-u2-derivatives-of-cos-sin-e/)
- [Product Rule](https://www.owlsprep.com/study/ap-calculus-ab-u2-product-rule/)
- [AP Calculus AB Quotient rule](https://www.owlsprep.com/study/ap-calculus-ab-u2-quotient-rule/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-ab-u2-constant-sum-difference-and-constant/
