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 9 November 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.

Coefficient example

Identify the fixed coefficients

1 · Differentiate with fixed parameters

When a and b are declared constant, ddx[ax2+bx+7]=2ax+b.

2 · Check what varies with the input

The factor x varies with the input and requires the appropriate rule for its role in the expression.

2. The four derivative rules

Rule 1

A constant has zero derivative

1 · Read the rule and its conditions

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.

2 · Apply the rule to examples

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

Key Takeaway: Constants vanish when you differentiate!

Rule 2

Keep the constant multiplier

1 · Read the rule and its conditions

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."

2 · Apply the rule to 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

Add the component derivatives

1 · Read the rule and its conditions

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)

2 · Apply the rule to 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

Subtract the second derivative

1 · Read the rule and its conditions

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)

2 · Apply the rule to 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

Differentiate a polynomial term by term

1 · Separate the signed terms

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

Sum/Difference Rule: Break into terms

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

2 · Keep each constant coefficient

Constant Multiple Rule: Pull out constants

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

3 · Use the power and constant rules

Power Rule & Constant Rule: Differentiate each

3·4x3=12x3

5·2x=10x

7·1=7

0 (constant rule)

4 · Combine the results

Combine: 12x3−10x+7

Answer: 12x3−10x+7

Example 2

Keep the fractional coefficients

1 · Separate terms and keep their signs

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

Separate terms:

f′(x)=ddx[23x6]−ddx[14x3]+ddx[52]

2 · Multiply the fractions by the original exponents

Apply rules:

23·6x5=4x5

14·3x2=34x2

0 (constant)

3 · Collect the derivative terms

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

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

Example 3

Track each term of a longer polynomial

1 · Read the six polynomial terms

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

2 · Differentiate the higher powers

ddx[x5]=5x4

ddx[3x4]=12x3

ddx[−2x3]=−6x2

3 · Differentiate the quadratic, linear and constant terms

ddx[7x2]=14x

ddx[−5x]=−5

ddx[10]=0

4 · Collect the signed terms

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

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

Example 4

Combine powers, a root and a reciprocal

1 · Check the domain and rewrite the powers

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

Positive inputs satisfy both the square-root and reciprocal restrictions.

Rewrite with exponents:

y=4x3−2x−2+3x12−7

2 · Differentiate every term

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 the powers and write the reciprocal forms

Combine:

dydx=12x2+4x−3+32x−12

Rewrite (optional):

dydx=12x2+4x3+32x

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

Example 5

Expand the factored polynomial

1 · Identify the product

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

2 · Expand to a polynomial

Expand first:

h(x)=x2−3x+2x−6=x2−x−6

3 · Differentiate the sum

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

Compare two calculation orders

1 · Identify the like terms

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

2 · Combine terms first

Option 1: Simplify first (recommended)

Combine: f(x)=7x3+3x2

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

3 · Differentiate first as a second method

Option 2: Differentiate then simplify

f′(x)=6x2+15x2−2x+8x

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

4 · Compare the results

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

Limit proof

Derive the sum rule

1 · Start at a common differentiable input

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

Start with limit definition:

ddx[f(x)+g(x)]=limh→0[f(x+h)+g(x+h)]−[f(x)+g(x)]h

2 · Regroup and split the numerator

Rearrange numerator:

=limh→0[f(x+h)−f(x)]+[g(x+h)−g(x)]h

Separate into two fractions:

=limh→0[f(x+h)−f(x)h+g(x+h)−g(x)h]

3 · Apply the sum limit law

Use limit law (limit of sum = sum of limits):

=limh→0f(x+h)−f(x)h+limh→0g(x+h)−g(x)h

4 · Recognize the two derivatives

Recognize derivatives:

=f′(x)+g′(x)✓

Limit proof

Derive the constant multiple rule

1 · Write the difference quotient

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

Start with limit definition:

ddx[c·f(x)]=limh→0c·f(x+h)−c·f(x)h

2 · Factor out the fixed coefficient

Factor out constant c from numerator:

=limh→0c[f(x+h)−f(x)]h

3 · Use the constant multiple limit law

Use limit law (constant can be pulled out):

=c·limh→0f(x+h)−f(x)h

4 · Identify the remaining derivative

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.

Limit proof

A constant gives a zero numerator

1 · Compare the function values

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

2 · Evaluate the quotient and its limit

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

3 · Check the input and domain

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. Check the conditions for linearity

Cancellation example

Two corners can cancel

1 · Check the components at zero

Let f(x)=|x| and g(x)=−|x|. Both components have corners at zero, so f′(0)+g′(0) is undefined. Their sum is the zero function. Use its difference quotient directly.

2 · Evaluate the sum directly

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

3 · State when the sum rule applies

The sum rule applies when both component derivatives exist at the input. Review differentiability and continuity when a component has a corner, cusp or excluded input.

Two corners and a flat sum

−2 −1 0 1 2 Input −2 −1 0 1 2 Output First component Second component Sum
The components f(x)=|x| and g(x)=−|x| each have unequal one-sided slopes at the origin. Their sum f(x)+g(x)=0 is the blue horizontal line through (0,0), with slope zero.

Structure example

Recognize a variable factor

1 · Combine the powers

For x·x2=x3, the derivative is 3x2, not the 2x2 obtained by treating the first variable factor as constant.

2 · Choose a rule for the structure

Combine powers first or use the product rule. Likewise, a quotient of variable functions needs valid simplification or the quotient rule.

Domain example

Keep the original domain after cancellation

1 · Track the denominator restriction

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.

2 · Define an extension explicitly

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

Data example

Build a tangent from function and derivative values

1 · Read the values at the target input

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

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

2 · Combine the derivatives to find the slope

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

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

3 · Combine the function values to find the point

The derivative values give the rate. Use the original function values to find the point.

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

4 · Write the tangent equation and interpret the rate

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.

Tangent example

Use the derivative of a polynomial

1 · Identify the polynomial and derivative

In Example 1, F(x)=3x4−5x2+7x−2 and F′(x)=12x3−10x+7.

2 · Evaluate the height and slope

At one, F(1)=3 gives the height and F′(1)=9 gives the slope.

3 · Write the line and interpret the rate

The tangent equation is y−3=9(x−1). The instantaneous rate is nine output units per input unit.

Read the slope on the tangent

0.0 0.5 1.0 1.5 Input −6 −3 0 3 6 9 12 15 Output Polynomial Tangent P Q
At P=(1,3), the dashed tangent y=9x−6 has slope F′(1)=9. The square point Q=(43,6) is on that line. The dotted guide shows a rise of 3 over a run of 13.

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

Practice 1 · Solution

A cubic polynomial

1 · Differentiate each signed term

f′(x)=8(3)x2+5(2)x−3+0.

2 · Combine the derivative terms

f′(x)=24x2+10x−3.

3 · Check the linear and constant terms

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

Practice 2 · Solution

Negative coefficients

1 · Carry the coefficients through

g′(x)=−4(5)x4+2(3)x2−1+0.

2 · Simplify the derivative

g′(x)=−20x4+6x2−1.

3 · Check the linear term

The coefficient of the linear term is negative one.

3. Fractional coefficients

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

Show the exact fraction solution

Practice 3 · Solution

Fractional coefficients

1 · Multiply the exact coefficients

h′(x)=34(4)x3−23(2)x+0.

2 · Collect the terms

h′(x)=3x3−43x.

3 · Explain how the exponent and coefficient change

Keep each fractional coefficient outside its derivative. The power rule multiplies that coefficient by the original exponent and lowers the exponent by one.

4. Larger powers and coefficients

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

Show the power-rule calculation

Practice 4 · Solution

Larger powers and coefficients

1 · Apply the power rule to each term

k′(x)=100(10)x9−50(5)x4+25(2)x.

2 · Simplify the coefficients

k′(x)=1000x9−250x4+50x.

3 · Check the degree

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

Practice 5 · Solution

A factored polynomial

1 · Expand the product

f(x)=x2+2x−3.

2 · Differentiate the polynomial

f′(x)=2x+2.

3 · Explain why expansion works

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

Practice 6 · Solution

Combine like terms

1 · Simplify and differentiate

g(x)=3x2−2,g′(x)=6x.

2 · Differentiate before simplifying

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.