Polynomial functions differentiation