Special functions and analysis on smooth metric measure spaces