Calculate the derivatives of Chebyshev polynomials