We present a robust but still efficient simulation approach for high-resolution scanning tunneling microscopy (STM) with a flexible tip apex showing sharp submolecular features. The approach takes into account the electronic structure of the sample and tip as well as relaxation of the tip apex.
We validate our model by achieving good agreement with various experimental images which allows us to explain the origin of several observed features. Namely, we have found that the high-resolution STM mechanism consists of standard STM imaging, convolving electronic states of the sample and the tip apex orbital structure, with the contrast heavily distorted by the relaxation of the flexible apex caused by interaction with the substrate.