Unit 7, lesson 62

Difference Quotients Before Limits

How to build the difference quotient of a function, substitute a + h correctly, and simplify it by honest cancellation while keeping h nonzero and both inputs in the domain.

  • Theory part 123
  • Practice part 124
  • Toward the Derivative

Calculus defines the derivative as a limit of a fraction, and the limit step is usually short. The real work, and most of the mistakes, come earlier, in writing that fraction down and simplifying it. This page does only the finite part, with a real nonzero step hh, so that when limits arrive the algebra is already solid.

Key terms

Input change

Definition When the input of a function moves from x1x_1 to x2x_2, the input change is

Δx=x2−x1.\Delta x = x_2 - x_1.

When the inputs are written as aa and a+ha + h, the input change is (a+h)−a=h(a + h) - a = h. It is positive when the input increases and negative when it decreases.

In plain words The input change is how far you step along the horizontal axis, with a sign that tells the direction.

Example Moving from x=5x = 5 to x=3.5x = 3.5 gives Δx=3.5−5=−1.5\Delta x = 3.5 - 5 = -1.5. Starting at a=5a = 5, this is the step h=−1.5h = -1.5.

Output change

Definition For a function ff and inputs x1x_1 and x2x_2 in its domain, the output change is

Δy=f(x2)−f(x1).\Delta y = f(x_2) - f(x_1).

The order matters. Use the same order in the output change and the input change, the second input minus the first in both.

In plain words The output change is how far the graph rises or falls between the two inputs.

Example For f(x)=x2+3xf(x) = x^2 + 3x, moving from x=1x = 1 to x=2x = 2 changes the output from f(1)=4f(1) = 4 to f(2)=10f(2) = 10, so Δy=6\Delta y = 6.

Evaluating f(a + h) by substitution

Definition The expression f(a+h)f(a + h) is the output of ff at the single input a+ha + h. It is found by substitution, replacing every occurrence of the input variable in the formula for ff by (a+h)(a + h), with parentheses. In general

f(a+h)≠f(a)+handf(a+h)≠f(a)+f(h).\begin{gathered} f(a + h) \ne f(a) + h \quad \text{and} \\[0.4em] f(a + h) \ne f(a) + f(h). \end{gathered}

In plain words Treat a+ha + h as one number and feed the whole thing into the formula. Parentheses keep the substitution honest.

Example For f(x)=x2f(x) = x^2 and a=3a = 3,

f(3+h)=(3+h)2=9+6h+h2.\begin{aligned} f(3 + h) &= (3 + h)^2 \\[0.4em] &= 9 + 6h + h^2. \end{aligned}

The tempting wrong answers are f(3)+h=9+hf(3) + h = 9 + h and f(3)+f(h)=9+h2f(3) + f(h) = 9 + h^2. Both miss the middle term 6h6h. With h=1h = 1 the correct value is f(4)=16f(4) = 16, while the wrong ones give 1010.

Difference quotient

Definition Let ff be a real function, let aa and hh be real numbers with h≠0h \ne 0, and suppose both aa and a+ha + h lie in the domain of ff. The difference quotient of ff at aa with step hh is

f(a+h)−f(a)(a+h)−a=f(a+h)−f(a)h.\begin{aligned} &\frac{f(a + h) - f(a)}{(a + h) - a} \\[0.6em] &\quad = \frac{f(a + h) - f(a)}{h}. \end{aligned}

The numerator is the output change and the denominator is the input change, taken in the same order.

In plain words It is the change in output divided by the change in input. It measures the average rate at which ff changes between aa and a+ha + h.

Example For f(x)=x2+3xf(x) = x^2 + 3x and a=1a = 1 we have f(1)=4f(1) = 4 and, by substitution,

f(1+h)=(1+h)2+3(1+h)=4+5h+h2.\begin{aligned} f(1 + h) &= (1 + h)^2 + 3(1 + h) \\[0.4em] &= 4 + 5h + h^2. \end{aligned}

So the difference quotient is

f(1+h)−f(1)h=5h+h2h,h≠0.\begin{aligned} \frac{f(1 + h) - f(1)}{h} &= \frac{5h + h^2}{h}, \\[0.4em] &\qquad h \ne 0. \end{aligned}

Secant slope

Definition The secant line through the distinct points (a,f(a))(a, f(a)) and (a+h,f(a+h))(a + h, f(a + h)) of the graph of ff has slope equal to the difference quotient

msec=f(a+h)−f(a)h.m_{\text{sec}} = \frac{f(a + h) - f(a)}{h}.

The step hh may be positive or negative. Listing the two points in the other order changes the sign of both the numerator and the denominator, so the slope does not depend on which point is called first.

In plain words The difference quotient is the slope of the straight line joining two points of the graph, rise over run.

Example For f(x)=x2+3xf(x) = x^2 + 3x and a=1a = 1, take h=1h = 1 and h=−1h = -1.

hhSecond pointSecant slope
11(2,10)(2, 10)10−41=6\frac{10 - 4}{1} = 6
−1-1(0,0)(0, 0)0−4−1=4\frac{0 - 4}{-1} = 4

These two plotted slopes will be used to check the simplified formula in the next section.

Cancellation

Definition A factor hh may be cancelled from a quotient only after it has been factored out of the entire numerator, and only for h≠0h \ne 0. If the numerator equals h⋅g(h)h \cdot g(h), then

h⋅g(h)h=g(h)for h≠0.\frac{h \cdot g(h)}{h} = g(h) \quad \text{for } h \ne 0.

The simplified expression equals the difference quotient only at the values of hh where the difference quotient was defined. Cancelling a term that is added, rather than a common factor, is not allowed.

