Tutorials › AP Calculus › Finding a Cubic Derivative at a Point

Derivative as a Limit · Tutorial 92 of 999

Finding a Cubic Derivative at a Point

Learn to compute a cubic’s derivative at a point directly from the limit definition and verify each algebraic step.

Beginner 8 min read

What You'll Learn

  • Write the derivative at an input as a limit of difference quotients.
  • Expand a cubic expression involving an increment.
  • Factor and cancel the increment without setting it equal to zero.
  • Evaluate the resulting limit to find a derivative value.
  • Derive a general formula for the derivative of a cubic polynomial at a point.
  • Recognize and correct common difference-quotient errors.

Why Calculate a Cubic Derivative from a Limit?

A derivative at a particular input describes the instantaneous rate of change there. In the limit definition, it is obtained by bringing the slope between two nearby points toward the slope at the input. For a cubic, the calculation is manageable but requires care: expand the difference in function values, identify a factor of the increment, and only then take the limit.

This process makes the meaning of the derivative concrete. It also shows how the algebra of a function determines the value of its derivative, without relying on a rule for differentiating cubic expressions.

The Difference Quotient at an Input

Let \(f\) be a function and let \(a\) be an input in its domain. For a nonzero increment \(h\), the quotient \(\frac{f(a+h)-f(a)}{h}\) is the slope of the secant line through the points on the graph with inputs \(a\) and \(a+h\). If these slopes approach a finite limit as \(h\) approaches zero from both sides, that limit is the derivative at \(a\).

Definition: The derivative of \(f\) at \(a\), when the limit exists, is
$$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$
In the quotient, \(h\neq 0\). The limit concerns values of \(h\) close to zero, not the quotient evaluated at \(h=0\).

The numerator is a change in function output, and the denominator is the corresponding change in input. At \(h=0\), both changes would be zero, so direct substitution gives the indeterminate form \(\frac{0}{0}\). The method is to simplify the quotient for nonzero \(h\), then find its limit.

A General Cubic Calculation

Start with a cubic polynomial \(P(x)=Ax^3+Bx^2+Cx+D\), where \(A\), \(B\), \(C\), and \(D\) are constants and \(A\neq 0\). We can obtain its derivative at any real input \(a\) using the definition. The key expansions are \((a+h)^3=a^3+3a^2h+3ah^2+h^3\) and \((a+h)^2=a^2+2ah+h^2\).

