See, for example, Section 8.2, starting on page 125, on Chebyshev spacing, including a detailed formula and implementation for a Chebyshev differential matrix.
Another good place to look is
N. Podoliak, Magneto-optic effects in colloids of ferromagnetic nano particles in nematic liquid crystals, Ph.D. thesis, University of Southhampton, 2012:
A.C, Densmore, Algorithms for Rapid Characterization and Optimization of Aperture and Reflector Antennas, Ph.D. thesis, University of Califonia, Los Angeles, 2014:
See, for example, Section 8.2, starting on page 125, on Chebyshev spacing, including a detailed formula and implementation for a Chebyshev differential matrix.
Another good place to look is
N. Podoliak, Magneto-optic effects in colloids of ferromagnetic nano particles in nematic liquid crystals, Ph.D. thesis, University of Southhampton, 2012:
A.C, Densmore, Algorithms for Rapid Characterization and Optimization of Aperture and Reflector Antennas, Ph.D. thesis, University of Califonia, Los Angeles, 2014:
if you need to second order Chebyshev' Differential Matrix for just computational purposes, you might construct the matrix D for first order derivative , after that simply squaring D, namely D^2, gives you second order derivative matrix. Depending on boundary conditions, you need to change first and last columns or rows.
In trefethen's book " spectral methods in matlab, chapter 7 you can see the implementation details.
However if you need to an explicit formula for higher derivatives, you should consult the above mentioned references
For a related method, which may or may not apply to your application, you may want to look at the method in
"The EPS method: A new method for constructing pseudospectral derivative operators." Sandberg, K. and Wojciechowski, K.J., Journal of Computational Physics, 230(15), p. 5836–5863, (2011)
This method is easy to implement, and may give higher accuracy and (significantly) smaller norms than the traditional constructions.