Algebra · real student question

Find and simplify the difference quotient (f(x + h) - f(x))/h, where h is not 0, for f(x) = x^2 - 5x + 2.

Question

Find the difference quotient

f(x+h)f(x)h,h0,\frac{f(x+h)-f(x)}{h},\qquad h\neq 0,

for f(x)=x25x+2f(x)=x^{2}-5x+2, and simplify it.

Step-by-step solution

  1. Substitute x+hx+h into the whole rule, not just the first term. Every xx in ff must be replaced, including the one inside 5x-5x:

    f(x+h)=(x+h)25(x+h)+2.f(x+h)=(x+h)^{2}-5(x+h)+2.

    Expanding (x+h)2=x2+2xh+h2(x+h)^{2}=x^{2}+2xh+h^{2} and distributing the 5-5:

    f(x+h)=x2+2xh+h25x5h+2.f(x+h)=x^{2}+2xh+h^{2}-5x-5h+2.

  2. Subtract f(x)f(x) and keep the minus sign attached to every term. This is where most sign errors happen, so write the second bracket out before removing it:

    f(x+h)f(x)=(x2+2xh+h25x5h+2)(x25x+2).f(x+h)-f(x)=\left(x^{2}+2xh+h^{2}-5x-5h+2\right)-\left(x^{2}-5x+2\right).

    =x2+2xh+h25x5h+2x2+5x2.=x^{2}+2xh+h^{2}-5x-5h+2-x^{2}+5x-2.

  3. Watch what cancels — and why. Every term of f(x)f(x) that contains no hh disappears: x2x2=0x^{2}-x^{2}=0, 5x+5x=0-5x+5x=0, 22=02-2=0. That always happens, and it is what guarantees the numerator is divisible by hh:

    f(x+h)f(x)=2xh+h25h.f(x+h)-f(x)=2xh+h^{2}-5h.

  4. Factor hh out of the numerator, then cancel it. Since h0h\neq 0 is given, the cancellation is legal:

    2xh+h25hh=h(2x+h5)h=2x+h5.\frac{2xh+h^{2}-5h}{h}=\frac{h(2x+h-5)}{h}=2x+h-5.

  5. Interpret and check the result. The answer 2x+h52x+h-5 is the slope of the secant line through the points (x,f(x))(x,f(x)) and (x+h,f(x+h))(x+h,f(x+h)). Letting h0h\to 0 gives 2x52x-5, which is exactly f(x)f'(x) — a good confirmation. Numerical check at x=1.7x=1.7, h=0.03h=0.03: f(1.73)f(1.7)0.03=1.57\frac{f(1.73)-f(1.7)}{0.03}=-1.57, and 2(1.7)+0.035=1.572(1.7)+0.03-5=-1.57.

Answer

2x+h52x+h-5

Need to solve a different problem like this? Open the solver →