Skip to content
Family Table Math

The Definition of the Derivative

The derivative measures the instantaneous rate of change of a function, which is also the slope of its tangent line. It’s built from the limit of secant slopes you saw in average and instantaneous rates. This page gives the official definition, the notation, and how to estimate a derivative when all you have is a table or a graph.

The derivative of ff at x=ax = a is

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

provided this limit exists. An equivalent form uses a second point xx sliding toward aa:

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

Both are limits of secant slopes. Use whichever makes the algebra easier.

If you keep xx as a variable instead of a number, you get a new function, the derivative function:

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

Plug in any xx to get the slope of ff at that point.

If y=f(x)y = f(x), all of these mean the derivative:

NotationRead as
f′(x)f'(x)“f prime of x”
y′y'“y prime”
dydx\dfrac{dy}{dx}“dee y dee x”: the rate of change of yy with respect to xx
ddx[f(x)]\dfrac{d}{dx}\big[f(x)\big]“the derivative of f(x)f(x) with respect to xx”
f′(3)f'(3) or dydx∣x=3\left.\dfrac{dy}{dx}\right\rvert_{x = 3}the derivative evaluated at x=3x = 3

The tangent line at x=ax = a passes through (a,f(a))(a, f(a)) and has slope f′(a)f'(a). In point-slope form:

y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a)

On the AP exam, it’s fine to leave a tangent line in point-slope form.

AP questions often hide a derivative inside a limit. For example,

lim⁡h→0(3+h)2−9h\lim_{h \to 0} \frac{(3 + h)^2 - 9}{h}

matches lim⁡h→0f(a+h)−f(a)h\displaystyle\lim_{h \to 0} \frac{f(a + h) - f(a)}{h} with f(x)=x2f(x) = x^2 and a=3a = 3, so it equals f′(3)f'(3). Match the pattern: what is being plugged in, and what number is aa?

Estimating a derivative from a table or graph

Section titled “Estimating a derivative from a table or graph”

With only a table of values, you can’t take a limit. Instead, estimate f′(a)f'(a) with the slope of a secant line through nearby points. The best choice is usually the closest points on both sides of aa:

f′(a)≈f(a+h)−f(a−h)2hf'(a) \approx \frac{f(a + h) - f(a - h)}{2h}

This is called a symmetric difference quotient. If aa isn’t in the middle of two table values, just use the two closest values that surround it.

From a graph, estimate the derivative by sketching the tangent line at the point and finding its slope (rise over run) using two points on that line.

Use the definition to find f′(3)f'(3) for f(x)=x2f(x) = x^2.

Solution. With the hh form:

f′(3)=lim⁡h→0(3+h)2−9h=lim⁡h→09+6h+h2−9h=lim⁡h→0(6+h)=6\begin{aligned} f'(3) &= \lim_{h \to 0} \frac{(3 + h)^2 - 9}{h} \\ &= \lim_{h \to 0} \frac{9 + 6h + h^2 - 9}{h} \\ &= \lim_{h \to 0} (6 + h) \\ &= 6 \end{aligned}

Check with the other form, factoring the difference of squares:

lim⁡x→3x2−9x−3=lim⁡x→3(x−3)(x+3)x−3=lim⁡x→3(x+3)=6\lim_{x \to 3} \frac{x^2 - 9}{x - 3} = \lim_{x \to 3} \frac{(x - 3)(x + 3)}{x - 3} = \lim_{x \to 3} (x + 3) = 6

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

Solution. First expand f(x+h)f(x + h):

f(x+h)=2(x+h)2−5(x+h)=2x2+4xh+2h2−5x−5hf(x + h) = 2(x + h)^2 - 5(x + h) = 2x^2 + 4xh + 2h^2 - 5x - 5h

Subtract f(x)=2x2−5xf(x) = 2x^2 - 5x. Everything without an hh cancels:

f′(x)=lim⁡h→04xh+2h2−5hh=lim⁡h→0(4x+2h−5)=4x−5\begin{aligned} f'(x) &= \lim_{h \to 0} \frac{4xh + 2h^2 - 5h}{h} \\ &= \lim_{h \to 0} (4x + 2h - 5) \\ &= 4x - 5 \end{aligned}

For example, the slope of the graph at x=2x = 2 is f′(2)=3f'(2) = 3.

The derivative of f(x)=x2−4x+5f(x) = x^2 - 4x + 5 is f′(x)=2x−4f'(x) = 2x - 4 (you can check this with the definition, just like Example 2). Find the equation of the tangent line at x=3x = 3.

