WorksPhysics and Astronomy
Reconstructing Non-Markovian Forces in Atomic Force Microscopy
Abstract
Force reconstruction in AFM leads to quantification of material properties with nanometric resolution but the literature typically relies on testing the different formalisms against well-behaved single-valued functions with no memory kernels. Here, we set to investigate the recovery of forces containing realistic traits such as discontinuities, hysteretic, non-Markovian, i.e., history-dependent tip-trajectories, and non-ergodic, i.e., trajectory-locking, phenomena. Amplitudes, cantilever stiffness and tip radii have an impact on stability but also on the ability of each method to accurately explore the full tip-trajectory. The small amplitude approximation successfully tracks well behaved and differentiable force components like oscillatory forces of small decay lengths lambda < 0.5 nm even when superposed on highly discontinuous and hysteretic backgrounds. Formalisms relying on Markovian assumptions are shown to recover an "average" force path in the presence of Markovian multivalued functions here modeled as contact hysteresis. For memory dependent forces like capillary interactions, they fully miss the retraction path. In some cases, overlooking assumptions leads to producing material properties based on "artificial" averages while in other cases a real material property is fully missed. Out of the methods explored, only Hooke's law captures complete approach/retraction trajectories and suitably handles discontinuities provided the stability criteria are satisfied.
The Atomic Force Microscope (AFM) was invented exactly four decades ago[1, 2]. The general dynamics are monitored as a function of deflection or tip-sample distance [3, 4] where the unknown tip-sample force controls the behavior. The AFM set-up thus serves as a nanoscale sensor where the target is to monitor, identify and quantify the forces generating contrast to relate them to mechanical[5], chemical[6], electrostatic[7], magnetic[8] or other material properties[9]. The two basic modes of operation are contact and dynamic AFM[4, 10]. Force spectroscopy consists in monitoring the “quasi-static” deflection in contact mode, or the oscillation amplitude, phase or frequency shifts in dynamic modes[4].
Dynamic force reconstruction is complex[2, 4, 11, 12, 13, 14, 15, 16, 17]. The results of recovering complex functions however are still to be completely elucidated since most works have used “ideal”[15, 18] single-valued and/or differentiable expressions[17, 19, 20] to validate their results.
Here, we set to recover complex and more realistic functions containing discontinuities and hysteretic, non-Markovian, i.e., history-dependent tip-trajectories, and non-ergodic, i.e., trajectory-locking, phenomena. We explore the parameter space and show how future experimental and theoretical advances should target disentangling and quantifying such mechanisms to extract information via standard set-ups without 1) missing tip trajectories or 2) creating “artificial” averaged material properties.
The equation of motion reduced to a mass on a spring with constant and viscosity of the medium can be written as
where stands for tip-sample force, is the cantilever deflection in relation to its position of equilibrium, is the tip-sample distance, is the natural angular frequency, is the drive frequency, is the external driving force, and is the quality factor. The cantilever-surface separation , and are geometrically related (Figure 1) as follows

Figure 1. Illustration of the geometric relationships in a typical AFM set-up.
When the external drive (dynamic AFM), in the steady state, the expression can be written as
where is the mean deflection and contains the harmonic distortion that is heretofore disregarded unless otherwise stated. Regarding (1)–(3), terms depending on are written in terms of a time window where
Eq. (4) indicates that, in its most general form, the tip-sample force in AFM must consider a history-dependent functional[21], that is, a functional limit that might be non-Markovian or hereditary, i.e., the system has "memory" and accounts for phenomena such as delayed relaxation, aging, and state changes. Significant examples are capillary interactions[22, 23, 24], adhesion hysteresis[25], stick-slip dynamics such as the formation and rupture of weak vdW bonds[26] or elastic stretching and sudden detachment of polymer chains[27], or stiction[28].
If the force is a function of position and velocity[14, 15, 18, 19, 29]
where is the tip velocity and and separate conservative from nonconservative, i.e., dissipative, forces. This ansatz is not a peripheral assumption in many formalisms but foundation upon which the whole frameworks stand on[15, 16, 18]. We will show that, at best, the assumptions in (5) might recover an “average” force path. At worst, they fully miss a tip trajectory and therefore a targeted material property. Sader et al.[19] proposed the terms even and odd rather than conservative and dissipative or nonconservative respectively but a suitable treatment is still missing[16]. Next we use 1) the small amplitude approximation, 2) frequency modulation (FM), 3) amplitude modulation (AM) and 4) contact mode force reconstruction methods to investigate how fundamental force mechanisms beyond well behaved functions can be recovered.
We start with a continuous, single valued tip-sample force model accounting for vdW interactions via the Hamaker constant and the tip radius , and short-range repulsive forces via the DMT model of contact mechanics[4] that takes into account an effective elastic modulus and the tip-sample indentation ()
Here, is an intermolecular distance to avoid divergence[4]. The force is shown in Figure 2(a). The interaction in Figure 2(b) is more complex, and it is discussed later.

