AP® CALCULUS AB & BC · UNIT 2

Derivative rules
& linearity

Use constant, sum, difference and constant multiple rules to differentiate term by term. Learn through detailed notes, limit proofs, worked examples and practice.

Topic 2.6 study notes6 worked examples · 6 practice problemsUpdated 22 October 2026
Calculus notebook with limit and integral symbols, compass and pencil on an olive and cream study desk

1. Understand linearity of differentiation

Core concept: Differentiation is linear: sums, differences and constant multiples of differentiable functions can be differentiated term by term. Combine these rules with the power rule to differentiate polynomials, reciprocals and roots. Keep the original domain, identify the independent variable and carry each coefficient and sign through the calculation.

LINEARITY OF DIFFERENTIATION

The derivative operator is linear on differentiable functions with a common interval of definition. Its two defining properties are additivity and homogeneity with a constant scalar.

  1. Additivity: The derivative of a sum equals the sum of derivatives
    ddx[f(x)+g(x)]=ddx[f(x)]+ddx[g(x)]
  2. Homogeneity: Constants can be pulled out of derivatives
    ddx[c·f(x)]=c·ddx[f(x)]

In Plain English: You can differentiate term-by-term in a sum, and you can "factor out" constant multipliers. This is why polynomials are so easy to differentiate!

Big picture: Additivity and homogeneity give the sum, difference and constant multiple rules. The constant rule is established directly from the derivative definition. Together with the power rule, these results make polynomial differentiation systematic.

One formula captures constant linear combinations

ddx[af(x)+bg(x)]=af′(x)+bg′(x).

Here a and b are fixed constants with respect to x, and both f and g have finite derivatives at the input. Setting a coefficient to −1 gives subtraction. The formula extends to any finite sum of differentiable functions.

A coefficient may be symbolic: if a and b are declared constant, ddx[ax2+bx+7]=2ax+b. In contrast, x cannot be pulled outside differentiation as if it were a constant coefficient.

2. The four derivative rules

RULE 1: THE CONSTANT RULE

The derivative of any constant is zero.

ddx[c]=0

Meaning of constant: c does not change with the differentiation variable x. It can be a number such as π or a parameter declared constant; a letter is not automatically a variable that changes with x.

Why This Makes Sense:

A constant function f(x)=c has a horizontal graph. At an interior input where it is defined nearby, its slope and instantaneous rate are zero.

Examples:

  • ddx[5]=0
  • ddx[−12]=0
  • ddx[π]=0
  • ddx[0]=0
  • ddx[1000000]=0

Key Takeaway: Constants vanish when you differentiate!

RULE 2: THE CONSTANT MULTIPLE RULE

If c is constant with respect to x and f is differentiable at the input, the derivative of cf is cf′.

ddx[c·f(x)]=c·ddx[f(x)]=c·f′(x)

Where: c is a constant and f(x) is a differentiable function

In Words: "Pull the constant out front, then differentiate."

Examples:

  • ddx[7x3]=7·ddx[x3]=7·3x2=21x2
  • ddx[−4x5]=−4·5x4=−20x4
  • ddx[12x2]=12·2x=x
  • ddx[πx]=π·1=π

Common Application: When differentiating axn, use constant multiple rule THEN power rule:

ddx[axn]=a·nxn−1=anxn−1

RULE 3: THE SUM RULE

If f and g are differentiable at the same input, the derivative of their sum is the sum of their derivatives.

ddx[f(x)+g(x)]=ddx[f(x)]+ddx[g(x)]=f′(x)+g′(x)

In Words: "Differentiate each term separately, then add the results."

Extends to Multiple Terms:

ddx[f(x)+g(x)+h(x)]=f′(x)+g′(x)+h′(x)

Examples:

  • ddx[x3+x2]=3x2+2x
  • ddx[x5+2x]=5x4+2
  • ddx[x4+x3+x2+x]=4x3+3x2+2x+1
  • ddx[x+1x]=12x−1x2

Why it works: The two difference-quotient limits exist as finite numbers, so the limit law permits adding their limits. Do not split a limit into two pieces whose limits fail to exist.

RULE 4: THE DIFFERENCE RULE

If f and g are differentiable at the same input, the derivative of their difference is the difference of their derivatives.

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

In Words: "Differentiate each term separately, then subtract."

Note: This is really just the Sum Rule with a negative constant multiple:

f(x)−g(x)=f(x)+(−1)·g(x)

