Rate of change of f over [x, x+h]=
f(x+h) - f(x)

(x+h) - x
=
( (x+h)2-2(x+h) ) - (x2-2x)

h
=
(x2+2xh+h2-2x-2h) - (x2-2x)

h
=
2xh + h2 - 2h

h
   The x2 and 2x cancelled
=
2x + h - 2    The h cancelled

Enter this as 2*x + h - 2

 


Just close this window to return to the tutorial.