A Reliable Workflow for Polynomial Derivatives
A polynomial may be presented in a form that hides its individual powers. It might contain parentheses, products, or several terms that need to be collected. A dependable way to handle such expressions is to expand them first, combine like terms, and then differentiate each term.
This order keeps the calculation visible. It also makes it easier to evaluate the derivative at a point and to check whether the result is plausible using secant slopes. The power rule and the basic rules for sums and constant multiples are the tools; the main skill here is using them carefully in a mixed calculation.
The Term-by-Term Rule
A polynomial in \(x\) is a finite sum of constant multiples of nonnegative integer powers of \(x\). For example, \(3x^4-2x^2+5x-7\) is a polynomial. The power rule says that the derivative of \(a x^k\), where \(a\) is constant and \(k\) is a positive integer, is \(ka x^{k-1}\). A constant has derivative zero.
In practice, each term is differentiated separately: multiply its coefficient by its exponent, then reduce the exponent by one. This rule applies to a polynomial once it has been written as a sum of powers. If the expression is given as a product, expand it first in this workshop; the product rule is a separate rule.
Why Differentiating Each Term Works
The reason the rule works is that the difference quotient of a finite sum is the sum of its difference quotients. The power rule supplies the limit for each individual power. Since a polynomial has only finitely many terms, the limit of the sum is the sum of those limits.
This derivation uses the power rule for individual powers and the fact that limits distribute over finite sums. It does not require differentiating a product of polynomial factors. Expanding a product here is an algebra step that rewrites the expression as a sum before differentiation.
Worked Examples
Worked Example: Expand, Differentiate, and Check at \(x=1\)
Let \(f(x)=(x+2)(x^2-x+3)\). Find \(f'(1)\), then check the value with secant slopes on either side of \(1\).
First expand each part of the product:
Differentiate term by term. The derivative of \(x^3\) is \(3x^2\), the derivative of \(x^2\) is \(2x\), the derivative of \(x\) is \(1\), and the derivative of \(6\) is \(0\). Thus
Substitute \(x=1\):
Now check with secant slopes. The function value at \(1\) is \(f(1)=1+1+1+6=9\). For a step \(h\ne0\), the secant slope from \(1\) to \(1+h\) is \(\frac{f(1+h)-f(1)}{h}\). With \(h=0.1\),
With \(h=-0.1\),
The two secant slopes, \(6.41\) and \(5.61\), lie on opposite sides of the derivative value \(6\). They are consistent with the derivative, although neither secant slope has to equal it.
Worked Example: Keep Track of Subtraction and Like Terms
Let \(g(x)=4(2x^2-3x+1)-(x-2)(x+3)\). Find \(g'(-2)\), and check it using nearby secant slopes.
Expand the first part and the product being subtracted:
Subtract the entire second expression, changing the sign of each of its terms:
Differentiate:
At \(x=-2\),
For a check, first calculate \(g(-2)\) from the original expression. The first part is \(4(2(4)-3(-2)+1)=4(8+6+1)=60\), while the product is \((-2-2)(-2+3)=(-4)(1)=-4\). Hence \(g(-2)=60-(-4)=64\).
At \(-1.9\), the expanded polynomial gives
At \(-2.1\),
These secant slopes, \(-40.3\) and \(-41.7\), are close to the derivative value \(-41\). The sign in the second denominator matters: the point \(-2.1\) is \(0.1\) to the left of \(-2\).
Worked Example: Expand Powers Before Evaluating
Let \(q(x)=(x-1)^3+2(x+1)^2-3x+5\). Find \(q'(2)\), and use secant slopes at \(2\) to check it.
Expand the powers:
Now combine all terms, including the remaining \(-3x+5\):
Differentiate each term and evaluate at \(2\):
For the secant checks, \(q(2)=8-4+8+6=18\). At \(2.1\),
At \(1.9\),
The slopes \(12.51\) and \(11.51\) bracket \(12\), supporting the derivative calculation.
Secant Slopes Are Checks, Not Substitutes
For a function \(p\), a secant slope between inputs \(a\) and \(a+h\), with \(h\ne0\), is \(\frac{p(a+h)-p(a)}{h}\). It measures the average change in function value across that interval. The derivative \(p'(a)\), when it exists, is the limit of these slopes as \(h\) approaches zero.
For a polynomial, the derivative exists at every real input. Choosing small positive and negative values of \(h\) can therefore provide a useful numerical check. But any one secant slope uses two distinct inputs, so it is generally only an approximation to the derivative at \(a\). A close match is evidence that the calculation is plausible; it is not a replacement for the symbolic differentiation.
A Common Error: Losing Terms When Subtracting
In the second example, the expression \(-(x^2+x-6)\) must become \(-x^2-x+6\). A common incorrect line is \(-(x^2+x-6)=-x^2+x-6\), which changes only the first sign. That would give the wrong polynomial and consequently the wrong derivative.
The correction is to distribute the negative sign to every term inside the parentheses:
Then combine like terms only after the signs are correct. It is also important not to confuse a derivative value with a function value: in general, \(p'(a)\) and \(p(a)\) are different quantities. Write the derivative first, then substitute \(a\) into that derivative.
Summary
For mixed polynomial differentiation, first turn the expression into a sum of powers by expanding and collecting like terms. Apply the power rule to each term, remember that constants differentiate to zero, and substitute the requested input into the derivative. Secant slopes from nearby points can check the value, provided their denominators retain the correct signs. The derivative is the limiting slope, not usually any single nearby secant slope.
Check Your Understanding
Work through these questions, keeping expansion, differentiation, and evaluation as separate steps.
- Expand \(r(x)=(x+1)(x^2+2x+4)\), then find and simplify \(r'(x)\).
- For \(s(x)=3(2x^2-x)-(x+2)(x-1)\), write the expanded polynomial and find \(s'(1)\).
- Differentiate \(t(x)=x^4-3x^2+2x-8\). Which term contributes zero, and why?
- If \(p'(a)=5\), must the secant slope from \(a\) to \(a+0.1\) equal \(5\)? Explain the distinction.
- For \(u(x)=x^2+2x\), calculate the secant slope from \(x=1\) to \(x=1.1\), then compare it with \(u'(1)\).