Examples:

  • ddx[x3−x2]=3x2−2x
  • ddx[5x4−2x]=20x3−2
  • ddx[x2−7]=2x−0=2x (constant disappears!)
  • ddx[1x−x]=−1x2−12x

Watch Signs: Keep track of negative signs carefully!

Domains in the root and reciprocal examples: Both x+1x and 1x−x, and their displayed derivative formulas, require x>0. The reciprocal excludes zero; the square root excludes negative inputs. The polynomial examples have all real inputs as their domains.

Apply the power rule on its valid domain: For axn, the constants a and n do not change with x. For arbitrary real exponents the formula applies on positive inputs; extend it to other inputs only with appropriate real-power and differentiability checks.

3. Combine the rules with the power rule

The Power of Linearity: Using All Rules Together

For ANY polynomial (or linear combination of differentiable functions), you can:

  1. Break it into terms using Sum/Difference Rules
  2. Pull out constants using Constant Multiple Rule
  3. Apply Power Rule (or other derivative formulas) to each term
  4. Constants disappear using Constant Rule
  5. Combine results using Sum/Difference Rules again

General Formula for Polynomials:

ddx[∑j=0najxj]=∑j=1njajxj−1

In the polynomial formula, the coefficients are constant and the degree is a nonnegative integer. A constant polynomial has zero derivative. A nonconstant polynomial of degree n≥1 with leading coefficient an≠0 has derivative degree n−1.

An equivalent compact statement is

P(x)=∑j=0najxj,P′(x)=∑j=1njajxj−1.

The constant term contributes zero. For an empty second sum, the derivative is zero. No term containing a negative power is needed to differentiate the constant term at zero.

4. Six worked examples with full steps

Example 1: Basic Polynomial

Problem: Find ddx[3x4−5x2+7x−2]

Solution (Using All Four Rules):

  1. Sum/Difference Rule: Break into terms
    ddx[3x4]−ddx[5x2]+ddx[7x]−ddx[2]
  2. Constant Multiple Rule: Pull out constants
    3ddx[x4]−5ddx[x2]+7ddx[x]−ddx[2]
  3. Power Rule & Constant Rule: Differentiate each
    • 3·4x3=12x3
    • 5·2x=10x
    • 7·1=7
    • 0 (constant rule)
  4. Combine: 12x3−10x+7

Answer: 12x3−10x+7

Example 2: With Fractions

Problem: Find f′(x) if f(x)=23x6−14x3+52

Solution:

  1. Separate terms:
    f′(x)=ddx[23x6]−ddx[14x3]+ddx[52]
  2. Apply rules:
    • 23·6x5=4x5
    • 14·3x2=34x2
    • 0 (constant)
  3. Result: f′(x)=4x5−34x2

Answer: f′(x)=4x5−34x2

Example 3: Long Polynomial

Problem: Differentiate g(x)=x5+3x4−2x3+7x2−5x+10

Solution (Term-by-Term):

g′(x)=5x4+12x3−6x2+14x−5

Breakdown:

  • ddx[x5]=5x4
  • ddx[3x4]=12x3
  • ddx[−2x3]=−6x2
  • ddx[7x2]=14x
  • ddx[−5x]=−5
  • ddx[10]=0

Answer: g′(x)=5x4+12x3−6x2+14x−5

Example 4: Mixed Exponents

Problem: Find dydx for y=4x3−2x2+3x−7

Solution:

  1. Rewrite with exponents:
    y=4x3−2x−2+3x12−7
  2. Differentiate term-by-term:
    • ddx[4x3]=12x2
    • ddx[−2x−2]=−2(−2)x−3=4x−3
    • ddx[3x12]=3·12x−12=32x−12
    • ddx[−7]=0
  3. Combine:
    dydx=12x2+4x−3+32x−12
  4. Rewrite (optional):
    dydx=12x2+4x3+32x

Answer: dydx=12x2+4x3+32x

Example 5: Factored Form (Expand to Use Linearity)

Problem: Find h′(x) for h(x)=(x+2)(x−3)

Solution:

  1. Expand first:
    h(x)=x2−3x+2x−6=x2−x−6
  2. Now differentiate:
    h′(x)=2x−1

Answer: h′(x)=2x−1

Note: You could use the Product Rule (Topic 2.8), but expanding first is usually simpler for polynomials!

Example 6: Combining Like Terms

Problem: Differentiate f(x)=2x3+5x3−x2+4x2

