Difference Quotient

The Difference Quotient measures how much a function changes over a small interval, forming the foundation for calculating derivatives in Calculus.

f(x+h)f(x)h\frac{f(x + h) - f(x)}{h}

Solve a problem with Difference Quotient

Type the problem. The solver will use Difference Quotient where Difference Quotient is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Difference Quotient takes
ff
xx
hh
Difference Quotient
SymbolMeaning
ffThe function being analyzed; tells you what output you get for any input, and changing the function rule changes the entire calculation.
xxThe starting point on the function's domain where you begin measuring change; must be in the function's domain or the calculation fails.
hhThe size of the interval you are measuring over, typically a small number; if h=0h = 0 the formula becomes undefined since you would divide by zero.

When to use it

Use the Difference Quotient when you need to find the average rate of change of a function over a specific interval.

Level

Usually taught in: Pre-Calculus

Worked examples

1. Average rate of change for a linear function

Problem

Find the Difference Quotient for f(x)=2x+3f(x) = 2x + 3.
  1. f(x+h)=2(x+h)+3=2x+2h+3f(x+h) = 2(x+h) + 3 = 2x + 2h + 3

    Substitute (x+h)(x+h) into ff and expand using the distributive property.

  2. f(x+h)f(x)h=(2x+2h+3)(2x+3)h\frac{f(x+h) - f(x)}{h} = \frac{(2x+2h+3) - (2x+3)}{h}

    Apply the Difference Quotient formula with f(x)=2x+3f(x) = 2x + 3.

  3. 2x+2h+32x3h=2hh=2\frac{2x + 2h + 3 - 2x - 3}{h} = \frac{2h}{h} = 2

    Combine like terms in the numerator; the xx and constant terms cancel, leaving 2h2h.

Answer: 22

For a linear function, the Difference Quotient is constant and equals the slope. The xx terms cancel completely, leaving only 2h2h in the numerator, which simplifies to 2 after dividing by hh. This confirms that linear functions have the same rate of change everywhere.

2. Quadratic function with decimal interval

Problem

Find the Difference Quotient for f(x)=x23xf(x) = x^2 - 3x when x=2x = 2 and h=0.5h = 0.5.
  1. f(2)=223(2)=46=2f(2) = 2^2 - 3(2) = 4 - 6 = -2

    Evaluate ff at the starting point x=2x = 2.

  2. f(2.5)=(2.5)23(2.5)=6.257.5=1.25f(2.5) = (2.5)^2 - 3(2.5) = 6.25 - 7.5 = -1.25

    Evaluate ff at the endpoint x+h=2.5x + h = 2.5; note that (2.5)2=6.25(2.5)^2 = 6.25.

  3. f(2.5)f(2)0.5=1.25(2)0.5=0.750.5=1.5\frac{f(2.5) - f(2)}{0.5} = \frac{-1.25 - (-2)}{0.5} = \frac{0.75}{0.5} = 1.5

    Apply the formula carefully; the double negative (2)=+2-(-2) = +2 is a frequent source of error.

Answer: 1.51.5

When hh is a fraction or decimal, careful arithmetic is essential, especially with negative values. The result of 1.5 shows that from x=2x = 2 to x=2.5x = 2.5, the function increases at an average rate of 1.5 units.

3. Revenue from concert ticket sales with two seating tiers

Problem

A concert hall has two seating sections: general and VIP. The general admission section produces revenue R(x)=45xR(x) = 45x where xx is the number of general tickets sold. In the morning, 150 general tickets were sold. By evening, 250 general tickets were sold. Use the Difference Quotient to find the average revenue per additional ticket.
  1. R(150)=45150=6750R(150) = 45 \cdot 150 = 6750

    Evaluate the revenue function at the starting point where x=150x = 150 tickets.

  2. R(250)=45250=11250R(250) = 45 \cdot 250 = 11250

    Evaluate the revenue function at the ending point where x=250x = 250 tickets.

  3. h=250150=100h = 250 - 150 = 100

    The interval represents h=100h = 100 additional tickets sold.

  4. R(250)R(150)100=112506750100=4500100=45\frac{R(250) - R(150)}{100} = \frac{11250 - 6750}{100} = \frac{4500}{100} = 45

    Apply the Difference Quotient formula and simplify by division.

Answer: 45 dollars per ticket45 \text{ dollars per ticket}

