Tutorials › Calculus I › A Polynomial Derivative Workshop from First Principles

The Derivative from First Principles · Tutorial 374 of 1495

A Polynomial Derivative Workshop from First Principles

Work through polynomial derivative calculations from the definition, using expansion or factorization to simplify each difference quotient before taking its limit.

Intermediate 10 min read

What You'll Learn

  • Set up the derivative at an input using the difference quotient.
  • Choose expansion or factorization to simplify polynomial quotients.
  • Evaluate polynomial derivatives at specified inputs with exact arithmetic.
  • Compute a derivative at an arbitrary base point.
  • Derive and verify the first-principles formula for any polynomial.
  • Identify and correct a common error involving the subtraction of the function value.

From the Definition to a Calculation

A polynomial derivative problem is a useful place to practise the central idea of differentiation from first principles: compare the function value at an input with its value a small distance away, divide by that distance, and take a limit. The algebra can look different from one polynomial to another. Sometimes expanding powers makes the cancellation visible; sometimes factoring the numerator is shorter.

For a function \(f:\mathbb{R}\to\mathbb{R}\), the derivative at a real input \(a\), when it exists, is defined by the limit of its difference quotient.

Definition: The derivative of \(f\) at \(a\) is \(\displaystyle f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}\), provided this limit exists. The quotient is considered for \(h\ne 0\).

The subtraction \(f(a+h)-f(a)\) is essential: it removes the constant part of the numerator, leaving terms that can be divided by \(h\). For a polynomial, expansion or factorization will expose a factor of \(h\), or an equivalent cancellation, so that the quotient has a finite limit.

A Practical Choice: Expand or Factor?

Use expansion when substituting \(a+h\) into the polynomial gives manageable powers and you want to collect terms by powers of \(h\). Use factorization when the numerator has a recognizable difference of powers or another simple factorization. In either approach, keep the difference quotient intact until the cancellation is justified.

1
Write the quotient from the definition.
Use \(\frac{f(a+h)-f(a)}{h}\), not just \(f(a+h)/h\).
2
Simplify the numerator.
Expand powers, or factor the difference, to make the factor \(h\) visible.
3
Divide only after simplification.
Cancel a common factor \(h\) only when it is a factor of the entire numerator and denominator, with \(h\ne 0\).
4
Take the limit and check.
After cancellation, evaluate the limit as \(h\to 0\), then confirm that the simplified quotient has the claimed limiting value.

Worked Example: A Cubic at a Specified Input

Worked Example: Find the derivative of a cubic at \(x=2\)

