AP · Calculus AB · Defining the Derivative

Average Rate of Change and the Derivative

17 min readUpdated November 30, 2026FreeAP Calculus AB, Derivatives: Definition and Basic Rules

The average rate of change of ff on [a,b][a, b] is f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}, the slope of the secant line through the two points. The derivative f′(a)f'(a) is the limit of that slope as the interval shrinks to the single point x=ax = a: it is the instantaneous rate of change and the slope of the tangent line there. On the AP® Calculus AB exam you find it from the limit definition, recognize limits that are derivatives, estimate it from tables and use it to write tangent lines.

Quick check

  1. Evaluate lim⁡x→2x2−4x−2\displaystyle\lim_{x \to 2} \frac{x^2 - 4}{x - 2}.Show answerHide answer

    44. Factor the numerator: (x−2)(x+2)x−2=x+2\dfrac{(x - 2)(x + 2)}{x - 2} = x + 2 for x≠2x \neq 2, and x+2→4x + 2 \to 4.

  2. What is the slope of the line through (1,3)(1, 3) and (4,12)(4, 12)?Show answerHide answer

    33. The slope is 12−34−1=93=3\dfrac{12 - 3}{4 - 1} = \dfrac{9}{3} = 3.

  3. A car travels 150150 miles in 33 hours. What is its average speed, and does that tell you its exact speed halfway through the trip?Show answerHide answer

    5050 miles per hour. It does not: an average over an interval says nothing exact about one instant, which is the gap the derivative fills.

Know these already? Jump to the practice questions

What you'll be able to do

  • Calculate the average rate of change of a function on an interval, with units.
  • Find f′(a)f'(a) from either limit definition of the derivative.
  • Identify a given limit as a derivative f′(a)f'(a) and evaluate it.
  • Estimate a derivative from a table of values and interpret it in context.
  • Write the equation of the tangent line to a curve at a given point.

Key terms

Average rate of change

For ff on [a,b][a, b], the number f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}, which is the slope of the secant line through (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)).

In plain English
How much the output changes per unit of input, on average, over the interval.
Don't write
f(b)−f(a)f(b) - f(a) on its own; that is the total change, not the rate.

Derivative at a point

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \displaystyle\lim_{h \to 0} \frac{f(a + h) - f(a)}{h}, when this limit exists.

In plain English
The rate of change of ff at the single input aa.
Don't write
"f′(a)f'(a) is the value of ff at aa"; that is f(a)f(a).

Tangent line

The line through (a,f(a))(a, f(a)) whose slope is f′(a)f'(a).

In plain English
The line that matches the direction of the curve at that point.
Don't write
A tangent line with xx left in the slope, such as y−f(a)=f′(x)(x−a)y - f(a) = f'(x)(x - a).

What is the average rate of change?

Learn this:

average rate of change of f on [a,b]=f(b)−f(a)b−a\text{average rate of change of } f \text{ on } [a, b] = \frac{f(b) - f(a)}{b - a}

It is the change in output divided by the change in input, so its units are "output units per input unit". If V(t)V(t) is a volume in liters and tt is in minutes, the average rate of change of VV is in liters per minute.

On a graph it is the slope of the secant line joining the two points. For f(x)=x2f(x) = x^2 on [1,3][1, 3], the average rate of change is 9−13−1=4\dfrac{9 - 1}{3 - 1} = 4, so the secant from (1,1)(1, 1) to (3,9)(3, 9) has slope 44.

Check yourself

Find the average rate of change of f(x)=2x+7f(x) = 2x + 7 on [0,5][0, 5].
Show answerHide answer

22. f(0)=7f(0) = 7 and f(5)=17f(5) = 17, so the rate is 17−75−0=2\dfrac{17 - 7}{5 - 0} = 2, the slope of the line itself.

How does a limit turn this into the derivative?

Take the interval from aa to a+ha + h. Its average rate of change is the difference quotient f(a+h)−f(a)h\dfrac{f(a + h) - f(a)}{h}. As h→0h \to 0 the secant line swings into the tangent line, and the limit is the derivative.

Learn this (both forms give the same number):

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

Substituting h=0h = 0 straight away gives 00\frac{0}{0}, so simplify first. For f(x)=x2f(x) = x^2 at a=3a = 3:

(3+h)2−9h=6h+h2h=6+h→6, so f′(3)=6\frac{(3 + h)^2 - 9}{h} = \frac{6h + h^2}{h} = 6 + h \to 6, \text{ so } f'(3) = 6

