Quarry School

The difference quotient: average rate of change

Subject: MathematicsLeans on: Signed arithmeticLeans on: Distributive propertyLeans on: Squaring a sumLeans on: Subtracting parenthesesLeans on: Nonzero factor cancellationLeans on: Pulling out a common factor
Level 2 · BuildingAbout 25 min read11 new termsKeystone idea. Later lessons build on this one.
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Think of driving between two mile markers.

    Rule

    Difference quotient: f(x+h)−f(x)h, with h ≠ 0 and both inputs in the domain. Read it: f of x plus h, minus f of x, all over h. The starting input can also be named a: f(a+h)−f(a)h.

    Step

    1. Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.

    2. Multiply out. A square has the middle term: (x + h)2 = x2 + 2xh + h2. A number in front multiplies every piece.

    3. Subtract f(x) in parentheses, then reverse every sign in that subtracted group.

    4. In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.

    5. Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.

    6. Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.

    Question

    For f(x) = x2 + 3x − 4, compare input 1 with input 3. The input step is h = 2. Find f(3)−f(1)2, the average output change for each 1 step of input.

    Answer

    The average rate of change is 7 output units per input unit.

    Trap

    Subtracting only the first term of the starting output. Keep −(f(x)) as one group, then change every sign inside.

    Strategy

    1. Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.

    2. Multiply out. A square has the middle term: (x + h)2 = x2 + 2xh + h2. A number in front multiplies every piece.

    3. Subtract f(x) in parentheses, then reverse every sign in that subtracted group.

    4. In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.

    5. Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.

    6. Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.

    Term

    Variable

    Definition

    A letter that represents a number or another chosen value.

    Term

    Function

    Definition

    A relation assigning exactly one output to every input in its domain.

    Term

    Input

    Definition

    A value chosen for a function. The definition decides which values are allowed.

    Term

    Output

    Definition

    The result a function assigns to a particular input.

    Term

    Domain

    Definition

    The set of all inputs accepted by the defined relation or function.

    Term

    Formula

    Definition

    A mathematical instruction connecting quantities, often written as an equation.

    Term

    Evaluate

    Definition

    Find the output at a given input by applying the rule or reading its representation.

    Term

    Graph

    Definition

    A picture of ordered pairs at their coordinate locations. A graph of a function contains every pair (x, f(x)) for its allowed inputs.

    Term

    Constant

    Definition

    A value that stays fixed in the stated rule.

    Term

    Reciprocal

    Definition

    One divided by a nonzero number. A number times its reciprocal equals 1.

    Term

    Distributive property

    Definition

    Multiplying a sum multiplies every term in it: a(b + c) = ab + ac.

    Term

    Factor

    Definition

    A quantity multiplied by another quantity in a product.

    Term

    Like terms

    Definition

    Terms with the same variable part and powers, so their coefficients can be combined.

    Term

    Difference quotient

    Definition

    The average rate of change: new output minus old output, divided by the nonzero input step h. It is the slope between two graph points.

    Term

    Numerator

    Definition

    The top of a fraction, showing the quantity being divided.

    Term

    Denominator

    Definition

    The bottom of a fraction, showing the divisor or number of equal pieces in one whole. It cannot be zero.

    Term

    Undefined

    Definition

    No value is assigned by the rule, often because it would require division by zero.

    Term

    Area

    Definition

    The amount of flat surface inside a shape, measured in square units.

    Term

    Even

    Definition

    An integer divisible by 2 into an integer result.

    Term

    Coefficient

    Definition

    A number multiplying a variable term.

    Term

    Circle

    Definition

    The set of points at one fixed positive distance from a center.

    Term

    ≠

    Definition

    A symbol saying two quantities are not equal.

    Term

    Slope

    Definition

    A line's steepness, measured as change in height divided by change in horizontal position. A downward change can give a negative slope.

    Term

    Average rate of change

    Definition

    The average output change for each one unit of input change between two inputs. It equals the slope of the line joining their graph points.

    Term

    Difference

    Definition

    The result of a subtraction. For a change, subtract the old value from the new value.

    Term

    Quotient

    Definition

    The result of a division. The divisor must be nonzero.

    Term

    Polynomial

    Definition

    A sum of constant multiples of whole-number powers of a variable. Its variable is not inside a root or denominator.

    Term

    Term

    Definition

    One added or subtracted piece of an expression. Keep its sign with that piece.

    1 In plain words

    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.

    2 Picture it

    (1, 0)(3, 14)24−4481216(1, 0)(3, 14)−11234−4481216
    y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.

    Reminder

    Reminder: Signed arithmetic, Distributive property, Squaring a sum, Subtracting parentheses, Nonzero factor cancellation, Pulling out a common factor
    • Signed arithmetic. A negative squared is positive when enclosed: (−2)2 = 4, while 3(−2) = −6.
    • Distributive property. Multiply every term inside: 3(a + h) = 3a + 3h.
    • Squaring a sum. (a + h)2 = a2 + 2ah + h2 because it contains four products, not two.
    • Subtracting parentheses. −(a2 + 3a − 4) = −a2 − 3a + 4; each sign changes.
    • Nonzero factor cancellation. h(2a+h)h = 2a + h only for h ≠ 0.
    • Pulling out a common factor. 2xh + h2 + 3h = h(2x + h + 3). Distributing back verifies every term.

    3 Why

    If a car travels 12 extra miles in 2 extra hours, 12 ÷ 2 = 6 miles per hour makes 2 × 6 = 12. The same reasoning compares any output change with its matching input change. The input moves from x to x + h, so its change is (x + h) − x = h. The outputs at those same inputs are f(x) and f(x + h). Subtract in the same direction before dividing. A zero input step gives zero in the denominator, so that quotient has no value.

    4 The rule

    Difference quotient: f(x+h)−f(x)h, with h≠0 and both inputs in the domain.

    Read it: f of x plus h, minus f of x, all over h. The starting input can also be named a: f(a+h)−f(a)h.

    The same idea, five ways

    Say it

    f of x plus h, minus f of x, all over h

    Write it

    Average output change for each 1 step of input, from x to x + h.

    In math
    • f(x+h)−f(x)h
    • f(a+h)−f(a)h
    • riserun
    • h ≠ 0
    Like

    Extra miles divided by extra hours measures average speed.

    See it
    (1, 0)(3, 14)24−4481216
    The same picture again: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.

    The same idea, other ways

    As 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 122 = 6 miles per hour. The unit comes from dividing miles by hours.

    (1, 20)(3, 32)241218243036
    Two extra hours give 12 extra miles: 6 miles per hour.
    As steepness on a picture

    For f(x) = x2, 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 riserun = 82 = 4. The curve itself need not be a straight line.

    (1, 1)(3, 9)24246810
    The two points have rise 8 and run 2. The dashed line has slope 8 ÷ 2 = 4.
    As cost per extra unit

    For C(n) = 15 + 2n dollars for n gigabytes, C(3) = 21 and C(5) = 25. The difference quotient is 25−215−3 = 42 = 2 dollars per extra gigabyte. The fixed 15-dollar fee cancels because both costs contain it.

    input noutput C(n)321525↓ evaluate: input given, read the output below it
    The same two columns supply both the cost change and the input step.
    Why the terms without h cancel

    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) = x2 + 3x − 4, the x2, 3x, and −4 cancel; 2xh + h2 + 3h remain. Factor h or divide each term by h. This polynomial self-check is not a rule for expanding root or reciprocal formulas.

    f(x + h): x2 + 2xh + h2 + 3x + 3h − 4

    subtract f(x): −x2 − 3x + 4

    difference: 2xh + h2 + 3h

    quotient: 2x + h + 3, h ≠ 0

    Part 1: Numbers 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.
    (1, 0)(3, 14)24−4481216
    The same picture a third time: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.

    The same idea, five ways

    Say it

    f of three minus f of one, all over three minus one, equals seven.

    Write it

    The two output readings change by 14 while their inputs change by 2, giving 7 output units per input unit.

    In math
    • f(x)=x2+3x−4
    • f(3)−f(1)3−1=14−02=7
    • 2 × 7 = 14
    Like

    Extra miles divided by the matching extra hours gives average speed.

    See it
    (1, 0)(3, 14)24−4481216
    The same picture, shown 4 times now: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.

    Worked example

    See the quotient with numbers first

    For f(x) = x2 + 3x − 4, compare input 1 with input 3. The input step is h = 2. Find f(3)−f(1)2, the average output change for each 1 step of input.

    What it asks. Find the two output readings, subtract the starting reading from the ending reading, and divide by the matching input change.

    Show the steps and the answer

    The plan. Evaluate the ending and starting inputs. Subtract new minus old for the outputs and for the inputs. Divide output change by input change and check by multiplication.

    (1, 0)(3, 14)24−4481216
    The same picture, shown 5 times now: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.
    (1, 0)(3, 14)24−4481216
    The same picture, shown 6 times now: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.
    input xoutput f(x)10314↓ evaluate: input given, read the output below it
    The input moves by 2 while the output moves by 14.
    1. Plan. Evaluate the ending and starting inputs. Subtract new minus old for the outputs and for the inputs. Divide output change by input change and check by multiplication.
    2. Keep the input and output from each reading together.
    3. Subtract ending minus starting in both the top and bottom.
    4. Multiply the rate by the input step to check that it recovers the output change.
    1. f(3)=(3)2+3(3)−4=9+9−4=14.The ending input is 3; replace every x with 3.
    2. f(1)=(1)2+3(1)−4=1+3−4=0.The starting input is 1; replace every x with 1.
    3. 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.
    4. f(3)−f(1)2=14−02=142=7.Divide the output change by the nonzero input change.
    Answer
    The average rate of change is 7 output units per input unit.
    Double-check 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.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Use f(3) + f(2) = 14 + 6 = 20 as the output change.
    A change compares new with old by subtraction. Addition totals both readings instead of measuring how much they differ.
    ✓ Instead: Use f(3) − f(2) = 14 − 6 = 8. The matching input step is 3 − 2 = 1, so the average rate is 8 ÷ 1 = 8.

    Tips and tricks

    • 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.

    Part 2: Difference 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.
    (1, 0)(3, 14)24−4481216
    The same picture, shown 7 times now: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.

    Reminder

    Reminder: Canceling fractions
    • Canceling fractions. Only common nonzero factors cancel: 3×83 = 8, but 3+83 does not equal 8.

    The same idea, five ways

    Say it

    f of the whole sum a plus h, minus f of a, all over h; h is not zero.

    Write it

    Subtract the starting output from the ending output, then divide by the same input step.

    In math
    • f(a+h)−f(a)h
    • (a+h)−a=h
    • h ≠ 0
    Like

    Compare an odometer’s ending and starting readings over the matching travel time.

    See it
    (1, 0)(3, 14)24−4481216
    The same picture, shown 8 times now: y = (x + 1.5)2 − 6.25, solid, beside y = 7x − 7, dashed.

    Worked example

    Reversing the input step reverses both changes

    For f(x) = x2 + 3x − 4, compare starting input 3 with ending input 1. The input step is h = −2. Find the average output change per input step.

    What it asks. Find the two output readings, subtract the starting reading from the ending reading, and divide by the matching input change.

    Show the steps and the answer

    The plan. Evaluate the ending and starting inputs. Subtract new minus old for the outputs and for the inputs. Divide output change by input change and check by multiplication.

    (1, 0)(3, 14)24−4481216
    Starting at input 3 and ending at input 1 gives output change −14 and input change −2.
    1. Plan. Evaluate the ending and starting inputs. Subtract new minus old for the outputs and for the inputs. Divide output change by input change and check by multiplication.
    2. Keep the input and output from each reading together.
    3. Subtract ending minus starting in both the top and bottom.
    4. Multiply the rate by the input step to check that it recovers the output change.
    1. f(3)=14 and f(1)=0.Both values were found in the numbers-first example.
    2. The input change is 1−3=−2 and the output change is 0−14=−14.Both subtractions use the same ending-minus-starting direction.
    3. 0−141−3=−14−2=7.A negative divided by a negative is positive, so reversing both changes keeps their ratio the same.
    Answer
    The average rate is 7 output units per input unit.
    Double-check Multiplying the input step −2 by the rate 7 gives −14, which is the actual output change.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Cancel h directly in 2ah+h2+3hh by crossing out only one h in one term.
    The numerator is a sum, not one product. Cancellation removes a common factor multiplying the entire numerator.
    ✓ Instead: First write h(2a+h+3)h, then cancel h to get 2a + h + 3, with h ≠ 0.
    ✗ Not this: After cancellation, the original quotient allows h = 0.
    The original denominator is still h. At zero it is undefined, even though the simplified expression can be calculated there.
    ✓ Instead: Keep the condition h ≠ 0 on the quotient's simplified answer.

    Tips and tricks

    • 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.

    Part 3: One letter keeps many step sizes

    A letter h saves you from doing the same calculation for every possible step. For f(x) = x2, 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.
    input houtput 6 + h170.56.50.16.10.016.01
    h: 1, 0.5, 0.1, 0.01; 6 + h: 7, 6.5, 6.1, 6.01.

    The same idea, five ways

    Say it

    For the square rule, the average rate from x to x plus h is two x plus h, with h not zero.

    Write it

    One expression gives the square rule’s average rate for many different nonzero input steps.

    In math
    • s(x+h)−s(x)h=2x+h,h≠0
    • At x = 3: 2x + h = 6 + h
    • h = 12 gives 6.5
    Like

    One adjustable recipe handles many choices of the ingredient amount.

    See it
    input houtput 6 + h170.56.50.16.10.016.01
    The same picture again: h: 1, 0.5, 0.1, 0.01; 6 + h: 7, 6.5, 6.1, 6.01.

    Worked example

    Check a square quotient with a negative step

    For s(x) = x2, find s(a+h)−s(a)h, with h ≠ 0. Compare the squares of the ending and starting inputs.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

    (a + h)2 − a2 = 2ah + h2

    2ah + h2 = h(2a + h)

    h(2a+h)h=2a+h

    h ≠ 0

    1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
    2. Every input variable receives the whole sum in parentheses.
    3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
    4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
    1. s(a+h)=(a+h)2=a2+2ah +h2.Expand the square using its four products.
    2. s(a)=a2.The starting input is a.
    3. s(a+h)−s(a)= (a2+2ah +h2) −a2=2ah +h2.The starting square a2 is removed from the ending output.
    4. 2ah+h2h=h(2a+h)h.Both terms in the numerator contain a factor h.
    5. h(2a+h)h=2a+h, with h≠0.Cancel the nonzero factor h multiplying the whole numerator.
    Answer
    s(a+h)−s(a)h = 2a + h, with h ≠ 0
    Double-check Choose a = 2 and h = −1. Directly, s(1)−s(2)−1 = 1−4−1 = 3. The simplified expression gives 4 − 1 = 3. A negative nonzero h is allowed.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Use h = 0 in the starting quotient.
    It would be 00, which gives no unique value.
    ✓ Instead: Use a nonzero h, even after canceling.

    Tips and tricks

    • 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) = x2, 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, s(1)−s(2)−1 = 1−4−1 = 3. The simplified expression gives 4 − 1 = 3. A negative nonzero h is allowed.

    5 How

    1. Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.
    2. Multiply out. A square has the middle term: (x + h)2 = x2 + 2xh + h2. A number in front multiplies every piece.
    3. Subtract f(x) in parentheses, then reverse every sign in that subtracted group.
    4. In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.
    5. Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.
    6. 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

    1
    Is the formula a line mx + b?
    YesThe output change is mh, so division by h gives m, the slope.
    NoCalculate both outputs and subtract.
    ↓
    2
    Does the formula contain a squared sum?
    YesExpand two copies, keeping the middle term, before applying an outside coefficient.
    NoUse the operations actually in the given formula.
    ↓
    3
    In a polynomial example, did a term without h survive?
    YesRecheck expansion and subtraction. Do not cancel h until every numerator term contains it.
    NoFactor h or divide each term by h, then keep h ≠ 0.
    1. Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.
    2. Multiply out. A square has the middle term: (x + h)2 = x2 + 2xh + h2. A number in front multiplies every piece.
    3. Subtract f(x) in parentheses, then reverse every sign in that subtracted group.
    4. In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.
    5. Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.
    6. Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.

    6 Worked example

    Worked example

    Average rate of change of a raised bed's area

    A community garden is building rectangular raised beds. A bed that is x meters wide is made 4 meters longer than twice its width, so it is 2x + 4 meters long and its area, in square meters, is
    A(x) = x(2x + 4) = 2x2 + 4x, for x > 0.
    The figure graphs A(x) for widths up to 4 meters and marks the points (1, 6) and (3, 30).
    (a) Find the difference quotient A(x+h)−A(x)h, where h is a change in the width, and simplify it. State the conditions on x and h.
    (b) Use your answer to (a) to find the average rate of change of the area as the width grows from 1 meter to 3 meters. Give the units and say what the number means.

    (1, 6)(3, 30)24515253545
    The raised bed's area A(x) = 2x2 + 4x, in square meters, plotted against its width x, in meters.
    Show the steps and the answer
    1. Write A(x+h) by replacing every x in 2x2+4x with the whole (x+h): A(x+h)=2(x+h)2+4(x+h). Write A(x)=2x2+4x separately.The difference quotient compares the area at the ending width x + h with the area at the starting width x. Every x must be replaced, including the one in 4x, and the parentheses keep the 2 and the 4 attached to the whole new input.
    2. Multiply out. (x+h)2=x2+2xh +h2, so 2(x+h)2=2x2+4xh +2h2, and 4(x+h)=4x+4h. Together: A(x+h)=2x2+4xh +2h2+4x+4h.Squaring a sum produces the middle term 2xh; writing only x2 + h2 would lose it. A number in front multiplies every piece in its parentheses, so the 2 reaches all three terms of the square and the 4 reaches both x and h.
    3. Subtract A(x) in parentheses, then reverse every sign in that group: A(x+h)−A(x)=2x2+4xh +2h2+4x+4h−(2x2+4x)=2x2+4xh +2h2+4x+4h−2x2−4x.The minus sign applies to all of A(x), so both 2x2 and 4x become negative, not just the first term.
    4. Combine like terms: 2x2−2x2=0 and 4x−4x=0, so A(x+h)−A(x)=4xh +2h2+4h.Every term without h must cancel: if h were 0, the two widths would be equal and the change in area would be 0. Nothing without h is left, so the expansion, the copied terms and the signs are consistent.
    5. Factor h from the entire numerator and cancel it with the h in the denominator: A(x+h)−A(x)h=4xh+2h2+4hh=h(4x+2h+4)h=4x+2h+4.h is a factor of every term, so it is a shared factor of the whole numerator and the denominator. Because h ≠ 0, hh = 1. Cancelling h from only one term would be wrong.
    6. State the result with its conditions: A(x+h)−A(x)h=4x+2h+4, where h≠0, x > 0 and x+h>0.The quotient divides by h, so h cannot be 0, and the simplified expression no longer shows that, so the condition must be written. A bed exists only with a positive width, so both the starting width x and the ending width x + h must be in the domain x > 0.
    7. For (b), the width starts at 1 m and ends at 3 m, so x = 1 and h = 3 − 1 = 2. Both widths are positive and h ≠ 0. Substitute: 4(1)+2(2)+4=4+4+4=12.In the difference quotient, x is the starting input and h is the change in the input, so the ending width is x + h = 3. Using h = 3 would describe a change from 1 m to 4 m.
    8. Attach units and interpret: 12 square meters per meter. As the width grows from 1 m to 3 m, the area increases on average by 12 square meters for each extra meter of width, a total of 2×12=24 square meters.Area is measured in square meters and width in meters, so the rate is square meters per meter. Multiplying the average rate by the 2 m change in width gives the total change in area.
    Answer
    (a) A(x+h)−A(x)h = 4x + 2h + 4, with h ≠ 0, x > 0 and x + h > 0. (b) 12 square meters per meter: from a width of 1 m to a width of 3 m, the bed's area grows on average by 12 square meters for each additional meter of width.
    Double-check Compute (b) directly from A(x) = 2x2 + 4x: A(1) = 2(1)2 + 4(1) = 6 and A(3) = 2(3)2 + 4(3) = 18 + 12 = 30, matching the marked points. So A(3)−A(1)3−1 = 30−62 = 242 = 12. ✓ The dimensions agree too: a 1 m by 6 m bed has area 6, and a 3 m by 10 m bed has area 30. Test the general formula with other numbers, x = 2 and h = −1 (ending width 1 m, still allowed): A(2) = 8 + 8 = 16, so A(1)−A(2)−1 = 6−16−1 = −10−1 = 10, and 4(2) + 2(−1) + 4 = 8 − 2 + 4 = 10. ✓

    Work to write

    1. A(x + h) = 2(x + h)2 + 4(x + h) = 2x2 + 4xh + 2h2 + 4x + 4h
    2. A(x + h) − A(x) = 2x2 + 4xh + 2h2 + 4x + 4h − (2x2 + 4x) = 4xh + 2h2 + 4h
    3. A(x+h)−A(x)h=h(4x+2h+4)h=4x+2h+4
    4. h ≠ 0, x > 0, x + h > 0
    5. (b) x = 1, h = 2: 4(1) + 2(2) + 4 = 12
    6. 12 square meters per meter: on average the area grows by 12 square meters for each extra meter of width from 1 m to 3 m

    Ladder: from easy to exam-hard

    Try each rung before you open its steps.

    Rung 1 of 7

    DQ rung 1: a constant

    For k(x) = 7, simplify k(x+h)−k(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Evaluate any given numerical inputs first. Then compare the constant outputs and divide their difference by the nonzero input step.

    Show the steps and the answer

    The plan. For each requested evaluation, apply its own recipe. A constant recipe returns the same fixed value at a and at a + h. Subtract those equal outputs to obtain zero, then divide zero by nonzero h. Keep h ≠ 0 because the original fraction still excludes a zero step.

    (1, 7)(2, 7)25678910
    The line changes by 0 for one step of input.
    1. Plan. For each requested evaluation, apply its own recipe. A constant recipe returns the same fixed value at a and at a + h. Subtract those equal outputs to obtain zero, then divide zero by nonzero h. Keep h ≠ 0 because the original fraction still excludes a zero step.
    2. A constant output ignores the input.
    3. Equal ending and starting outputs have difference zero.
    4. Zero divided by a nonzero number is zero; division by zero has no value.
    1. 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.
    2. k(x+h)−k(x)=7−7=0.The new and old outputs are equal, and subtracting equal numbers gives zero.
    3. 0h=0,h≠0.Zero divided by a nonzero input step is zero; the quotient still requires h ≠ 0.
    Answer
    0, with h ≠ 0.
    Double-check At x = 1 and h = 1, k(1) = 7 and k(2) = 7. Directly the quotient is 7−(7)1 = 0. The expression 0 also gives 0.

    Rung 2 of 7

    DQ rung 2: a rising line

    For L(x) = 6x + 11, simplify L(x+h)−L(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Complete any requested evaluations. In the linear recipe, substitute the whole sum a + h or x + h, distribute its multiplier, and subtract the entire starting output. The terms unchanged by h cancel. Divide the remaining multiple of h by nonzero h and check with numbers.

    (1, 17)(2, 23)21014182226
    The line changes by 6 for one step of input.
    1. Plan. Complete any requested evaluations. In the linear recipe, substitute the whole sum a + h or x + h, distribute its multiplier, and subtract the entire starting output. The terms unchanged by h cancel. Divide the remaining multiple of h by nonzero h and check with numbers.
    2. A multiplier outside the changed input reaches both its terms.
    3. The minus before the starting output changes every sign in that output.
    4. Cancel only after the entire numerator is a multiple of nonzero h.
    1. L(x+h)=6(x+h)+11=6x+6h+11.Replace x with the whole x + h; distributing 6 gives 6x + 6h.
    2. 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.
    3. 6hh=6,h≠0.The same nonzero h multiplies the whole numerator and denominator, so dividing removes that factor.
    Answer
    6, with h ≠ 0.
    Double-check At x = 1 and h = 1, L(1) = 17 and L(2) = 23. Directly the quotient is 23−(17)1 = 6. The expression 6 also gives 6.

    Rung 3 of 7

    DQ rung 3: a falling line

    For g(x) = 9 − 5x, simplify g(x+h)−g(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Complete any requested evaluations. In the linear recipe, substitute the whole sum a + h or x + h, distribute its multiplier, and subtract the entire starting output. The terms unchanged by h cancel. Divide the remaining multiple of h by nonzero h and check with numbers.

    (1, 4)(2, −1)24812
    The line changes by −5 for one step of input.
    1. Plan. Complete any requested evaluations. In the linear recipe, substitute the whole sum a + h or x + h, distribute its multiplier, and subtract the entire starting output. The terms unchanged by h cancel. Divide the remaining multiple of h by nonzero h and check with numbers.
    2. A multiplier outside the changed input reaches both its terms.
    3. The minus before the starting output changes every sign in that output.
    4. Cancel only after the entire numerator is a multiple of nonzero h.
    1. 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.
    2. 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.
    3. −5hh=−5,h≠0.The numerator is −5 times nonzero h. Division by h returns −5.
    Answer
    −5, with h ≠ 0.
    Double-check At x = 1 and h = 1, g(1) = 4 and g(2) = −1. Directly the quotient is −1−(4)1 = −5. The expression −5 also gives −5.

    Rung 4 of 7

    DQ rung 4: a square

    For s(x) = x2, simplify s(x+h)−s(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

    (1, 1)(2, 4)2−22468
    y = x2, solid, beside y = 3x − 2, dashed.
    1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
    2. Every input variable receives the whole sum in parentheses.
    3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
    4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
    1. s(x+h)=(x+h)2=x2+2xh +h2.Multiply two whole copies of x + h. The cross products xh and hx add to 2xh.
    2. s(x+h)−s(x)=x2+2xh +h2−x2=2xh +h2.The starting output x2 is subtracted from the ending output, so x2 − x2 cancels to zero.
    3. 2xh +h2=h(2x+h).Both 2xh and h2 contain h: they are h × 2x and h × h.
    4. h(2x+h)h=2x+h,h≠0.Cancel the common factor h multiplying the entire numerator, retaining the nonzero restriction.
    Answer
    2x + h, with h ≠ 0.
    Double-check At x = 1 and h = 1, s(1) = 1 and s(2) = 4. Directly the quotient is 4−(1)1 = 3. The expression 2x + h also gives 3.

    Rung 5 of 7

    DQ rung 5: multiply the entire squared sum

    For P(x) = 4x2, simplify P(x+h)−P(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

    (1, 4)(2, 16)248121620
    y = 4x2, solid, beside y = 12x − 8, dashed.
    1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
    2. Every input variable receives the whole sum in parentheses.
    3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
    4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
    1. P(x+h)=4(x+h)2.Replace the x in the square by the whole sum x + h while leaving its outside multiplier 4 outside.
    2. First square: (x+h)2=x2+2xh +h2.The square is computed first. Its four products are x2, xh, hx, and h2.
    3. Then multiply every term by 4: P(x+h)=4x2+8xh +4h2.Distribution applies the outside 4 to each term: 4 × 2xh = 8xh and 4 × h2 = 4h2.
    4. P(x+h)−P(x)=4x2+8xh +4h2−4x2=8xh +4h2.The old output is 4x2, so subtracting it removes the ending expression’s 4x2 term.
    5. 8xh +4h2=h(8x+4h).8xh = h × 8x and 4h2 = h × 4h. Reverse distribution to place the shared h outside and the group 8x + 4h inside.
    6. h(8x+4h)h=8x+4h,h≠0.The whole numerator is h times one group, so nonzero h cancels from that product.
    Answer
    8x + 4h, with h ≠ 0.
    Double-check At x = 1 and h = 1, P(1) = 4 and P(2) = 16. Directly the quotient is 16−(4)1 = 12. The expression 8x + 4h also gives 12.

    Rung 6 of 7

    DQ rung 6: quadratic, linear, and constant terms

    For Q(x) = 3x2 − 2x + 6, simplify Q(x+h)−Q(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

    (1, 7)(2, 14)2481216
    y = 3(x − 0.3333)2 + 5.6667, solid, beside y = 7x, dashed.
    1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
    2. Every input variable receives the whole sum in parentheses.
    3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
    4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
    1. Q(x+h)=3(x+h)2−2(x+h)+6.Both occurrences of x receive the complete sum x + h.
    2. Q(x+h)=3x2+6xh +3h2−2x−2h+6.Expand (x + h)2 first, multiply all three terms by 3, and distribute −2 to both terms of x + h.
    3. Q(x+h)−Q(x)= (3x2+6xh +3h2−2x−2h+6) −(3x2−2x+6).The entire old output has three terms. Parentheses keep all three together for subtraction.
    4. =3x2+6xh +3h2−2x−2h+6−3x2+2x−6=6xh +3h2−2h.Negating the old output gives −3x2 + 2x − 6; these cancel the matching x2, x, and constant terms.
    5. 6xh +3h2−2h=h(6x+3h−2).Each of the three remaining terms contains h; taking it out leaves 6x, 3h, and −2.
    6. h(6x+3h−2)h=6x+3h−2,h≠0.Divide out the same nonzero h from the whole numerator and denominator.
    Answer
    6x + 3h − 2, with h ≠ 0.
    Double-check At x = 1 and h = 1, Q(1) = 7 and Q(2) = 14. Directly the quotient is 14−(7)1 = 7. The expression 6x + 3h − 2 also gives 7.

    Rung 7 of 7

    DQ rung 7: a negative squared coefficient

    For R(x) = −2x2 + 9, simplify R(x+h)−R(x)h, with h ≠ 0. This asks for the average output change per input step.

    What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

    Show the steps and the answer

    The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

    (1, 7)(2, 1)24812
    y = −2x2 + 9, solid, beside y = −6x + 13, dashed.
    1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
    2. Every input variable receives the whole sum in parentheses.
    3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
    4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
    1. R(x+h)=−2(x+h)2+9.The whole x + h replaces x inside the square; the multiplier −2 remains outside.
    2. R(x+h)=−2x2−4xh −2h2+9.Expand the square and multiply every term by −2: 2xh becomes −4xh and h2 becomes −2h2.
    3. R(x+h)−R(x)= (−2x2−4xh −2h2+9) −(−2x2+9).Subtract the entire starting output −2x2 + 9 as one group.
    4. =−2x2−4xh −2h2+9+2x2−9=−4xh −2h2.Subtracting −2x2 + 9 adds 2x2 and subtracts 9. Both matching old-output terms cancel.
    5. −4xh −2h2=h(−4x−2h).Both remaining terms contain h, and dividing each by h leaves −4x and −2h.
    6. h(−4x−2h)h=−4x−2h,h≠0.The shared nonzero h cancels from the whole product, preserving the quotient value.
    Answer
    −4x − 2h, with h ≠ 0.
    Double-check At x = 1 and h = 1, R(1) = 7 and R(2) = 1. Directly the quotient is 1−(7)1 = −6. The expression −4x − 2h also gives −6.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: f(a + h) = f(a) + h.
    The change happens to the input before the function recipe runs. The output generally changes by a different amount. Here f(3) = 14 while f(1) + 2 = 2.
    ✓ Instead: Replace every x by a + h: f(a + h) = (a + h)2 + 3(a + h) − 4.
    ✗ Not this: −(a2+3a−4)=−a2+3a−4.
    Subtracting a whole group multiplies every term by −1, not only the first term.
    ✓ Instead: −(a2+3a−4)=−a2−3a+4.
    ✗ Not this: The simplified quotient means h can equal zero.
    Canceling preserves the value where the original quotient is defined. It does not create a value for division by zero.
    ✓ Instead: Write 2a + h + 3 with h ≠ 0.
    ✗ Not this: For g(x) = 9 − 5x, write −(9 − 5x) as −9 − 5x.
    The second term has a minus already. Subtracting that whole term gives plus 5x; failing to reverse it leaves an incorrect −10x term without h.
    ✓ Instead: −(9 − 5x) = −9 + 5x. The output difference is −5h, giving quotient −5 for h ≠ 0.
    ✗ Not this: 4(x + h)2 = 4x2 + 2xh + h2, or (4x + 4h)2.
    The first version multiplies only one term by 4. The second moves 4 inside the square, multiplying the squared result by 16. At x = h = 1 they give 7 and 64, while 4(2)2 = 16.
    ✓ Instead: 4(x + h)2 = 4x2 + 8xh + 4h2.

    Tips and tricks

    • 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.

    7 The trap

    Subtracting only the first term of the starting output. Keep −(f(x)) as one group, then change every sign inside.

    Comes back in