Difference quotient
The slope of a secant line over a small step h; its limit as h → 0 is the derivative.
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- Secant slope Q = 6.1 (coral); tangent slope f′(x) = 6 (dashed). Slide h towards 0 and the secant turns into the tangent.
What the symbols mean
- the difference quotient: the slope of the secant through x and x + h
- the coefficient of in f
- the coefficient of
- the coefficient of x
- the constant term
- the point
- the step (any non-zero number)
When to use it
Use it to differentiate from first principles (a standard exam question), to estimate a derivative from data or a table, and to see what a derivative is: the average rate of change over a shrinking interval. Try h = 0.1, 0.01, 0.001 in the calculator and watch Q approach the exact slope.
Worked example
For f(x) = x², find the difference quotient at x = 3 with h = 0.1 (c₃ = 0, c₂ = 1, c₁ = 0, c₀ = 0).
The difference quotient is the slope of the secant line through (x, f(x)) and (x + h, f(x + h)):
The function is
Evaluate at x + h:
Evaluate at x:
Divide the rise by the run h:
Compare with the exact derivative, from the power rule:
The difference is ; make h smaller and Q approaches f′(x). That limit is the definition of the derivative.
Answer Q = 6.1, close to the exact slope f′(3) = 6
Why it works
Over a step h the curve rises , so the secant's slope is rise over run. As h shrinks, the second point slides towards the first and the secant turns into the tangent. For the quotient simplifies to , which tends to .
Common mistakes
- Setting h = 0 straight away, which gives 0/0. Simplify first, then let h tend to 0.
- Writing instead of : for the second is .
- Forgetting the minus applies to all of f(x) when it has several terms.