This paper evaluates finite integrals involving general classes of polynomials and h-functions, applying these to a boundary value problem concerning heat conduction in a rod. The research establishes an expansion formula related to h-functions and demonstrates how specific coefficients can reduce the results to previously known cases. Keywords include general polynomials and h-functions, among others.