Tutorials › Calculus I › The Sum And Difference Rules

Basic Differentiation Rules · Tutorial 420 of 1495

The Sum And Difference Rules

Learn why derivatives distribute across finite sums and differences, when the rules apply, and how to use them carefully.

Beginner 9 min read

What You'll Learn

  • State the sum and difference rules and their differentiability conditions
  • Derive both rules from the difference quotient and limit laws
  • Apply the rules to expressions containing several functions
  • Evaluate a derivative at a specified input using component derivative values
  • Recognize and correct common errors involving sums and differences

Why Sums and Differences Have Simple Derivatives

A function may be built by adding or subtracting simpler functions. If we know how each part changes near an input, it is natural to ask whether the whole expression changes according to the sum or difference of those rates.

The answer is yes, provided the component functions are differentiable at the input in question. The reason is visible directly in the difference quotient: the change in a sum is the sum of the changes, and the limit of a finite sum is the sum of its limits.

Key idea: If \(f\) and \(g\) are differentiable at \(a\), then \(f+g\) and \(f-g\) are differentiable at \(a\), with derivatives obtained by adding or subtracting the component derivatives.

Definitions and the Rules

For a function \(f\) defined on an interval around \(a\), its derivative at \(a\), when it exists, is the limit of its difference quotient:

$$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$

In this definition, \(h\) is nonzero while the quotient is formed, and the limit is taken as \(h\) approaches zero. The derivative records the limiting rate of change at \(a\).

The Sum Rule: If \(f\) and \(g\) are differentiable at \(a\), then \(f+g\) is differentiable at \(a\), and $$ (f+g)'(a)=f'(a)+g'(a). $$
The Difference Rule: If \(f\) and \(g\) are differentiable at \(a\), then \(f-g\) is differentiable at \(a\), and $$ (f-g)'(a)=f'(a)-g'(a). $$

These rules apply at any point where both component derivatives exist. They do not require either function to be differentiable everywhere. To obtain a derivative function on an interval, the component functions must be differentiable at every point of that interval.

Why the Rules Work

The proof uses the derivative definition and the limit law that the limit of a sum of two functions is the sum of their limits, when both limits exist as finite numbers. Differentiability of \(f\) and \(g\) at \(a\) supplies exactly those finite limits.

1
Write the difference quotient for the sum.
Use the definition of the derivative for \(f+g\).
2
Separate the changes.
Expand the numerator and split the quotient into the difference quotients for \(f\) and \(g\).
3
Take the limit.
Since both component limits exist, the sum limit is the sum of those limits.

In full, for \(h\ne 0\),

$$ \begin{aligned} \frac{(f+g)(a+h)-(f+g)(a)}{h} &=\frac{f(a+h)+g(a+h)-f(a)-g(a)}{h}\\ &=\frac{f(a+h)-f(a)}{h} +\frac{g(a+h)-g(a)}{h}. \end{aligned} $$

Because \(f\) and \(g\) are differentiable at \(a\), the two difference quotients on the right have finite limits \(f'(a)\) and \(g'(a)\). Therefore, taking the limit as \(h\to 0\) gives

$$ \begin{aligned} (f+g)'(a) &=\lim_{h\to 0}\frac{(f+g)(a+h)-(f+g)(a)}{h}\\ &=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h} +\lim_{h\to 0}\frac{g(a+h)-g(a)}{h}\\ &=f'(a)+g'(a). \end{aligned} $$

This also proves that the derivative of the sum exists at \(a\). For the difference, the same calculation changes only the sign of the second component:

$$ \begin{aligned} \frac{(f-g)(a+h)-(f-g)(a)}{h} &=\frac{f(a+h)-f(a)}{h} -\frac{g(a+h)-g(a)}{h}. \end{aligned} $$

Both limits on the right exist, so the limit of their difference exists and equals \(f'(a)-g'(a)\). This proves the Difference Rule, including its existence condition.

Using the Rules with Several Terms

The rules can be applied repeatedly to a finite sum or difference. For example, if \(f_1,\ldots,f_n\) are all differentiable at \(a\), then their sum is differentiable there and

$$ (f_1+\cdots+f_n)'(a)=f_1'(a)+\cdots+f_n'(a). $$

Likewise, parentheses can be handled by treating each grouped expression as a function, then applying the rules again. A negative sign in front of a function means its derivative is subtracted. The Constant Multiple Rule, established earlier, can also be used for numerical coefficients.

Worked Example: Differentiate a Sum of Two Functions

Let \(F(x)=x^2+3x\). The component functions are differentiable for every real \(x\). From the earlier results on powers, the identity function, and constant multiples, the derivatives of \(x^2\) and \(3x\) are \(2x\) and \(3\), respectively. Thus the Sum Rule gives

$$ F'(x)=2x+3. $$

To check this result directly from the difference quotient, calculate the change in \(F\):

$$ \begin{aligned} \frac{F(x+h)-F(x)}{h} &=\frac{(x+h)^2+3(x+h)-(x^2+3x)}{h}\\ &=\frac{x^2+2xh+h^2+3x+3h-x^2-3x}{h}\\ &=\frac{2xh+h^2+3h}{h}\\ &=2x+h+3, \qquad h\ne 0. \end{aligned} $$

Taking the limit gives

$$ F'(x)=\lim_{h\to 0}(2x+h+3)=2x+3. $$

