given fxx22x4 find the difference quotient fxhfxh h can not
given f(x)=x2+2x-4
find the difference quotient f(x+h)-f(x)/h , h can not equal 0
Solution
f(x) = x2+2x-4
==> f(x+h) = (x+h)2+2(x+h)-4
==> f(x +h) = x2 + 2xh + h2 +2x + 2h -4
f(x +h) - f(x) = (x2 + 2xh + h2 +2x + 2h -4) - ( x2+2x-4)
==> f(x +h) - f(x) = x2 + 2xh + h2 +2x + 2h -4 - x2 -2x +4
==> f(x +h) - f(x) = 2xh + h2 + 2h = h(2x + h + 2)
==> [ f(x +h) - f(x)]/h = h(2x + h + 2)/h
==> [ f(x +h) - f(x)]/h = 2x + h + 2
