In photothermal microscopy, a laser beam is used to irradiate the sample, causing localized heating. The thermal response of the sample is then detected using a probe beam, which can be either optical or mechanical. Variations in the probe beam provide information about the material properties and structures at the nanoscale.