In the present work, we develop a model describing the whole AFM-IR signal generation process, starting with light absorption by an absorber embedded in a matrix until detection of the sample's surface expansion. This model takes into account thermal and mechanical properties of materials, as well as the size and position of the absorber.