Text this: Exploring spectral collocation methods for diffusion models with variable coefficients in heat transfer studies