AP Calculus AB and BC

Derivative as a Limit: Both Forms and How to Spot Them

The derivative of f at x = a is the limit of the difference quotient: the limit as h approaches 0 of (f(a + h) - f(a)) / h, or equivalently the limit as x approaches a of (f(x) - f(a)) / (x - a). When a limit matches either form, identify f and a, then find f'(a) with derivative rules.

From secant slope to tangent slope

The slope of the line through two points on a graph, (a,f(a))(a, f(a)) and (a+h,f(a+h))(a + h, f(a + h)), is the difference quotient f(a+h)−f(a)h\frac{f(a + h) - f(a)}{h}. That is an average rate of change over an interval of width hh, the starting point of Topic 2.1, Defining Average and Instantaneous Rates of Change at a Point.

The derivative is the limit of those secant slopes as h→0h \to 0. When the limit exists, it is the slope of the tangent line at x=ax = a and the instantaneous rate of change of ff there. You can watch the secant line turn into the tangent line in the secant to tangent interactive.

The two limit forms

There are two equivalent ways to write the derivative at a point (Topic 2.2, Defining the Derivative of a Function and Using Derivative Notation). The first lets the gap hh between the inputs shrink to 00:

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}

The second names the moving input xx and lets it approach aa:

f′(a)=lim⁡x→af(x)−f(a)x−af'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}

Substituting x=a+hx = a + h turns one into the other, since then x−a=hx - a = h and x→ax \to a exactly when h→0h \to 0. Leaving the point general in the first form gives the derivative as a function:

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

Computing a derivative from the definition

Substituting h=0h = 0 right away always gives 00\frac{0}{0}, so the work is algebra that removes the hh from the denominator.

  1. Write f(x+h)f(x + h) by replacing every xx in the formula with (x+h)(x + h).
  2. Form the difference f(x+h)−f(x)f(x + h) - f(x) and simplify. Every term without an hh should cancel.
  3. Factor hh out of what is left and cancel it with the hh in the denominator.
  4. Now let h→0h \to 0 by substitution.

The simplifying step depends on the function. Polynomials need expanding, fractions need a common denominator, and square roots need multiplication by the conjugate. Keep writing lim⁡h→0\lim_{h \to 0} on every line until the step where you substitute.

Recognizing a derivative written as a limit

Some limits are derivatives in disguise. If a limit has the shape of either form, you can skip the algebra: identify the function ff and the point aa, differentiate with rules, and evaluate f′(a)f'(a).

Limitf(x)f(x)aaValue
lim⁡h→0(2+h)3−8h\lim_{h \to 0} \frac{(2 + h)^3 - 8}{h}x3x^322f′(2)=3(2)2=12f'(2) = 3(2)^2 = 12
lim⁡h→0cos⁡(π+h)+1h\lim_{h \to 0} \frac{\cos(\pi + h) + 1}{h}cos⁡x\cos xπ\pif′(π)=−sin⁡π=0f'(\pi) = -\sin \pi = 0
lim⁡x→9x−3x−9\lim_{x \to 9} \frac{\sqrt{x} - 3}{x - 9}x\sqrt{x}99f′(9)=129=16f'(9) = \frac{1}{2\sqrt{9}} = \frac{1}{6}
lim⁡h→0eh−1h\lim_{h \to 0} \frac{e^h - 1}{h}exe^x00f′(0)=e0=1f'(0) = e^0 = 1

Check the constant

After choosing ff and aa, confirm that the constant in the numerator really is f(a)f(a). In the second row, f(π)=cos⁡π=−1f(\pi) = \cos \pi = -1, so subtracting f(a)f(a) shows up as +1+1. If the constant does not match, the limit is not that derivative.

Where students lose points

  • Writing f(x+h)f(x + h) as f(x)+hf(x) + h. For f(x)=x2f(x) = x^2, f(x+h)=(x+h)2=x2+2xh+h2f(x + h) = (x + h)^2 = x^2 + 2xh + h^2.
  • Substituting h=0h = 0 before canceling. The hh in the denominator has to be gone first.
  • Dropping the limit notation partway through, or keeping it after substituting.
  • Losing a sign when subtracting f(x)f(x). Put f(x)f(x) in parentheses before distributing the minus sign.
  • Picking the wrong aa in a disguised limit. In the hh form, aa is the number added to hh; in the other form, aa is the number xx approaches.

