The technique employs an AFM tip to scan the surface of a sample while an IR laser is used to irradiate the sample. The interaction between the IR radiation and the material beneath the AFM tip generates localized thermal expansion. This expansion is detected by the AFM tip, and the resulting signal is converted into an IR spectrum. This spectrum provides detailed chemical information about the sample at a resolution of tens of nanometers.