Differentiates polynomials