Everything in the top cancels except terms that contain h, and some of them may cancel. Now we form the difference quotient by dividing by h on the left, and doing the equivalent multiplication by 1/h on the right. [Dividing by h and multiplying by 1/h are the same.] The h's cancel on the right and we are left with Edwin