polynomial: add derivative () to compute the derivative polynomial.