The difference quotient: average rate of change
Think of driving between two mile markers. Your car has traveled some extra miles over some extra hours. Dividing the extra miles by the extra hours gives your average speed. A difference quotient does the same comparison for a function: new output minus old output, divided by the step in input. Difference means the result of subtraction. Quotient means the result of division. The answer tells you how much the output changes for each 1 step of input, on average. On a graph, it is the steepness, called the slope, of the straight line joining the two points. The step is called h, and it must be nonzero.
- Signed arithmetic. A negative squared is positive when enclosed: (−2 = 4, while 3(−2) = −6.
- Distributive property. Multiply every term inside: 3(a + h) = 3a + 3h.
- Squaring a sum. (a + h = + 2ah + because it contains four products, not two.
- Subtracting parentheses. −( + 3a − 4) = − − 3a + 4; each sign changes.
- Nonzero factor cancellation. = 2a + h only for h ≠ 0.
- Pulling out a common factor. 2xh + + 3h = h(2x + h + 3). Distributing back verifies every term.
f of x plus h, minus f of x, all over h
Average output change for each 1 step of input, from x to x + h.
- h ≠ 0
Extra miles divided by extra hours measures average speed.
Your odometer reads 20 miles at hour 1 and 32 miles at hour 3. The extra distance is 32 − 20 = 12 miles. The extra time is 3 − 1 = 2 hours. Average speed is = 6 miles per hour. The unit comes from dividing miles by hours.
For f(x) = , the points (1, 1) and (3, 9) have a sideways step of 2 and an upward change of 8. Rise means the output change. Run means the input change. Their joining line has slope = = 4. The curve itself need not be a straight line.
For C(n) = 15 + 2n dollars for n gigabytes, C(3) = 21 and C(5) = 25. The difference quotient is = = 2 dollars per extra gigabyte. The fixed 15-dollar fee cancels because both costs contain it.
For these polynomial examples, expanding f(x + h) gives a copy of f(x) and extra terms that each contain h. Subtracting f(x) removes that copy. For f(x) = + 3x − 4, the , 3x, and −4 cancel; 2xh + + 3h remain. Factor h or divide each term by h. This polynomial self-check is not a rule for expanding root or reciprocal formulas.
.1Numbers first: what the quotient is for
Compare two readings on the same trip. The difference quotient measures the average rate of change, meaning the average output change for each 1 step of input. This becomes average speed when the output is distance and the input is time. On a graph it measures the slope of the line through the two points. Section 1.3 develops this same rate-of-change idea. Calculus later considers steps closer and closer to zero to describe change at one instant.
- Difference means subtraction; quotient means division.
- Use the same two inputs for the top change and the bottom change.
- Across these two readings, a positive rate means the output at the larger input is higher. A negative rate means it is lower. Zero means the two outputs agree. The average does not assert what happens at every input between the two readings.
f of three minus f of one, all over three minus one, equals seven.
The two output readings change by 14 while their inputs change by 2, giving 7 output units per input unit.
- f(x) = + 3x − 4
- = = 7
- 2 × 7 = 14
Extra miles divided by the matching extra hours gives average speed.
For f(x) = + 3x − 4, compare input 1 with input 3. The input step is h = 2. Find , the average output change for each 1 step of input.
- Keep the input and output from each reading together.
- Subtract ending minus starting in both the top and bottom.
- Multiply the rate by the input step to check that it recovers the output change.
- f(3) = (3 + 3(3) − 4 = 9 + 9 − 4 = 14.The ending input is 3; replace every x with 3.
- f(1) = (1 + 3(1) − 4 = 1 + 3 − 4 = 0.The starting input is 1; replace every x with 1.
- The output change is 14 − 0 = 14. The input change is 3 − 1 = 2.Subtract the starting reading from the ending reading in both places.
- = = = 7.Divide the output change by the nonzero input change.
- Say new minus old in both places.
- As an everyday comparison: Compare two readings on the same trip. The difference quotient measures the average rate of change, meaning the average output change for each 1 step of input. This becomes average speed when the output is distance and the input is time. On a graph it measures the slope of the line through the two points. Section 1.3 develops this same rate-of-change idea. Calculus later considers steps closer and closer to zero to describe change at one instant.
- With the worked values: The calculated output change is 14. Multiplying the quotient 7 by the input change 2 recovers 14, so the division matches the two readings. On the dashed line, two steps right give a rise of 2 × 7 = 14, matching the change on the curve.
.2Difference quotient
Imagine checking a car's mileage at the start and end of a trip. You need the difference between the readings, not their sum. Then divide by the time spent traveling. A difference quotient does this for any function: it compares the output at input a + h with the output at input a, then divides by the input change h. Here h is a number measuring a change, not a function name. It may be negative, but it must not be zero.
- The input change is (a + h) − a = h.
- The output change is f(a + h) − f(a).
- Cancel only a common factor of the whole numerator and denominator, with h ≠ 0.
- h is the size and direction of the input step. A step of zero gives no move and division by zero. Both inputs must belong to the function’s domain.
- Canceling fractions. Only common nonzero factors cancel: = 8, but does not equal 8.
f of the whole sum a plus h, minus f of a, all over h; h is not zero.
Subtract the starting output from the ending output, then divide by the same input step.
- (a + h) − a = h
- h ≠ 0
Compare an odometer’s ending and starting readings over the matching travel time.
For f(x) = + 3x − 4, compare starting input 3 with ending input 1. The input step is h = −2. Find the average output change per input step.
- Keep the input and output from each reading together.
- Subtract ending minus starting in both the top and bottom.
- Multiply the rate by the input step to check that it recovers the output change.
- f(3) = 14 and f(1) = 0.Both values were found in the numbers-first example.
- The input change is 1 − 3 = −2 and the output change is 0 − 14 = −14.Both subtractions use the same ending-minus-starting direction.
- = = 7.A negative divided by a negative is positive, so reversing both changes keeps their ratio the same.
- Use three lines: first f(a + h), next f(a), then the quotient. Keep the subtraction parentheses until every sign has changed.
- A before and after comparison: The numerator asks how much the output changed. The denominator asks how much the input changed. Both must describe the same move from a to a + h.
- Whole groups cancel: If the numerator becomes h(2a + h + 3), it is h times one whole group. Dividing by h removes that repeated nonzero factor. A term such as 3h cannot be canceled alone while other terms stay in the numerator.
.3One letter keeps many step sizes
A letter h saves you from doing the same calculation for every possible step. For f(x) = , the algebra gives 2x + h. At starting input x = 3, it becomes 6 + h. Put any nonzero allowed step into that one expression to get its average rate. A smaller step compares points closer together. You are still dividing by a nonzero step, even when the algebra is simplified.
- The picture lists exact step sizes and their exact rates for starting input x = 3. The decimal rates shown are exact, not rounded.
- a and x are alternate names for the starting input. h names the step.
- h(2x + h) means h × (2x + h) here because h is a number, not the function name.
For the square rule, the average rate from x to x plus h is two x plus h, with h not zero.
One expression gives the square rule’s average rate for many different nonzero input steps.
- = 2x + h, h ≠ 0
- At x = 3: 2x + h = 6 + h
- h = gives 6.5
One adjustable recipe handles many choices of the ingredient amount.
For s(x) = , find , with h ≠ 0. Compare the squares of the ending and starting inputs.
- Every input variable receives the whole sum in parentheses.
- A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
- Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
- s(a + h) = (a + h = + 2ah + .Expand the square using its four products.
- s(a) = .The starting input is a.
- s(a + h) − s(a) = ( + 2ah + ) − = 2ah + .The starting square is removed from the ending output.
- = .Both terms in the numerator contain a factor h.
- = 2a + h, with h ≠ 0.Cancel the nonzero factor h multiplying the whole numerator.
- Write the condition h ≠ 0 beside the answer.
- As an everyday comparison: A letter h saves you from doing the same calculation for every possible step. For f(x) = , the algebra gives 2x + h. At starting input x = 3, it becomes 6 + h. Put any nonzero allowed step into that one expression to get its average rate. A smaller step compares points closer together. You are still dividing by a nonzero step, even when the algebra is simplified.
- With the worked values: Choose a = 2 and h = −1. Directly, = = 3. The simplified expression gives 4 − 1 = 3. A negative nonzero h is allowed.
- Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.
- Multiply out. A square has the middle term: (x + h = + 2xh + . A number in front multiplies every piece.
- Subtract f(x) in parentheses, then reverse every sign in that subtracted group.
- In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.
- Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.
- Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.
Build a difference quotient in six stages
- Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.
- Multiply out. A square has the middle term: (x + h = + 2xh + . A number in front multiplies every piece.
- Subtract f(x) in parentheses, then reverse every sign in that subtracted group.
- In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.
- Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.
- Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.
Let f(x) = + 3x − 4. Find f(2), f(a), f(a + h), and for h ≠ 0. The first three ask for outputs at stated inputs. The last compares two outputs and divides by their input change.
- Every input variable receives the whole sum in parentheses.
- A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
- Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
- f(2) = (2 + 3(2) − 4 = 4 + 6 − 4 = 6.Replace every x with 2, then do the power and multiplication before adding.
- f(a) = + 3a − 4.The input is the letter a, so every x becomes a.
- f(a + h) = (a + h + 3(a + h) − 4.Each x receives the whole expression a + h.
- (a + h = (a + h)(a + h) = + ah + ha + = + 2ah + .The four products include two copies of ah.
- 3(a + h) = 3a + 3h, so f(a + h) = + 2ah + + 3a + 3h − 4.The 3 multiplies both terms of the input sum.
- f(a + h) − f(a) = ( + 2ah + + 3a + 3h − 4) − ( + 3a − 4).Subtract the entire starting output, not only its first term.
- = + 2ah + + 3a + 3h − 4 − − 3a + 4.The subtraction changes all three signs in the second parentheses.
- = 2ah + + 3h. − , 3a − 3a and −4 + 4 each equal zero.
- = = .Each numerator term has a factor h: 2ah = h(2a), = h(h), and 3h = h(3).
- = 2a + h + 3, with h ≠ 0.The same nonzero factor h multiplies the whole numerator and denominator, so it cancels.
- f(2) = 6
- f(a) = + 3a − 4
- f(a + h) = + 2ah + + 3a + 3h − 4
- = 2a + h + 3, with h ≠ 0
- With starting input named x, the same quotient is 2x + h + 3, with h ≠ 0.
For k(x) = 7, simplify , with h ≠ 0. This asks for the average output change per input step.
- A constant output ignores the input.
- Equal ending and starting outputs have difference zero.
- Zero divided by a nonzero number is zero; division by zero has no value.
- k(x + h) = 7 and k(x) = 7.A constant rule returns the same 7 regardless of input, so both the starting and ending outputs are 7.
- k(x + h) − k(x) = 7 − 7 = 0.The new and old outputs are equal, and subtracting equal numbers gives zero.
- = 0, h ≠ 0.Zero divided by a nonzero input step is zero; the quotient still requires h ≠ 0.
For L(x) = 6x + 11, simplify , with h ≠ 0. This asks for the average output change per input step.
- A multiplier outside the changed input reaches both its terms.
- The minus before the starting output changes every sign in that output.
- Cancel only after the entire numerator is a multiple of nonzero h.
- L(x + h) = 6(x + h) + 11 = 6x + 6h + 11.Replace x with the whole x + h; distributing 6 gives 6x + 6h.
- L(x + h) − L(x) = (6x + 6h + 11) − (6x + 11) = 6h.Subtracting the whole old output reverses both signs. The 6x terms and 11 terms cancel, leaving 6h.
- = 6, h ≠ 0.The same nonzero h multiplies the whole numerator and denominator, so dividing removes that factor.
For g(x) = 9 − 5x, simplify , with h ≠ 0. This asks for the average output change per input step.
- A multiplier outside the changed input reaches both its terms.
- The minus before the starting output changes every sign in that output.
- Cancel only after the entire numerator is a multiple of nonzero h.
- g(x + h) = 9 − 5(x + h) = 9 − 5x − 5h.Replace x with x + h. The multiplier −5 reaches both x and h, giving −5x and −5h.
- g(x + h) − g(x) = (9 − 5x − 5h) − (9 − 5x) = 9 − 5x − 5h − 9 + 5x = −5h.Subtracting 9 − 5x gives −9 + 5x. The 9 terms and x terms then cancel, leaving −5h.
- = −5, h ≠ 0.The numerator is −5 times nonzero h. Division by h returns −5.
For s(x) = , simplify , with h ≠ 0. This asks for the average output change per input step.
- Every input variable receives the whole sum in parentheses.
- A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
- Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
- s(x + h) = (x + h = + 2xh + .Multiply two whole copies of x + h. The cross products xh and hx add to 2xh.
- s(x + h) − s(x) = + 2xh + − = 2xh + .The starting output is subtracted from the ending output, so − cancels to zero.
- 2xh + = h(2x + h).Both 2xh and contain h: they are h × 2x and h × h.
- = 2x + h, h ≠ 0.Cancel the common factor h multiplying the entire numerator, retaining the nonzero restriction.
For P(x) = 4, simplify , with h ≠ 0. This asks for the average output change per input step.
- Every input variable receives the whole sum in parentheses.
- A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
- Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
- P(x + h) = 4(x + h.Replace the x in the square by the whole sum x + h while leaving its outside multiplier 4 outside.
- First square: (x + h = + 2xh + .The square is computed first. Its four products are , xh, hx, and .
- Then multiply every term by 4: P(x + h) = 4 + 8xh + 4.Distribution applies the outside 4 to each term: 4 × 2xh = 8xh and 4 × = 4.
- P(x + h) − P(x) = 4 + 8xh + 4 − 4 = 8xh + 4.The old output is 4, so subtracting it removes the ending expression’s 4 term.
- 8xh + 4 = h(8x + 4h).8xh = h × 8x and 4 = h × 4h. Reverse distribution to place the shared h outside and the group 8x + 4h inside.
- = 8x + 4h, h ≠ 0.The whole numerator is h times one group, so nonzero h cancels from that product.
For Q(x) = 3 − 2x + 6, simplify , with h ≠ 0. This asks for the average output change per input step.
- Every input variable receives the whole sum in parentheses.
- A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
- Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
- Q(x + h) = 3(x + h − 2(x + h) + 6.Both occurrences of x receive the complete sum x + h.
- Q(x + h) = 3 + 6xh + 3 − 2x − 2h + 6.Expand (x + h first, multiply all three terms by 3, and distribute −2 to both terms of x + h.
- Q(x + h) − Q(x) = (3 + 6xh + 3 − 2x − 2h + 6) − (3 − 2x + 6).The entire old output has three terms. Parentheses keep all three together for subtraction.
- = 3 + 6xh + 3 − 2x − 2h + 6 − 3 + 2x − 6 = 6xh + 3 − 2h.Negating the old output gives −3 + 2x − 6; these cancel the matching , x, and constant terms.
- 6xh + 3 − 2h = h(6x + 3h − 2).Each of the three remaining terms contains h; taking it out leaves 6x, 3h, and −2.
- = 6x + 3h − 2, h ≠ 0.Divide out the same nonzero h from the whole numerator and denominator.
For R(x) = −2 + 9, simplify , with h ≠ 0. This asks for the average output change per input step.
- Every input variable receives the whole sum in parentheses.
- A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
- Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
- R(x + h) = −2(x + h + 9.The whole x + h replaces x inside the square; the multiplier −2 remains outside.
- R(x + h) = −2 − 4xh − 2 + 9.Expand the square and multiply every term by −2: 2xh becomes −4xh and becomes −2.
- R(x + h) − R(x) = (−2 − 4xh − 2 + 9) − (−2 + 9).Subtract the entire starting output −2 + 9 as one group.
- = −2 − 4xh − 2 + 9 + 2 − 9 = −4xh − 2.Subtracting −2 + 9 adds 2 and subtracts 9. Both matching old-output terms cancel.
- −4xh − 2 = h(−4x − 2h).Both remaining terms contain h, and dividing each by h leaves −4x and −2h.
- = −4x − 2h, h ≠ 0.The shared nonzero h cancels from the whole product, preserving the quotient value.
- New output minus old output, over the step h. Say this before writing the symbols.
- For the polynomial ladder, circle any remaining term without h after subtraction. Check all expansion and subtraction signs if one survives.
- a and x both mean the starting input. h is the step.
- On the exam, write the simplified expression and h ≠ 0. Rebuild the algebra rather than memorize a quadratic’s final answer.