Solution. You need a point and a slope.

  • Point: f(3)=9−12+5=2f(3) = 9 - 12 + 5 = 2, so the point is (3,2)(3, 2).
  • Slope: f′(3)=2(3)−4=2f'(3) = 2(3) - 4 = 2.
y−2=2(x−3)ory=2x−4y - 2 = 2(x - 3) \quad\text{or}\quad y = 2x - 4
The parabola f(x) = x squared minus 4x plus 5 and its tangent line y = 2x minus 4, which touches the curve at (3, 2) and has slope 2 there. 1 2 3 4 5 −1 1 2 3 4 5 (3, 2) f(x) = x² − 4x + 5 y = 2x − 4
The tangent line y=2x−4y = 2x - 4 touches f(x)=x2−4x+5f(x) = x^2 - 4x + 5 at (3,2)(3, 2).

A cup of coffee cools. Its temperature H(t)H(t), in °C, after tt minutes is shown below.

tt (min)00446610101212
H(t)H(t) (°C)90907878737365656262

Estimate H′(5)H'(5) and H′(8)H'(8), and explain what H′(5)H'(5) means.

Solution. The closest times around t=5t = 5 are 44 and 66:

H′(5)≈H(6)−H(4)6−4=73−782=−2.5 °C/minH'(5) \approx \frac{H(6) - H(4)}{6 - 4} = \frac{73 - 78}{2} = -2.5 \text{ °C/min}

Around t=8t = 8, use 66 and 1010:

H′(8)≈H(10)−H(6)10−6=65−734=−2 °C/minH'(8) \approx \frac{H(10) - H(6)}{10 - 6} = \frac{65 - 73}{4} = -2 \text{ °C/min}

At t=5t = 5 minutes, the coffee’s temperature is decreasing at about 2.52.5 °C per minute.

Forgetting that f(a+h)f(a + h) means “replace every xx with a+ha + h”. For f(x)=2x2−5xf(x) = 2x^2 - 5x, f(x+h)f(x + h) is 2(x+h)2−5(x+h)2(x + h)^2 - 5(x + h), not 2x2−5x+h2x^2 - 5x + h.

Dropping the limit symbol too early. Keep writing lim⁡h→0\displaystyle\lim_{h \to 0} on every line until you actually let h→0h \to 0. AP graders look for correct notation.

Using f′(a)f'(a) where f(a)f(a) belongs in the tangent line. The point on the line is (a,f(a))(a, f(a)); the slope is f′(a)f'(a). Mixing them up is one of the most common tangent-line errors.

Picking far-away table values to estimate a derivative. Use the two closest values that surround the point. For H′(5)H'(5) above, H(12)−H(0)12\tfrac{H(12) - H(0)}{12} gives a much worse estimate.

Saying "f′(5)=−2.5f'(5) = -2.5" for an estimate. A value from a table is an approximation. Write ≈\approx, and include units in context.

Misreading a disguised derivative. In lim⁡h→09+h−3h\displaystyle\lim_{h \to 0} \frac{\sqrt{9 + h} - 3}{h}, the function is x\sqrt{x} and a=9a = 9 (not a=3a = 3, which is 9\sqrt{9}).

1. (Warm-up) The limit lim⁡h→05(1+h)2−5h\displaystyle\lim_{h \to 0} \frac{5(1 + h)^2 - 5}{h} is f′(a)f'(a) for some function ff and number aa. Name ff and aa, then evaluate the limit.

Solution

f(x)=5x2f(x) = 5x^2 and a=1a = 1 (note f(1)=5f(1) = 5).

(Another valid answer is f(x)=5(1+x)2f(x) = 5(1 + x)^2 with a=0a = 0. It gives the same limit.)

lim⁡h→05(1+2h+h2)−5h=lim⁡h→010h+5h2h=lim⁡h→0(10+5h)=10\lim_{h \to 0} \frac{5(1 + 2h + h^2) - 5}{h} = \lim_{h \to 0} \frac{10h + 5h^2}{h} = \lim_{h \to 0} (10 + 5h) = 10

2. (Warm-up) Suppose f(4)=7f(4) = 7 and f′(4)=−2f'(4) = -2. Write the equation of the tangent line to ff at x=4x = 4.

Solutiony−7=−2(x−4)ory=−2x+15y - 7 = -2(x - 4) \quad\text{or}\quad y = -2x + 15

3. (Warm-up) A runner’s position is s(t)s(t) metres from the start after tt seconds. What does s′(4)=−3s'(4) = -3 mean?

Solution

At t=4t = 4 seconds, the runner’s position is decreasing at 33 metres per second. In other words, the runner is moving back toward the start at 33 m/s at that instant.

4. (Core) Use the definition to find f′(x)f'(x) for f(x)=x2+3x−1f(x) = x^2 + 3x - 1.

