Expansions in terms of heat polynomials and associated functions