A heating system includes a sensing and tracking module to sense length in at least one dimension of an object to-be-heated in a previously determined area. A light source module has at least one light source that can change its lighting direction and can also change its beam angle e along the at least one dimension. A control module is provided for regulating light emitted by the light source module onto the to-be heated object along the at least one dimension to match with the length of the to-be-heated object based on the length sensed by the sensing and tracking module. The heating system described above and a bed incorporated having this kind of heating system may automatically adjust its output power according to the physical characteristics of the object to-be-heated to avoid heating unrelated object, area or space so as to ensure high energy efficiency.