Let \(f(x)=2x^3-3x^2+4x-5\). Find \(f'(2)\) from the definition.

First evaluate the function at the base point:

$$ f(2)=2(2^3)-3(2^2)+4(2)-5 =16-12+8-5 =7. $$

Now substitute \(2+h\) into the polynomial. Expand each power:

$$ \begin{aligned} f(2+h) &=2(2+h)^3-3(2+h)^2+4(2+h)-5\\ &=2(8+12h+6h^2+h^3)-3(4+4h+h^2)+8+4h-5\\ &=16+24h+12h^2+2h^3-12-12h-3h^2+8+4h-5\\ &=7+16h+9h^2+2h^3. \end{aligned} $$

Subtract \(f(2)=7\), divide by \(h\ne 0\), and take the limit:

$$ \begin{aligned} \frac{f(2+h)-f(2)}{h} &=\frac{(7+16h+9h^2+2h^3)-7}{h}\\ &=\frac{16h+9h^2+2h^3}{h}\\ &=16+9h+2h^2. \end{aligned} $$

As \(h\to 0\), the terms \(9h\) and \(2h^2\) tend to zero. Therefore \(f'(2)=16\). Checking the quotient directly, \(16+9h+2h^2\to16\), as required by the definition.

Worked Example: Factoring a Difference of Powers

Worked Example: Use factorization for a quartic at \(x=2\)

Let \(g(x)=x^4-16\). Find \(g'(2)\) from the definition, using factorization.

Since \(g(2)=2^4-16=0\), the difference quotient is

$$ \frac{g(2+h)-g(2)}{h} =\frac{(2+h)^4-16}{h}. $$

Apply the difference-of-fourth-powers factorization \(u^4-v^4=(u-v)(u+v)(u^2+v^2)\), with \(u=2+h\) and \(v=2\):

$$ \begin{aligned} \frac{(2+h)^4-16}{h} &=\frac{\big((2+h)-2\big)\big((2+h)+2\big)\big((2+h)^2+2^2\big)}{h}\\ &=\frac{h(4+h)(8+4h+h^2)}{h}\\ &=(4+h)(8+4h+h^2)\\ &=32+24h+8h^2+h^3. \end{aligned} $$

The cancellation is valid for \(h\ne0\), which is exactly the condition in the difference quotient. Taking the limit gives \(g'(2)=32\). As a check, the simplified quotient \(32+24h+8h^2+h^3\) tends to \(32\) as \(h\to0\).

Worked Example: A Cubic at an Arbitrary Base Point

Worked Example: Find the derivative at a general input

Let \(q(x)=x^3+2x^2-5x+1\). Find \(q'(a)\) for an arbitrary real number \(a\).

Write the definition using \(q(a)=a^3+2a^2-5a+1\):

$$ q'(a)=\lim_{h\to0} \frac{(a+h)^3+2(a+h)^2-5(a+h)+1-(a^3+2a^2-5a+1)}{h}. $$

Expand the powers and collect the terms that remain after subtracting \(q(a)\):

$$ \begin{aligned} q(a+h)-q(a) &=(3a^2h+3ah^2+h^3)+(4ah+2h^2)-5h\\ &=(3a^2+4a-5)h+(3a+2)h^2+h^3. \end{aligned} $$

Divide by \(h\ne0\):

$$ \frac{q(a+h)-q(a)}{h} =3a^2+4a-5+(3a+2)h+h^2. $$

Here \(a\) is fixed while \(h\to0\), so \(3a+2\) is a fixed number and \((3a+2)h\to0\). Also \(h^2\to0\). Thus \(q'(a)=3a^2+4a-5\) for every real \(a\). Checking the limit in the simplified quotient leaves exactly \(3a^2+4a-5\), confirming the result at an arbitrary base point.

Why the Method Works for Every Polynomial

The examples reflect a general fact: every polynomial has a derivative at every real input, and its difference quotient can be simplified to a polynomial in \(h\). The binomial theorem gives a direct justification. For a nonnegative integer \(k\), it states that \((a+h)^k=\sum_{j=0}^{k}\binom{k}{j}a^{k-j}h^j\). In the difference \((a+h)^k-a^k\), the \(j=0\) term cancels, so every remaining term contains \(h\).

Theorem: If \(p(x)=\sum_{k=0}^{n}c_kx^k\) is a real polynomial, then at every real number \(a\), its derivative from the definition exists and is \(\displaystyle p'(a)=\sum_{k=1}^{n}k c_k a^{k-1}\).

To prove the statement, apply the binomial theorem to each term of \(p(a+h)\), then subtract \(p(a)\):

$$ \begin{aligned} p(a+h)-p(a) &=\sum_{k=0}^{n}c_k\left((a+h)^k-a^k\right)\\ &=\sum_{k=1}^{n}c_k\sum_{j=1}^{k}\binom{k}{j}a^{k-j}h^j. \end{aligned} $$

The constant term, \(k=0\), contributes zero. In every other summand, each term has a factor \(h\). Since \(h\ne0\) in the difference quotient, divide each term by \(h\):

$$ \frac{p(a+h)-p(a)}{h} =\sum_{k=1}^{n}c_k\sum_{j=1}^{k}\binom{k}{j}a^{k-j}h^{j-1}. $$

For each fixed \(a\), this is a finite sum. When \(h\to0\), the terms with \(j=1\) remain, while terms with \(j\ge2\) contain a positive power of \(h\) and tend to zero. Since \(\binom{k}{1}=k\), the limit is \(\sum_{k=1}^{n}k c_k a^{k-1}\). This proves the formula and, because the limit exists for every real \(a\), proves differentiability everywhere for real polynomials.

A Common Mistake: Forgetting to Subtract the Function Value

A frequent error is to divide \(f(a+h)\) by \(h\) instead of forming \(f(a+h)-f(a)\). For example, let \(r(x)=x^2\) and \(a=3\). The incorrect calculation is

$$ \frac{r(3+h)}{h} =\frac{(3+h)^2}{h} =\frac{9}{h}+6+h. $$

This is not the difference quotient: it omits the required subtraction of \(r(3)=9\). The term \(9/h\) does not tend to zero as \(h\to0\), so discarding it to claim the answer is \(6\) is invalid. The correct calculation is

$$ \frac{r(3+h)-r(3)}{h} =\frac{(3+h)^2-9}{h} =\frac{6h+h^2}{h} =6+h \longrightarrow 6. $$

The correction follows the definition exactly: subtract the value at the base point first, simplify the whole numerator, and only then divide by \(h\).

What to Check in Your Own Work

Every polynomial derivative calculation from first principles should make three points visible: the correct base-point value, the cancellation that produces a quotient defined for \(h\ne0\), and the limit of the simplified expression. Expansion is often more informative when the base point is arbitrary; factorization can be more efficient when the numerator is a familiar difference. Both approaches are valid only when they preserve the original difference quotient.

The general polynomial result is useful because it explains why the workshop method always succeeds: after subtraction, the numerator has no constant term in \(h\). Dividing by \(h\) leaves a finite expression whose limit can be evaluated. The proof does not replace the definition; it shows why the definition gives a derivative for every polynomial at every real input.

Check Your Understanding

For each problem, keep the difference quotient visible until the cancellation is justified.

  1. For \(f(x)=x^2+3x-1\), find \(f'(1)\) from the definition.
  2. For \(g(x)=x^3-1\), use factorization to find \(g'(1)\) from the definition.
  3. For \(p(x)=2x^2-x+4\), compute \(p'(a)\) for an arbitrary real \(a\) using expansion.
  4. Why is it valid to cancel \(h\) in a difference quotient even though the quotient is not defined at \(h=0\)?
  5. In the general polynomial proof, which terms remain in the limit after dividing by \(h\), and why do the others tend to zero?

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