find difference quotient of function