The difference quotient is the first place most students meet the idea behind calculus, usually a few weeks before anyone says the word “derivative”. The algebra isn’t hard, but it’s long, and one dropped minus sign wrecks the whole thing. This difference quotient calculator does the expansion and cancelling for you, shows every line so you can compare it with your own working, and draws the secant line the answer describes.
How to use the difference quotient calculator
- Type the function. Write powers with
^, so3x^2 - xfor. Fractions such as 1/xor3/(x - 2)and roots such assqrt(x)or√(2x + 1)work too, and you can leavef(x) =at the front. - Read the simplified answer in the dark panel, in terms of
and , with the derivative underneath. - Follow the steps below the graph: substitute, expand, subtract, divide.
- Move the secant. Change the x and h boxes to slide the orange line along the curve. Shrink h to something like 0.01 and watch it settle onto the grey tangent line.
The difference quotient formula
The top,
Worked example: f(x) = 3x² − x
This is the calculator’s opening example, and a typical homework problem.
Step 1 — find
Step 2 — expand.
Step 3 — subtract
Step 4 — divide by
With x = 1 and h = 1, the calculator’s default secant, that’s
Fractions and square roots need a different trick
Expanding works for polynomials. For other functions, the job is the same, getting an
A rational function: f(x) = 1/x
Subtract the two fractions over the common denominator
Now dividing by
Leave the denominator factored. Multiplying it out to
A square root: f(x) = √x
Here there’s nothing to expand. Multiply the top and bottom by the conjugate,
The same move is how you’d go about rationalizing a denominator, just applied to the top this time.
Evaluating the difference quotient at a point
Some problems give you numbers: “evaluate the difference quotient of
From the points.
From the formula. The simplified quotient is
The points method is quicker for a single pair of numbers. The formula pays off when you need several, say
Difference quotients of common functions
| Difference quotient | As | |
|---|---|---|
Notice the first row. For a straight line the
What the answer tells you
The difference quotient is the average rate of change of
The real point of keeping
Common difference quotient mistakes
- Writing
instead of . For , , but . The goes inside, replacing every . - Dropping the brackets.
is . Without the brackets you’d get , and the error carries all the way to the end. - Squaring term by term.
is not ; the middle term is the one that matters most. - Dividing only one term by
. Every term in the numerator gets divided, which is why the calculator shows the division as a whole fraction first. - Setting
too early. Before simplifying, that gives . Simplify first, then let shrink.
When you’re ready to try some without help, the difference quotient practice problems check your simplified answers automatically, and they accept any equivalent form.