Figure 2. (a) Single valued force interaction model accounting for vdW and repulsive contact forces. (b) Multi-valued force model that accounts for surface energy hysteresis at contact, capillary forces and an oscillatory force component that can be used to model water structure.
In contact mode AFM the force is reconstructed by monitoring and using Hooke’s law directly - (Figure 1). The “instantaneous” force follows from Hooke’s law
In principle Eq (8) is limited to 1) instrumental resolution or signal-to-noise-ratio SNR and 2) the system’s stability. Here, all simulations have been carried out “slowly” ( 10nm/s). The forces employed in the simulations are shown in the figures in black throughout. Figure 3(a) shows the contact mode results of a simulation where the cantilever-environment-materials parameters are , , , and - and are shown in the legends. The forces have been normalized everywhere - . Figure 3(a) shows that for and information is lost in the attractive and repulsive regimes on approach (blue) and on the attractive on retraction (red). According to Giessibl[17] in contact mode the stability criterion establishes that, for stability at any

Figure 3. Contact mode simulations for the recovery of the force displaying system instabilities in terms of (a) and (b) . (c) Stability can be recovered by increasing (blue lines) or decreasing (red lines).
where is the stiffness at . For the current model
For the values under consideration and the data in Figure 3(a) the criterion predicts for stability. The prediction is that snap-in occurs on approach, , at . Furthermore, the distance for tip-landing on approach can be obtained from
The solution is (landing). On retraction the first point where Eq. (9) applies coincides with . This point defines the separation for snap out
The same separation defines the landing point on retraction as
In summary from Eqs. (11) and (12) information is lost on approach for and on retraction for . The snap in z_{c,\mathrm{snap\mathchar`-in}} and snap out separations z_{c,\mathrm{snap\mathchar`-out}} are also shown in Figure 3(b). The predictions and the figure illustrate that the stability criterion is deterministic and can be found for analytical models. The analytical results are also in good agreement with the simulations in Figure 3(a) and (Figure 3b)[16]. There are at least two ways in which cantilever-tip parameters can be selected to overcome the stability problem. The trivial one follows directly from Eq. (9) and involves increasing . The second is to reduce since it controls the magnitude of attractive forces. According to the criterion the minimum for stability for is approximately , while for a , . The simulations in Figure 3(c) show that stability follows for and (blue) and for and (red).
Simulation results are shown in Fig. 4 in FM AFM (small amplitude approximation) for the same model (Figure 2(a)). Linearizing at a distance
where the term introduces a constant offset, leading to
Provided A is sufficiently small
The above are well-known results. In FM the frequency is experimentally monitored so Eq. (16) can be solved to reconstruct . When the cantilever is sinusoidally driven[17, 30] the extended stability criterion gives
Results are shown in Fig. 4(a) for the same parameters used in Figure 3(a) and N/m, pm and nm. Eq. (17) establishes that the system is unstable since 25 N/m for stability. This agrees with the results in Fig. 4(a) where the force has been recovered from (16) (blue lines) and via Hooke’s law (red lines). From (17) becomes a significant parameter beyond and . While increasing leads to stability, a limitation here is the small amplitude approximation since it is required that (decay length of the force). In the model (Figure 2(a)) -1. The tension arises from the requirement that for linearity and for stability. From Eq. (17) and for N/m and nm (other parameters as in Figure 2(a)) the extended criterion predicts pm. Simulations show (not shown) that pm still leads to instabilities while for pm linearization breaks down. Again, two possibilities follow. First decreasing . Second, increasing . From Eq. (17) and N/m, nm for stability. For nm, 25 N/m for stability. These values indicates that FM might require larger values of than contact mode for stability since, from before, 15 (stability criterion) for contact mode and (extended stability criterion) for . Fig. 4(b) shows that stability is reached at for and . It is worth noting, however, that small values of also lead to errors in the repulsive regime. This is indicated in Fig. 4(a) with an arrow. Linearization can be extended to AM AFM (see Eq. (18)) by recovering the resonant frequency from the observables and . On the other hand, in AM AFM, varies and typically rapidly decreases with decreasing separation. For the small amplitudes, i.e., – (not shown), required for linearization and for the type of forces under consideration, the amplitude decays to a few pm much before the tip reaches repulsive forces, i.e., the system falls outside the detection range. A solution is to increase , i.e., (not shown).

