derivative and integral test