Difference Quotient Calculator

Enter a, b, c and a point x with step h to get the difference quotient.

How it is calculated

The tool works with the quadratic f(t) = a·t² + b·t + c. It evaluates f at your point x and at x + h for display, and the quotient is [f(x + h) − f(x)] ÷ h: the change in f divided by the change in the input, which is the slope of the line through the two points on the curve. For a quadratic this simplifies exactly to 2ax + b + ah, and the tool uses that form, so a very small h does not lose accuracy to subtracting two nearly equal numbers. All five values must be numbers and h may not be zero (a blank field or h = 0 shows no result). h can be negative, which looks back from x. Results show 4 decimals. As h shrinks the quotient tends to the derivative 2ax + b.

Worked example

Let f(x) = 2x² − 3x + 5, with x = 4 and h = 0.5. First, f(4) = 2·16 − 12 + 5 = 25.0000. Next, x + h = 4.5, and f(4.5) = 2·20.25 − 13.5 + 5 = 32.0000. The difference is 32 − 25 = 7, and dividing by h gives 7 ÷ 0.5 = 14.0000. This matches 2ax + b + ah = 16 − 3 + 1 = 14. The derivative at 4 is 13, and a smaller h would move the quotient closer to it.

Try this example →

Common mistakes

  • Setting h = 0. The difference quotient is a limit as h approaches 0, but at h = 0 the formula divides by zero and the tool shows no result. Use a small non-zero h such as 0.001.
  • Reading f(x + h) in the output as proof the quotient is zero for tiny h. With h = 1e-12 the two function values both display as 25.0000, yet the quotient is still 13.0000 for the example, because it is computed from the simplified form.
  • Treating the result as the derivative. It is the average slope between x and x + h, and equals 2ax + b only in the limit.
  • Mixing up the roles of a, b and c: a belongs to x², b to x and c is the constant, which cancels out of the quotient entirely.
  • Forgetting that a negative h looks backwards from x, to the point x − |h|, and gives a different quotient (for f(x) = x² at x = 3, h = −0.5 gives 5.5000 while h = 0.5 gives 6.5000).

About this calculator

The difference quotient, [f(x+h) − f(x)] / h, measures the average rate of change of a function between two nearby points, x and x+h — geometrically, it is the slope of the secant line connecting those two points on the curve. For the quadratic f(x) = ax² + bx + c, the algebra expands and simplifies to 2ax + b + ah, and this calculator evaluates that simplified form for your chosen numbers, so the result stays exact even for a very small h. It also shows f(x) and f(x+h), but it does not print the simplified expression itself.

This expression is the single most important stepping stone in an introductory calculus course: as h is allowed to shrink toward zero, the secant line's slope approaches the tangent line's slope at x, and the difference quotient's limit is, by definition, the derivative f′(x) — the instantaneous rate of change. Working through the difference quotient by hand for a quadratic, before ever taking a formal limit, is how most students build their first real intuition for what a derivative represents.

The step h must be nonzero, since the quotient divides by it.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators