The computation of spectral representations for evolution PDE