Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 39 · Getting Started

Average Rate of Change and Secant Lines

Learn to compute the average rate of change of a function over an interval, see it as the slope of a secant line, and apply it to speed and growth.

A rate of change compares how much one quantity changes to how much another changes. Speed compares distance to time. Growth rate compares population to years. In calculus, the simplest version is the average rate of change of a function over an interval.

The formula

For a function f between x = a and x = b:

average rate of change = (f(b) - f(a)) / (b - a)

The top is the change in output, often written Δy. The bottom is the change in input, Δx. The symbol Δ (delta) means "change in". So the average rate of change is Δy / Δx, which is the slope formula you learned in algebra.

Worked example. A plant's height in centimeters after t days is h(t) = 2t + 0.5t². What is the average growth rate from day 2 to day 6?

  • h(2) = 4 + 2 = 6 cm
  • h(6) = 12 + 18 = 30 cm
  • Rate = (30 - 6) / (6 - 2) = 24 / 4 = 6 cm/day

Always include units: output units per input unit.

Secant lines

A secant line is a straight line through two points on a curve. Its slope is exactly the average rate of change between those points. A flat line has rate 0, a rising line has a positive rate, and a falling line has a negative rate.

flowchart LR
  P["Point (a, f(a))"] --- S["Secant line<br/>slope = Δy / Δx"] --- Q["Point (b, f(b))"]

A secant line joins two points of the graph.

Python Average rate of change calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The rate grows with time because the plant's growth is accelerating. A single average does not capture that: between day 0 and day 2 it is 3 cm/day, but between day 4 and day 6 it is 7 cm/day.

Seeing the secant

Python Plot a secant line

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

For f(x) = x² between 1 and 3 the rate is (9 - 1) / 2 = 4. In general, for x² the average rate between a and b equals a + b, a handy check.

Limits of the idea

Average rates depend on the interval you choose. The speedometer reading of a car is not an average over a trip; it is the rate at one moment. To get that we shrink the interval, which is the topic of the next lessons.

Do not confuse average rate of change with the average value of a function. The average rate uses the difference of outputs divided by the difference of inputs.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A car's position is 20 km at 1 h and 110 km at 2.5 h. What is its average speed over that time?

    (110 - 20) / (2.5 - 1) = 90 / 1.5 = 60 km/h.
  2. 2. The slope of a secant line through (a, f(a)) and (b, f(b)) equals

    That is the definition of the average rate of change.
  3. 3. For f(x) = x², the average rate of change from x = 2 to x = 5 is

    (25 - 4) / 3 = 7, which also equals 2 + 5.
  4. 4. A negative average rate of change means the function is, on average,

    Output falls as input rises.

Summary

  • Average rate of change is Δy / Δx = (f(b) - f(a)) / (b - a).
  • It is the slope of the secant line through two points.
  • Always state units as output per input.
  • It depends on the interval, which leads to the idea of instantaneous rate.

Next: Instantaneous Rate and Tangent Lines