The average revenue increase is $45 per additional ticket, matching the ticket price exactly. In real-world business contexts, the Difference Quotient reveals how much value each new unit contributes on average over an interval.

Common mistakes

Where Difference Quotient usually goes wrong
Answer came out wrong
f(x+h)f(x)h=f(h)h\frac{f(x+h) - f(x)}{h} = \frac{f(h)}{h}, thinking the xx terms cancel.
Always expand f(x+h)f(x+h) completely using the function rule, then subtract f(x)f(x) term by term; for example, 2(x+h)+3=2x+2h+32(x+h)+3 = 2x+2h+3, and subtracting 2x+32x+3 leaves 2h2h.
Assuming the Difference Quotient must be negative when hh is negative.
Calculate f(x+h)f(x+h) and f(x)f(x) using actual numbers without prejudging the sign, then let the arithmetic determine whether the result is positive or negative.
Writing h(2x+h3)h=h(2x+h3)\frac{h(2x+h-3)}{h} = h(2x+h-3) instead of canceling the hh.
After factoring hh from the numerator, always cancel it with the hh in the denominator to get the fully simplified form 2x+h32x + h - 3.
The mistakeWhy it is wrongThe fix
f(x+h)f(x)h=f(h)h\frac{f(x+h) - f(x)}{h} = \frac{f(h)}{h}, thinking the xx terms cancel.This assumes f(x+h)f(x)f(x+h) - f(x) simplifies by canceling xx, but f(x+h)f(x+h) is a single output value, not a product; the xx terms do not cancel out.Always expand f(x+h)f(x+h) completely using the function rule, then subtract f(x)f(x) term by term; for example, 2(x+h)+3=2x+2h+32(x+h)+3 = 2x+2h+3, and subtracting 2x+32x+3 leaves 2h2h.
Assuming the Difference Quotient must be negative when hh is negative.The sign depends on whether f(x+h)f(x+h) is larger or smaller than f(x)f(x), not on the sign of hh; negative hh simply means measuring backward along the function.Calculate f(x+h)f(x+h) and f(x)f(x) using actual numbers without prejudging the sign, then let the arithmetic determine whether the result is positive or negative.
Writing h(2x+h3)h=h(2x+h3)\frac{h(2x+h-3)}{h} = h(2x+h-3) instead of canceling the hh.Forgetting that hh=1\frac{h}{h} = 1 leaves a spurious hh in the answer that makes the result incorrectly depend on the interval size.After factoring hh from the numerator, always cancel it with the hh in the denominator to get the fully simplified form 2x+h32x + h - 3.

Tips and when to use something else

  • The Difference Quotient is the foundation of the derivative; in Calculus, you will take a limit as h0h \to 0 to find the instantaneous rate of change at a point, instead of average rate over an interval.
  • For linear functions like f(x)=3x+5f(x) = 3x + 5, the Difference Quotient is the same no matter what xx and hh are—it always equals the slope of the line.
  • Substitute xx and hh values as the very last step; simplifying symbolically first will reveal patterns and reduce arithmetic errors caused by premature substitution.
  • If you get stuck simplifying the numerator, expand f(x+h)f(x+h) completely and carefully subtract f(x)f(x) term by term; this is where most errors happen.

Frequently asked questions

What is the difference between the Difference Quotient and average rate of change?
They are the same thing. The Difference Quotient is the formula that computes average rate of change: it tells you how much yy changes per unit change in xx over an interval [x,x+h][x, x+h]. Textbooks often use these terms interchangeably.
Why do we use hh instead of just writing x2x1x_2 - x_1?
Using hh emphasizes that it is an interval or step size that you choose, making it easier to study what happens as hh shrinks toward zero—a key idea in Calculus. The notation x2x1x_2 - x_1 works too; it is just a different way to express the same concept.
Can hh be negative?
Yes, hh can be negative, which means you measure backward from xx. The Difference Quotient formula still works, and the result will be positive or negative depending on whether the function is increasing or decreasing in that direction.
Is the Difference Quotient the same as a derivative?
Not exactly. The Difference Quotient gives the average rate of change over an interval of width hh. A derivative is the instantaneous rate of change at a single point, which you find by taking a limit as h0h \to 0. In Calculus, you start with the Difference Quotient and take a limit to compute derivatives.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18