This agrees with the result from the Sum Rule. At \(x=2\), for instance, \(F'(2)=2(2)+3=7\).

Worked Example: Differentiate a Difference

Consider \(G(x)=\dfrac{1}{x}-x^2+4\), defined for \(x\ne 0\). The reciprocal function is differentiable for \(x\ne0\), and \(x^2\) and the constant function are differentiable for every real \(x\). Apply the Difference Rule and the Sum Rule, using the earlier derivative results for these component functions:

$$ \begin{aligned} G'(x) &=\left(\frac{1}{x}\right)'-(x^2)'+(4)'\\ &=-\frac{1}{x^2}-2x+0\\ &=-\frac{1}{x^2}-2x,\qquad x\ne0. \end{aligned} $$

For a direct check, write the quotient and simplify it for \(h\ne0\), with \(x+h\ne0\):

$$ \begin{aligned} \frac{G(x+h)-G(x)}{h} &=\frac{\frac{1}{x+h}-(x+h)^2+4-\left(\frac{1}{x}-x^2+4\right)}{h}\\ &=\frac{\frac{1}{x+h}-\frac{1}{x}-2xh-h^2}{h}\\ &=\frac{\frac{x-(x+h)}{x(x+h)}-2xh-h^2}{h}\\ &=\frac{-h}{x(x+h)h}-\frac{2xh}{h}-\frac{h^2}{h}\\ &=-\frac{1}{x(x+h)}-2x-h. \end{aligned} $$

For fixed \(x\ne0\), \(x+h\ne0\) whenever \(h\) is sufficiently close to zero. Therefore,

$$ \lim_{h\to0}\left(-\frac{1}{x(x+h)}-2x-h\right) =-\frac{1}{x^2}-2x. $$

The direct calculation confirms the derivative and also shows why the domain restriction \(x\ne0\) matters.

Worked Example: Combine Derivative Values at One Input

Suppose \(u\), \(v\), and \(w\) are differentiable at \(a=2\), and the available information is

$$ u(2)=5,\quad v(2)=1,\quad w(2)=-2, \qquad u'(2)=4,\quad v'(2)=-3,\quad w'(2)=6. $$

Define \(H(x)=2u(x)-v(x)+w(x)\). By the Constant Multiple Rule and repeated use of the Sum and Difference Rules,

$$ \begin{aligned} H'(2) &=2u'(2)-v'(2)+w'(2)\\ &=2(4)-(-3)+6\\ &=8+3+6\\ &=17. \end{aligned} $$

Check the calculation from the difference quotient. For \(h\ne0\), its numerator separates as follows:

$$ \begin{aligned} \frac{H(2+h)-H(2)}{h} &=2\frac{u(2+h)-u(2)}{h} -\frac{v(2+h)-v(2)}{h} +\frac{w(2+h)-w(2)}{h}. \end{aligned} $$

As \(h\to0\), the three component quotients tend to \(4\), \(-3\), and \(6\). Hence the limit is \(2(4)-(-3)+6=17\), agreeing with the rule-based calculation. The function values at \(2\) are not needed to compute this derivative; the derivative values are what determine the limiting rate of change.

A Common Mistake: Multiplying Derivatives

A frequent error is to treat addition as if it required multiplying the component derivatives. For example, someone might write

$$ (f+g)'(x)=f'(x)g'(x). $$

This is not the Sum Rule. A concrete check exposes the error. Let \(f(x)=x^2\) and \(g(x)=x\). At \(x=2\), the actual derivative of their sum is

$$ (f+g)'(2)=f'(2)+g'(2)=4+1=5. $$

The incorrect multiplication would give \(f'(2)g'(2)=4(1)=4\), which is not \(5\). The correction is to match the operation on the functions: addition of functions uses addition of derivatives, and subtraction uses subtraction of derivatives.

Check the operation: The Sum and Difference Rules concern sums and differences of functions. They do not give a rule for differentiating products, quotients, or compositions.

When to Use These Rules

Before applying the rules, check that every component is differentiable at the input under consideration. If even one required component derivative does not exist there, these rules alone do not establish that the combined function is differentiable there.

  • Keep the signs attached to the terms they precede.
  • Use parentheses when subtracting a component derivative that contains multiple terms.
  • For a finite expression, apply the rules repeatedly until each component derivative is known.
  • State domain restrictions inherited from components, such as excluding inputs where a denominator is zero.
  • Do not infer differentiability just because a function is written as a sum; the component differentiability conditions matter.

The practical value of the rules is that they let a complicated expression be differentiated in manageable pieces, once the component derivatives are known. Their proof also gives a useful model for understanding differentiation rules: start with the difference quotient, use algebra to expose known limits, and then apply the appropriate limit laws.

Check Your Understanding

Answer each question using the derivative definition or the rules as appropriate.

  1. If \(f\) and \(g\) are differentiable at \(a\), state the derivative of \(f+g\) at \(a\).
  2. Why can the limit of the sum of two difference quotients be split into the sum of their limits in the proof?
  3. If \(p'(3)=2\), \(q'(3)=-5\), and \(R(x)=p(x)-2q(x)\), find \(R'(3)\).
  4. For \(J(x)=x^2-4x+1\), identify which operation rule is needed to combine the component derivatives.
  5. A learner claims \((f-g)'(a)=f'(a)+g'(a)\). What sign correction is needed?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon