using difference quotient to find derivative