I believe you forgot to divide the h^2 by h.
result:
(h^2+2xh-2h)/h
= h+2x-2
Difference Quotient of x^2-2x
(x+h)^2-2(x+h)-(x^2-2x) / h
x^2+2xh+h^2-2x-2h-x^2+2x / h
x^2 cancel out
2x cancel out
h and -2h cancel and leave -2
result: h^2+2xh-2
2 answers
ok that makes sense. Thanks for the help