Systematic method to solve linear partial differential equations via product solutions and eigen expansions