Figure 4.
Figure 4 (PDF p. 12). (a) FM AFM simulation for a linearized system displaying instabilities. (b) is increased beyond the valued predicted the extended stability criterion. Both the linearized method of reconstruction (blue lines) and Hooke’s law (red lines) are shown.
The Sader-Jarvis (SJ) formalism[12] was extended to AM by Katan[13] – more recently other similar formalisms have been developed[14] – where is the free amplitude, and vary with and the normalized resonant frequency can be obtained as[13]
The force is[19]
Results are shown in Figure 5(a) for nm (red lines) and nm (blue lines).

Figure 5. Force reconstruction in AM AFM (Sader-Jarvis Eq. (19)) showing (a) instabilities for smaller values of (red lines) and stability for larger values (blue lines). (b) Stability follows for the same system by either decreasing (blue lines) or increasing (red lines).
Instabilities are observed for nm in AM AFM even when the extended stability criterion predicts that 300 pm for stability (see discussion of Figure 6 below). This follows from a main difference between AM and FM where decays with the force in AM. Our simulations indicate (not shown) that -30 nm for these conditions (nm and N/m) for stability. We further find that there is an almost linear relationship between increasing or and decreasing to reach stability. This is shown in Figure 5(b) where was divided by 4 and either was divided by 4 (blue lines) or was multiplied by 4 (red lines) for stability and full recovery of that range.

Figure 6. Force reconstruction in FM AFM (Sader-Jarvis Eq. (19)) showing that the system is already stable for values of as low as (blue lines) for the same parameters as those used in AM AFM in Figure 5(a), even if it slightly improves for larger values (red lines).
In FM AFM is recovered directly and is constant, i.e., . Otherwise (19) applies directly. For the same values of and as those in Figure 5(a), stability is achieved (Figure 6) for values of as small as 2nm (and lower – not shown) in FM AFM (25-30 nm in AM AFM). In short, while the extended stability criterion is a simplification of the phenomenon its predictions are reasonable for FM AFM.
We now move to the complex forces shown in Figure 2(b). First, in the contact region, hysteresis can be modeled as
where is the surface energy of the tip-sample contact on approach. Surface energy increases by on retraction leading to irreversible energy loss1. The approach (continuous red lines) and retraction (dashed red lines) paths, and the force discontinuities, in Eq. (20) are shown in Figure 2(b) for . In ambient conditions a capillary force may also be present. The Kelvin equation dictates[22, 32] that, in the constant chemical approximation the capillary forms at a distance ( where is the height of a water layer[32]) and breaks at a distance ()[22, 32].
Here is the surface energy of water, is the contact angle and is the kelvin distance where the capillary bridge “ideally” breaks ()[33]. Figure 2(b) shows a capillary discontinuity at and a second discontinuity on retraction where . Finally, inside the capillary, water structure may lead to oscillatory forces[24, 34].
where osc stands for oscillatory. The force is shown (blue lines) in Figure 2(b). The oscillatory force is continuous and only applies when the capillary force (21) is active.
Forces (6), (7) and (20)–(22) have been used in the simulations leading to Figure 7–Figure 9 - zJ, N/m, , nm, , , nm, , and nm (rest as in Figure 3–Figure 6 or as described for each simulation). In summary, Eq. (20) is both Markovian and ergodic and includes discontinuities on approach and retraction, the capillary force from Eq. (21) is non-Markovian and non-ergodic and includes discontinuities and Eq. (22) includes forces with short decay lengths, i.e., – nm.

Figure 7. Contact mode (Hooke’s law) successfully recovers all phenomena in Figure 2(b) on tip approach (blue lines) and retraction (red lines).

Figure 9. Force reconstruction (Sader-Jarvis Eq. (19)) in FM AFM (blue lines) and AM AFM (red lines) showing the behavior of the formalisms when dealing with discontinuities and hysteretic mechanisms involving Markovian (contact hysteresis Eq. (20)) and non-Markovian (capillary hysteresis Eq. (21)) behavior.
In Figure 7 the force in Figure 2(b) is reconstructed using Hooke’s law (method from Eq. (8)) for nm, nm and (for Figure 8 and Figure 9 nm and nm). Inspection shows that this method successfully recovers all forces by inducing only minimal errors at the discontinuities. Provided the stability criterion is satisfied (Eq. (9)) and there is sufficient SNR, the whole set of phenomena can be recovered in contact mode from Hooke’s law. For Figure 7 agreeing with the observed stability.

