limits and differentiation