The limit in the definition does not always exist. For f(x)=∣x∣f(x) = |x| at a=0a = 0, the difference quotient is ∣h∣h\frac{|h|}{h}, which equals 11 for h>0h > 0 and −1-1 for h<0h < 0. The one-sided limits disagree, so f′(0)f'(0) does not exist, which matches the corner in the graph.

Worked examples

Worked example

A polynomial from the definition

Use the limit definition to find f′(x)f'(x) for f(x)=x2−3xf(x) = x^2 - 3x.

  1. Write f(x+h)f(x + h): f(x+h)=(x+h)2−3(x+h)=x2+2xh+h2−3x−3hf(x + h) = (x + h)^2 - 3(x + h) = x^2 + 2xh + h^2 - 3x - 3h.
  2. Subtract f(x)f(x): f(x+h)−f(x)=(x2+2xh+h2−3x−3h)−(x2−3x)=2xh+h2−3hf(x + h) - f(x) = (x^2 + 2xh + h^2 - 3x - 3h) - (x^2 - 3x) = 2xh + h^2 - 3h.
  3. Divide by hh: 2xh+h2−3hh=h(2x+h−3)h=2x+h−3\frac{2xh + h^2 - 3h}{h} = \frac{h(2x + h - 3)}{h} = 2x + h - 3 for h≠0h \ne 0.
  4. Take the limit: f′(x)=lim⁡h→0(2x+h−3)=2x−3f'(x) = \lim_{h \to 0} (2x + h - 3) = 2x - 3.

f′(x)=2x−3f'(x) = 2x - 3

Worked example

A square root, using the conjugate

Use the limit definition to find f′(x)f'(x) for f(x)=xf(x) = \sqrt{x}, where x>0x > 0.

  1. Set up the difference quotient: f′(x)=lim⁡h→0x+h−xhf'(x) = \lim_{h \to 0} \frac{\sqrt{x + h} - \sqrt{x}}{h}.
  2. Multiply the numerator and denominator by the conjugate x+h+x\sqrt{x + h} + \sqrt{x}. The numerator becomes (x+h)−x=h(x + h) - x = h, so the quotient is hh(x+h+x)\frac{h}{h\left(\sqrt{x + h} + \sqrt{x}\right)}.
  3. Cancel hh: the quotient equals 1x+h+x\frac{1}{\sqrt{x + h} + \sqrt{x}} for h≠0h \ne 0.
  4. Take the limit by substituting h=0h = 0: 1x+x=12x\frac{1}{\sqrt{x} + \sqrt{x}} = \frac{1}{2\sqrt{x}}.

f′(x)=12xf'(x) = \frac{1}{2\sqrt{x}}

Worked example

A limit that is a derivative in disguise

Evaluate lim⁡h→0ln⁡(e+h)−1h\lim_{h \to 0} \frac{\ln(e + h) - 1}{h}.

  1. Compare with lim⁡h→0f(a+h)−f(a)h\lim_{h \to 0} \frac{f(a + h) - f(a)}{h}. The expression ln⁡(e+h)\ln(e + h) plays the role of f(a+h)f(a + h), which suggests f(x)=ln⁡xf(x) = \ln x and a=ea = e.
  2. Check the constant: f(a)=ln⁡e=1f(a) = \ln e = 1, which matches the 11 being subtracted. The limit is f′(e)f'(e).
  3. Differentiate with the known rule: f′(x)=1xf'(x) = \frac{1}{x}.
  4. Evaluate at a=ea = e: f′(e)=1ef'(e) = \frac{1}{e}.

1e\frac{1}{e}

Frequently asked questions

Are the two limit forms of the derivative really the same?

Yes. Substituting x=a+hx = a + h into lim⁡x→af(x)−f(a)x−a\lim_{x \to a} \frac{f(x) - f(a)}{x - a} gives lim⁡h→0f(a+h)−f(a)h\lim_{h \to 0} \frac{f(a + h) - f(a)}{h}. They always produce the same value, so use whichever makes the algebra easier.

What is the difference between f′(a)f'(a) and f′(x)f'(x)?

f′(a)f'(a) is a number: the slope of the tangent line at the single point x=ax = a. f′(x)f'(x) is a function that gives that slope at every xx where the limit exists. You can find f′(a)f'(a) by computing f′(x)f'(x) first and then substituting x=ax = a.

Do I have to use the limit definition every time I differentiate?

No. Once you know the derivative rules, use them. Use the definition when a problem tells you to, when you need to recognize a limit as a derivative, or when you are checking differentiability at a point where a function's formula changes.