AP Calculus AB · Topic 2.6 · Reading guide, about 6 min

Linearity: differentiating sums and scaled functions

Constant, constant multiple, sum and difference rules: differentiate polynomials term by term and use given derivative values.

In one minute

Most functions you meet are assembled by adding, subtracting and scaling simpler pieces. Linearity says that taking a derivative respects that assembly: you can differentiate each piece separately, keep the same constants and signs, and put the results back together.

This is the rule that turns a long polynomial into a few lines of routine work. It also lets you answer questions like "if f′(2)=4f'(2)=4 and g′(2)=−1g'(2)=-1, what is the slope of 3f−2g3f-2g at x=2x=2" without knowing a formula for either function.

Key terms

Constant rule
The derivative of a number that does not depend on xx is 00, because its graph is a flat horizontal line.
Constant multiple rule
ddx[c f(x)]=c f′(x)\frac{d}{dx}[c\,f(x)] = c\,f'(x): a constant factor comes out front and stays there.
Sum rule
ddx[f(x)+g(x)]=f′(x)+g′(x)\frac{d}{dx}[f(x)+g(x)] = f'(x)+g'(x): the derivative of a sum is the sum of the derivatives.
Difference rule
ddx[f(x)−g(x)]=f′(x)−g′(x)\frac{d}{dx}[f(x)-g(x)] = f'(x)-g'(x): subtract the derivatives in the same order.
Linearity
The combined property (af+bg)′=af′+bg′(af+bg)' = af' + bg' for constants aa and bb; it covers the constant multiple, sum and difference rules at once.
Term by term
Differentiating a sum of pieces one piece at a time, which is how every polynomial is handled.
Polynomial
A sum of constant multiples of whole-number powers of xx, such as 4x3−5x2+7x−94x^3-5x^2+7x-9.
Horizontal tangent
A point where the derivative equals 00, so the tangent line is flat; found by setting f′(x)=0f'(x)=0 and solving.
Tangent line
The line through (a,f(a))(a,f(a)) with slope f′(a)f'(a), written y−f(a)=f′(a)(x−a)y-f(a)=f'(a)(x-a).

The four rules and why they work

Start from the limit definition in 2.2. The derivative of f+gf+g is lim⁡h→0[f(x+h)+g(x+h)]−[f(x)+g(x)]h\lim_{h\to 0}\frac{[f(x+h)+g(x+h)]-[f(x)+g(x)]}{h}. Regroup the numerator into the ff part and the gg part. Each part is a difference quotient, and a limit of a sum is the sum of the limits, so you get f′(x)+g′(x)f'(x)+g'(x). The constant multiple rule works the same way: a constant factor can be pulled outside a limit.

The constant rule is the picture of a flat line. If f(x)=7f(x)=7 then every difference quotient is 7−7h=0\frac{7-7}{h}=0. Be careful about what counts as a constant: π2\pi^2, e3e^3 and ln⁡5\ln 5 are all fixed numbers, so each has derivative 00. Only expressions that contain xx change.

The difference rule is the sum rule applied to f+(−1)gf+(-1)g. That is why the sign in front of a term travels with its derivative. If a term is −2x-2\sqrt{x}, its derivative carries the −2-2 along.

Polynomials and rewritten powers

Combine linearity with the power rule from 2.5 and every polynomial is easy. For y=4x3−9x+6y=4x^3-9x+6, treat the three terms separately: 4x34x^3 becomes 12x212x^2, −9x-9x becomes −9-9, and the constant 66 becomes 00. So y′=12x2−9y'=12x^2-9.

Many expressions are not written as powers yet. Rewrite first, then differentiate. A radical becomes a fractional power, and a variable in a denominator becomes a negative power. A denominator that is just a number simply splits off as a constant multiple. The table shows the habit.

Rewrite, then apply linearity and the power rule
ExpressionRewrittenDerivative
7x57x^57x57x^535x435x^4
6x6\sqrt{x}6x1/26x^{1/2}3x−1/2=3x3x^{-1/2}=\frac{3}{\sqrt{x}}
10x3\frac{10}{x^3}10x−310x^{-3}−30x−4-30x^{-4}
x3−4x2\frac{x^3-4x}{2}12x3−2x\frac12x^3-2x32x2−2\frac32x^2-2
x2+5xx\frac{x^2+5x}{x} for x≠0x\neq 0x+5x+511
π2\pi^2a constant00

A fully worked example

Problem: let y=3x4−2x+5x2−8x+11y=3x^4-2\sqrt{x}+\frac{5}{x^2}-8x+11. Find the equation of the tangent line at x=1x=1.

Step 1, rewrite every term as a power: y=3x4−2x1/2+5x−2−8x+11y=3x^4-2x^{1/2}+5x^{-2}-8x+11.