The derivative has several names. f′(x)f'(x) (read "ff prime of xx") and dydx\dfrac{dy}{dx} both mean the derivative function when y=f(x)y = f(x); f′(3)f'(3) or dydx∣x=3\left.\dfrac{dy}{dx}\right|_{x = 3} is its value at x=3x = 3.

Key idea

The derivative is the limit of secant slopes: f′(a)f'(a) is both the instantaneous rate of change at aa and the slope of the tangent line there.

Check yourself

Why can you not put h=0h = 0 into (3+h)2−9h\dfrac{(3 + h)^2 - 9}{h} at the start?
Show answerHide answer

Because it gives 00\frac{0}{0}, which has no value. You cancel the factor hh first, then let h→0h \to 0.

How do you spot a limit that is a derivative?

Match the limit to one of the two definitions. In the hh-form, the number added to hh is aa, the first term inside the numerator tells you ff, and the subtracted constant should be f(a)f(a).

lim⁡h→0(2+h)3−8h=f′(2) for f(x)=x3\lim_{h \to 0} \frac{(2 + h)^3 - 8}{h} = f'(2) \text{ for } f(x) = x^3

Here f(2)=8f(2) = 8 checks out. Expanding gives (2+h)3−8=12h+6h2+h3(2 + h)^3 - 8 = 12h + 6h^2 + h^3, so the quotient is 12+6h+h2→1212 + 6h + h^2 \to 12. Once you know the power rule (see the note on The Power Rule, Sums and Constant Multiples), f′(x)=3x2f'(x) = 3x^2 gives f′(2)=12f'(2) = 12 in one line.

In the xx-form, the number xx approaches is aa. For example, lim⁡x→5x−5x−5\displaystyle\lim_{x \to 5} \frac{\sqrt{x} - \sqrt{5}}{x - 5} is f′(5)f'(5) for f(x)=xf(x) = \sqrt{x}.

Check yourself

lim⁡h→0(1+h)2−1h\displaystyle\lim_{h \to 0} \frac{(1 + h)^2 - 1}{h} is f′(a)f'(a) for f(x)=x2f(x) = x^2. What is aa, and what is the limit?
Show answerHide answer

a=1a = 1, and the limit is 22, because 2h+h2h=2+h→2\dfrac{2h + h^2}{h} = 2 + h \to 2.

How do you estimate a derivative from a table?

A table gives no formula, so you cannot take a limit. Instead, approximate f′(a)f'(a) by the average rate of change over the smallest interval in the table that contains aa. If aa itself is in the table, use the two neighboring values on either side of it.

Always attach units, because a derivative is a rate. Then interpret it: "V′(7)≈3V'(7) \approx 3 means that at t=7t = 7 minutes the volume is increasing at about 33 liters per minute."

Examiner's eye

Marks are lost when an estimate has no units or when the interpretation drops the time. Say the input, the rate, its units and whether the quantity is increasing or decreasing.

Check yourself

A table gives f(4)=10f(4) = 10 and f(6)=16f(6) = 16, with no entries between. Estimate f′(5)f'(5).
Show answerHide answer

33. The average rate of change on [4,6][4, 6] is 16−106−4=3\dfrac{16 - 10}{6 - 4} = 3.

How do you write a tangent line?

You need one point and one slope. The point is (a,f(a))(a, f(a)) and the slope is the number f′(a)f'(a). Put them into point-slope form.

Learn this:

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

For f(x)=x2f(x) = x^2 at a=3a = 3: the point is (3,9)(3, 9) and the slope is f′(3)=6f'(3) = 6, so the tangent line is y−9=6(x−3)y - 9 = 6(x - 3), which is y=6x−9y = 6x - 9. You may leave it in point-slope form on the exam unless the question asks for another form.

Check yourself

g(1)=4g(1) = 4 and g′(1)=−2g'(1) = -2. Write the tangent line to gg at x=1x = 1.
Show answerHide answer

y−4=−2(x−1)y - 4 = -2(x - 1), which is y=−2x+6y = -2x + 6.

Which method fits the question?

What the question showsWhat to do
"Average rate of change on [a,b][a, b]"Compute f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}
"Use the definition of the derivative"Simplify the difference quotient, cancel hh, take the limit
A limit shaped like f(a+h)−f(a)h\dfrac{f(a + h) - f(a)}{h} or f(x)−f(a)x−a\dfrac{f(x) - f(a)}{x - a}Name ff and aa, then find f′(a)f'(a)
A table and "estimate f′(a)f'(a)"Average rate of change on the smallest interval around aa, with units
"Tangent line at x=ax = a"Find f(a)f(a) and f′(a)f'(a), then use y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a)

Worked example 1: An average rate of change

Question: Find the average rate of change of f(x)=x3−2xf(x) = x^3 - 2x on [1,3][1, 3].

What tells you the method

"average rate of change on [1,3][1, 3]" means the slope of the secant between the end values.

  1. Step 1: Evaluate at both ends.

    f(1)=1−2=−1f(1) = 1 - 2 = -1 and f(3)=27−6=21f(3) = 27 - 6 = 21.

    Why

    The formula needs the two outputs.

  2. Step 2: Divide the change in output by the change in input.

    21−(−1)3−1=222=11\dfrac{21 - (-1)}{3 - 1} = \dfrac{22}{2} = 11.

    Why

    The rate is change in ff per unit change in xx.

Check it

The function rises by 2222 over an input change of 22, which is 1111 per unit, as found.

Answer

The average rate of change is 1111.

Worked example 2: Derivative from the definition, then a tangent line

Question: Let f(x)=x2−3xf(x) = x^2 - 3x. Use the definition of the derivative to find f′(2)f'(2), then write an equation for the line tangent to the graph of ff at x=2x = 2.

What tells you the method

"use the definition" means the limit of the difference quotient; "tangent line" then needs f(2)f(2) and f′(2)f'(2).

  1. Step 1: Find f(2)f(2) and f(2+h)f(2 + h).

    f(2)=4−6=−2f(2) = 4 - 6 = -2, and f(2+h)=(2+h)2−3(2+h)=−2+h+h2f(2 + h) = (2 + h)^2 - 3(2 + h) = -2 + h + h^2.

    Why

    Expand fully so the constant terms can cancel.

  2. Step 2: Form and simplify the difference quotient.

    f(2+h)−f(2)h=h+h2h=1+h\dfrac{f(2 + h) - f(2)}{h} = \dfrac{h + h^2}{h} = 1 + h for h≠0h \neq 0.

    Why

    Cancelling hh removes the 00\frac{0}{0} problem.

  3. Step 3: Take the limit.

    f′(2)=lim⁡h→0(1+h)=1f'(2) = \displaystyle\lim_{h \to 0} (1 + h) = 1.

    Why

    After cancelling, you can substitute h=0h = 0.

  4. Step 4: Write the tangent line.

    y−(−2)=1(x−2)y - (-2) = 1(x - 2), so y=x−4y = x - 4.

    Why

    Point (2,−2)(2, -2), slope 11, in point-slope form.

Check it

f(2.01)=−1.9899f(2.01) = -1.9899 and the line gives 2.01−4=−1.992.01 - 4 = -1.99, so line and curve agree closely near x=2x = 2.

Answer

f′(2)=1f'(2) = 1, and the tangent line is y=x−4y = x - 4.

Worked example 3: Estimating a rate from a table

Question: Water flows into a tank. The volume of water is V(t)V(t) liters, where tt is in minutes and VV is differentiable. Selected values are shown. (a) Find the average rate of change of VV over 0≤t≤120 \le t \le 12. (b) Use the table to estimate V′(7)V'(7), and interpret your answer, with units.

tt (minutes)002255991212
V(t)V(t) (liters)120120134134149149161161168168

What tells you the method

Part (a) names an interval, so use the end values; part (b) asks for a derivative from a table, so use the smallest interval around t=7t = 7.

  1. Step 1: Part (a).

    V(12)−V(0)12−0=168−12012=4\dfrac{V(12) - V(0)}{12 - 0} = \dfrac{168 - 120}{12} = 4 liters per minute.

    Why

    It is the average rate over the whole interval.

  2. Step 2: Part (b): choose the interval.

    t=7t = 7 lies between t=5t = 5 and t=9t = 9, so use those two entries.

    Why

    The closest data on each side give the best estimate.

  3. Step 3: Compute and interpret.

    V′(7)≈161−1499−5=124=3V'(7) \approx \dfrac{161 - 149}{9 - 5} = \dfrac{12}{4} = 3 liters per minute. At t=7t = 7 minutes, the volume is increasing at about 33 liters per minute.

    Why

    A derivative is a rate at one instant, so the interpretation names that instant.

Check it

The rates on the four table intervals are 77, 55, 33 and about 2.3332.333 liters per minute, so the inflow slows over time; an estimate of 33 at t=7t = 7 fits that pattern.

Answer

(a) 44 liters per minute. (b) V′(7)≈3V'(7) \approx 3 liters per minute: at t=7t = 7 minutes the volume of water is increasing at about 33 liters per minute.

Your turn

