Electrostatic model
In order to calculate the full probe configuration, we extended our previous model [
7] to solve the entire probe–surface electrostatic system, including the cantilever. The model assumes a conducting probe and a sample that is represented by an infinitely thin dipole layer on top of an earthed plane; variations in the dipole density account for the inhomogeneous sample surface potential. Both the probe and the sample were divided into boundary elements in order to calculate their surface charge density. Unlike our previous work [
7], where the probe was divided into conical and spherical elements, here we used commercial software (MSC/Patran®) in order to perform fast automatic meshing of an arbitrary probe geometry, including the cantilever as required in this work.
The probe charge density was used as the unknown quantity to be determined in order to calculate subsequently the PSF. We use the following notations: (a) A matrix
G which is a discrete representation of the Green’s function between two probe boundary elements; (b) a matrix
D which represents the discretized influence of the dipole layer (representing the sample) on each probe mesh element; (c) a diagonal matrix
B with diagonal elements equal to the
z components of the normal area vectors of the probe boundary elements divided by 2ε
o, and (d) the vector

, which is a discrete representation of the surface potential, corresponding to a probe centered at
r = (
x,y,z). Matrices
G,
D,
B and vector

were previously defined in [
7] and are explained again in the Appendix section.
The probe–sample system was solved by dividing the mutual interactions into homogeneous and inhomogeneous parts. The homogeneous part represents a system with a probe above an infinite earthed plane, while the inhomogeneous part accounts for the contribution of the sample surface potential to the electrostatic force acting on the probe; the total potential is a sum of the two parts. In addition, we define

, and
C
inh =
G
−1 D where
G
−1 is the inverse of
G, and

is a vector with all elements equal to 1. The vector

represents the capacitance density (capacitance per unit area) between two probe elements and the matrix
C
inh represents the mutual capacitance density between every pair of surface and probe elements. By inserting the charge density distribution into the Maxwell stress tensor, replacing the probe potential with
V
dc(
r) +
V
ac sin(ω
t), and extracting the force, we obtained the following expression for the electrostatic force acting on the entire probe in the
z direction at frequency ω:
where H
h is the coefficient of the homogeneous force component, and

scales the relative contribution of each sample element to the inhomogeneous force; the superscript t denotes the transpose vector. The distinction between the homogeneous and inhomogeneous parts of the force is not merely mathematical; while the homogeneous force depends on the applied voltage,
V
dc, the inhomogeneous force is proportional to a weighted average of the sample potential. These weights are due to the contributions from areas at different distances from the probe, and therefore will determine the KPFM spatial resolution.
Eq. 1 calculates the force for a specific probe–sample distance. In practice, almost all UHV KPFM measurements use the single pass method. In this method, the cantilever oscillates at its first resonance frequency in order to measure the surface topography, while the oscillations due to the electrostatic force (in amplitude modulated AM-KPFM at the second resonance or in frequency modulated FM-KPFM at several hundred Hz [
16]) are nullified by adjusting
V
dc(
r). The first resonance oscillations have a strong effect on the measured CPD, especially at probe–sample distances smaller than 10 nm, where the electrostatic force varies strongly with the distance [
17]. Since in most cases the KPFM feedback circuit time constant is much larger than the period of the first resonance oscillations, the force minimization condition must be applied to the average force. This leads to the following relation between the measured potential and the sample potential:

, where

is the averaged force. In addition,

and

represent, respectively, the time averaged of

and H
h, which are defined in
Eq. 1 for a certain time, i.e., for a given probe height; the product

is the PSF of the system. The time averaged force was calculated by sampling the sinusoidal movement at K time points uniformly covering an oscillation period
T
0, so that
t
k = (
T
0/K)·k (where k is an integer between zero and K) and the probe–sample distance is
d(
t
k) =
A sin(2π
t
k/
T
0)+
A
0, where
A is the oscillation amplitude and
A
0 is the average height. The charge density on the probe was calculated for each probe–sample distance independently.
The magnitude of the cantilever effect on the measured potential can be explained as follows. Since the cantilever is located more than 10 μm above the sample surface, and its total lateral displacement during a high resolution scan is about 0.2 μm, its maximal angular movement relative to an axis perpendicular to the surface is on the order of 1°. Due to their large separation, the potential due to the surface dipole layer at the cantilever location can be expanded using the spherical harmonics series [
18] (multipole expansion). As the angular span of the cantilever is very small during the scan, only terms with high multipole orders, (tens and higher), produce discernable angular variations. However, each multipole term decays as 1/
r
n where
r is the cantilever distance from the multipole origin, and n is the multipole order. Thus, these higher order terms in the multipole series are negligible at the cantilever location, since they decay as the reciprocal of the corresponding high power of the cantilever–sample distance. Therefore, we assumed, to a very good approximation, that the cantilever senses a constant potential during the entire scan.
To emphasize the cantilever role, we calculated separately the cantilever and tip contributions to the total vertical electrostatic force. The average force of a given geometrical model x (tip or cantilever) can be expressed using the calculated expected potential:

; where

is the averaged homogeneous force coefficient and

is the nullifying force potential of the specific model x. Neglecting the mutual electrostatic interaction between the cantilever and the tip, the total force on the probe is

. Based on the conclusion from the previous paragraph, we approximated

, which is the potential after nullifying only the cantilever force, by a constant. Then, by minimizing the total force we obtained:
Eq. 2 shows that the constant force of the cantilever introduces a factor of

relative to a model that takes into account only the tip. In addition, since only a scaling factor is introduced in
Eq. 2, the cantilever does not affect the lateral resolution, but may strongly affect the CPD absolute value, even in high resolution UHV KPFM measurements, as we demonstrate below. It should be noted that our model does not include signal-to-noise considerations, which may reduce the lateral resolution due to the above scaling.