Solution:

  1. Option 1: Simplify first (recommended)
    • Combine: f(x)=7x3+3x2
    • Differentiate: f′(x)=21x2+6x
  2. Option 2: Differentiate then simplify
    • f′(x)=6x2+15x2−2x+8x
    • Combine: f′(x)=21x2+6x

Answer: f′(x)=21x2+6x

Tip: Simplifying BEFORE differentiating saves work!

Domain check: Examples 1, 2, 3, 5 and 6 are polynomials with derivatives at every real input. Example 4 contains both a square root and a reciprocal, so the original function and derivative are defined only for x>0. Its positive reciprocal derivative term comes from multiplying two negative factors.

5. Why the rules work: limit proofs

Proof of the Sum Rule

Theorem: If f and g are differentiable, then ddx[f(x)+g(x)]=f′(x)+g′(x)

Proof:

  1. Start with limit definition:
    ddx[f(x)+g(x)]=limh→0[f(x+h)+g(x+h)]−[f(x)+g(x)]h
  2. Rearrange numerator:
    =limh→0[f(x+h)−f(x)]+[g(x+h)−g(x)]h
  3. Separate into two fractions:
    =limh→0[f(x+h)−f(x)h+g(x+h)−g(x)h]
  4. Use limit law (limit of sum = sum of limits):
    =limh→0f(x+h)−f(x)h+limh→0g(x+h)−g(x)h
  5. Recognize derivatives:
    =f′(x)+g′(x)✓

Proof of the Constant Multiple Rule

Theorem: If f is differentiable and c is a constant, then ddx[c·f(x)]=c·f′(x)

Proof:

  1. Start with limit definition:
    ddx[c·f(x)]=limh→0c·f(x+h)−c·f(x)h
  2. Factor out constant c from numerator:
    =limh→0c[f(x+h)−f(x)]h
  3. Use limit law (constant can be pulled out):
    =c·limh→0f(x+h)−f(x)h
  4. Recognize derivative:
    =c·f′(x)✓

Difference rule: Replace g by −g in the sum rule and apply the constant multiple rule with scalar −1. The constant rule has its own direct proof below; an expression involving x−1 would not justify a derivative at zero.

Direct proof of the constant rule

For the constant function F(x)=c, the two values in the numerator agree. At every interior point in its domain,

F′(x)=limh→0c−ch=limh→00=0.

The quotient equality holds for h≠0; the limit then exists. This establishes the result at zero as well when zero is an interior domain point. At a domain endpoint, identify any one-sided derivative convention separately.

Hypotheses behind the proofs: Work at a common interior input where the component functions are defined nearby and differentiable. Their difference-quotient limits are finite. This is what permits separating a sum limit or pulling out a fixed scalar. The statements give a sufficient rule; they are not a test that each component must be differentiable whenever the sum is.

6. Know where linearity does and does not apply

Do not split a quotient into nonexistent derivative limits

Let f(x)=|x| and g(x)=−|x|. Neither has a finite derivative at zero, but their sum is the zero function, whose derivative is zero. It would be invalid to compute f′(0)+g′(0), since neither summand exists.

|h|−|h|h=0(h≠0),(f+g)′(0)=0.

This does not contradict the sum rule: its component differentiability hypotheses are absent. Review differentiability and continuity when a component has a corner, cusp or excluded input.

Variable factors, products and quotients

For x·x2=x3, the derivative is 3x2, not the 2x2 obtained by treating the first variable factor as constant. Combine powers first or use the product rule. Likewise, a quotient of variable functions needs valid simplification or the quotient rule.

Keep the original domain after cancellation

The expression x2x equals x only for x≠0. Its derivative is one on that original domain. Cancellation alone does not define the original function or its derivative at zero.

If f is undefined at an input, writing 0f does not silently extend its domain there. To introduce a new zero function or another extension, define it explicitly.

7. Use derivative values and function data

A linear combination at a point

Suppose f and g are differentiable at two and the given values are:

Inputf(x)g(x)f′(x)g′(x)
25−1−34

For H(x)=3f(x)−2g(x)+7, linearity gives

H′(x)=3f′(x)−2g′(x).
H′(2)=3(−3)−2(4)=−17.

Use derivative data to find this rate. The original function values instead give the point:

H(2)=3(5)−2(−1)+7=24.
y−24=−17(x−2).