Question: Use the definition of the derivative to find f′(1)f'(1) for f(x)=3x2+1f(x) = 3x^2 + 1.

  1. Step 1:

    f(1)=4f(1) = 4 and f(1+h)=3(1+2h+h2)+1=4+6h+3h2f(1 + h) = 3(1 + 2h + h^2) + 1 = 4 + 6h + 3h^2.

  2. Step 2: Your go: finish it.

    Form f(1+h)−f(1)h\dfrac{f(1 + h) - f(1)}{h}, cancel hh, and take the limit before you open the solution.

Show the full solutionHide the solution

(4+6h+3h2)−4h=6h+3h2h=6+3h\dfrac{(4 + 6h + 3h^2) - 4}{h} = \dfrac{6h + 3h^2}{h} = 6 + 3h for h≠0h \neq 0, and 6+3h→66 + 3h \to 6 as h→0h \to 0.

Answer: f′(1)=6f'(1) = 6.

Traps

Trap

Expanding (3+h)2(3 + h)^2 as 9+h29 + h^2.

It seems right because squaring each term looks natural. But (3+h)2=9+6h+h2(3 + h)^2 = 9 + 6h + h^2; the middle term 6h6h is the one that survives the limit and gives the derivative. Dropping it makes every derivative come out as 00.

Check yourself

Which is the correct simplification of (3+h)2−9h\dfrac{(3 + h)^2 - 9}{h}: hh or 6+h6 + h?
Show answerHide answer

6+h6 + h. The numerator is 6h+h26h + h^2, and dividing by hh gives 6+h6 + h.

Trap

Using the derivative formula f′(x)f'(x) as the slope of a tangent line.

It seems right because f′(x)f'(x) is "the slope". But a tangent line at x=ax = a has one fixed slope, the number f′(a)f'(a). With xx left in the slope, the equation is no longer a line.

Check yourself

For f(x)=x2f(x) = x^2 at x=3x = 3, is the tangent line y−9=2x(x−3)y - 9 = 2x(x - 3) or y−9=6(x−3)y - 9 = 6(x - 3)?
Show answerHide answer

y−9=6(x−3)y - 9 = 6(x - 3). The slope is f′(3)=6f'(3) = 6, a number; 2x(x−3)2x(x - 3) makes a parabola, not a line.

What's examined

Rates of change and the definition of the derivative belong to Unit 2 (Derivatives: Definition and Basic Rules) of the AP® Calculus AB exam. Multiple-choice questions often show a limit and ask what it equals, so you must recognize the difference quotient. Free-response questions give tables with units and use "Approximate", "Estimate", "Interpret" and "Write an equation" for a tangent line. None of this needs a graphing calculator.

Practice questions

  1. Recall What is the average rate of change of g(x)=x2+1g(x) = x^2 + 1 on [1,4][1, 4]?
    • A) 15\frac{1}{5}
    • B) 174\frac{17}{4}
    • C) 55
    • D) 1515
Show answer

Answer: C) 55.

Marking points:

  • g(1)=2g(1) = 2 and g(4)=17g(4) = 17, so the rate is 17−24−1=5\dfrac{17 - 2}{4 - 1} = 5.
  • A divides the change in xx by the change in gg, the quotient upside down.
  • B divides the end value g(4)g(4) by 44.
  • D is the total change 1515, not divided by 33.
  1. Recall W(t)W(t) is the volume of water, in gallons, in a tank at time tt minutes, and W′(5)=−2W'(5) = -2. Which statement is correct?
    • A) The tank holds 22 gallons at t=5t = 5 minutes.
    • B) At t=5t = 5 minutes, the volume of water is decreasing at 22 gallons per minute.
    • C) Over the first 55 minutes, the volume fell by 22 gallons.
    • D) The volume decreases by 22 gallons every minute for all tt.
Show answer

Answer: B) At t=5t = 5 minutes, the volume of water is decreasing at 22 gallons per minute.

Marking points:

  • W′(5)W'(5) is the instantaneous rate at t=5t = 5, in gallons per minute, and the negative sign means decreasing.
  • A confuses the rate W′(5)W'(5) with the value W(5)W(5).
  • C describes an average change over an interval.
  • D claims the rate is the same at every time; W′(5)W'(5) is about t=5t = 5 only.
  1. Apply A function ff has f(2)=5f(2) = 5 and f′(2)=−3f'(2) = -3. Which is an equation of the line tangent to the graph of ff at x=2x = 2?
    • A) y=−3x+11y = -3x + 11
    • B) y=−3x+5y = -3x + 5
    • C) y=−3x−1y = -3x - 1
    • D) y=5x−13y = 5x - 13
Show answer

Answer: A) y=−3x+11y = -3x + 11.

