The difference quotient is really just the same as the slope formula where m = (y2 - y1)/(x2 - x1) but it is written in terms of the point (x, y) which written in function nomenclature is (x, f(x)), and the point that is "h" more than "x" or ((x + h), f(x + h)). Putting these together, we get:

or, simplified:

In this case:
f(x + h) = 7(x + h)2 - 3(x + h) - 2
f(x + h) = 7(x2 + 2xh + h2) - 3(x + h) - 2
f(x + h) = 7x2 + 14xh + 7h2 - 3x - 3h - 2
So:
f(x + h) - f(x) = (7x2 + 14xh + 7h2 - 3x - 3h - 2) - (7x2 - 3x - 2)
f(x + h) - f(x) = 7x2 + 14xh + 7h2 - 3x - 3h - 2 - 7x2 + 3x + 2
f(x + h) - f(x) = 14xh + 7h2 - 3h
f(x + h) - f(x) = h(14x + 7h - 3)
And:
[f(x + h) - f(x)]/h = h(14x + 7h - 3)/h
[f(x + h) - f(x)]/h = 14x + 7h - 3