This is the tangent equation. Keep H(2) and H′(2) distinct. If the function outputs are in a common unit and the input is measured in another, the derivative is measured in output units per input unit.

Reuse a polynomial example

In Example 1, F(x)=3x4−5x2+7x−2 and F′(x)=12x3−10x+7. At one, F(1)=3 while F′(1)=9. Thus the tangent equation is y−3=9(x−1). The value three is the height; nine is the instantaneous rate.

8. Compare all four rules

Rule Name Formula In Words Example
Constant Rule ddx[c]=0 Derivative of constant is zero ddx[5]=0
Constant Multiple ddx[cf]=c·f′ Pull constant out, then differentiate ddx[7x2]=14x
Sum Rule ddx[f+g]=f′+g′ Derivative of sum = sum of derivatives ddx[x2+x]=2x+1
Difference Rule ddx[f−g]=f′−g′ Derivative of difference = difference of derivatives ddx[x3−x]=3x2−1

9. Strategies, workflow and common mistakes

Essential Tips

  • Simplify when helpful: Combining like terms can shorten the calculation. Differentiating first and then simplifying is equally valid; Example 6 demonstrates both methods.
  • Expand products: For simple polynomials, expand before differentiating (Product Rule not needed yet)
  • Constants vanish: Any standalone number becomes zero when differentiated
  • Work term-by-term: Break complex expressions into pieces, differentiate each, then recombine
  • Keep track of signs: Negative signs stay with their terms through differentiation
  • Fractional coefficients: Just multiply them by the power rule exponent
  • Check structure, not just term count: A nonconstant polynomial of degree n≥1 has derivative degree n−1. The number of visible terms can change when terms combine or cancel, so counting terms is not a reliable general test.

Step-by-Step Workflow

Workflow for a finite sum of powers: Identify the variable and domain first. More general products, quotients and compositions can require other rules.

  1. REWRITE: Convert all roots and fractions to exponent form
  2. EXPAND: Multiply out any products (if simple enough)
  3. COMBINE: Add/subtract like terms to simplify
  4. SEPARATE: Identify each term (use Sum/Difference Rules)
  5. DIFFERENTIATE: Apply Constant Multiple Rule + Power Rule to each term
  6. SIMPLIFY: Combine results and clean up notation
  7. VERIFY: For a nonconstant polynomial, check that the degree drops by one. For roots and reciprocals, check coefficient arithmetic and the differentiability domain instead.

Memory Aids

Acronym for the Four Rules:

"CSCD" - Constant, Sum, Constant Multiple, Difference

Rhyme to Remember:

"Constants are zero, pull numbers out,
Add derivatives when adding throughout.
Subtract derivatives when you subtract—
Linearity makes differentiation exact!"

Common Mistakes to Avoid

  • Mistake 1: Confusing a constant with a constant times the independent variable. The correct derivatives are ddx[5x]=5 and ddx[5]=0.
  • Mistake 2: Losing the minus sign belonging to a term. For x2−3x, keep the first derivative positive and subtract the derivative of the second term: ddx[x2−3x]=2x−3. Do not subtract both derivatives.
  • Mistake 3: Treating a product as a sum. Here (x2)(x3)=x5 by exponent laws, so one power rule gives 5x4. The product rule is another valid method; multiplying the individual derivatives would be incorrect.
  • Mistake 4: Losing constant multiples: ddx[6x3]=18x2, not 3x2
  • Mistake 5: Leaving avoidable clutter. For example, 2x+3x=5x. Both forms are equivalent, but the combined expression is clearer; follow any requested final form.
  • Mistake 6: Assuming the product of derivatives is a general product formula. In general, ddx[fg]=f′g+fg′, not merely f′g′. For example, differentiating x·x=x2 gives 2x, whereas multiplying the individual derivatives gives one.
  • Mistake 7: Forgetting that x has an invisible coefficient of 1
  • Mistake 8: Ignoring a composite inner function. The chain rule is introduced in Unit 3. For a simple polynomial composition you may expand first; otherwise an inner derivative is needed.

10. Six practice problems with solutions

Differentiate each function, then open the solution. All six are polynomials after any indicated expansion or simplification, so their function and derivative domains are all real inputs.

1. A cubic polynomial

f(x)=8x3+5x2−3x+7.

Show the term-by-term solution
f′(x)=8(3)x2+5(2)x−3+0.
f′(x)=24x2+10x−3.

The constant seven contributes zero; the linear term contributes negative three.

2. Negative coefficients