Figure 8. FM AFM simulation for a linearized system for the forces modelled in Figure 2(b) (the same as those in Figure 7). (a) and (b) show the results of tip approach and retraction for the linearized reconstruction method (red lines) and Hooke’s law (blue lines), via the mean deflection signal.
The results of the small amplitude approximation for FM AFM (Eqs. (14)–(16)) are shown (red lines) in Figure 8 on (a) approach and (b) retraction for for the forces in Figure 2(b) – Hooke’s law is also shown (blue lines). Some problems can be identified. First, linearity implies continuity since the derivation requires to exist. Second, the extended stability criterion in Eq. (17) cannot account for the discontinuities. Third, even if it did, the attractive force exceeds implying the minimum for should be (loss of linearity). Again, could be increased or reduced, with the disadvantages already discussed for the results in Fig. 4 and the vdW model. Still the small amplitude method resolves (Figure 8) the oscillation peaks (red lines) on both approach and retraction and only significantly worsens the contact mode signal (blue lines) around the point of contact .
The results of simulations for the Sader-Jarvis (SJ) formalism are shown in Figure 9 for FM AFM (blue lines) and AM AFM (red lines). First, the data shows that multi-valued functions such as contact hysteresis - Eq. (20) - produce an average. This has implications when the target is monitoring the difference between the approach and retraction paths.
Second, for non-Markovian mechanisms such as the capillary force only the approach path is recovered. This is independent of whether the approach or retraction data is employed (data not shown). Third, again, FM AFM can lead to stable results for lower values of than AM AFM. For the data in Figure 9 was stable at nm (not shown) where the extended stability criterion predicted approximately 0.3 nm. In AM AFM –30 nm (not all data shown). The oscillatory behavior on the other hand, is recovered by both FM and AM. Finally, the Gibbs phenomenon is observed at the points of discontinuity. This is a problem of any method relying on differentiability at a point. On the other hand, unlike the small amplitude approx. (Figure 8), these formalisms manage to recover the absolute value of the forces after recovering from the Gibbs phenomenon.
We have submitted Hooke’s law, the small amplitude approximation and the Sader-Jarvis reconstruction formalisms in the AM and FM modes to complexities beyond single-valued, Markovian and velocity dependent forces and tested stability criteria. While relying on the “even-odd” mathematical assumptions has led to the robust derivation of force reconstruction methods in dynamic AFM, users must be aware that the reconstructed forces might include the creation of averaged tip-trajectories resulting in the “artificial” creation material properties or, in the worst case, they might miss the targeted properties. Out of the methods explored, only Hooke's law captures complete approach/retraction trajectories and suitably handles discontinuities provided the stability criteria are satisfied.
Data Availability Statement
The data that support the findings of this article are available upon request.
Acknowledgments
Maritsa Kissamitaki produced the artistic illustrations.
References
- [1]G. Binnig, C. F. Quate, and Ch Gerber, Physical Review Letters 56 (9), 930 (1986); E. Meyer, Progress in Surface Science 41 (1), 3 (1992).
- [2]Franz J. Giessibl, Reviews of Modern Physics 75 (3), 949 (2003).
- [3]Tuza Adeyemi Olukan, Sergio Santos, Lamiaa Sami Elsherbiny, and Matteo Chiesa, in Theory and applications in AFM (IOP Publishing, 2024).DOI
- [4]Ricardo García and Rubén Pérez, Surface Science Reports 47 (6), 197 (2002).
- [5]Marta Kocun, Aleksander Labuda, Waiman Meinhold, Irène Revenko, and Roger Proksch, ACS Nano 11 (10), 10097 (2017); Simone Benaglia, Victor G. Gisbert, Alma P. Perrino, Carlos A. Amo, and Ricardo Garcia, Nature Protocols 13 (12), 2890 (2018).
- [6]Daniel Martin-Jimenez, Michael G. Ruppert, Alexander Ihle, Sebastian Ahles, Hermann A. Wegner, André Schirmeisen, and Daniel Ebeling, Nanoscale 14 (14), 5329 (2022).
- [7]J. Colchero, A. Gil, and A. M. Baró, Physical Review B 64 (24), 245403 (2001).
- [8]Thomas Häberle, Felix Haering, Holger Pfeifer, Luyang Han, Barat Achinuq, Ulf Wiedwald, Ulrich Herr, and Bernt Kostlowski, New Journal of Physics 14 (4), 043044 (2012).
- [9]Rodrigo Arilla, Esther Barrena, Carmen Ocal, and Daniel Martin-Jimenez, Nano Letters 25 (9), 3597 (2025); Chia-Yun Lai, Jin-You Lu, Jaime Viegas, Khalid Askar, and Matteo Chiesa, Nano Letters (2026); J. Sanchez and H. Benaroya, Journal of Sound and Vibration 333 (14), 3014 (2014).
- [10]D. Gallego-Fuente, J. Colchero, J. Gomez-Herrero, and P. Ares, Advanced science (Weinheim, Baden-Württemberg, Germany), e76609 (2026).
- [11]H. Hölscher, U. D. Schwarz, and R. Wiesendanger, Applied Surface Science 140 (3), 344 (1999); U. Dürig, Applied Physics Letters 75 (3), 433 (1999); F. J. Giessibl, Applied Physics Letters 78 (1), 123 (2001); S. Hu and A. Raman, Nanotechnology 19 (37), 375704 (2008).
- [12]John E. Sader and Suzanne P. Jarvis, Applied Physics Letters 84 (10), 1801 (2004).
- [13]A. J. Katan, M. H. van Es, and T. H. Oosterkamp, Nanotechnology 20 (16), 165703 (2009).
- [14]A. F. Payam, D. Martin-Jimenez, and R. Garcia, Nanotechnology 26 (18), 185706 (2015).
- [15]Manhee Lee and Wonho Jhe, Physical Review Letters 97 (3), 036104 (2006).
- [16]Simon Laflamme, Bugrahan Guner, and Omur E. Dagdeviren, The Journal of Physical Chemistry Letters 16 (49), 12661 (2025).
- [17]Franz J Giessibl, Physical Review B 56 (24), 16010 (1997).
- [18]Sunghoon Kim, Joon-Hyuk Ko, and Wonho Jhe, Physical Review Letters 126 (7), 076804 (2021).
- [19]John E Sader, Takayuki Uchihashi, Michael J Higgins, Alan Farrell, Yoshikazu Nakayama, and Suzanne P Jarvis, Nanotechnology 16 (3), S94 (2005).
- [20]A. Rosa-Zeisor, E. Weilandt, S. Hild, and O. Marti, Measurment Science and Technology 8 (11), 1333 (1997); P. J. de Pablo, J. Colchero, J. Gómez-Herrero, and A. M. Baró, Applied Physics Letters 73 (22), 3300 (1998); S. C. Minne, Y. Hu, S. Hu, B. Pittenger, and C. Su, Microscopy and Microanalysis 16 (S2), 464 (2010).
- [21]Enrique A. López-Guerra, Babak Eslami, and Santiago D. Solares, Journal of Polymer Science Part B: Polymer Physics 55 (10), 804 (2017).
- [22]E. Sahagún, P. García-Mochales, G. M. Sacha, and J. J. Sáenz, Physical Review Letters 98 (17), 176106 (2007).
- [23]Liang Peng, Feng-Chun Hsia, Sander Woutersen, Mischa Bonn, Bart Weber, and Daniel Bonn, Physical Review Letters 129 (25), 256101 (2022).
- [24]M. R. Uhlig and R. Garcia, Nano Lett 21 (13), 5593 (2021).
- [25]Enrique Sahagún and Juan José Sáenz, Physical Review B 85 (23), 235412 (2012); Bharat Bhushan and Yong Chae Jung, Progress in Materials Science 56 (1), 1 (2011).
- [26]Ji Guo, Humberto Batiz, Joel W. Ager, Ali Javey, and D. C. Chrzan, Physical Review Research 7 (4), 043224 (2025).
- [27]A. Serr and R. R. Netz, Europhysics Letters 73 (2), 292 (2006); Lucie Grebíková, Stuart G. Whittington, and Julius G. Vancso, Journal of the American Chemical Society 140 (20), 6408 (2018).
- [28]Bharat Bhushan, Journal of Vacuum Science & Technology B: Microelectronics and Nanometer Structures Processing, Measurement, and Phenomena 21 (6), 2262 (2003); K. M. Joshi, D. S. Arya, M. Garg, P. Kumar, and P. Singh, presented at the 2025 IEEE Applied Sensing Conference (APSCON), 2025 (unpublished).
- [29]Shuijing Hu and Arvind Raman, Nanotechnology 19 (37), 375704 (2008).
- [30]John E. Sader and Suzanne P. Jarvis, Physical Review B 74 (19), 195424 (2006).
- [32]V. V. Yaminsky, Colloids and Surfaces A: Physicochemical and Engineering Aspects 159 (1), 181 (1999).
- [33]Lothar Zitzler, Stephan Herminghaus, and Frieder Mugele, Physical Review B 66 (15), 155436 (2002).
- [34]S. Benaglia and S. Chiodini, J Colloid Interface Sci 685, 342 (2025).