1
Evaluate the function at both inputs.
Find \(P(a+h)\) by expanding each power, and find \(P(a)\) by substituting \(a\).
2
Subtract before dividing.
Form \(P(a+h)-P(a)\). The constant terms cancel, leaving terms that contain \(h\).
3
Cancel the nonzero increment.
Divide the simplified numerator by \(h\), which is allowed because the difference quotient assumes \(h\neq 0\).
4
Take the limit.
Terms that still contain \(h\) approach zero as \(h\to 0\); the remaining constant is \(P'(a)\).

Deriving the Cubic Polynomial Formula

This expansion gives a general result and explains why the procedure works. First substitute \(a+h\) into \(P\), using the binomial expansions shown above:

$$ \begin{aligned} P(a+h) &=A(a+h)^3+B(a+h)^2+C(a+h)+D\\ &=A(a^3+3a^2h+3ah^2+h^3) +B(a^2+2ah+h^2)+Ca+Ch+D\\ &=Aa^3+Ba^2+Ca+D\\ &\quad +(3Aa^2+2Ba+C)h+(3Aa+B)h^2+Ah^3. \end{aligned} $$

Since \(P(a)=Aa^3+Ba^2+Ca+D\), subtracting \(P(a)\) cancels exactly those constant terms. The numerator then has a factor of \(h\):

$$ \begin{aligned} P(a+h)-P(a) &=(3Aa^2+2Ba+C)h+(3Aa+B)h^2+Ah^3,\\ \frac{P(a+h)-P(a)}{h} &=(3Aa^2+2Ba+C)+(3Aa+B)h+Ah^2, \qquad h\neq 0. \end{aligned} $$

Now take the limit. The constants \(A\), \(B\), and \(a\) are fixed, so \((3Aa+B)h\) and \(Ah^2\) approach zero as \(h\to 0\). Therefore the difference quotient approaches a finite value:

$$ P'(a) =\lim_{h\to 0}\frac{P(a+h)-P(a)}{h} =3Aa^2+2Ba+C. $$
Theorem: For \(P(x)=Ax^3+Bx^2+Cx+D\), the derivative at an input \(a\), calculated from the difference-quotient limit, is \(P'(a)=3Aa^2+2Ba+C\). The constant term \(D\) makes no contribution because it cancels when \(P(a)\) is subtracted from \(P(a+h)\).

The formula is a consequence of the limit calculation, not an assumption needed to do it. In the examples below, we will use the definition directly so that the expansion, cancellation, and limiting step remain visible.

Worked Example: Find the Derivative of \(f(x)=x^3\) at \(x=2\)

Use the limit definition with \(a=2\). First, \(f(2)=2^3=8\), and \(f(2+h)=(2+h)^3=8+12h+6h^2+h^3\). Thus:

$$ \begin{aligned} f'(2) &=\lim_{h\to 0}\frac{(2+h)^3-8}{h}\\ &=\lim_{h\to 0}\frac{8+12h+6h^2+h^3-8}{h}\\ &=\lim_{h\to 0}\frac{12h+6h^2+h^3}{h}\\ &=\lim_{h\to 0}(12+6h+h^2)\\ &=12. \end{aligned} $$

Check: The simplified quotient \(12+6h+h^2\) gives the exact original quotient whenever \(h\neq 0\): multiplying it by \(h\) recovers \(12h+6h^2+h^3=(2+h)^3-8\). Its limit as \(h\to 0\) is \(12\), so \(f'(2)=12\).

Worked Example: Find the Derivative of \(g(x)=2x^3-3x^2+x+4\) at \(x=1\)

Evaluate the function at the specified input: \(g(1)=2-3+1+4=4\). Expand the function at \(1+h\), keeping like powers of \(h\) together:

$$ \begin{aligned} g(1+h) &=2(1+h)^3-3(1+h)^2+(1+h)+4\\ &=2(1+3h+3h^2+h^3)-3(1+2h+h^2)+1+h+4\\ &=(2-3+1+4)+(6h-6h+h)+(6h^2-3h^2)+2h^3\\ &=4+h+3h^2+2h^3. \end{aligned} $$

Subtract \(g(1)=4\), divide by \(h\neq 0\), and take the limit:

$$ \begin{aligned} g'(1) &=\lim_{h\to 0}\frac{g(1+h)-g(1)}{h}\\ &=\lim_{h\to 0}\frac{4+h+3h^2+2h^3-4}{h}\\ &=\lim_{h\to 0}\frac{h+3h^2+2h^3}{h}\\ &=\lim_{h\to 0}(1+3h+2h^2)\\ &=1. \end{aligned} $$

Check: Multiplying the simplified quotient by \(h\) gives \(h+3h^2+2h^3=g(1+h)-g(1)\), so the cancellation is valid for nonzero \(h\). The simplified quotient approaches \(1\); hence \(g'(1)=1\).

Worked Example: Find the Derivative of \(q(x)=(x-1)^3\) at \(x=3\)

Here \(q(3)=(3-1)^3=8\). At the nearby input \(3+h\), expand the cube:

$$ \begin{aligned} q(3+h)&=((3+h)-1)^3=(2+h)^3\\ &=8+12h+6h^2+h^3. \end{aligned} $$

Use these two function values in the difference quotient:

$$ \begin{aligned} q'(3) &=\lim_{h\to 0}\frac{q(3+h)-q(3)}{h}\\ &=\lim_{h\to 0}\frac{8+12h+6h^2+h^3-8}{h}\\ &=\lim_{h\to 0}\frac{12h+6h^2+h^3}{h}\\ &=\lim_{h\to 0}(12+6h+h^2)\\ &=12. \end{aligned} $$

Check: For \(h\neq 0\), multiplying \(12+6h+h^2\) by \(h\) recovers \(q(3+h)-q(3)\). The limit of that simplified quotient is \(12\), so the derivative at \(3\) is \(12\).

Why the Order of the Steps Matters

The increment \(h\) represents a nonzero change in input while the quotient is being formed. It is not permissible to set \(h=0\) in the original fraction. The limit asks what happens as nonzero increments get arbitrarily close to zero. After cancellation, the resulting expression may be evaluated in the limit.

A frequent error is to substitute \(h=0\) immediately. For the first example, that gives the incorrect attempt:

$$ \frac{(2+0)^3-8}{0}=\frac{8-8}{0}=\frac{0}{0}. $$

This does not produce a derivative value; division by zero is undefined. The correction is to keep \(h\neq 0\), expand and simplify first:

$$ \frac{(2+h)^3-8}{h} =\frac{12h+6h^2+h^3}{h} =12+6h+h^2, \qquad h\neq 0. $$

Only now can we let \(h\) approach zero and conclude that the limit is \(12\). Another common error is to omit the subtraction of \(f(a)\). The numerator must be \(f(a+h)-f(a)\); without that subtraction, it is not the change in output used in the derivative definition.

What the Calculation Shows

For any cubic polynomial, subtracting the function value at \(a\) removes the terms that do not depend on the increment. The remaining difference contains a factor of \(h\). Dividing by that factor leaves a constant term plus terms that vanish in the limit. This is why the derivative at a specified input can be found exactly from the limit even though the original quotient is undefined at \(h=0\).

For an AP problem, keep the work organized: state the function value at \(a\), expand \(f(a+h)\), subtract, factor or cancel \(h\) only under the condition \(h\neq 0\), and then evaluate the limit. Showing these steps makes the reasoning checkable and helps catch errors in signs or coefficients.

Check Your Understanding

For each question, use the difference-quotient definition and keep the increment nonzero until after cancellation.

  1. Find the derivative of \(f(x)=x^3\) at \(x=1\).
  2. For \(p(x)=x^3-2x\), calculate \(p(0)\), then find \(p'(0)\) from the limit definition.
  3. For \(r(x)=3x^3+x^2-5\), expand \(r(a+h)-r(a)\) and simplify the quotient for nonzero \(h\).
  4. Why is substituting \(h=0\) into the original difference quotient not a valid way to find the derivative?
  5. In the general cubic formula, why does the constant term \(D\) disappear?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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