g(x)=−4x5+2x3−x+12.

Show the coefficient and sign checks
g′(x)=−4(5)x4+2(3)x2−1+0.
g′(x)=−20x4+6x2−1.

The coefficient of the linear term is negative one.

3. Fractional coefficients

h(x)=34x4−23x2+12.

Show the exact fraction solution
h′(x)=34(4)x3−23(2)x+0.
h′(x)=3x3−43x.

The fractions are constant coefficients. Only the variable powers change under the power rule.

4. Larger powers and coefficients

k(x)=100x10−50x5+25x2−10.

Show the power-rule calculation
k′(x)=100(10)x9−50(5)x4+25(2)x.
k′(x)=1000x9−250x4+50x.

The original degree ten drops to nine. The constant term disappears.

5. A factored polynomial

f(x)=(x−1)(x+3).

Show the expansion and derivative
f(x)=x2+2x−3.
f′(x)=2x+2.

Expanding turns the product into a sum, allowing term-by-term differentiation.

6. Combine like terms

g(x)=x2+2x2−5+3.

Show both valid calculation orders
g(x)=3x2−2,g′(x)=6x.

Alternatively, differentiating first gives 2x+4x−0+0=6x. Both methods agree.

11. Write a clear AP-style response

How to write a clear AP-style solution:

  • Show rule application: On FRQ, briefly indicate which rules you're using
  • Use a clear final form: Combine like terms and simplify coefficients when useful or requested. Equivalent exact expressions can represent the same derivative.
  • Work systematically: Go term-by-term to avoid missing anything
  • Check signs carefully: A minus sign stays attached to its term, but it can multiply a negative exponent coefficient. For example, ddx[−2x−2]=4x−3.
  • Show the requested reasoning: Give enough differentiation steps to support the result. If the task asks for a proof or the limit definition, an unsupported shortcut does not establish it.
  • Recognize the structure: Linearity applies to sums, differences and constant multiples. A product, quotient or composition of variable functions requires valid algebra or an additional differentiation rule.
  • Equivalent representations: 32x=1.5x. Exact fraction notation avoids unintended rounding; use any precision or form specified in the task.

Common FRQ Formats:

  1. Find f′(x) for a specified function.
  2. Show a claimed derivative identity for f(x), providing the calculation or proof requested.
  3. Find a tangent slope by evaluating f′(a) at an allowed input a.
  4. "Determine the rate of change..." (find and evaluate derivative)
  5. Find inputs satisfying a stated derivative equation: differentiate, solve the equation, then check the original domain.
  6. Find a tangent equation using both the point (a,f(a)) and the slope f′(a).

12. Quick reference for derivative rules

THE FOUR FUNDAMENTAL RULES

Rule Formula Quick Guide
Constant ddx[c]=0 Numbers → 0
Constant Multiple ddx[cf]=c·f′ Pull out, differentiate
Sum ddx[f+g]=f′+g′ Add derivatives
Difference ddx[f−g]=f′−g′ Subtract derivatives

Together these establish: DIFFERENTIATION IS LINEAR!

Use these rules where the component functions have finite derivatives, and keep scalar coefficients constant with respect to the differentiation variable. They describe finite sums; differentiating an infinite series term by term requires additional conditions.

13. Connections and next study steps

Topic 2.6 connects to:

  • Topic 2.5: The power rule differentiates each power; linearity combines those derivatives with their original constant coefficients.
  • Topics 2.7–2.10: Derivatives of trigonometric, exponential and logarithmic functions can be combined linearly. Product and quotient rules handle other structures; the chain rule comes in Unit 3.
  • Unit 3: Composite, implicit and inverse differentiation use these rules within larger calculations.
  • Unit 4: Motion problems use derivatives of position functions
  • Units 5 and 6: Unit 5 applies derivatives to critical points, graph behavior and optimization. Unit 6 develops integration and accumulation, with its own linearity properties and links to differentiation.
  • Beyond polynomials: A linear combination can include any differentiable component functions; the component derivative formulas may come from other topics.

Remember: The constant rule gives ddx[c]=0. The other three rules are captured by (af+bg)′=af′+bg′ when the coefficients are constant and both functions are differentiable at the input. Differentiate each component, retain its coefficient and sign, and combine the results. Check the domain and function structure before applying the rule.

Independent NUM8ERS study resource. AP® is a trademark of the College Board, which does not endorse this resource.

Back to top ↑