Marking points:

  • y−5=−3(x−2)y - 5 = -3(x - 2), so y=−3x+6+5=−3x+11y = -3x + 6 + 5 = -3x + 11.
  • B uses f(2)=5f(2) = 5 as the yy-intercept.
  • C writes (x+2)(x + 2) instead of (x−2)(x - 2).
  • D swaps the slope and the value: y=5(x−2)−3y = 5(x - 2) - 3.
  1. Apply What is the value of lim⁡x→2x3−8x−2\displaystyle\lim_{x \to 2} \frac{x^3 - 8}{x - 2}?
    • A) 00
    • B) 44
    • C) 88
    • D) 1212
Show answer

Answer: D) 1212.

Marking points:

  • The limit is f′(2)f'(2) for f(x)=x3f(x) = x^3; factoring, (x−2)(x2+2x+4)x−2=x2+2x+4→12\dfrac{(x - 2)(x^2 + 2x + 4)}{x - 2} = x^2 + 2x + 4 \to 12.
  • A puts x=2x = 2 into the numerator only.
  • B gives x2x^2 at x=2x = 2, which drops the 2x+42x + 4.
  • C gives f(2)=8f(2) = 8, the value of the function instead of its slope.
  1. Apply For f(x)=xf(x) = \sqrt{x}, the limit lim⁡h→09+h−3h\displaystyle\lim_{h \to 0} \frac{\sqrt{9 + h} - 3}{h} equals f′(a)f'(a). State the value of aa and evaluate the limit.
Show answer

Answer: a=9a = 9, and the limit is 16\dfrac{1}{6}.

Marking points:

  • The quotient matches f(9+h)−f(9)h\dfrac{f(9 + h) - f(9)}{h}, since f(9)=3f(9) = 3.
  • Multiply top and bottom by 9+h+3\sqrt{9 + h} + 3: the quotient becomes 19+h+3\dfrac{1}{\sqrt{9 + h} + 3}.
  • As h→0h \to 0 this tends to 13+3=16\dfrac{1}{3 + 3} = \dfrac{1}{6}.
  1. Exam-style Let f(x)=2x2−xf(x) = 2x^2 - x. (a) Use the definition of the derivative to find f′(3)f'(3). (b) Write an equation for the line tangent to the graph of ff at x=3x = 3.
Show answer

Answer: (a) f′(3)=11f'(3) = 11. (b) y=11x−18y = 11x - 18.

Marking points:

  • f(3)=15f(3) = 15 and f(3+h)=15+11h+2h2f(3 + h) = 15 + 11h + 2h^2.
  • f(3+h)−f(3)h=11+2h→11\dfrac{f(3 + h) - f(3)}{h} = 11 + 2h \to 11.
  • The tangent line is y−15=11(x−3)y - 15 = 11(x - 3), which is y=11x−18y = 11x - 18.
  1. Exam-style A runner's distance from the start line is D(t)D(t) meters, where tt is in seconds and DD is differentiable. D(0)=0D(0) = 0, D(4)=22D(4) = 22, D(10)=61D(10) = 61 and D(15)=90D(15) = 90. (a) Find the average velocity of the runner over 0≤t≤150 \le t \le 15. (b) Use the data to estimate D′(12)D'(12). Indicate units of measure.
Show answer

Answer: (a) 66 meters per second. (b) D′(12)≈5.8D'(12) \approx 5.8 meters per second.

Marking points:

  • Average velocity: D(15)−D(0)15−0=9015=6\dfrac{D(15) - D(0)}{15 - 0} = \dfrac{90}{15} = 6 meters per second.
  • t=12t = 12 lies between 1010 and 1515, so D′(12)≈90−6115−10=295=5.8D'(12) \approx \dfrac{90 - 61}{15 - 10} = \dfrac{29}{5} = 5.8 meters per second.
  • Both answers carry units of meters per second.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Average rate of change is change in output over change in input, the slope of a secant, in output units per input unit.
  • f′(a)f'(a) is the limit of difference quotients as the interval shrinks; simplify and cancel before letting h→0h \to 0.
  • A limit of the form f(a+h)−f(a)h\frac{f(a + h) - f(a)}{h} or f(x)−f(a)x−a\frac{f(x) - f(a)}{x - a} is f′(a)f'(a): read off ff and aa.
  • From a table, estimate f′(a)f'(a) with the closest data on either side, and give units.
  • The tangent line at x=ax = a is y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a), with the number f′(a)f'(a) as its slope.

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Derivatives: Definition and Basic Rules

All Defining the Derivative notes

Part of Novark's AP Calculus AB notes