MathPath
Grades 1–13 Math Hub
Grades 12–13 · AP Calculus AB/BC · Formula Deep Dive

Definition of the Derivative: Secant to Tangent & Examples

The derivative is the instantaneous rate of change of a function—defined by taking the average slope between $(x, f(x))$ and $(x+h, f(x+h))$ and shrinking the step $h$ to $0$.

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

Variables: Instantaneous rate of change / slope of the tangent line at $x$.

When to use: Proving derivative rules from first principles.

Secant Line Approaching the Tangent Line as $h \to 0$

xy123412345hSecant (h > 0)Tangent (h → 0)

As the horizontal gap $h$ shrinks toward $0$, the teal secant line pivots smoothly into the dashed coral tangent line at $(x, f(x))$, whose slope is $f'(x)$.

From Average Rate of Change to Instantaneous Slope

To find the exact slope at ONE point, we start with TWO points separated by $h$ and take a limit.

  1. Pick a base point $P(x, f(x))$ and a nearby point $Q(x + h, f(x + h))$ on the curve.
  2. Compute the slope of the secant line (difference quotient): $m_{\text{sec}} = \frac{f(x + h) - f(x)}{(x + h) - x} = \frac{f(x + h) - f(x)}{h}$.
  3. We cannot simply plug in $h = 0$ (that gives $\frac{0}{0}$), so we simplify algebraically to cancel the $h$ in the denominator.
  4. Take the limit as $h \to 0$ to obtain the tangent slope: $f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$.

Equivalent Forms & Differentiability

Derivative at a Point $x = a$

Alternative form: $f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}$.

Physical Meaning

If $s(t)$ is position, $s'(t)$ is instantaneous velocity and $s''(t)$ is acceleration.

When $f'(a)$ Fails to Exist

At a sharp corner ($|x|$), discontinuity, or vertical tangent ($x^{1/3}$ at $0$).

Differentiable $\Rightarrow$ Continuous

Every differentiable function is continuous, though continuous functions can have sharp corners.

Step-by-Step Worked Examples

Example 1: Differentiating a Quadratic from First Principles

Problem: Use the limit definition to find $f'(x)$ for $f(x) = x^2 + 3x$.
  1. Compute $f(x + h) = (x + h)^2 + 3(x + h) = x^2 + 2xh + h^2 + 3x + 3h$.
  2. Subtract $f(x)$: $f(x + h) - f(x) = 2xh + h^2 + 3h = h(2x + h + 3)$.
  3. Divide by $h$ and take $h \to 0$: $\lim_{h \to 0}(2x + h + 3) = 2x + 3$.

Example 2: Limit Definition with a Square Root (Conjugate Trick)

Problem: Find $f'(x)$ for $f(x) = \sqrt{x}$ ($x > 0$) using the limit definition.
  1. Set up $\lim_{h \to 0}\frac{\sqrt{x + h} - \sqrt{x}}{h}$.
  2. Multiply top and bottom by the conjugate $\sqrt{x + h} + \sqrt{x}$: $\lim_{h \to 0}\frac{(x + h) - x}{h(\sqrt{x + h} + \sqrt{x})}$.
  3. Cancel $h$ and let $h \to 0$: $\frac{1}{\sqrt{x} + \sqrt{x}} = \frac{1}{2\sqrt{x}}$.

Common Mistakes to Avoid

Mistake 1: Writing $f(x + h)$ as $f(x) + h$

✗ Wrong: For $f(x) = x^2$, writing $f(x + h) = x^2 + h$.
✓ Correct: Replace EVERY $x$ with $(x + h)$: $f(x + h) = (x + h)^2 = x^2 + 2xh + h^2$.

Why: Function notation inputs the entire expression $(x + h)$ into the formula.

Mistake 2: Forgetting Parentheses Around $- f(x)$

✗ Wrong: Writing $f(x + h) - x^2 + 3x$ instead of subtracting $+3x$ as well.
✓ Correct: Always wrap $f(x)$ in parentheses: $-[x^2 + 3x] = -x^2 - 3x$.

Why: Every non-$h$ term in the numerator must cancel out if you set up the subtraction correctly.

Frequently Asked Questions

Why learn the limit definition if we have shortcut rules like Power Rule?

Because the limit definition explains WHAT a derivative actually is, proves all the shortcut rules, and appears directly in AP Calculus limit-recognition questions.

How do I recognize a disguised derivative limit on an exam?

Whenever you see $\lim_{h \to 0}\frac{f(a+h) - f(a)}{h}$ (like $\lim_{h \to 0}\frac{\sin(\pi/6 + h) - 1/2}{h}$), simply compute $f'(a)$ directly!

What is the geometric difference between $\frac{f(x+h)-f(x)}{h}$ and $f'(x)$?

The difference quotient is the slope of a secant line (average rate); taking $\lim_{h \to 0}$ gives the tangent slope (instantaneous rate).

Practice & Related Resources

Apply Definition of the Derivative on interactive problems, printable PDF worksheets, and calculators.

Power, Product, Quotient & Chain Rules →Derivative Worked Examples →Grade 12 Calculus Quizzes →All Calculus Formulas → ← Back to Calculus Formulas Cheat Sheet