The Heating of Slabs with Arbitrary Heat Inputs