difference quotient method