結果 : how to check if a function is differentiable on an interval