Step 2, differentiate term by term. 3x43x^4 gives 12x312x^3. For −2x1/2-2x^{1/2}, multiply by the exponent 12\frac12 to get −1-1, and lower the exponent to −12-\frac12: the term is −x−1/2-x^{-1/2}. For 5x−25x^{-2}, multiply 55 by −2-2 to get −10-10, and lower the exponent to −3-3: the term is −10x−3-10x^{-3}. The term −8x-8x gives −8-8, and 1111 gives 00. So y′=12x3−x−1/2−10x−3−8y'=12x^3-x^{-1/2}-10x^{-3}-8.

Step 3, evaluate at x=1x=1. Every power of 11 is 11, so y′(1)=12−1−10−8=−7y'(1)=12-1-10-8=-7. The point on the curve is y(1)=3−2+5−8+11=9y(1)=3-2+5-8+11=9.

Step 4, write the line: y−9=−7(x−1)y-9=-7(x-1), which simplifies to y=−7x+16y=-7x+16. Check: at x=1x=1 the line gives −7+16=9-7+16=9, matching the curve, and its slope is −7-7.

Working from given values

Linearity lets you find derivatives of combinations from numbers alone. Suppose h(x)=3f(x)−2g(x)+5h(x)=3f(x)-2g(x)+5, with f′(2)=4f'(2)=4 and g′(2)=−1g'(2)=-1. Differentiate: h′(x)=3f′(x)−2g′(x)+0h'(x)=3f'(x)-2g'(x)+0. At x=2x=2, h′(2)=3(4)−2(−1)=12+2=14h'(2)=3(4)-2(-1)=12+2=14. Notice that the +5+5 vanished and that the minus sign in front of 2g2g combined with g′(2)=−1g'(2)=-1 to give a positive 22.

The same skill solves for unknown constants. If the derivative of ax3+2xax^3+2x at x=1x=1 must equal 1111, then 3ax2+23ax^2+2 at x=1x=1 is 3a+2=113a+2=11, so a=3a=3. When a problem asks where a tangent is horizontal, differentiate, set the result to 00, and solve; a polynomial such as x3−12xx^3-12x has f′(x)=3x2−12=0f'(x)=3x^2-12=0 at x=2x=2 and x=−2x=-2.

When a graph is given, remember that f′f' is a slope. A sum of two functions has a slope equal to the sum of their slopes at the same xx, which you can read off two tangent lines.

What linearity does not cover

Linearity handles a constant times a function, such as 5sin⁡x5\sin x or 7⋅f(x)7\cdot f(x). It does not handle a product of two functions that both change. The expression (3x)(5x)(3x)(5x) is a product of two functions of xx, and its derivative is not 3⋅5=153\cdot 5=15. Expand it to 15x215x^2 and you get 30x30x, or wait for the product rule in 2.8.

In the same way, a quotient with a variable denominator, such as 5x2+1\frac{5}{x^2+1}, is not a constant multiple; the denominator contains xx and needs the quotient rule in 2.9 or the chain rule in 3.1. The test is simple: if the only thing multiplying or dividing is a plain number, use linearity.

How it connects

  • Back to 2.5: the power rule gives the derivative of each term; linearity glues the terms together.
  • Back to 2.2: the sum and constant multiple rules come straight from limit laws applied to the difference quotient.
  • Forward to 2.7: you will add sin⁡x\sin x, exe^x and ln⁡x\ln x to the list of terms you can combine this way.
  • Forward to 2.8 and 2.9: products and quotients need new rules because they are not covered by linearity.
  • Forward to 3.6: the second derivative is found by applying these same rules to f′f'.

Common mistakes

  • Differentiating a constant term as if it were a power. The derivative of 1111 is 00, not 1111 and not 11. Also remember that π2\pi^2 is a constant.
  • Dropping a sign. In −2x-2\sqrt{x} the minus belongs to the term. Differentiate 2x1/22x^{1/2} and keep the minus on the result.
  • **Splitting a denominator that contains xx.** 5x2+1\frac{5}{x^2+1} is not 5x2+51\frac{5}{x^2}+\frac{5}{1}. Only a numerator can be split over a single denominator.
  • Treating a product as a constant multiple. The derivative of (3x)(5x)(3x)(5x) is 30x30x, not 1515.
  • Forgetting to rewrite before differentiating. 10x3\frac{10}{x^3} must become 10x−310x^{-3} first; otherwise the power rule has nothing to act on.

How it shows up on the exam

  • Short polynomial or radical derivatives in the no-calculator section, often with a tangent line or a horizontal tangent attached.
  • Values of f′f' and g′g' given in a table or graph, with a question about the derivative of a combination such as 2f−g+72f-g+7 at one input.
  • Questions where an unknown constant in the formula is found from a stated slope.

Check yourself

  1. Why does the derivative of π3\pi^3 equal 00 while the derivative of x3x^3 does not?
  2. If f′(1)=5f'(1)=5, what is the derivative of 4f(x)−x2+94f(x)-x^2+9 at x=1x=1, and which rules did you use?
  3. How would you rewrite 3x−x24\frac{3}{\sqrt{x}}-\frac{x^2}{4} before differentiating?
  4. Explain in one sentence why linearity cannot be used on x⋅x2x\cdot x^2 as a "product of derivatives".

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.