Solutionf(x+h)−f(x)=(x+h)2+3(x+h)−1−(x2+3x−1)=2xh+h2+3h\begin{aligned} f(x + h) - f(x) &= (x + h)^2 + 3(x + h) - 1 - (x^2 + 3x - 1) \\ &= 2xh + h^2 + 3h \end{aligned}f′(x)=lim⁡h→02xh+h2+3hh=lim⁡h→0(2x+h+3)=2x+3f'(x) = \lim_{h \to 0} \frac{2xh + h^2 + 3h}{h} = \lim_{h \to 0} (2x + h + 3) = 2x + 3

5. (Core) Use the form lim⁡x→af(x)−f(a)x−a\displaystyle\lim_{x \to a} \frac{f(x) - f(a)}{x - a} to find f′(2)f'(2) for f(x)=x3f(x) = x^3. (Hint: x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4).)

Solutionf′(2)=lim⁡x→2x3−8x−2=lim⁡x→2(x2+2x+4)=4+4+4=12f'(2) = \lim_{x \to 2} \frac{x^3 - 8}{x - 2} = \lim_{x \to 2} (x^2 + 2x + 4) = 4 + 4 + 4 = 12

6. (Core) Let f(x)=1x+1f(x) = \dfrac{1}{x + 1}.

  • (a) Use the definition to find f′(x)f'(x).
  • (b) Find the equation of the tangent line at x=1x = 1.
Solution

(a) Combine the fractions:

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

(b) f(1)=12f(1) = \dfrac{1}{2} and f′(1)=−14f'(1) = -\dfrac{1}{4}:

y−12=−14(x−1)ory=−14x+34y - \frac{1}{2} = -\frac{1}{4}(x - 1) \quad\text{or}\quad y = -\frac{1}{4}x + \frac{3}{4}

7. (Core) Use the table to estimate g′(2)g'(2) and g′(2.75)g'(2.75).

xx111.51.5222.52.533
g(x)g(x)4.04.04.94.96.16.17.67.69.49.4
Solution

Around x=2x = 2, use x=1.5x = 1.5 and x=2.5x = 2.5 (a symmetric difference quotient):

g′(2)≈7.6−4.92.5−1.5=2.7g'(2) \approx \frac{7.6 - 4.9}{2.5 - 1.5} = 2.7

Around x=2.75x = 2.75, use x=2.5x = 2.5 and x=3x = 3:

g′(2.75)≈9.4−7.63−2.5=1.80.5=3.6g'(2.75) \approx \frac{9.4 - 7.6}{3 - 2.5} = \frac{1.8}{0.5} = 3.6

8. (Challenge) For f(x)=x2f(x) = x^2, the derivative is f′(x)=2xf'(x) = 2x. Find the equations of both tangent lines to y=x2y = x^2 that pass through the point (2,3)(2, 3), which is not on the curve.

Solution

The tangent line at x=ax = a goes through (a,a2)(a, a^2) with slope 2a2a:

y−a2=2a(x−a)⇒y=2ax−a2y - a^2 = 2a(x - a) \quad\Rightarrow\quad y = 2ax - a^2

It must pass through (2,3)(2, 3):

3=4a−a2⇒a2−4a+3=0⇒(a−1)(a−3)=03 = 4a - a^2 \quad\Rightarrow\quad a^2 - 4a + 3 = 0 \quad\Rightarrow\quad (a - 1)(a - 3) = 0

For a=1a = 1: y=2x−1y = 2x - 1. For a=3a = 3: y=6x−9y = 6x - 9.

Check: 2(2)−1=32(2) - 1 = 3 and 6(2)−9=36(2) - 9 = 3.

9. (Challenge) The function ff is continuous at x=2x = 2, and lim⁡x→2f(x)−5x−2=3\displaystyle\lim_{x \to 2} \frac{f(x) - 5}{x - 2} = 3. Find f(2)f(2) and f′(2)f'(2), and write the tangent line at x=2x = 2.

Solution

The denominator approaches 00, so for the limit to be a finite number the numerator must also approach 00: lim⁡x→2f(x)=5\displaystyle\lim_{x \to 2} f(x) = 5. Since ff is continuous at 22, f(2)=5f(2) = 5.

Now the limit has the form lim⁡x→2f(x)−f(2)x−2\displaystyle\lim_{x \to 2} \frac{f(x) - f(2)}{x - 2}, which is f′(2)f'(2). So f′(2)=3f'(2) = 3.

y−5=3(x−2)ory=3x−1y - 5 = 3(x - 2) \quad\text{or}\quad y = 3x - 1