The Difference Quotient

What Problem Are We Solving?

Imagine you’re driving. Your speedometer shows your speed right now.

But what if you only had the odometer (total distance)?

You could calculate your average speed:

Average speed=change in distancechange in time\text{Average speed} = \frac{\text{change in distance}}{\text{change in time}}

The shorter the time interval, the closer this gets to your actual speed.


The Same Idea for Functions

For any function f(x)f(x), we can measure how fast it’s changing.

The difference quotient gives the average rate of change between two points:

f(x+h)f(x)h\frac{f(x + h) - f(x)}{h}


Breaking it down:

  • f(x)f(x) — output at point xx
  • f(x+h)f(x + h) — output at a nearby point, hh units to the right
  • f(x+h)f(x)f(x + h) - f(x) — how much the output changed
  • Divide by hh — change per unit of input

In short: change in output ÷ change in input


Example: f(x)=x2f(x) = x^2

Step 1: Find f(x+h)f(x + h)

Replace every xx with (x+h)(x + h):

f(x+h)=(x+h)2=x2+2xh+h2\begin{aligned} f(x + h) &= (x + h)^2 \\ &= x^2 + 2xh + h^2 \end{aligned}

Step 2: Subtract f(x)f(x)

f(x+h)f(x)=(x2+2xh+h2)x2=2xh+h2\begin{aligned} f(x + h) - f(x) &= (x^2 + 2xh + h^2) - x^2 \\ &= 2xh + h^2 \end{aligned}

Step 3: Divide by hh

f(x+h)f(x)h=2xh+h2h=h(2x+h)h=2x+h\begin{aligned} \frac{f(x + h) - f(x)}{h} &= \frac{2xh + h^2}{h} \\[0.5em] &= \frac{h(2x + h)}{h} \\[0.5em] &= 2x + h \end{aligned}

Result: The difference quotient for f(x)=x2f(x) = x^2 is 2x+h2x + h.

This tells us the average rate of change between xx and x+hx + h.


The Connection to Calculus

What happens as hh gets smaller?

  • When h=1h = 1: difference quotient =2x+1= 2x + 1
  • When h=0.1h = 0.1: difference quotient =2x+0.1= 2x + 0.1
  • When h=0.01h = 0.01: difference quotient =2x+0.01= 2x + 0.01

As h0h \to 0, the difference quotient approaches 2x2x.

This limit is called the derivative. It measures the instantaneous rate of change.


Simpler Example: f(x)=3x+1f(x) = 3x + 1

Step 1: f(x+h)=3(x+h)+1=3x+3h+1f(x + h) = 3(x + h) + 1 = 3x + 3h + 1

Step 2:

f(x+h)f(x)=(3x+3h+1)(3x+1)=3h\begin{aligned} f(x + h) - f(x) &= (3x + 3h + 1) - (3x + 1) \\ &= 3h \end{aligned}

Step 3: 3hh=3\dfrac{3h}{h} = 3


Result: The difference quotient is just 33.

This makes sense — a line has a constant slope, so the rate of change is the same everywhere.


Why This Matters

The difference quotient is the foundation of calculus.

  • Now: Practice the algebra of computing it
  • Later: Take the limit as h0h \to 0 to find derivatives

Master this, and derivatives become straightforward.