In plain words Pull an hh out of every term on top first. Then it can cancel with the hh underneath, and the answer comes with the reminder that hh is still not zero.

Example Continuing with f(x)=x2+3xf(x) = x^2 + 3x at a=1a = 1,

5h+h2h=h(5+h)h=5+h,h≠0.\begin{aligned} \frac{5h + h^2}{h} &= \frac{h(5 + h)}{h} \\[0.6em] &= 5 + h, \qquad h \ne 0. \end{aligned}

Check against the table. With h=1h = 1 the formula gives 66 and with h=−1h = -1 it gives 44, matching both secant slopes. A wrong move such as striking out the hh in 5h5h alone to get 5+h2h\frac{5 + h^2}{h} would give 66 at h=1h = 1 but −6-6 at h=−1h = -1, and the second check exposes it.

A quotient with fractions needs a common denominator first. For g(x)=1xg(x) = \frac{1}{x} at a=2a = 2, with h≠0h \ne 0 and h≠−2h \ne -2,

g(2+h)−g(2)=12+h−12=2−(2+h)2(2+h)=−h2(2+h).\begin{aligned} g(2 + h) - g(2) &= \frac{1}{2 + h} - \frac{1}{2} \\[0.6em] &= \frac{2 - (2 + h)}{2(2 + h)} \\[0.6em] &= \frac{-h}{2(2 + h)}. \end{aligned}

Dividing by hh cancels the factor hh and gives

g(2+h)−g(2)h=−12(2+h).\frac{g(2 + h) - g(2)}{h} = -\frac{1}{2(2 + h)}.

The point (4,14)(4, \tfrac{1}{4}) with h=2h = 2 gives the secant slope 1/4−1/22=−18\frac{1/4 - 1/2}{2} = -\frac{1}{8}, and the formula gives −12⋅4=−18-\frac{1}{2 \cdot 4} = -\frac{1}{8}. The point (1,1)(1, 1) with h=−1h = -1 gives slope 1−1/2−1=−12\frac{1 - 1/2}{-1} = -\frac{1}{2}, and the formula gives −12⋅1=−12-\frac{1}{2 \cdot 1} = -\frac{1}{2}.

Nonzero increment and allowed steps

Definition The increment hh in a difference quotient must satisfy h≠0h \ne 0, because the quotient divides by hh and the two points must be distinct. It may be positive or negative. It must also keep a+ha + h in the domain of ff, so the set of allowed hh depends on both the function and the point aa, and that restriction stays attached to every simplified form.

In plain words The step cannot be zero and cannot leave the domain. Every rewritten form of the quotient inherits those same rules.

Example For g(x)=1xg(x) = \frac{1}{x} at a=2a = 2, the input 2+h2 + h must not be 00, so h≠−2h \ne -2, and h≠0h \ne 0 as always. The simplified form −12(2+h)-\frac{1}{2(2 + h)} happens to make sense at h=0h = 0, giving −14-\frac{1}{4}, but the difference quotient itself does not exist there. That gap is exactly what the limit in calculus will deal with.

For f(x)=x2f(x) = x^2 with general aa, the quotient is

(a+h)2−a2h=2ah+h2h=2a+h,h≠0.\begin{aligned} \frac{(a + h)^2 - a^2}{h} &= \frac{2ah + h^2}{h} \\[0.6em] &= 2a + h, \\[0.4em] &\qquad h \ne 0. \end{aligned}

Every real aa and every nonzero real hh is allowed here, since ff is defined everywhere.

Check yourself

  1. Find and simplify the difference quotient of f(x)=2x2−xf(x) = 2x^2 - x at a=3a = 3. Check your answer with h=1h = 1.
Show the answer

Substitution gives

f(3+h)=2(9+6h+h2)−(3+h)=15+11h+2h2,\begin{aligned} f(3 + h) &= 2(9 + 6h + h^2) \\[0.2em] &\quad - (3 + h) \\[0.4em] &= 15 + 11h + 2h^2, \end{aligned}

and f(3)=15f(3) = 15. So

f(3+h)−f(3)h=11h+2h2h=11+2h,h≠0.\begin{aligned} \frac{f(3 + h) - f(3)}{h} &= \frac{11h + 2h^2}{h} \\[0.6em] &= 11 + 2h, \\[0.4em] &\qquad h \ne 0. \end{aligned}

With h=1h = 1 the formula gives 1313. The points (3,15)(3, 15) and (4,28)(4, 28) give slope 1313 as well.

  1. Simplify the difference quotient of f(x)=1x+1f(x) = \frac{1}{x + 1} at a=1a = 1 and state which values of hh are allowed.
Show the answer

The common denominator gives

12+h−12=−h2(2+h),\frac{1}{2 + h} - \frac{1}{2} = \frac{-h}{2(2 + h)},

since f(1+h)=12+hf(1 + h) = \frac{1}{2 + h} and f(1)=12f(1) = \frac{1}{2}. Dividing by hh cancels the factor hh, so the difference quotient is −12(2+h)-\frac{1}{2(2 + h)}. The input 1+h1 + h must not be −1-1, so h≠−2h \ne -2, and also h≠0h \ne 0.

  1. For f(x)=xf(x) = \sqrt{x} at a=4a = 4, which steps hh are allowed in the difference quotient?
Show the answer

The input 4+h4 + h must be in the domain [0,∞)[0, \infty), so h≥−4h \ge -4. Together with h≠0h \ne 0, the allowed steps are −4≤h<0-4 \le h < 0 and h>0h > 0.

How this lesson connects

Resources for this lesson