본문 펼치기
## Diffusion Distribution Model for Damage Mitigation in Scanning Transmission Electron Microscopy
Amirafshar Moshtaghpour <sup>∗†</sup> Abner Velazco-Torrejon <sup>∗</sup> Daniel Nicholls <sup>‡</sup>
Alex W. Robinson <sup>‡</sup> Angus I. Kirkland <sup>∗</sup> <sup>§</sup> Nigel D. Browning <sup>†‡</sup>
Abstract
Despite the widespread use of Scanning Transmission Electron Microscopy (STEM) for observing the structure of materials at the atomic scale, a detailed understanding of some relevant
electron beam damage mechanisms is limited. Recent reports suggest that certain types of damage can be modeled as a diffusion process and that the accumulation effects of this process must
be kept low in order to reduce damage. We therefore develop an explicit mathematical formulation of spatiotemporal diffusion processes in STEM that take into account both instrument
and sample parameters. Furthermore, our framework can aid the design of Diffusion Controlled
Sampling (DCS) strategies using optimally selected probe positions in STEM, that constrain the
cumulative diffusion distribution. Numerical simulations highlight the variability of the cumulative diffusion distribution for different experimental STEM configurations. These analytical
and numerical frameworks can subsequently be used for careful design of 2- and 4-dimensional
STEM experiments where beam damage is minimised.
_Keywords:_ _Diffusion_ _distribution,_ _beam_ _damage,_ _scanning_ _transmission_ _electron_ _microscopy,_ _com-_
_pressive_ _sensing._
### 1 Introduction
(Scanning) Transmission Electron Microscopy (S(TEM)) is a widely used tool for investigating
complex structures at the atomic level [1–3]. This technique is now routine due to the development
and implementation of spherical aberration correctors [4–6], improved electron sources [7–9] and
direct electron detectors [10, 11]. For STEM imaging, a high intensity coherent, convergent probe
is scanned over a region of interest of a sample [12, 13] which can lead to detrimental _beam_
_damage_ [14, 15].
Beam damage can arise through various mechanisms. _Knock-on_ damage results from an
electron-atom interaction, whereby the incident electron transfers kinetic energy to an atom in
the sample [14, 16]. In this case, kinetic energy and momentum are conserved in the collision and
an atom may be displaced from its equilibrium position or from its atomic site, if the transferred
energy is higher than an atomic displacement energy [17].
∗Rosalind Franklin Institute, Harwell Science & Innovation Campus, Didcot, OX11 0QS, UK.
†Mechanical, Materials, & Aerospace Engineering, University of Liverpool, Liverpool, L69 3GH, UK.
‡SenseAI Innovations Ltd., Brodie Tower, University of Liverpool, Liverpool, UK.
§Department of Materials, University of Oxford, Oxford, OX2 6NN, UK.
Corresponding author: `amirafshar.moshtaghpour@rfi.ac.uk`
1
Figure 1: Scanning probe trajectories on a 10 _×_ 10 grid. The first and last scanned probe positions are indicated
by a black square and a triangle, respectively whereas the unscanned positions are shown by green crosses. Linehop
and random scans are illustrated for 50% sampling of probe positions. Four snapshots associated with an alternating
scan of order 2 are shown in the bottom panel. As for raster and snake scans, the alternating approach scans the full
FoV.
A second mechanism, predominately affecting insulators, known as _radiolysis_ describes the
cleavage of chemical bonds within the structure of a sample [17]. This occurs due to an inelastic
electron-electron interaction, whereby the incident electron causes either excitation or ionization.
If sufficient kinetic energy is transferred to a valence electron or an inner-shell electron, this can
cause the generation of secondary electrons, unstable radicals or ions that subsequently result in
the dissociation of chemical bonds and eventually induce defect formation or even amorphisation.
If the time for electron-hole pair recombination is longer than a critical value, ions can migrate
due to the Coulomb potential, which can be induced by the incident electron beam [15, 17]. The
secondary electrons that are released during this interaction can travel distances of the order of tens
of nanometers, creating further damage away from the irradiated position [18, 19]. These adverse
effects can in principle be considered to be proportional to the electron fluence - _i.e._, the number
of electrons delivered over a region of interest. However, due to the delocalised effect of radiolysis,
regions of the sample that are visited by the STEM probe at a later stage in the scanning sequence
can be damaged when scanning earlier positions. In addition, because of the dynamic nature
of radiolysis, due to the primary and secondary processes occurring on different timescales [20],
conventional raster scan as shown in Fig. 1 can induce more damage if the scan step and dwell time
favour a fast accumulation of the damage effects. However, although the physical process(es), _e.g._,
electrostatic charging, diffusion of radicals, ions, and/or heat, affecting a particular sample [14] may
not be clearly identified, these mechanisms all behave as a diffusion process that extends spatially
in time.
Emerging approaches for reducing beam damage are based on controlling the probe trajectory
2
for scanning the full Field of View (FoV). A recent report [21] has shown damage reduction using
an alternating scan (also known as interleaved or leapfrog scan) compared to raster scan for high
resolution imaging of a zeolite sample. As shown in Fig. 1, in an alternating scan, all probe positions
in a 2-D array of points are visited by skipping a fixed number of points in both horizontal and
vertical directions on the grid. A previous report [22] exploited a random scan strategy, selecting the
next probe location at random for hyperspectral STEM imaging to reduce emission instabilities in a
cathodoluminescence experiment. In both examples, the same number of electrons are distributed
over the scanned area as in the raster scan but adjacent probe positions are not used sequentially.
An alternative approach to mitigate beam damage is based on subsampling the probe positions.
A high quality reconstruction is expected assuming that the image has an (approximately) sparse
representation in a transform domain [23]. Subsampled STEM modalities are often recognised as
applications of the theory of Compressed Sensing (CS) [23, 24] in the field of electron microscopy;
subsequently, referred to as _compressive_ _STEM_ for convenience. This subsampled acquisition
allows for a larger average distance between neighbouring positions compared to a conventional
full acquisition. Experimentally, subsampling of the probe positions can be achieved using a scan
generator or a beam blanker [25, 26]. A scan generator is used to alter the trajectory of the
probe such that only the desired positions within the FoV are sampled. A beam blanker, without
changing the trajectory of the probe from a default raster scan, deflects the beam rapidly and
selects locations that are irradiated along the scan path.
Other approaches such as the fractionation of the fluence by multi-frame fast acquisitions have
also shown damage reduction in contrast to a single acquisition, for a fixed total fluence in STEM
spectrum imaging of a lead perovskite [27]. Importantly, these findings support the diffusion-like
behaviour of radiolysis and suggest that some of the damage processes of this mechanism are
reversible.
As described earlier, the displacement of atoms by _knock-on_ involves a simplistic mechanism,
and a relatively large number of analytical and molecular dynamic models exist to describe and
model that interaction [28]. However, because of the complexity of the multiple processes triggered
by radiolysis, there are a lack of models that describe this mechanism which has limited progress
towards experimental strategies to mitigate its effects [29]. A diffusion process, supported by
experimental results, is an attractive concept that can be implemented as an analytical Fick’s
diffusion model [30, 31].
1.1 Background and outline
Previous studies [32, 33] have used diffusion models to model electron beam damage and its propagation through a sample during the image acquisition process. Nicholls _et_ _al._ [32] first used this
approach to provide insights as to why sub-sampled measurements, (as in compressive STEM), reduce beam damage. That work also demonstrated that linehop sampling [25]; a sampling method
designed to overcome scan coil hysteresis, is as effective as random sampling for reducing beam
damage at low sampling rates (6.25% of scanning probe positions). As shown in Fig. 1, linehop
sampling involves constructing an image from a series of lanes, where each lane only samples one
pixel from each column, and where the next pixel to be sampled is a neighbour to the previous column. This limits the range of motion during sampling whilst still allowing random perturbations,
satisfying both the conditions for hysteresis from the scan coils and incoherence for data recovery
using inpainting [23].
Jannis _et_ _al._ [33] have extended that work to explore experimental results obtained from al
3
ternating scan strategies in STEM. In this work, a 2-D diffusion process from a continuous point
source is considered as the mediator of damage, and it was shown that by the implementation of
a damage threshold the proposed model could explain the experimental results for a reduction in
damage using this scan strategy compared to a raster scan. Since the detailed physics of the damage process may not be known, the concentration of a diffusing substance in the model is replaced
by a parameter defined as a “state of the sample”, which is altered by the electron beam. Sample
damage then only occurs when that parameter crosses a defined threshold. The total damage at a
certain position is thus calculated by integrating a non-linear function, referred in this paper to as
a damage activation function, over time.
The focus of this work is to further develop existing models [32, 33] and to present a rigorous
mathematical framework. Following the work by Jannis _et_ _al._ [33], we make use of a damage
threshold, and include a damage diffusion distribution, or diffusion distribution for short, to replace
the classical concentration of a diffusing substance.
This work provides the first explicit formulations of a damage induced diffusion process model
in STEM by considering a realistic non-point source representation of the electron probe. We note
that since our mathematical model supports an electron probe of arbitrary size, the findings of this
paper can be directly applied to 4-D STEM scans [34–36]. This enables future studies of diffusion
distribution _(i)_ in thick or three-dimensional (3-D) samples, _(ii)_ from pulsed (or modulated) electron beams, or _(iii)_ in a TEM geometry. A detailed summary of the key findings reported in this
paper are:
- Based on the Fick’s second model [30], we derive the spatio-temporal diffusion distribution
of an instantaneous point source in a _d_ -dimensional medium with an anisotropic diffusion
coefficient (Eq. (2)). This is a generalisation of the previous formulation in [33], from a twoto _d_ -dimensional medium and from isotropic to anisotropic diffusion coefficients.
- Using that solution and the principle of superposition we provide the diffusion distribution
for an arbitrary-shaped source (See Eq. (3)).
- We extend that model to a continuous source and provide closed-form formulations for diffusion distributions for four special cases of continuous sources: _(i)_ point source, _(ii)_ square
disc source, _(iii)_ circular disc source, and _(iv)_ Gaussian-shaped source.
- Our analyses of diffusion distribution in STEM assume that the 2-D Gaussian function is
a close proxy to a more realistic airy disc [2] function. By computing the first and second
derivatives of the diffusion distribution with respect to both space and time, we investigate
the spatio-temporal behaviour of the diffusion distribution. Our findings in Lemmas 5, 6,
11, and 12 highlight the complexity of the diffusion process caused by activating an electron
probe at a single location.
- We formulate in Section 3.2 a Cumulative Diffusion Distribution (CDD) caused by activating
an electron probe at multiple locations during STEM acquisitions. The CDD takes into
account the diffusion distributions caused not only by the currently activated electron probe,
but also by every electron probe activated previously.
- Our STEM diffusion model can be coupled to a damage threshold mechanism (Eq. (23)). We
propose two Diffusion Induced Damage (DID) parameters: _(i)_ the frequency of DID events,
and _(ii)_ the intensity of DID events. For each of these, we distinguish online _vs._ offline damage
4
observations. In the online case, the DID at a certain location is affected only until that
location is scanned; whereas in the offline case, DID changes at every location - regardless
of whether it is scanned later on or not. Moreover, in Theorem 2, we provide sufficient
mathematical conditions, for which subsampling probe positions, as in compressive STEM,
reduces the DID compared to full sampling. That result supports the experimental findings
in the literature reporting the advantageous of subsampling probe positions [32, 33, 37, 38]
in reducing damage.
- We present extensive numerical simulations, in Section 6, which illustrate the advantages of
the proposed framework.
- Finally, in Secs. 5.1 and 6.5, for given STEM acquisition parameters we have designed a
Diffusion Controlled Sampling (DCS) strategy that selects as many probe positions as possible
while ensuring that the global maximum of the CDD is constrained, or equivalently the DID
is minimised.
### 2 A Mathematical Model for Diffusion
We base our analysis of diffusion distribution on the second Fick’s model [31, §1.2], in which the
diffusion distribution _ϕ_ in a medium at a _d_ -dimensional spatial location <sup>1</sup> _r_ = [ _r_ 1 _, · · ·_ _, rd_ ] <sup>_⊤_</sup> _∈_ R <sup>_d_</sup>
and at time _t >_ 0 is the solution of the following Partial Differential Equation (PDE) [31, Eq. 1.5],
_i.e._,
_<u>∂ϕ</u>_ <u>(</u> _<u>r</u>_ _<u>, t</u>_ <u>)</u>
(constant diffusion coefficient model) =
_∂t_
_d_
_l_ =1
_Dl_
_<u>∂</u>_ <sup>2</sup> _<u>ϕ</u>_ <u>(</u> _<u>r</u>_ _<u>, t</u>_ <u>)</u>
_∂rl_ <sup>2</sup>
_._ (1)
where _Dl_ _>_ 0, in m <sup>2</sup> _·_ s <sup>_−_</sup> <sup>1</sup>, is the diffusion coefficient along the _l_ -th coordinate. Equation (1)
assumes that the medium is homogeneous such that the diffusion coefficient does not vary from
point to point. It also assumes that the diffusion coefficient is independent of the concentration of
a diffusing substance _ϕ_ as in, _e.g._, the diffusion of organic vapours in high-polymer substances. In
the remaining of this paper we assume that this diffusion is caused by an electron source interacting
with an infinite medium.
For an instantaneous point electron source activated at a location _r_ = _r_ 0 and time _t_ = _t_ 0, the
solution of the PDE in Eq. (1) is (Section 8.1 gives the derivation)
_<u>Q</u>_ <u>0</u>
_ϕ_ ( _r_ _, t_ ) =
~~<u>�</u>~~
_|_ 4 _π_ _D_ _|_ ( _t −_ _t_ 0) <sup>_d_</sup> <sup>exp</sup>
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup>
4( _t −_ _t_ 0)
_,_ (2)
where _Q_ 0 is the initial rate of the diffusing species. and the diagonal matrix _D_ := diag( _D_ 1 _, · · ·_ _, Dd_ ) _∈_
R <sup>_d×d_</sup> contains the diffusion coefficients on its diagonal with _|_ _D_ _|_ denoting the determinant of _D_ .
Equation (2) extends previous results, [31, Eq. 2.6], [39, p. 150], and [40] to a _d_ -dimensional
anisotropic diffusion model, which is equivalent to non-identical diffusion coefficients along different coordinates.
Remark 1. _In_ _Eq._ (2) _and_ _subsequently,_ _we_ _assume_ _that_ _Q_ 0 _is_ _related_ _to_ _the_ _electron_ _beam_ _current_
_I_ 0 _through_ _a_ _general_ _function_ _M_ : R _≥_ 0 _�→_ R _≥_ 0 _,_ i.e. _,_ _Q_ 0 = _M_ ( _I_ 0) _._ _For_ _the_ _sake_ _of_ _convenience,_
1In this paper, vectors and matrices are denoted by, respectively, boldface small and boldface capital letters.
5
_we_ _further_ _assume_ _the_ _units_ _of_ _the_ _rate_ _of_ _the_ _diffusing_ _species_ _Q_ 0 _to_ _be_ u _·_ s <sup>_−_</sup> <sup>1</sup> _for_ _an_ _unspecified_
_and_ _arbitrary_ _“_ u _”_ _here;_ _hence,_ _the_ _unit_ _of_ _the_ _diffusion_ _distribution_ _ϕ_ _is_ u _·_ m <sup>_−_</sup> <sup>2</sup> _._ _This_ _assumption,_
_allows_ _a_ _comparison_ _of_ _different_ _STEM_ _scans_ _with_ _fixed_ _beam_ _current._ _By_ _comparison_ _the_ _authors_
_in_ _[33]_ _considered_ _that_ _the_ _electron_ _probe_ _deposits_ _energy_ _at_ _every_ _probe_ _location_ _and_ _assumed_ _Q_ 0
_with_ _units_ _of_ s <sup>_−_</sup> <sup>1</sup> _._ _However,_ _we_ _emphasise_ _that_ _we_ _do_ _not_ _make_ _any_ _claim_ _about_ _the_ _nature_ _of_ _the_
_diffusive_ _species_ _in_ _STEM._
Using the principle of superposition [31, Eq. 3.5a], the solution of the PDE in (1) for a source
with an arbitrary spatio-temporal activation profile _h_ ( _r_ _, t_ ) can be written as;
- <u>1</u>
~~<u>�</u>~~
R <sup>_d h_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_′, t′_</sup> <sup>)</sup> _|_ 4 _π_ _D_ _|_ ( _t −_ _t_ <sup>_′_</sup> ) <sup>_d_</sup> <sup>exp</sup>
<u>1</u>
~~<u>�</u>~~
R <sup>_d h_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_′, t′_</sup> <sup>)</sup> _|_ 4 _π_ _D_ _|_ ( _t −_ _t_ <sup>_′_</sup> ) <sup>_d_</sup> <sup>exp</sup>
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup>
4( _t −_ _t_ <sup>_′_</sup> )
_ϕ_ ( _r_ _, t_ ) =
- _t_
0
�d _r_ <sup>_′_</sup> d _t_ <sup>_′_</sup> _._ (3)
It is straightforward to confirm that the total number of diffusing species _Q_ tot( _t_ ) at time _t_ in a
system with a diffusion distribution given by Eq. (3) is equal to the total number of units deposited
by the source from the activation time of the source to the current time, since;
- _t_
0
R <sup>_d h_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_′, t′_</sup> <sup>) d</sup> <sup>_r_</sup> <sup>_′_</sup> <sup>d</sup> <sup>_t′,_</sup> (4)
_Q_ tot( _t_ ) :=
R <sup>_d ϕ_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) d</sup> <sup>_r_</sup> <sup>=</sup>
which agrees with principle of conservation of energy [41].
2.1 Special Cases in 2-D
From Eq.(3), we now develop the diffusion distribution formulation for specific cases of continuous
sources in a 2-D medium. From 1 we recall that the units of diffusion distribution in 2-D are
u _·_ nm <sup>_−_</sup> <sup>2</sup> .
Continuous point source activated at location _r_ = _r_ 0 during time _t ∈_ [ _t_ 0 _, t_ 0 + _τ_ ] : In this
case, the corresponding source function can be decomposed into spatial and temporal components,
_i.e._, _h_ ( _r_ _, t_ ) = _Q_ 0 _· hs_ ( _r_ ) _· ht_ ( _t_ ) with
_hs_ ( _r_ ) = _δ_ _r_ 0( _r_ ) and _ht_ ( _t_ ) =
1 _,_ if _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
(5)
0 _,_ otherwise _,_
where _Q_ 0, in u _·_ s <sup>_−_</sup> <sup>1</sup> and _δ_ _r_ 0( _r_ ) = + _∞_, if _r_ = _r_ 0, and _δ_ _r_ 0( _r_ ) = 0, if _r_ _̸_ = _r_ 0, is the delta Dirac
function, whose integral over the entire domain is unity: �R <sup>_d δ_</sup> <sup>_r_</sup> <sup>0(</sup> <sup>_r_</sup> <sup>)d</sup> <sup>_r_</sup> <sup>=</sup> <sup>1.</sup> <sup>Inserting</sup> <sup>Eq.</sup> <sup>(5)</sup> <sup>in</sup>
function, whose integral over the entire domain is unity: �R <sup>_d δ_</sup> <sup>_r_</sup> <sup>0(</sup> <sup>_r_</sup> <sup>)d</sup> <sup>_r_</sup> <sup>=</sup> <sup>1.</sup> <sup>Inserting</sup> <sup>Eq.</sup> <sup>(5)</sup> <sup>in</sup>
Eq. (3) for _d_ = 2 dimensions gives (Section 8.2 gives details);
(6)
- <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)4(</u> _⊤t_ _<u>D</u>_ _−−t_ 01)( _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> - _,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
_ϕ_ ( _r_ _, t_ ) =
4 _π_ <sup>_~~√~~_</sup> _<u>Q</u>_ <u>0</u> _|_ _D_ _|_ <sup>_E_</sup> <sup>1</sup>
4 _π_ <sup>_~~√~~_</sup> _<u>Q</u>_ <u>0</u> _|_ _D_ _|_
- <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> _⊤_ _<u>D</u>_ _−_ 1( _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> - <sup>�</sup>
4( _t−_ ( _t_ 0+ _τ_ )) _,_ _t > t_ 0 + _τ,_
- <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)4(</u> _⊤t_ _<u>D</u>_ _−−t_ 01)( _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> - _−_ _E_ 1
_E_ 1
at any spatial point other than the activation point _r_ _̸_ = _r_ 0; and at the activation point _r_ = _r_ 0,
_ϕ_ ( _r_ 0 _, t_ ) =
+ _∞,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
4 _π_ <sup>_~~√~~_</sup> _<u>Q</u>_ <u>0</u> _|_ _D_ _|_ <sup>ln</sup> - _t−t_ ( _<u>−t</u>_ 0 _<u>t</u>_ +0 _τ_ ) - _,_ _t > t_ 0 + _τ._
- _<u>t−t</u>_ <u>0</u>
_t−_ ( _t_ 0+ _τ_ )
- _,_ _t > t_ 0 + _τ._
6
(a)
(b)
(c)
Figure 2: Diffusion distributions for three special cases in Section 2. (a) Point source: Eq. (6) with _D_ =
diag(0 _._ 25 _,_ 0 _._ 5), (b) Circular disc source: Eq. 8 with _D_ = 0 _._ 25 and _rs_ = 0 _._ 2, and (c) Gaussian-shape source: Eq. 10
with _D_ _s_ = diag(0 _._ 2 _,_ 0 _._ 05) and _D_ = diag(0 _._ 25 _,_ 0 _._ 5). For all cases _τ_ = 1, _Q_ 0 = 1, _t_ 0 = 0, and _r_ 0 = 0 . The range of
vertical axes are identical intra-row but adjusted inter-row for better visualisation.
- + _∞_ <u>1</u>
In Eq. (6), _E_ 1( _v_ ) := _v_ _u_ <sup>_e−u_</sup> <sup>d</sup> <sup>_u_</sup> <sup>for</sup> <sup>_v_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_/{_</sup> <sup>0</sup> <sup>_}_</sup> <sup>and</sup> <sup>_E_</sup> <sup>1(0)</sup> <sup>=</sup> <sup>+</sup> <sup>_∞_</sup> <sup>is</sup> <sup>the</sup> <sup>Exponential</sup> <sup>integral</sup> <sup>of</sup>
order one. For an isotropic medium with a diffusion coefficient _D_ or with a matrix of diffusion
coefficients _D_ = diag( _D, D_ ) Eq. (6) reduces to Eq. (1) in [33]. However, the value of the diffusion
distribution at the activation point _ϕ_ ( _r_ 0 _, t_ ) when _t_ _≥_ _τ_ is not included in [33] as illustrated in
Fig. 2(a).
In Eq. (6), _E_ 1( _v_ ) :=
- + _∞_
_v_
This special case is relevant to imaging applications using STEM as studied in [33]. However,
experimentally the source is not a point . Therefore, in the following we provide solutions to (1)
for non-point sources.
Continuous circular disc source with radius _rs_ centered at _r_ = _r_ 0 and activated during
time _t ∈_ [ _t_ 0 _, t_ 0 + _τ_ ] : In this case, the corresponding source function is _h_ ( _r_ _, t_ ) = _Q_ 0 _· hs_ ( _r_ ) _· ht_ ( _t_ )
with
1 _,_ if _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
(7)
0 _,_ otherwise _,_
_hs_ ( _r_ ) =
- _πr_ <u>1</u> _s_ <sup>2</sup> <sup>_,_</sup> if _∥_ _r_ _−_ _r_ 0 _∥_ 2 _≤_ _rs,_
0 _,_ otherwise _,_
and _ht_ ( _t_ ) =
where the rate of charge _Q_ 0 is u _·_ s <sup>_−_</sup> <sup>1</sup> . In Eq. (7), the _ℓ_ 2-norm _∥_ _u_ _∥_ 2 := ( <sup>�</sup> _i_ <sup>_|ui|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2,</sup> <sup>is</sup> <sup>the</sup> <sup>square</sup>
root of the sum of the squared vector values, and is used to model the circular disc source. For
simplicity, we assume isotropic diffusion coefficients, _i.e._, _D_ 1 = _D_ 2 = _D_ . Inserting (7) in (3) for
_d_ = 2 gives (see Section 8.3 for details)
- min( _t,t_ 0+ _τ_ )
<u>2</u>
<sup>_<u>∥</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0</u></sup> <sup>_<u>∥</u>_</sup> <sup>2</sup>
4 _D_ ( _t −_ _t_ <sup>_′_</sup> )
- _<u>u∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>∥</u>_ <u>2</u> �d _u_ d _t_ <sup>_′_</sup> _,_
2 _D_ ( _t −_ _t_ <sup>_′_</sup> )
(8)
- <sup>�</sup> _rs_
_u_ exp
0
- _<u>u</u>_ <sup>2</sup>
_−_
4 _D_ ( _t −_ _t_ <sup>_′_</sup> )
_I_ 0
_ϕ_ ( _r_ _, t_ )=
_t_ 0
where _I_ 0( _v_ ) := <sup><u>1</u></sup>
_π_
�0 _π_ <sup>exp (</sup> <sup>_v_</sup> <sup>cos</sup> <sup>_θ_</sup> <sup>)d</sup> <sup>_θ_</sup> <sup>is</sup> <sup>the</sup> <sup>modified</sup> <sup>Bessel</sup> <sup>function</sup> <sup>of</sup> <sup>the</sup> <sup>first</sup> <sup>kind</sup> <sup>of</sup> <sup>order</sup> <sup>zero.</sup>
7
) _<u>Q</u>_ <u>0</u> - <u>2</u>
_−_ <sup>_<u>∥</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0</u></sup> <sup>_<u>∥</u>_</sup> <sup>2</sup>
2 _πrs_ <sup>2</sup> _D_ ( _t −_ _t_ <sup>_′_</sup> ) <sup>exp</sup> 4 _D_ ( _t −_ _t_ <sup>_′_</sup> )
This case is pertinent to imaging using wide (parallel) beams as in conventional TEM or Fourier
Ptychography [42] and in certain X-ray applications [43, 44]. For completeness in 8.4 we extend
our analysis to continuous square disc source.
Continuous Gaussian source with a shape matrix _D_ _s_ = diag( _Ds,_ 1 _, Ds,_ 2) centered at _r_ = _r_ 0
and activated during time _t_ _∈_ [ _t_ 0 _, t_ 0 + _τ_ ] : in this case, the corresponding source function is
_h_ ( _r_ _, t_ ) = _Q_ 0 _· hs_ ( _r_ ) _· ht_ ( _t_ ) with
<u>1</u>
_hs_ ( _r_ ) =
~~<u>�</u>~~ _|_ 4 _π_ _D_ _s|_
- and _ht_ ( _t_ ) =
1 _,_ if _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
0 _,_ otherwise _,_
exp
_−_ <sup><u>1</u></sup>
2
<sup><u>1</u></sup>
2 <sup>(</sup> <sup>_r_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0)</sup> <sup>_⊤_</sup> <sup>_D_</sup> _s_ <sup>_−_</sup> <sup>1(</sup> <sup>_r_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0)</sup>
(9)
where the rate of charge _Q_ 0 is u _·_ s <sup>_−_</sup> <sup>1</sup> . Inserting (9) in (3) for _d_ = 2 gives (see Section 8.5 for
details)
_<u>Q</u>_ <u>0</u>
2 _π_ ~~<u>�</u>~~ _|_ _D_ _e|_
- d _t_ <sup>_′_</sup> _,_ (10)
_−_ <sup><u>1</u></sup>
2
<sup><u>1</u></sup>
2 <sup>(</sup> <sup>_r_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0)</sup> <sup>_⊤_</sup> <sup>_D_</sup> _e_ <sup>_−_</sup> <sup>1(</sup> <sup>_r_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0)</sup>
_ϕ_ ( _r_ _, t_ ) =
- min( _t,t_ 0+ _τ_ )
_t_ 0
exp
with _D_ _e_ = _D_ _s_ + 2( _t −_ _t_ <sup>_′_</sup> ) _D_ . Furthermore, assuming an isotropic source and diffusion coefficients,
_i.e._, _Ds,_ 1 = _Ds,_ 2 = _Ds_ and _D_ 1 = _D_ 2 = _D_, (10) reduces to
4 _<u>QπD</u>_ <u>0</u> - _E_ 1
4 _<u>QπD</u>_ <u>0</u> - _E_ 1
- _<u>∥</u>_ _<u>r</u>_ 2 _<u>−D</u>_ _<u>r</u>_ _s_ <u>0</u> _<u>∥</u>_ 22 - <sup>�</sup> _,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
(11)
- 2 _Ds∥_ +4 _<u>r</u>_ _<u>−D</u>_ _<u>r</u>_ <u>0(</u> _<u>∥t−</u>_ <sup>2</sup> <u>2</u> _t_ 0) - _−_ _E_ 1
- _<u>∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>∥</u>_ <sup>2</sup> <u>2</u>
- 2 _Ds∥_ +4 _<u>r</u>_ _<u>−D</u>_ _<u>r</u>_ <u>0(</u> _<u>∥t−</u>_ <sup>2</sup> <u>2</u> _t_ 0) - _−_ _E_ 1
_ϕ_ ( _r_ _, t_ ) =
for _r_ _̸_ = _r_ 0 and
- _<u>∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>∥</u>_ <sup>2</sup> <u>2</u>
- 2 _Ds_ +4 _<u>∥</u>_ _<u>r</u>_ _D−_ ( _t_ _<u>r</u>_ _−_ <u>0</u> _<u>∥</u>_ ( _t_ <sup>2</sup> <u>20+</u> _τ_ )) - <sup>�</sup> _,_ _t > t_ 0 + _τ,_
(12)
- _,_ _t > t_ 0 + _τ._
_ϕ_ ( _r_ 0 _, t_ ) =
- _<u>Q</u>_ <u>0</u> - _<u>Ds</u>_ <u>+2</u> _<u>D</u>_ <u>(</u> _<u>t−t</u>_ <u>0)</u>
4 _πD_ <sup>ln</sup> _Ds_
4 _<u>QπD</u>_ <u>0</u> <sup>ln</sup> - _<u>Ds</u>_ <u>+2</u> _DDs_ <u>(</u> _<u>t−t</u>_ <u>0)</u> - _,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
4 _<u>QπD</u>_ <u>0</u> <sup>ln</sup> - _DDs_ +2 _<u>s</u>_ <u>+2</u> _DD_ ( _t_ <u>(</u> _−t−t_ 0 _<u>t−</u>_ <u>0)</u> _τ_ ) - _,_ _t > t_ 0 + _τ._
This special case, which forms the basis of the discussion in the remainder of this paper, is a
good approximation for focused or defocused electron beams [45] in the absence of any non-circular
aberrations.
Remark 2. _By_ _computing_ _the_ _integral_ _in_ _Eq._ (4) _for_ _the_ _above_ _source_ _functions_ _described_ _by_
_Eqs._ (5) _,_ (7) _,_ _and_ (9) _,_ _the_ _total_ _number_ _of_ _diffusing_ _species_ _Q_ tot( _t_ ) _at_ _time_ _t_ _in_ _all_ _systems_ _is;_
_Q_ tot( _t_ ) = _Q_ 0 _·_ min( _t −_ _t_ 0 _, τ_ ) _._
_We_ _note_ _that_ _the_ _normalisation_ _factors_ _in_ _the_ _spatial_ _component_ _of_ _the_ _activation_ _functions_ _in_
_Eqs._ (7) _and_ (9) _mean_ _that_ _the_ _number_ _of_ _diffusing_ _species_ _in_ _the_ _system_ _is_ _constant_ _when_ _the_ _size_
_of_ _the_ _source_ _changes._ _Since_ _by_ _definition,_ _the_ _function_ _M_ _maps_ _every_ _value_ _of_ _the_ _beam_ _current_
_to_ _a_ _single_ _value_ _of_ _the_ _diffusing_ _species,_ _this_ _normalisation_ _of_ _the_ _electron_ _beam_ _is_ _consistent_ _with_
_the_ _optical_ _conditions_ _available_ _in_ _modern_ _STEM_ _instruments:_ _for_ _a_ _fixed_ _beam_ _current,_ _changing_
_the_ _electron_ _probe_ _size_ _does_ _not_ _affect_ _the_ _number_ _of_ _electrons_ _(and_ _in_ _turn,_ _the_ _number_ _of_ _diffusing_
_species)_ _in_ _the_ _system._
### 3 Diffusion in STEM
We start by introducing a general formulation of diffusion processes in STEM. Subsequently, we
restrict our analysis to the following assumptions:
8
(A1) The rate of initial diffusing species _Q_ 0 is related to the beam current through a general
function _M_ . It is not necessary to specify the function _M_ and we here assume that the units
of diffusion distribution is u _·_ m <sup>_−_</sup> <sup>2</sup> where “u” is an arbitrary unit independent of the dwell
time, diffusion coefficient, and probe size;
(A2) The sample is uniform and infinitesimally thin and is significantly larger than the probe;
(A3) The diffusion coefficient within the sample is constant;
(A4) An airy disk electron probe can be approximated by a Gaussian probe;
(A5) The number of diffusing species in the system is constant with respect to changes in the size
of the electron probe.
Assumption (A1) is a restatement of Remark 1. Assumption (A2) implies that diffusion in STEM
can be modeled by a 2D process in an infinite medium. Assumptions (A3) and (A4) together allow
the use of the diffusion profile of a Gaussian-shaped source as formulated in Eq. (11). Assumption
(A5) is made for convenience to ensure that the beam current is constant with changes in the probe
conditions.
3.1 Diffusion distribution of an electron probe activated at a single location
In this section, we study the behaviour of the diffusion profile of a single electron probe, (a probe
activated at a single location). Following the assumptions above and from Eqs.(11) and (12), the
diffusion distribution of the _i_ -th scanned electron probe positions with square width _Ds_, activated
at location _r_ _i_ and time _ti_, and during a dwell-time _τi_ is
- _<u>∥</u>_ _<u>r</u>_ 2 _<u>−D</u>_ _<u>r</u>_ _si∥_ 22 - <sup>�</sup> _,_ if _r_ _̸_ = _r_ _i,_
_ϕ_ <sup>on</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup>
- 4 _<u>QπD</u>_ <u>0</u> - _E_ 1� 2 _Ds∥_ +4 _<u>r</u>_ _<u>−D</u>_ _<u>r</u>_ _<u>i</u>_ ( _<u>∥t</u>_ <sup>2</sup> <u>2</u> _−ti_ ) - _−_ _E_ 1
_<u>Q</u>_ <u>0</u> - _<u>Ds</u>_ <u>+2</u> _<u>D</u>_ <u>(</u> _<u>t−ti</u>_ <u>)</u>
4 _πD_ <sup>ln</sup> _Ds_
- _,_ if _r_ = _r_ _i,_
When the beam is on, _i.e._,, _ti_ _≤_ _t ≤_ _ti_ + _τi_, and
_<u>Q</u>_ <u>0</u> - _<u>Ds</u>_ <u>+2</u> _<u>D</u>_ <u>(</u> _<u>t−ti</u>_ <u>)</u>
4 _πD_ <sup>ln</sup> _Ds_ +2 _D_ ( _t−ti−τi_ )
(13)
(14)
- _<u>∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ _<u>i∥</u>_ <sup>2</sup> <u>2</u> - <sup>�</sup> _,_ if _r_ _̸_ = _r_ _i,_
2 _Ds_ +4 _D_ ( _t−_ ( _ti_ + _τi_ ))
- _<u>∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ _<u>i∥</u>_ <sup>2</sup> <u>2</u> - _−_ _E_ 1
2 _Ds_ +4 _D_ ( _t−ti_ )
_ϕ_ <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup>
4 _<u>QπD</u>_ <u>0</u> - _E_ 1
- _,_ if _r_ = _r_ _i,_
and when the beam is off, _i.e._, _t > ti_ + _τi_ . In this paper, for convenience, we also use the following
compact form to denote the diffusion distribution:
_ϕi_ ( _r_ _, t_ ) =
0 _,_ for 0 _≤_ _t < ti,_
_ϕ_ <sup>on</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> for _ti_ _≤_ _t ≤_ _ti_
_ϕ_ <sup>on</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> for _ti_ _≤_ _t ≤_ _ti_ + _τi,_
_ϕ_ <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> for _ti_ + _τi_ _< t._
(15)
<sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> for _ti_ + _τi_ _< t._
From Eqs. (13) and (14) and using L’Hˆopital’s rule we have
_i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup> <sup>_<u>Q</u>_</sup> <sup><u>0(</u></sup> <sup>_<u>t −</u>_</sup> <sup>_<u>ti</u>_</sup> <sup><u>)</u></sup>
<sup>on</sup> 2 _πDs_
2 <sup>_<u>−</u>_</sup> _Ds_ <sup>_<u>r</u>_</sup> <sup>_<u>i∥</u>_</sup> <sup>2</sup> and lim _i_
_D→_ 0 <sup>+</sup> <sup>_ϕ_</sup> <sup>off</sup>
_i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup> <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup> <sup>_<u>τi</u>_</sup>
<sup>off</sup> 2 _πD_
lim _i_
_D→_ 0 <sup>+</sup> <sup>_ϕ_</sup> <sup>on</sup>
<sup><u>0(</u></sup> <sup>_<u>t −</u>_</sup> <sup>_<u>ti</u>_</sup> <sup><u>)</u></sup> _e_ <sup>_−_</sup> <sup>_<u>∥</u>_</sup> <sup>_<u>r</u>_</sup> 2 <sup>_<u>−</u>_</sup> _Ds_ <sup>_<u>r</u>_</sup> <sup>_<u>i∥</u>_</sup> <sup>2</sup>
2 _πDs_
<sup>_<u>Q</u>_</sup> <sup><u>0</u></sup> <sup>_<u>τi</u>_</sup> _e_ <sup>_−_</sup> <sup>_<u>∥</u>_</sup> <sup>_<u>r</u>_</sup> 2 <sup>_<u>−</u>_</sup> _Ds_ <sup>_<u>r</u>_</sup> <sup>_<u>i∥</u>_</sup> <sup>2</sup>
2 _πDs_
2 <sup>_<u>−</u>_</sup> _Ds_ <sup>_<u>r</u>_</sup> <sup>_<u>i∥</u>_</sup> <sup>2</sup> (16)
and
_D_ lim _→∞_ <sup>_ϕ_</sup> _i_ <sup>on</sup>
_D_ <sup>lim</sup> _→∞_ <sup>_ϕ_</sup> _i_ <sup>off</sup>
_i_ <sup>on(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup> _D_ <sup>lim</sup> _→∞_
_i_ <sup>off</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) = 0</sup> <sup>_._</sup> (17)
9
Equation (16) states that for an asymptotically small diffusion coefficient, the diffusion distribution
follows the Gaussian shape of the electron probe with a magnitude that increases proportional to
_t −_ _ti_ reaching a maximum at _t_ = _ti_ + _τi_ . Equation (17) shows that for a large diffusion coefficient,
diffusion develops quickly as expected.
In Sections 8.6 and 8.7 we highlight important properties of the diffusion distribution in
Eq. (15). For example, Lemmas 5 and 6 summarise the behaviour of the diffusion distribution
as a function of distance to the activation point and predict situations where the diffusion distribution is an increasing, decreasing, convex, or concave function of distance to the activation point.
Lemmas 11 and 12 provide similar analyses for diffusion distribution with respect to time. From
those findings we report the following result.
Corollary 1. _From_ _Lemmas_ _11_ _and_ _12,_ _for_ _a_ _single_ _electron_ _probe_ _in_ _STEM,_ _at_ _a_ _given_ _time_ _in-_
_stance,_ _the maximum distribution of diffusing substances happens at the activation point._ _Moreover,_
_the_ _Maximum_ _Beam_ _Diffusion_ _Distribution_ _(M-BDD),_ _denoted_ _by_ _A_ <sup>max</sup> bdd <sup>_,_</sup> <sup>_occurs_</sup> <sup>_at_</sup> <sup>_the_</sup> <sup>_activation_</sup>
_point_ _at_ _the_ _end_ _of_ _the_ _activation_ _time._ _Mathematically,_
<sup>max</sup> bdd <sup>:=</sup> <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup>
4 _πD_
_ϕi_ ( _r_ _, t_ ) _≤_ _ϕi_ ( _r_ _i, t_ ) _≤_ _ϕi_ ( _r_ _i, ti_ + _τi_ ) = _A_ <sup>max</sup> bdd
<sup>_<u>Q</u>_</sup> <sup><u>0</u></sup> for _r_ _∈_ R <sup>2</sup> and _t ≥_ _ti,_ (18)
4 _πD_ <sup>ln(1 + 2</sup> <sup>_ρ−_</sup> <sup>1</sup> <sup>_τi_</sup> <sup>)</sup> <sup>_,_</sup>
_where_ _ρ_ := <sup>_<u>D</u>_</sup> _D_ <sup>_<u>s</u>_</sup> <sup>_is_</sup> <sup>_the_</sup> <sup>_ratio_</sup> <sup>_between_</sup> <sup>_the_</sup> <sup>_square_</sup> <sup>_width_</sup> <sup>_of_</sup> <sup>_the_</sup> <sup>_Gaussian-shaped_</sup> <sup>_probe_</sup> <sup>_and_</sup> <sup>_the_</sup> <sup>_diffusion_</sup>
_coefficient._
3.2 Diffusion distribution during STEM acquisition
Having formulated the diffusion distribution activated from an electron probe at a single location,
we now focus on the full STEM acquisition.
Our model is based on a STEM acquisition where _N_ spatial locations collected in a set of
probe locations _R_ := _{_ _r_ 1 _, · · ·_ _,_ _r_ _N_ _}_ are sequentially scanned with an arbitrary trajectory. Let
_T_ s := _{t_ 1 _, · · ·_ _, tN_ _}_ and _Tτ_ := _{τ_ 1 _, · · ·_ _, τN_ _}_ be, respectively, the set of activation and dwell times
for these positions. Using Eq. (15), the _Cumulative_ _Diffusion_ _Distribution_ _(CDD)_ from _j_ scanned
electron probe positions, for _j_ _∈{_ 1 _, · · ·_ _, N_ _}_, is
_ψj_ ( _r_ _, t_ ) :=
_j_
_i_ =1
_ϕi_ ( _r_ _, t_ ) _,_ (19)
or equivalently,
0 _,_ _t < t_ 1 _,_
_ϕ_ <sup>on</sup> 1 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _t_ 1 _≤_
_ϕ_ <sup>on</sup> 1 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _t_ 1 _≤_ _t < t_ 1 + _τ_ 1 _,_
_ϕ_ <sup>off</sup> 1 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _t_ 1 + _τ_ 1 _≤_ _t < t_ 2 _,_
(20)
_ψj_ ( _r_ _, t_ ) =
_ϕ_ <sup>off</sup> 1 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _t_ 1 + _τ_ 1 _≤_ _t < t_ 2 _,_
_ϕ_ <sup>on</sup> 2 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) +</sup> <sup>_ϕ_</sup> <sup>off</sup> 1 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _t_ 2 _≤_ _t < t_ 2 + _τ_ 2 _,_
_ϕ_ <sup>on</sup> 2 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) +</sup> <sup>_ϕ_</sup> <sup>off</sup> 1 <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _t_ 2 _≤_ _t < t_ 2 + _τ_ 2 _,_
... ...
_ϕ_ <sup>on</sup> _j_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) + �</sup> _i_ <sup>_j_</sup> =1 <sup>_−_</sup> <sup>1</sup> <sup>_ϕ_</sup> <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _tj_ _≤_ _t < tj_ + _τj,_
<sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _tj_ + _τj_ _≤_ _t ≤_ _tj_ +1 _._
<sup>on</sup> _j_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) + �</sup> _i_ <sup>_j_</sup> =1 <sup>_−_</sup> <sup>1</sup>
_i_ <sup>_j_</sup> =1 <sup>_−_</sup> <sup>1</sup> <sup>_ϕ_</sup> <sup>off</sup> _i_
_ϕ_ <sup>on</sup> _j_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) + �</sup> _i_ <sup>_j_</sup> =1 <sup>_−_</sup> <sup>1</sup> <sup>_ϕ_</sup> <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _tj_ _≤_ _t < tj_ + _τj,_
- _ji_ =1 <sup>_ϕ_</sup> <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>_,_</sup> _tj_ + _τj_ _≤_ _t ≤_ _tj_
Equation (20) assumes a general STEM configuration with variable dwell and settling times for
every electron probe position and an arbitrary scanning probe trajectory. In practice STEM often
10
operates with a constant dwell time and close to zero settling time, _i.e._, for all _i ∈{_ 1 _, · · ·_ _, N_ _}_,
_τi_ = _τ_ and _ti_ +1 = _ti_ + _τi._ (21)
Equation (20) is applicable to any space filling scanning probe trajectory such as raster, snake,
Hilbert [46], Z-order, alternating, spiral [47, 48] and random, which can all be defined by simply
considering an appropriate ordering of probe locations within the probe location set _R_ .
In the numerical simulations in Section 6, we show examples of raster, snake, random, and
alternating scans.
Our analysis of the role of diffusion coefficient on the diffusion distribution caused by a single
scanned electron probe position in Eq. (16) can be extended to the diffusion distribution in a full
STEM acquisition. From Eqs. (16) and (19), we can compute
_j−_ 1
_i_ =1
_−∥_ _r_ _−_ _r_ _<u>j</u>_ _∥_ <sup>2</sup> _<u>Q</u>_ <u>0</u>
2 _Ds_ +
2 _πDs_
_D_ lim _→_ 0 <sup>+</sup> <sup>_ψj_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup> _D_ <sup>lim</sup> _→_ 0 <sup>+</sup> <sup>_ϕj_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) +</sup>
_j−_ 1
_i_ =1
lim _e_
_D→_ 0 <sup>+</sup> <sup>_ϕi_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup> <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup> 2 <sup><u>(</u></sup> _πD_ <sup>_<u>t −</u>_</sup> _s_ <sup>_<u>tj</u>_</sup> <sup><u>)</u></sup>
lim
_D→_ 0 <sup>+</sup> <sup>_ϕi_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) =</sup> <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup> 2 <sup><u>(</u></sup> _πD_ <sup>_<u>t −</u>_</sup> _s_ <sup>_<u>tj</u>_</sup> <sup><u>)</u></sup>
_τie_
_<u>−∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ _<u>i∥</u>_ <sup>2</sup>
2 _Ds_ _,_
(22)
which shows that for an asymptotically small diffusion coefficient the CDD will be a sum of Gaussian
functions centered at specific probe locations with time-invariant widths.
### 4 Damage as a diffusion mechanism in STEM
The CDD in Eq. (20) does not model the physical processes underlying the damage induced by
electron beam in a sample. We recall from Section 1 that our hypothesis is that sample damage is
a function of CDD, without specifying the exact physical mechanisms of damage. We subsequently
refer to this generically as _Diffusion_ _Induced_ _Damage_ _(DID)_ . In this section we show that the
proposed diffusion model can be coupled to any physical damage mechanism that is induced by a
diffusion process.
Let _λ_ _≥_ 0 be a DID threshold and let Λ _j_ ( _r_ _, t_ ; _λ_ ) denote the DID w.r.t to the _j_ -th activated
probe at a given location _r_ and time _t_ . Therefore, Λ _j_ ( _r_ _, t_ ; _λ_ ) can be related to the CDD _ψj_ ( _r_ _, t_ ) in
Eq. (20) using a (temporal) integration, a non-linear activation function _g_, and a pupil function _p_
as
_p_ ( _r_ _, t_ <sup>_′_</sup> ) _· g_ ( _ψj_ ( _r_ _, t_ <sup>_′_</sup> ) _−_ _λ_ ) d _t_ <sup>_′_</sup> _._ (23)
(Irreversible DID model) Λ _j_ ( _r_ _, t_ ; _λ_ ) :=
- _t_
_t_ 1
Eq. (23) describes different models for DID. In Eq. (23), the non-linear function _g_ determines how
damage is related to the CDD at a given location in space and time and the pupil function _p_
controls how damage at one location impacts damage at other locations. Moreover, integrating the
damage quantity over time ensures that the damage is irreversible.
Depending on the nature of the DID, a suitable activation function _g_ can be defined to represent
the important features of the damage. As examples, we provide two illustrations:
- _(DID_ _frequency)_ In cases where the frequency of the DID event during STEM acquisition is
critical, a sign function can be used:
_g_ ( _x_ ) = sign( _x_ ) :=
11
1 _,_ _x ≥_ 0 _,_
(24)
0 _,_ _x <_ 0 _._
- _(DID_ _intensity)_ The intensity of the damage can alternatively be defined using a Rectified
Linear Unit (ReLU) function:
_g_ ( _x_ ) = ReLU( _x_ ) :=
_x,_ _x ≥_ 0 _,_
(25)
0 _,_ _x <_ 0 _._
There is also a sensitive feature in the damage model Eq. 23 that is accounted for by the
use of the pupil function. As an illustration, we consider the following two specific cases for the
observation of DID:
- _(Offline DID)_ This case accounts for damage that occurs in a location even after that location
is scanned. In this case
_p_ ( _r_ _, t_ ) = 1 _,_ _∀_ _r_ and _∀t._ (26)
Hence, this type of damage can only be observed by re-scanning the sample provided that
re-scanning does not create further damage. This damage type is referred to as “damage after
scan” in [33].
- _(Online_ _DID)_ This case, which is referred to as “damage during scan” in [33], considers
damage that occurs during the irradiation of a given location by the probe. Any damage
created in that position after moving probe is not further considered. However, this examples
requires a careful definition of the pupil function. For example, assuming
_p_ ( _r_ _, t_ ) =
1 _,_ if _∃j_ s _._ t _._ _tj_ _≤_ _t ≤_ _tj_ +1 _,_ and if _∃i > j_ s _._ t _._ _∥_ _r_ _−_ _r_ _i∥_ 2 _≤_ _rp,_
(27)
0 _,_ otherwise _._
This pupil function states that when the _j_ <sup>th</sup> position is activated, the value of the damage
will increase at a location _r_ only if that location is within a radius _rp_ of at least one of the
probes positions that is activated in the remaining scan.
From Eq. (23), regardless of the choice of activation and pupil functions, the overall point-wise
DID quantity can be computed at the end of the acquisition as:
Λ( _r_ ; _λ_ ) := Λ _N_ ( _r_ _, tN_ + _τN_ ; _λ_ ) _,_ (28)
as well as the overall DID as Λ( _λ_ ) :=
- Λ( _r_ ; _λ_ ) d _r_ .
Remark 3. _We_ _recall_ _that_ _our_ _goal_ _is_ _to_ _show_ _that_ _the_ _proposed_ _framework_ _of_ _diffusion_ _distribution_
_can_ _be_ _used_ _in_ _conjunction_ _with_ _a_ _damage_ _mechanism._ _However,_ _the_ _feasibility_ _of_ _Eqs._ (23) _and_ (28)
_depends_ _on_ _the_ _accuracy_ _of_ _the_ _damage_ _activation_ _and_ _pupil_ _functions,_ _as_ _well_ _as_ _on_ _the_ _damage_
_threshold._ _Hence,_ _we_ _require_ _a_ _quantity_ _that_ _is_ _agnostic_ _to_ _any_ _damage_ _related_ _assumptions_ _so_ _that_
_different_ _systems_ _can_ _be_ _compared_ _only_ _based_ _on_ _variations_ _on_ _models_ _of_ _diffusion_ _distribution._
We note that the CDD _ψj_ ( _r_ _, t_ ) does not incorporate sufficient information about DID, since the
DID may happen at any time prior to the time the CDD is computed. Hence, we define a quantity,
which can be used as an indicator of a DID event; the maximum value of the CDD at every spatial
point taken over all previous time instances. More formally, we introduce the Point-wise Maximum
12
Cumulative Diffusion Distribution (PM-CDD) w.r.t. to the _j_ <sup>th</sup> electron probe position, as _χj_ ( _r_ _, t_ )
and defined as
_χj_ ( _r_ _, t_ ) := max
1 _≤j_ <sup>_′_</sup> _≤j_
_tj′_ _≤t_ <sup>_′_</sup> _≤t_
_ψj′_ ( _r_ _, t_ <sup>_′_</sup> ) _,_ for _t ≥_ _tj._ (29)
The benefit of introducing PM-CDD is twofold. First, in the case of unknown damage threshold
and activation and pupil functions, PM-CDD can be used to compare different STEM scans and
provide information about how likely the DID can occur. Second, the design of DID-free STEM
scans, discussed in Section 5.1, will involve a direct comparison of the PM-CDD with a damage
threshold, which is computationally less demanding compared to the use of CDD.
We introduce a reduced and simplified notation, where if the index of the electron probe position
is not specified, the term PM-CDD refers to the PM-CDD at the end of the scan as;
_χ_ ( _r_ ) := _χN_ ( _r_ _, tN_ + _τN_ ) _._ (30)
Therefore, as mentioned above, the PM-CDD provides information about the likelihood of DID
occurring during the full scan regardless of the damage mechanism. Subsequently in Section 5.1,
we will use the PM-CDD in a comparison of different STEM scans.
Furthermore, from the PM-CDD, we can define a Global Maximum of Cumulative Diffusion
Distribution (GM-CDD) _χ_ <sup>max</sup>, as
_χ_ <sup>max</sup> := max
_χ_ ( _r_ ) _,_ (31)
_r_
which gives the maximum value of the CDD over all spatial and temporal points during an acquisition. This value can be used to identify a DID-free STEM scan that is agnostic to the DID model.
We define a STEM scan to be DID-free, if the overall DID quantity is zero _i.e._, Λ( _λ_ ) = 0. The
following theorem, which is proved in Section 8.8, relates the DID profile to the GM-CDD.
Theorem 1. _Consider_ _a_ _DID_ _model_ _characterised_ _by_ _a_ _non-negative_ _activation_ _function_ _g,_ i.e. _,_
_g_ : R _�→_ R _≥_ 0 _,_ _in_ _either_ _Eq._ (24) _or_ _Eq._ (25) _,_ _and_ _a_ _pupil_ _function_ _p,_ i.e. _,_ _p_ : R _�→_ R _,_ _such_ _that_
- _tt_ 1 _N_ <sup>_p_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t′_</sup> <sup>) d</sup> <sup>_t′_</sup> <sup>_>_</sup> <sup>0</sup> <sup>_, ∀_</sup> <sup>_r_</sup> <sup>_._</sup> <sup>_A_</sup> <sup>_STEM_</sup> <sup>_scan_</sup> <sup>_is_</sup> <sup>_DID-free,_</sup> <sup>_iff,_</sup> <sup>_the_</sup> <sup>_GM-CDD_</sup> <sup>_is_</sup> <sup>_less_</sup> <sup>_than_</sup> <sup>_or_</sup> <sup>_equal_</sup> <sup>_to_</sup> <sup>_the_</sup>
_DID_ _threshold._ _Formally,_
(DID _−_ free STEM) Λ( _λ_ ) = 0 _,_ _⇐⇒_ _χ_ <sup>max</sup> _≤_ _λ._ (32)
Theorem 1 shows that for a DID-free STEM scan, it is only necessary to examine the GM-CDD
value. Hence, that quantity, or the PM-CDD, will be used as a measure in a comparison of different
STEM scans in Section 6.4.
### 5 Diffusion distribution in compressive STEM
To reduce sample damage in STEM, several alternative (non-raster) scans [25, 49, 50] have been
proposed based on CS [23, 24] which have demonstrated that sample damage can be reduced or
mitigated. A common theme in these studies is to activate the electron probe at a small subset
of possible locations, _i.e._, to subsample probe locations, and to recover a STEM image from those
incomplete measurements by solving an inverse problem, known as inpainting.
The CDD and DID formulated in Eqs. (20) and (23), respectively, can be simply adapted for
compressive STEM scans. Let _s_ := [ _s_ 1 _, · · ·_ _, sN_ ] <sup>_⊤_</sup> _∈{_ 0 _,_ 1 _}_ <sup>_N_</sup>, with <sup>�</sup> _j_ <sup>_sj_</sup> <sup>=</sup> <sup>_M_</sup> <sup>_≪_</sup> <sup>_N_</sup> <sup>,</sup> <sup>be</sup> <sup>a</sup> <sup>binary</sup>
13
vector associated with a subsampling of _M_ probe locations; _sj_ = 1 if the electron probe is activated
at the _j_ -th location _r_ _j_ and _sj_ = 0, if it is not activated. From Eq. (19), the CDD in compressive
STEM w.r.t. to the subsampling strategy _s_ is given as
_ψj_ <sup>cs(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) :=</sup>
_j_
_i_ =1
_siϕi_ ( _r_ _, t_ ) _._ (33)
We note that Eq. (33) supports any arbitrary subsampling strategy of probe positions. By comparing the DID profile for full STEM, _i.e._, Λ( _r_ ; _λ_ ), and compressive STEM, _i.e._,, Λ <sup>cs</sup> ( _r_ ; _λ_ ), it is
clear that compressive STEM has the advantage of a lower DID. Alternatively, since the PM-CDD
in compressive STEM is less than the PM-CDD in full STEM,
Λ <sup>cs</sup> ( _r_ ; _λ_ ) _≤_ Λ( _r_ ; _λ_ ) _._
Direct application of Eq.(33) allows the modelling of a compressive STEM scan using a beam
blanker to perform probe subsampling [51]. Alternatively for the use of a programmable scan
generator, Eq. (19) can be used to redefine the set of scanned probe locations _R_ and associated
activation times _Ts_ . We also recall that the acquisition time in compressive STEM with a beam
blanker and a scan generator is proportional to, respectively, the number of total probe positions
and subsampled probe positions.
From the findings in Corollary 1, we derive the following theorem, which states the sufficient
condition in compressive STEM for reducing DID.
Theorem 2. _Let_ _λ_ _>_ 0 _be_ _the_ _DID_ _threshold_ _of_ _a_ _sample_ _and_ _τ_ <sup>max</sup> := max _i τi_ _the_ _longest_ _dwell_
_time_ _of_ _the_ _electron_ _probe._ _Therefore,_ _if_
<sup>max</sup>
bdd <sup>=</sup> <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup> <sup>_<u>ρ</u>_</sup>
2
_A_ <sup>max</sup>
bdd
<sup><u>0</u></sup> <sup>_<u>ρ</u>_</sup> ln(1 + 2 _ρ_ <sup>_−_</sup> <sup>1</sup> _τ_ <sup>max</sup> ) _≥_ _λ_ = _⇒_ Λ( _λ_ ) _>_ 0 _._ (34)
2
_Hence,_ _if_ _DID_ _is_ _due_ _to_ _an_ _individual_ _electron_ _probe,_ _rather_ _than_ _the_ _CDD,_ _subsampling_ _probe_
_positions_ _using_ _any_ _strategy_ _will_ _not_ _result_ _in_ _a_ _DID-free_ _STEM._
The total number of diffusing species during the acquisition also needs to be considered when
comparing conventional and compressive STEM. The application of Remark 2 to the CDD in
Eqs. (20) and (33), gives the total number of deposited electrons for conventional and compressive
STEM, _Q_ stem and _Q_ cstem, respectively, as
_N_
_Q_ stem = _Q_ 0
_j_ =1
_τj,_ and _Q_ cstem = _Q_ 0
_N_
_j_ =1
_sjτj,_ (35)
From the above it is evident that _Q_ cstem _≤_ _Q_ stem; fewer units are diffused in compressive STEM
compared to conventional STEM as intuitively expected. In a simplified model with a constant
dwell time for all electron probe positions, _i.e._, _τ_ = _τj_ for all _j_ _∈_ 1 _, · · ·_ _, N_, these quantities become
_Q_ stem = _NQ_ 0 _τ,_ and _Q_ cstem = _MQ_ 0 _τ._ (36)
14
Table 1: Parameter setting for a baseline STEM scan. A 20 _×_ 20 square grid is considered for a raster scan of
probe positions. These equate to a 4 ms acquisition time and 0 _._ 1 nm probe radius.
<u>Parameter</u> <u>Value</u> <u>Parameter</u> <u>Value</u>
Dwell time _τ_ = 10 _µ_ s Scan step size ∆ _p_ = 0 _._ 05 nm
Settling time _τ_ ¯ = 0 s diffusion coefficient _D_ = 10 nm <sup>2</sup> _·_ s <sup>_−_</sup> <sup>1</sup>
<u>Probe</u> <u>width</u> <u>parameter</u> _D_ _<mark>s</mark>_ <u>= 0</u> _._ <u>01</u> <u>nm</u> <sup>2</sup> <u>Initial</u> <u>deposited</u> <u>units</u> _Q_ <mark>0</mark> <u>= 63</u> _._ <u>45</u> <u>Mu</u> _·_ <u>s</u> <sup>_−_</sup> <sup>1</sup>
5.1 Diffusion controlled sampling strategy for DID-free compressive STEM
As described above, compressive STEM results in a lower DID compared to conventional STEM.
However, this raises the following questions:
_(i)_ Given a DID threshold for constraining the PM-CDD, what is the optimal design for sub
sampling mask containing the maximum number of probe locations?
_(ii)_ Given a fixed number of scanned probe locations, what is the optimal design of a mask
minimising DID or PM-CDD?
Finding a general subsampling strategy for both cases will require advanced tools from optimisation
theory and is deferred to a subsequent publication. Hence, in this paper we confine ourselves to
providing a solution to the first question only.
Our approach for designing a Diffusion Controlled Sampling (DCS) strategy of the probe positions that results in DID-free STEM is as follows; given a DID threshold _λ_ as in Eq. (28), a probe
location in the subsampling mask _R_ is selected, only if the PM-CDD w.r.t. to that electron probe
over all spatial locations is lower than that DID threshold as;
_j_ _∈R,_ if _χj_ ( _r_ _, tj_ + _τj_ ) _< λ,_ for all _r_ _._ (37)
Using Theorem 1, this approach guarantees that the GM-CDD _χ_ <sup>max</sup> _< λ_ and hence, Λ <sup>cs</sup> ( _r_ ; _λ_ ) = 0
for all locations _r_ and DID does not occur. We provide numerical examples of this approach in
Section 6.5. We note here that this problem does not necessarily have a unique solution and the
approach described provides only one example of such a DCS strategy. However, other approaches,
_e.g._, based on constraining the minimum distance between two subsampled electron probes, can be
simply incorporated within our approach.
### 6 Numerical Results
In this section we describe numerical simulations in support of the analyses above, which highlight
important properties of DID in STEM.
At the start of this Section we note that despite the availability of a closed-form solution for CDD
in STEM, the associated numerical simulations are still computationally demanding. Therefore,
in Section 8.9, we analyse the time complexity of computing the CDD in Eqs. (20) and (33) for
full STEM and compressive STEM, respectively. We also report approximation alternatives for
accelerated simulation followed by numerical confirmations.
Baseline STEM. The parameters for the baseline simulation are given in Table 1. Subsequently,
for other simulations we report only those parameters that differ from this baseline setup. We
15
Figure 3: Snapshots of diffusion distribution in a baseline STEM scan for a probe activated at three
selected positions. Top, middle, and bottom rows correspond to the first, middle, and last activated probe,
respectively. The first column is the diffusion distribution caused by the electron probe activated at the current
position. The second column shows the cumulative diffusion distribution caused by the electron probe activated at
the previous location. The third column is the sum of the first two columns. The last column is the point-wise
maximum of the cumulative diffusion distribution. Red and black points denote, respectively, the previously and
currently activated electron probe positions. Every probe has an M-BDD _A_ <sup>max</sup> bdd <sup>=</sup> <sup>104</sup> <sup>u</sup> <sup>_·_</sup> <sup>nm</sup> <sup>_−_</sup> <sup>2,</sup> <sup>although</sup> <sup>the</sup> <sup>PM-</sup>
CDD, which controls the DID, is 24.8 times greater. The units of color bars are 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
consider a square array of probe positions giving _N_ = 20 <sup>2</sup> total probes. We further assume a
conventional STEM scan described by Eq. (21) with a constant dwell time and zero settling time.
This equates to a 4 ms acquisition time and 0 _._ 1 nm probe radius. The diffusion coefficient in Table
1 is in the range of the values that was studied in [21, 33] for a specific zeolite sample. This setting
is equivalent to M-BDD _A_ <sup>max</sup> bdd <sup>= 104</sup> <sup>u</sup> <sup>_·_</sup> <sup>nm</sup> <sup>_−_</sup> <sup>2</sup> <sup>and a total number of diffusing species</sup> <sup>_Q_</sup> <sup>stem</sup> <sup>= 253</sup> <sup>_._</sup> <sup>83</sup>
Ku. We now let _R_ sim be a set of spatial points defined as the simulation grid. We assume that _NT_
temporal grids are defined during the scan of every two consecutive electron probe positions, _i.e._,
_ti_ _≤_ _t ≤_ _ti_ +1. Each scan step length is simulated using 10 pixels, _i.e._, _|R_ sim _|_ = 100 _N_ . Furthermore,
only time instances w.r.t to the probe dwell times are simulated, _i.e._, _NT_ = 1.
6.1 Diffusion distribution in a full STEM scan
We first simulate the CDD for a full STEM scan using the parameters in Table 1. Figure 3
illustrates _(i)_ the diffusion distribution _ϕj_ of the activated electron probe at the first, middle and
16
last locations (first column), _(ii)_ the CDD of previously scanned electron probe positions <sup>�</sup> _i_ <sup>_j_</sup> =1 <sup>_−_</sup> <sup>1</sup>
last locations (first column), _(ii)_ the CDD of previously scanned electron probe positions <sup>�</sup> _i_ <sup>_j_</sup> =1 <sup>_−_</sup> <sup>1</sup> <sup>_ϕi_</sup>
(second column), _(iii)_ CDD _ψj_ w.r.t to the _j_ <sup>th</sup> electron probe position (third column), and _(iv)_ the
corresponding PM-CDDs _χj_, during a full STEM scan, for three representative activated electron
probe positions (last column). We use Eq. (20) for _(i-iii)_ and Eq. (29) for _(iv)_ . Fig. 3 shows
that although the M-BDD _A_ <sup>max</sup> bdd <sup>=</sup> <sup>104</sup> <sup>u</sup> <sup>_·_</sup> <sup>nm</sup> <sup>_−_</sup> <sup>2,</sup> <sup>the</sup> <sup>PM-CDD</sup> <sup>_χ_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>reaches</sup> <sup>a</sup> <sup>maximum</sup> <sup>value</sup> <sup>of</sup>
that although the M-BDD _A_ <sup>max</sup> bdd <sup>=</sup> <sup>104</sup> <sup>u</sup> <sup>_·_</sup> <sup>nm</sup> <sup>_−_</sup> <sup>2,</sup> <sup>the</sup> <sup>PM-CDD</sup> <sup>_χ_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>reaches</sup> <sup>a</sup> <sup>maximum</sup> <sup>value</sup> <sup>of</sup>
248 _._ 6 _·_ 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup>, which determines the DID.
In Figure 4, we show an extended analysis with additional simulations for multiple values of the diffusion coefficient _D_ _∈{_ 0 _._ 1 _,_ 1 _,_ 10 _,_ 100 _}_ nm <sup>2</sup> _·_ s <sup>_−_</sup> <sup>1</sup>, probe width parameter _Ds_ _∈_
_{_ 10 <sup>_−_</sup> <sup>4</sup> _,_ 10 <sup>_−_</sup> <sup>3</sup> _,_ 10 <sup>_−_</sup> <sup>2</sup> _,_ 10 <sup>_−_</sup> <sup>1</sup> _}_ nm <sup>2</sup>, scan step size ∆ _p_ _∈{_ 0 _._ 0005 _,_ 0 _._ 005 _,_ 0 _._ 05 _,_ 0 _._ 5 _}_ nm, dwell time _τ_ _∈_
_{_ 0 _._ 1 _,_ 1 _,_ 10 _,_ 100 _}_ _µ_ s. Fig. 4 compares the PM-CDD of these systems.
From Fig. 4 we observe that the PM-CDD increases if _(i)_ the diffusion coefficient decreases,
_(ii)_ the probe radius increases, _(iii)_ the scan step size decreases, or _(iv)_ the dwell time increases.
Moreover as we showed in Eq. (22) for a very small diffusion coefficient, the PM-CDD reduces to
a sum of Gaussian functions with constant width parameter _Ds_ consistent with this behaviour. In
the first row of Fig. 4, it is clear that for a diffusion coefficient less than _D_ = 10 nm <sup>2</sup> _·_ s <sup>_−_</sup> <sup>1</sup>, the
PM-CDD stays almost constant and the resulting heatmap is a sum of Gaussian functions. For a
very small probe radius, the Gaussian-shaped electron probe approximates to a point like source,
which is evident in the second row of Fig. 4. However, a very small probe radius is functionally
equivalent to very distant probe locations. Hence, the two heatmaps in Fig. 4 corresponding to
_Ds_ = 0 _._ 0001 nm <sup>2</sup> and ∆ _p_ = 0 _._ 5 nm are similar in shape but are significantly different in their range
of the values. We recall that in the work described here the total number of diffusing units in the
system does not depend on the probe radius; hence, reducing the probe to a point source simply
amounts to a very high value of the diffusion distribution at the scanned probe positions.
We emphasise that our aim in simulations is to illustrate the variability of the distribution of
cumulative diffusion rather than to propose a specific experimental damage reduction strategy. In
this regard we further note that _(i)_ the diffusion coefficient is sample-dependant; _(ii)_ increasing
the probe radius reduces the image resolution in STEM; _(iii)_ increasing the electron probe step
size also reduces the image resolution in STEM; and _(iv)_ reducing the dwell time can result in scan
distortions and reduced signal-to-noise ratio [52].
Different DID models are illustrated in Fig. 5 for the baseline STEM scan. We have chosen the
models characterised by the sign and reLU activation functions in Eqs. (24) and (25), respectively.
Both offline and online observations of DID with a pupil function given by Eqs. (26) and (27),
respectively, are considered. For the former we set _rp_ = 3 _·_ ∆ _p_ . We define _λ_ ref := _A_ <sup>max</sup> bdd <sup>=</sup>
respectively, are considered. For the former we set _rp_ = 3 _·_ ∆ _p_ . We define _λ_ ref := _A_ <sup>max</sup> bdd <sup>=</sup>
_<u>Q</u>_ 20 _<u>ρ</u>_ <sup>ln(1 + 2</sup> <sup>_ρ−_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_i.e._</sup> <sup>,</sup> <sup>_λ_</sup> <sup>ref</sup> <sup>= 104</sup> <sup>u</sup> <sup>_·_</sup> <sup>nm</sup> <sup>_−_</sup> <sup>2</sup> <sup>in</sup> <sup>this</sup> <sup>example</sup> <sup>to</sup> <sup>be</sup> <sup>the</sup> <sup>reference</sup> <sup>quantity</sup> <sup>for</sup> <sup>the</sup> <sup>DID</sup>
threshold. We subsequently simulated the DID profiles for different DID thresholds _λ_, such that
_λ/λ_ ref _∈{_ 1 _,_ 3 _,_ 6 _,_ 9 _}_ .
Fig. 5 shows that the choice of both activation and pupil functions significantly changes the
shape of the DID profile which emphasises the importance of accurate modeling of damage mechanisms. Offline DID would be observed if the sample was re-scanned and that damage is exacerbated
in the upper part of the FoV, since this region has experienced more DID during the full acquisition. In contrast, online DID is observed during the scan and since damage will be recorded only
at locations that will be scanned later on, the lower part of the FoV shows higher DID quantities.
Together, these results imply that even if DID is not observed during a scan, it may have occurred
at previously irradiated locations in the sample. The discontinuity observed in the online DID
maps is the effect of the pupil function.
17
Figure 4: Comparison of PM-CDD _χ_ ( _r_ ) for different STEM scans. Diffusion coefficient (first row), probe
width parameter (second row), scan step (third row), and dwell time (fourth row) are varied. The PM-CDD of a
STEM scan increases by either decreasing the diffusion coefficient, increasing the probe radius, decreasing the scan
step size, or increasing the dwell time. Other parameters are the same as in Table 1. The total number of deposited
diffusing units is constant in the systems shown in the first three rows, _i.e._, _Q_ stem = 253 _._ 8 Ku, whereas in the forth
row, it is proportional to the dwell time. The units of color bars are 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
6.2 Impact of a blanking time on diffusion distribution
As discussed in Section 6.1, decreasing the dwell time has a substantial impact in reducing the PMCDD and DID, but at a potential cost of increased scan distortions. One way to mitigate DID is by
allowing the diffusion process to dissipate (or equivalently, allowing the sample to relax) between
scan positions. This can be achieved by blanking and unblanking the electron beam [26, 53] at every
probe positions with a specific duty cycle, which can also reduce the scan distortions. Importantly,
using this approach the number of deposited electrons in the system and hence, the signal-to-noise
18
Figure 5: DID profiles Λ( _r_ ; _λ_ ) with offline (top) and online (bottom) observations for different damage thresholds.
The units of color bars and Λ for DID are u _·_ nm <sup>_−_</sup> <sup>2</sup>, with color bars scaled by a factor 10 <sup>6</sup> .
ratio, remains unchanged.
Our framework can accommodate beam blanking through consideration of the settling time in
Eq. (20). To further explore this we let _τ_ ¯ be a constant blanking time for every probe position,
_i.e._, in Eq. (20) we set _τ_ ¯ = _tj −_ ( _tj−_ 1 + _τj−_ 1) for all _j_ _∈{_ 2 _, · · ·_ _, N_ _}_ . Figure 6 shows the PM-CDD
maps for STEM scans with different ratios of blanking to dwell time _τ/τ_ ¯ _∈{_ 0 _,_ 0 _._ 1 _,_ 1 _,_ 10 _}_ . We note
that _τ/τ_ ¯ = 0 is baseline STEM. As expected, increasing the blanking time reduces the PM-CDD,
for a constant total number of diffusing units.
19
Figure 6: STEM scans with identical total number of diffusing species but different blanking times.
PM-CDDs _χ_ ( _r_ ) given by Eq. (29) are shown. Increasing the blanking time reduces the PM-CDD. The total number
of diffusing units in all four systems is _Q_ stem = 253 _._ 83 Ku. The units of color bars are 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
Figure 7: PM-CDD _χ_ ( _r_ ) for different scan trajectories. Longer dwell times result in higher PM-CDD for all
four scan trajectories. Random and alternating scans show a reduced PM-CDD compared to a raster scan, while a
snake scan increases the PM-CDD. The impact of scan trajectory is more evident for longer dwell times. The units
of color bars are 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
6.3 Impact of the scan trajectory on the diffusion distribution
The discussion in Section 1 showed that changing the sequence of scanned probe positions [21] is
a useful approach for damage reduction.
To support this hypothesis we have simulated the PM-CDD for different scanning probe trajectories The values of _Q_ 0 _, D_, _Ds_, and ∆ _p_ are identical to those in Table 1.
Fig. 7 compares the PM-CDD for raster, snake, random, and alternating scans as defined in
Section 3.2 for two values of dwell time _τ_ _∈{_ 10 _,_ 100 _} µs_ . As expected, the scan trajectory has
a significant impact on the spatial distribution of the PM-CDD; random and alternating scans
also show an overall reduction in the PM-CDD, _i.e._, less DID, whereas in contrast the snake scan
increases the DID.
In Fig. 8, alternating scans with different orders _κ_ _∈{_ 1 _,_ 2 _,_ 4 _,_ 6 _,_ 8 _,_ 10 _,_ 12 _,_ 14 _}_ and with a dwell
time _τ_ = 10 _µ_ s are shown. An alternating scan of order one is equivalent to a conventional raster
20
Figure 8: PM-CDD _χ_ ( _r_ ) for different orders of alternating scans. Spatial distributions (top) and corresponding
histograms (bottom) are plotted. The units of color bars are 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
scan. However, the PM-CDD _χ_ ( _r_ ) is a non-monotonic function of alternating scan order _κ_ and
hence, changing the order of an alternating scan does not necessarily reduce the DID. Fig. 8 shows
the corresponding normalised histogram of the PM-CDD, where the shape of the histogram and
the cumulative sum of the histogram is affected by the order of the alternating scan. Lower order
alternating scans, _e.g._, when _κ_ _∈{_ 1 _,_ 2 _,_ 4 _}_, have a sharp peak in their histograms, which indicates
that a substantial portion of sample will be damaged as the PM-CDD crosses the DID threshold.
However, for higher order alternating scans the histograms are more uniform. In these cases if a
DID occurs it will affect a smaller portion of the sample. Accordingly the slope of the cumulative
sum curve can be considered as an indicator of the risk of DID. For example, the slope of the
cumulative sum, around 248 _._ 62 Ku _·_ nm <sup>_−_</sup> <sup>2</sup>, is sharp for a raster scan, but is reduced by increasing
the order of an alternating scan. Overall, in comparison to a raster scan, an alternating scan with
21
Figure 9: Normalised GM-CDDs _χ_ <sup>max</sup> in compressive scans. Subsampling probe positions using either a
linehop or a UDS strategy reduces the GM-CDD. This reduction is not proportional to the subsampling ratio. The
use of a beam blanker can further reduce the GM-CDD. A Linehop strategy shows a reduction of the GM-CDD for
sampling ratios greater than 10%. Example maps taken from this figure are shown in Fig. 10.
an arbitrary order does not necessarily reduce the maximum value of PM-CDD, but can result in
more uniform values of this quantity.
6.4 Diffusion distribution in compressive STEM
Compressive STEM is a method for reducing the total fluence deposited over a region of interest
without reducing the signal-to-noise ratio per measurement. In this section we simulate the PMCDD for compressive STEM following Eq. (33), with two subsampling strategies; linehop [37] and
Uniform Density Sampling (UDS), (subsampling probe positions uniformly at random). For the
UDS strategy we consider subsampling of the electron probe positions with either a beam blanker
or a scan generator, as described in Section 1. However, we simulate the linehop strategy using
only a scan generator, since, for zero settling time, performing a linehop scan with a beam blanker
and with a scan generator results in an identical CDD. Other parameters used are the same as
those in Table 1.
Our choice to study both a scan generator and beam blanker is motivated as these are the
experimental, practical options for subsampling in STEM. However, these two regimes exhibit two
distinct timings. Using a beam blanker, time passes while the blanked beam is not scanning. In
contrast using a scan generator, the beam is moved immediately and each exposure is followed by
another exposure. In both cases considered here, the sample is exposed to the same number of
total electrons and the acquisition is considered to be perfect in that there is no delay between the
end of a sampling period and the activation of the beam blanker and that there is no hysteresis
moving the probe from one location to another.
Fig. 9 compares the GM-CDD defined in Eq. (31) for a raster scan with two compressive STEM
scans, for multiple subsampling ratios. We consider _M/N_ = _{_ 5 _,_ 10 _,_ 20 _,_ 30 _,_ 40 _,_ 50 _}_ % for the UDS
strategy and _M/N_ = _{_ 5 _,_ 10 _,_ 20 _,_ 25 _,_ 33 _._ 3 _,_ 50 _}_ % for the linehop strategy. All compressive scans yield
lower GM-CDD value compared to those of the raster scan. The GM-CDD of the UDS strategy is
further reduced by the use of a beam blanker. An important observation in Fig. 9 is that the ratio
between the GM-CDD for full STEM and compressive STEM is not equal to the subsampling ratio.
22
Figure 10: PM-CDDs _χ_ ( _r_ ) in compressive STEM scans for different sampling ratios. These are example
maps taken from the simulations in Fig. 9. The same subsampling mask of electron probe positions is used for
both UDS strategies, whereas the use of a beam blanker yields lower GM-CDD value. The units of color bars are
10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
This indicates that compressive STEM with _M/N_ (%) probes does not reduce the GM-CDD of the
full STEM by the same _M/N_ factor. As an example, a 10% subsampling of the probes reduces
the GM-CDD by only a factor of _≈_ 5. Example CDDs of the experiments in Fig. 9 are shown in
Fig. 10.
6.5 Designing DCS masks for DID-free STEM
In this section we use the previous results to design DCS subsampling strategies for compressive
STEM applications. The STEM parameters in Table 1 are used and we consider two compressive
STEM scans using either a scan generator or a beam blanker.
As described in Section 5.1, the compressive framework allows the design of a subsampling
mask of probe positions, ensuring that DID is eliminated. To design such a subsampling mask we
follow the rule defined by Eq. (37); a probe location is selected, only if the corresponding PMCDD is less than the DID threshold at every spatial location. Taking _λ_ ref = 10 <sup>4</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> from
Section 6.1 as the reference quantity for DID threshold, we have designed DCS masks for different
DID thresholds _λ_, such that _λ/λ_ ref _∈{_ 1 _,_ 2 _, · · ·_ _,_ 25 _}_ . The resultant sampling ratio _M/N_ has been
measured after each trial.
23
Figure 11: Normalised GM-CDD values for DCS masks with respect to the damage threshold . The use
of a beam blanker improves subsampling efficiency in this experiment by 4-7% for _λ/λ_ ref _<_ 10, or equivalently, for
subsampling ratios less than 50%. Example maps taken from this figure are shown in Fig. 12.
Figure 12: PM-CDD _χ_ ( _r_ ) from two DCS masks with different sampling ratios. These are example maps
taken from the simulations in Fig. 11. The units of color bars are 10 <sup>3</sup> u _·_ nm <sup>_−_</sup> <sup>2</sup> .
Fig. 11 shows the GM-CDD, which is constrained by the DID threshold ratio _λ/λ_ ref, as a
function of the subsampling ratio in the designed masks. Comparison of the curves in Fig. 11 with
the _y_ = _x_ line highlights the efficiency of the DCS strategy and shows that the reduction in relative
GM-CDD is greater than the subsampling ratio. Moreover, we observe that for a DID threshold _λ_
equivalent to a horizontal line in Fig. 11, the use of a beam blanker improves the efficiency of the
sampling strategy by 4-7% for _λ/λ_ ref _<_ 10. This arises because, in the simplified models used here a
beam blanker allows the system to ”cool” or relax between successive subsampled probe positions,
while a scan generator instantaneously moves the electron probe to the next sampled location.
Furthermore, when comparing the two masks, we note that the acquisition time for compressive
STEM with a beam blanker and scan generator is, respectively, _Nτ_ and _Mτ_ seconds.
24
### 7 Conclusions
We have described a mathematical framework for understanding diffusion distribution in STEM
scans. We have derived the first closed-form formulation of the diffusion distribution for a Gaussianshaped electron source, used as a proxy to the airy disc function. Our analyses can be directly
applied to 4-D STEM scans and can be used in various STEM acquisition modalities.
Despite significantly improving both the simulation speed and accuracy of the diffusion process
in STEM compared to previous work [32, 33], numerical simulation within the framework described
is limited by the size of the simulation space in turn determined by the size of the electron probe
positions grid, and the dimensions of the temporal and spatial grids. Parallel programming or
GPU implementation of the simulations can significantly boost the time performance given suitable
storage requirements.
In Section 3, we limited our analysis to the role of the diffusion coefficient in the asymptotic
regime. A more in-depth study, _e.g._, based on the first and second derivatives of both the diffusion
distribution and the CDD, will the subject of future research. We have also limited our discussion
in Section 3.1 to studies of the first and second derivatives of a single electron probe diffusion
distribution without considering the dynamics of the CDD and PM-CDD.
Our proposed damage models have yet to be validated using experimental data for which one of
the required modifications to our model would be to support a secondary damage mechanism and
possibly a healing effect. Moreover, we postulate that the units of the proposed damage model,
_i.e._, u _·_ nm <sup>_−_</sup> <sup>2</sup>, need to be converted to give a physically tractable unit of damage.
An important extension of this work would be to develop a framework for diffusion in a 3-D
medium, as for example represented by thick samples. This simply requires a derivation of the
counterpart of Eq. (15) from Eq. 3 in 3-D.
Recent work into the effect of scan coil dynamics has shown that, when moving from traditional
raster scanning, the behaviour of the scan coils can be difficult to predict [54], particularly over large
distances. It has been assumed in this work that the beam moves instantaneously and perfectly
between scan positions, which can differ from the real case where scan coil hysteresis is present.
Incorporating a scan dynamics model into the diffusion model presented in this work would allow
a more detailed understanding of the usage of a scan generator and beam blanker for performing
subsampling.
### Acknowledgments
We thank Nafiseh Janatian and Mohsen Ghasimi for their help with the proofs. Amirafshar Moshtaghpour, Abner Velazco-Torrejon, and Angus I. Kirkland acknowledge the support of the Rosalind
Franklin Institute, funded by the UK Research and Innovation, Engineering and Physical Sciences
Research Council. Daniel Nicholls, Alex W. Robinson, and Nigel D. Browning are partly funded
by SenseAI Innovations Limited.
### References
[1] P. Nellist, B. McCallum, and J. M. Rodenburg, “Resolution beyond the information limit in
transmission electron microscopy,” _nature_, vol. 374, no. 6523, pp. 630–632, 1995.
25
[2] E. James and N. Browning, “Practical aspects of atomic resolution imaging and analysis in
STEM,” _Ultramicroscopy_, vol. 78, no. 1-4, pp. 125–139, 1999.
[3] D. Zhang, Y. Zhu, L. Liu, X. Ying, C.-E. Hsiung, R. Sougrat, K. Li, and Y. Han, “Atomic
resolution transmission electron microscopy of electron beam–sensitive crystalline materials,”
_Science_, vol. 359, no. 6376, pp. 675–679, 2018.
[4] O. L. Krivanek, N. Delby, and A. R. Lupini, “Towards sub- <sup>˚</sup> A electron beams,” _Ultramicroscopy_,
vol. 78, pp. 1–11, 1999.
[5] H. Sawada, Y. Tanishiro, N. Ohashi, T. Tomita, F. Hosokawa, T. Kaneyama, Y. Kondo, and
K. Takayanagi, “Stem imaging of 47-pm-separated atomic columns by a spherical aberrationcorrected electron microscope with a 300-kv cold field emission gun,” _Journal_ _of_ _Electron_
_Microscopy_, vol. 58, pp. 357–361, 2009.
[6] M. Haider, S. Uhlemann, E. Schwan, H. Rose, B. Kabius, and K. Urban, “Electron microscopy
image enhanced,” _Nature_, vol. 392, no. 6678, pp. 768–769, 1998.
[7] C. W. Johnson, A. K. Schmid, M. Mankos, R. R¨opke, N. Kerker, E. K. Wong, D. F. Ogletree,
A. M. Minor, and A. Stibor, “Near-monochromatic tuneable cryogenic niobium electron field
emitter,” _Physical_ _Review_ _Letters_, vol. 129, no. 24, p. 244802, 2022.
[8] A. Pooch, M. Seidling, N. Kerker, R. R¨opke, A. Rembold, W.-T. Chang, I.-S. Hwang, and
A. Stibor, “Coherent properties of a tunable low-energy electron-matter-wave source,” _Physical_
_Review_ _A_, vol. 97, no. 1, p. 013611, 2018.
[9] H.-S. Kuo, S. Hwang, T.-Y. Fu, Y.-C. Lin, C.-C. Chang, and T. T. Tsong, “Noble metal/w
(111) single-atom tips and their field electron and ion emission characteristics,” _Japanese_
_journal_ _of_ _applied_ _physics_, vol. 45, no. 11R, p. 8972, 2006.
[10] A. Faruqi, “Direct electron detectors for electron microscopy,” _Advances_ _in_ _Imaging_ _and_ _Elec-_
_tron_ _Physics_, vol. 145, pp. 55–93, 2007.
[11] A. Faruqi, R. Henderson, and G. McMullan, “Progress and development of direct detectors for
electron cryomicroscopy,” _Advances_ _in_ _Imaging_ _and_ _Electron_ _Physics_, vol. 190, pp. 103–141,
2015.
[12] S. J. Pennycook and P. D. Nellist, _Scanning_ _transmission_ _electron_ _microscopy:_ _imaging_ _and_
_analysis_ . Springer Science & Business Media, 2011.
[13] J. M. Zuo and J. C. Spence, _Advanced_ _transmission_ _electron_ _microscopy_ . Springer, 2017.
[14] R. Egerton, P. Li, and M. Malac, “Radiation damage in the TEM and SEM,” _Micron_, vol. 35,
no. 6, pp. 399–409, 2004.
[15] N. Jiang, “Electron beam damage in oxides: a review,” _Reports on Progress in Physics_, vol. 79,
no. 1, p. 016501, 2015.
[16] M. Jenkins and C. English, “Characterization of displacement cascade damage in ordered
alloys using transmission electron microscopy,” _Journal_ _of_ _Nuclear_ _Materials_, vol. 108, pp.
46–61, 1982.
26
[17] R. Egerton, “Radiation damage to organic and inorganic specimens in the TEM,” _Micron_, vol.
119, pp. 72–87, 2019.
[18] K. Siangchaew and M. Libera, “The influence of fast secondary electrons on the aromatic
structure of polystyrene,” _Philosophical_ _Magazine_ _A_, vol. 80, pp. 1001–1016, 1999.
[19] B. Wu and A. R. Neureuther, “Energy deposition and transfer in electron-beam lithography,”
_Journal_ _of_ _Vacuum_ _Science_ _&_ _Technology_ _B_, vol. 19, pp. 2508––2511, 2001.
[20] R. F. Egerton, “Outrun radiation damage with electrons?” _Advanced_ _Structural_ _and_ _Chemical_
_Imaging_, vol. 1, pp. 1–5, 2015.
[21] A. Velazco, A. B´ech´e, D. Jannis, and J. Verbeeck, “Reducing electron beam damage through
alternative STEM scanning strategies, part i: Experimental findings,” _Ultramicroscopy_, vol.
232, p. 113398, 2022.
[22] A. Zobelli, S. Y. Woo, A. Tararan, L. H. G. Tizei, N. Brun, X. Li, O. St´ephan, M. Kociak,
and M. Tenc´e, “Spatial and spectral dynamics in STEM hyperspectral imaging using random
scan patterns,” _Ultramicroscopy_, vol. 212, p. 112912, 2020.
[23] D. L. Donoho, “Compressed sensing,” _IEEE_ _Transactions_ _on_ _Information_ _Theory_, vol. 52, pp.
1289–1306, 2006.
[24] E. Cand´es, J. Romberg, and T. Tao, “Robust uncertainty principles: Exact signal recon
struction from highly incomplete frequency information,” _IEEE_ _Transactions_ _on_ _information_
_theory_, vol. 52, no. 2, pp. 489–509, 2006.
[25] L. Kovarik, A. Stevens, A. Liyu, and N. D. Browning, “Implementing an accurate and rapid
sparse sampling approach for low-dose atomic resolution STEM imaging,” _Applied_ _Physics_
_Letters_, vol. 109, no. 16, 2016.
[26] A. B´ech´e, B. Goris, B. Freitag, and J. Verbeeck, “Development of a fast electromagnetic beam
blanker for compressed sensing in scanning transmission electron microscopy,” _Applied_ _Physics_
_Letters_, vol. 108, no. 9, 2016.
[27] L. Jones, A. Varambhia, R. Beanland, D. Kepaptsoglou, I. Griffiths, A. Ishizuka, F. Azough,
R. Freer, K. Ishizuka, D. Cherns, Q. M. Ramasse, S. Lozano-Perez, and P. D. Nellist, “Managing dose-, damage- and data-rates in multi-frame spectrum-imaging,” _Microscopy_, vol. 67,
p. i98–i113, 2018.
[28] K. Nordlund, S. J. Zinkle, A. E. Sand, F. Granberg, R. S. Averback, R. E. Stoller, S. Tomoaki,
L. Malerba, F. Banhart, W. J. Weber, F. Willaime, S. L. Dudarev, and S. David, “Primary radiation damage: A review of current understanding and models,” _Journal of Nuclear Materials_,
vol. 512, pp. 450–479, 2018.
[29] R. F. Egerton and I. Rauf, “Dose-rate dependence of electron-induced mass lossfrom organic
specimens,” _Ultramicroscopy_, vol. 80, pp. 247–254, 1999.
[30] A. Fick, “V. on liquid diffusion,” _The_ _London,_ _Edinburgh,_ _and_ _Dublin_ _Philosophical_ _Magazine_
_and_ _Journal_ _of_ _Science_, vol. 10, no. 63, pp. 30–39, 1855.
27
[31] J. Crank, _The_ _mathematics_ _of_ _diffusion_ . Oxford university press, 1979.
[32] D. Nicholls, J. Lee, H. Amari, A. J. Stevens, B. L. Mehdi, and N. D. Browning, “Minimis
ing damage in high resolution scanning transmission electron microscope images of nanoscale
structures and processes,” _Nanoscale_, vol. 12, no. 41, pp. 21 248–21 254, 2020.
[33] D. Jannis, A. Velazco, A. B´ech´e, and J. Verbeeck, “Reducing electron beam damage through
alternative STEM scanning strategies, part ii: Attempt towards an empirical model describing
the damage process,” _Ultramicroscopy_, vol. 240, p. 113568, 2022.
[34] A. Moshtaghpour, A. Velazco-Torrejon, A. Robinson, A. Kirkland, and N. Browning, “Explor
ing low-dose and fast electron ptychography using l0 regularisation of extended ptychographical
iterative engine.” _Microscopy_ _and_ _Microanalysis_, vol. 29, no. Supplement ~~1~~, pp. 344–345, 2023.
[35] A. W. Robinson, A. Moshtaghpour, J. Wells, D. Nicholls, M. Chi, I. MacLaren, A. I. Kirkland,
and N. D. Browning, “Simultaneous high-speed and low-dose 4-D STEM using compressive
sensing techniques,” _arXiv_ _preprint_ _arXiv:2309.14055_, 2023.
[36] A. Moshtaghpour, A. Velazco-Torrejon, A. Robinson, E. Liberti, J. S. Kim, N. D. Browning,
and A. I. Kirkland, “Towards low-dose and fast 4-D scanning transmission electron microscopy:
New sampling and reconstruction approaches,” _Microscopy_ _and_ _Microanalysis_, vol. 28, no. S1,
pp. 372–373, 2022.
[37] D. Nicholls, A. Robinson, J. Wells, A. Moshtaghpour, M. Bahri, A. Kirkland, and N. Brown
ing, “Compressive scanning transmission electron microscopy,” in _proceedings_ _of_ _2022_ _IEEE_
_International_ _Conference_ _on_ _Acoustics,_ _Speech_ _and_ _Signal_ _Processing_ _(ICASSP)_ . IEEE, 2022,
pp. 1586–1590.
[38] D. Nicholls, M. Kobylysnka, J. Wells, Z. Broad, D. McGrouther, A. Moshtaghpour,, A. I.
Kirkland, R. A. Fleck, and N. D. Browning, “The potential of subsampling and inpainting
for fast low-dose cryo FIB-SEM imaging and tomography,” _arXiv_ _preprint_ _arXiv:2309.09617_,
2023.
[39] H. Carslaw, _Introduction_ _to_ _the_ _Mathematical_ _Theory_ _of_ _the_ _Conduction_ _of_ _Heat_ _in_ _Solids_, ser.
Dover Scientific Reference Books. Macmillan and Company, limited, 1906.
[40] R. Pattle, “Diffusion from an instantaneous point source with a concentration-dependent co
efficient,” _The_ _Quarterly_ _Journal_ _of_ _Mechanics_ _and_ _Applied_ _Mathematics_, vol. 12, no. 4, pp.
407–409, 1959.
[41] R. P. Feynman, _QED:_ _The_ _strange_ _theory_ _of_ _light_ _and_ _matter_ . Princeton University Press,
2006, vol. 90.
[42] S. J. Haigh, H. Sawada, and A. I. Kirkland, “Atomic structure imaging beyond conventional
resolution limits in the transmission electron microscope,” _Phys. Rev. Lett._, vol. 103, p. 126101,
Sep 2009.
[43] D. J. Batey, D. Claus, and J. M. Rodenburg, “Information multiplexing in ptychography,”
_Ultramicroscopy_, vol. 138, pp. 13–21, 2014.
28
[44] D. Claus and J. M. Rodenburg, “Diffraction-limited superresolution ptychography in the
rayleigh–sommerfeld regime,” _JOSA_ _A_, vol. 36, no. 2, pp. A12–A19, 2019.
[45] H. Yang, L. Jones, H. Ryll, M. Simson, H. Soltau, Y. Kondo, R. Sagawa, H. Banba, I. Ma
cLaren, and P. Nellist, “4D STEM: High efficiency phase contrast imaging using a fast pixelated
detector,” in _Journal_ _of_ _Physics:_ _Conference_ _Series_, vol. 644, no. 1. IOP Publishing, 2015,
p. 012032.
[46] A. Velazco, M. Nord, A. B´ech´e, and J. Verbeeck, “Evaluation of different rectangular scan
strategies for STEM imaging,” _Ultramicroscopy_, vol. 215, p. 113021, 2020.
[47] X. Sang, A. R. Lupini, R. R. Unocic, M. Chi, A. Y. Borisevich, S. V. Kalinin, E. Endeve, R. K.
Archibald, and S. Jesse, “Dynamic scan control in STEM: Spiral scans,” _Advanced_ _Structural_
_and_ _Chemical_ _Imaging_, vol. 2, pp. 1–8, 2016.
[48] X. Li, O. Dyck, S. V. Kalinin, and S. Jesse, “Compressed sensing of scanning transmission elec
tron microscopy (STEM) with nonrectangular scans,” _Microscopy_ _and_ _Microanalysis_, vol. 24,
no. 6, pp. 623–633, 2018.
[49] A. W. Robinson, D. Nicholls, J. Wells, A. Moshtaghpour, A. Kirkland, and N. D. Brown
ing, “SIM-STEM Lab: Incorporating compressed sensing theory for fast STEM simulation,”
_Ultramicroscopy_, vol. 242, p. 113625, 2022.
[50] N. D. Browning, J. Castagna, A. I. Kirkland, A. Moshtaghpour, D. Nicholls, A. W. Robin
son, J. Wells, and Y. Zheng, “The advantages of sub-sampling and inpainting for scanning
transmission electron microscopy,” _Applied_ _Physics_ _Letters_, vol. 122, no. 5, 2023.
[51] B. Reed, R. Bloom, G. Eyzaguirre, C. Henrichs, A. Moghadam, and D. Masiel, “Electrostatic
switching for spatiotemporal dose control in a transmission electron microscope,” _Microscopy_
_and_ _Microanalysis_, vol. 28, no. S1, pp. 2230–2231, 2022.
[52] J. P. Buban, Q. Ramasse, B. Gipson, N. D. Browning, and H. Stahlberg, “High-resolution
low-dose scanning transmission electron microscopy,” _Journal_ _of_ _Electron_ _Microscopy_, vol. 59,
no. 2, pp. 103–112, 11 2009. [Online]. Available: [https://doi.org/10.1093/jmicro/dfp052](https://doi.org/10.1093/jmicro/dfp052)
[53] J. J. Peters, B. W. Reed, Y. Jimbo, A. Porter, D. Masiel, and L. Jones, “A new low-dose
STEM imaging mode with probability driven intra-pixel beam blanking,” 2023.
[54] D. Nicholls, J. Wells, A. W. Robinson, A. Moshtaghpour, A. I. Kirkland, and N. D. Browning,
“Scan coil dynamics simulation for subsampled scanning transmission electron microscopy,”
_arXiv_ _preprint_ _arXiv:2307.08441_, 2023.
[55] K. B. Petersen, M. S. Pedersen _et_ _al._, “The matrix cookbook,” _Technical_ _University_ _of_ _Den-_
_mark_, vol. 7, no. 15, p. 510, 2008.
[56] J. C. Amazigo and L. A. Rubenfeld, _Advanced_ _calculus_ _and_ _its_ _applications_ _to_ _the_ _engineering_
_and_ _physical_ _sciences_ . Wiley, 1980.
[57] E. O. Rodrigues, <sup>´</sup> “Combining minkowski and chebyshev: New distance proposal and survey of
distance metrics using k-nearest neighbours classifier,” _Pattern_ _Recognition_ _Letters_, vol. 110,
pp. 66–71, 2018.
29
### 8 Supplementary Information
8.1 Derivation of Eq. (2)
We note that, firstly, that if _ϕ_ ( _r_ _, t_ ) is a solution to the PDE in Eq. (1) with an initial condition
_ϕ_ ( _r_ _,_ 0) = _δ_ 0, then _ϕ_ ( _r_ _−_ _r_ 0 _, t−t_ 0) will be a solution to Eq. (1) with an initial condition _ϕ_ ( _r_ _, t_ 0) = _δ_ _r_ 0.
Therefore, we first solve Eq. (1) with an initial condition _ϕ_ ( _r_ _,_ 0) = _δ_ 0 . Secondly, it is evident from
Eq. (1) that the diffusion distribution along the the _l_ -th direction depends only on the diffusion
distribution in the same _l_ -th direction. Hence, the _d_ -dimensional diffusion distribution can be
decoupled into _d_ single dimensional terms, following the form
_d_
_l_ =1
_ϕl_ ( _rl, t_ ) _._ (38)
_<u>∂</u>_ <sup>2</sup> _<u>ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
_Dl_
_∂t_ <sup>2</sup>
_ϕj_ ( _rj, t_ ) _,_
Inserting Eq. (38) in Eq. (1),
_d_
_l_ =1
_j̸_ = _l_
_<u>∂ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
_∂t_
_j̸_ = _l_
_ϕ_ ( _r_ _, t_ ) =
_ϕj_ ( _rj, t_ ) =
_d_
_l_ =1
or equivalently,
_d_
_l_ =1
_j̸_ = _l_
_<u>∂</u>_ <sup>2</sup> _<u>ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
= 0 _,_
_∂t_ <sup>2</sup>
_ϕj_ ( _rj, t_ )
- _<u>∂ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
_−_ _Dl_
_∂t_
whose trivial solution is _ϕl_ ( _rl, t_ ) = 0 for all _l_, while the non-trivial solution should satisfy
_<u>∂ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
= _Dl_
_∂t_
_<u>∂</u>_ <sup>2</sup> _<u>ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
_,_ _∀l._ (39)
_∂t_ <sup>2</sup>
We note that if _ϕl_ ( _rl, t_ ) is a solution to an individual PDE in Eq. (39), _ϕl_ ( _arl, a_ <sup>2</sup> _t_ ) is also a solution
for any _a̸_ = 0. To avoid that scaling ambiguity, let _z_ := _rl_ <sup>2</sup> <sup>_/t_</sup> <sup>and let</sup> <sup>_ψ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) :=</sup> <sup>_ϕl_</sup> <sup>(</sup> <sup>_rl, t_</sup> <sup>) be a candidate</sup>
solution to Eq. (39). Hence, by noting _∂z/∂rl_ = 2 _rl/t_, we have
_<u>∂ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
<sup>_<u>∂z</u>_</sup>
_∂t_ <sup>=</sup> <sup>_−ψ′_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_<u>z</u>_</sup> _t_
<u>(</u> _<u>rl, t</u>_ <u>)</u> = _ψ_ <sup>_′_</sup> ( _z_ ) _·_ <sup>_<u>∂z</u>_</sup>
_∂t_ _∂t_
<sup>_<u>z</u>_</sup> _t_ <sup>_,_</sup> (40)
_<u>∂ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
_∂rl_
_<u>∂</u>_ <sup>2</sup> _<u>ϕl</u>_ <u>(</u> _<u>rl, t</u>_ <u>)</u>
_∂rl_ <sup>2</sup>
= _ψ_ <sup>_′_</sup> ( _z_ ) _·_ <sup>_<u>∂z</u>_</sup>
_∂rl_
= _ψ_ <sup>_′_</sup> ( _z_ ) _·_ <sup><u>2</u></sup> <sup>_<u>rl</u>_</sup>
_t_ <sup>_,_</sup>
_<u>l</u>_
= _ψ_ <sup>_′′_</sup> ( _z_ ) _·_ <sup><u>4</u></sup> _t_ <sup>_r_</sup> <sup>22</sup>
(41)
<sup><u>2</u></sup> _t_ <sup>_._</sup>
_<u>l</u>_
_t_ <sup>_r_</sup> <sup>22</sup> <sup>+</sup> <sup>_ψ′_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_·_</sup> <sup><u>2</u></sup> _t_
Substituting Eqs. (40) and (41) in Eq. (39) yields the following first order homogeneous linear
differential equation:
<sup><u>+ 2</u></sup> <sup>_<u>Dl</u>_</sup> or _<u>ψ</u>_ <sup>_′′_</sup> <u>(</u> _<u>z</u>_ <u>)</u>
4 _Dlz_ <sup>_ψ′_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) = 0</sup> <sup>_,_</sup> _ψ_ <sup>_′_</sup> ( _z_ )
(42)
<sup><u>+ 2</u></sup> 4 _Dlz_ <sup>_<u>Dl</u>_</sup> <sup>_._</sup>
_ψ_ <sup>_′′_</sup> ( _z_ ) + <sup>_<u>z</u>_</sup> <sup><u>+ 2</u></sup> <sup>_<u>Dl</u>_</sup>
4 _Dlz_
_<u>ψψ</u>_ <sup>_′′′_</sup> (( _zz_ )) <sup>=</sup> <sup>_−_</sup> <sup>_<u>z</u>_</sup> <sup><u>+ 2</u></sup> 4 _Dlz_ <sup>_<u>Dl</u>_</sup>
The solution to Eq. (42) is
- _z_
2 <sup><u>1</u></sup> _e−_ 4 _Dlq_ d _q_ + _c_ 2 _,_
_ψ_ ( _z_ ) = _c_ 1
_q_ <sup>_−_</sup> 2 <sup><u>1</u></sup>
0
30
for constants _c_ 1 _, c_ 2 _∈_ R. However, this solution is still not a specific solution to Eq. (39). Since
Eq. (39) is linear, if _ϕl_ is a solution, so is its partial derivatives with respect to _rl_, _i.e._,
_ϕl_ ( _rl, t_ ) = <sup>_<u>∂ψ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup>
_∂rl_
_<u>∂z</u>_
= _c_ 1
_∂rl_
_−_ _<u>z</u>_
_z_ <sup>_−_</sup> 2 <sup><u>1</u></sup> _e_ 4 _Dl_
_<u>l</u>_
_−_ <sup>_r_</sup> <sup>2</sup>
4 _Dlt_
_<u>l</u>_
_−_ <sup>_r_</sup> <sup>2</sup>
_._
= <sup><u>2</u></sup> _~~√~~_ <sup>_<u>c</u>_</sup> <sup><u>1</u></sup>
_t_ <sup>_·_</sup> <sup>exp</sup>
Finally, we set _c_ 1 = _Q_ <sup>¯</sup> 0 _/_ 4
Finally, we set _c_ 1 = _Q_ <sup>¯</sup> 0 _/_ 4 _πD_ so that �R <sup>_ϕl_</sup> <sup>(</sup> <sup>_rl, t_</sup> <sup>)d</sup> <sup>_rl_</sup> <sup>=</sup> <sup>_Q_</sup> <sup>¯0.</sup> <sup>Therefore,</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>all</sup> <sup>PDE</sup>
terms in Eq. (39) becomes
_√_
_πD_ so that
_ϕl_ ( _rl, t_ ) =
_<u>Q</u>_ ¯0
_~~√~~_ 4 _πDlt_ _·_ exp
_<u>l</u>_
_−_ <sup>_r_</sup> <sup>2</sup>
4 _Dlt_
_._ (43)
By substituting Eq. (43) in Eq. (38) and simplification of the formula, we get
_ϕ_ ( _r_ _, t_ ) = _<u>Q</u>_ <u>0</u> - _−_ <sup>_<u>r</u>_</sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1</sup> <sup>_<u>r</u>_</sup>
~~<u>�</u>~~ _|_ 4 _π_ _D_ _|t_ <sup>_d_</sup> <sup>_·_</sup> <sup>exp</sup> 4 _t_
_,_ (44)
where _Q_ 0 = _Q_ <sup>¯</sup> <sup>_d_</sup> 0 <sup>.</sup> <sup>Recalling that Eq. (44) is a solution to Eq. (1) with an initial condition</sup> <sup>_ϕ_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_,_</sup> <sup>0) =</sup> <sup>_δ_</sup> <sup>0</sup> <sup>,</sup>
the desired solution is _ϕ_ ( _r_ _−_ _r_ 0 _, t −_ _t_ 0).
8.2 Derivation of Eq. (6)
Inserting Eq. (5) in Eq. (3) and setting _d_ = 2, we have
<u>1</u> - _−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup>
_t −_ _t_ <sup>_′_</sup> <sup>exp</sup> 4( _t −_ _t_ <sup>_′_</sup> )
_<u>Q</u>_ <u>0</u>
_ϕ_ ( _r_ _, t_ ) =
4 _π_ ~~<u>�</u>~~ _|_ _D_ _|_
- min( _t,t_ 0+ _τ_ )
_t_ 0
�d _t_ <sup>_′_</sup> _._
An application of Lemma 1 below, _i.e._, setting _a_ = 0, _b_ = 1, and _r_ = <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> 4 <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup>, and noting
_E_ 1(+ _∞_ ) = 0 yields
4 _π_ <sup>_~~√~~_</sup> _<u>Q</u>_ <u>0</u> _|_ _D_ _|_ <sup>_E_</sup> <sup>1</sup> - <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)4(</u> _⊤t_ _<u>D</u>_ _−−t_ 01)( _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> - _,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
4 _π_ <sup>_~~√~~_</sup> _<u>Q</u>_ <u>0</u> _|_ _D_ _|_
_ϕ_ ( _r_ _, t_ ) =
for _r_ _̸_ = _r_ 0 and
- <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> _⊤_ _<u>D</u>_ _−_ 1( _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> - <sup>�</sup>
4( _t−_ ( _t_ 0+ _τ_ )) _,_ _t > t_ 0 + _τ,_
_E_ 1
- <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)4(</u> _⊤t_ _<u>D</u>_ _−−t_ 01)( _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> - _−_ _E_ 1
_ϕ_ ( _r_ 0 _, t_ ) =
+ _∞,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
4 _π_ <sup>_~~√~~_</sup> _<u>Q</u>_ <u>0</u> _|_ _D_ _|_ <sup>ln</sup> - _t−t_ ( _<u>−t</u>_ 0 _<u>t</u>_ +0 _τ_ ) - _,_ _t > t_ 0 + _τ._
- _<u>t−t</u>_ <u>0</u>
_t−_ ( _t_ 0+ _τ_ )
- _,_ _t > t_ 0 + _τ._
_<u>r</u>_
_a_ + _b_ (1 _t−t_ <sup>_<u>′</u>_</sup> ) <sup>_e−_</sup> _a_ + _b_ ( _t−t_ <sup>_<u>′</u>_</sup> ) d _t_ <sup>_′_</sup> _for_ _r_ _∈_ R _≥_ 0 _with_ _a, b, t_ _∈_ R _≥_ 0 _and_ _t_ 1 _≤_ _t_ _≤_ _t_ 2 _._
Lemma 1. _Let_ _f_ ( _r_ ) :=
- _t_ 2
_t_ 1
_Then,_ _f_ (0) = <sup><u>1</u></sup> _b_ <sup>ln</sup>
- _<u>a</u>_ <u>+</u> _<u>b</u>_ <u>(</u> _<u>t−t</u>_ <u>1)</u> - _and,_ _for_ _r̸_ = 0 _,_
_a_ + _b_ ( _t−t_ 2)
_f_ ( _r_ ) = <sup><u>1</u></sup>
_b_
- _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ 2)
_E_ 1
- _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ 1)
- _−_ _E_ 1
- <sup>�</sup>
_._
_Moreover,_ _if_ _a_ + _b_ ( _t −_ _t_ 1) _̸_ = 0 _and_ _a_ + _b_ ( _t −_ _t_ 2) _̸_ = 0 _,_ _f_ ( _r_ ) _is_ _continuous_ _on_ _r_ _∈_ (0 _, ∞_ ) _and_ _is_
_right-continuous_ _at_ _r_ = 0 _._
31
_a_ + _b_ (1 _t−t_ <sup>_<u>′</u>_</sup> ) <sup>d</sup> <sup>_t′_</sup> <sup>=</sup> <sup><u>1</u></sup> _b_
<sup><u>1</u></sup> _b_ <sup>ln</sup>
_Proof._ For _r_ = 0, the integral becomes - _tt_ 12 _a_ + _b_ (1 _t−t_ <sup>_<u>′</u>_</sup> ) <sup>d</sup> <sup>_t′_</sup> <sup>=</sup> <sup><u>1</u></sup> _b_ <sup>ln</sup> - _<u>aa</u>_ <u>++</u> _<u>bb</u>_ <u>((</u> _<u>tt−−tt</u>_ 21)) �. For _r̸_ = 0, by a change of
variable _u_ = _a_ + _b_ ( _<u>rt−t</u>_ <sup>_<u>′</u>_</sup> ) <sup>,</sup> <sup>which</sup> <sup>gives</sup> <sup>d</sup> <sup>_t′_</sup> <sup>=</sup> _bur_ <sup>2</sup> <sup>d</sup> <sup>_u_</sup> <sup>,</sup> <sup>giving</sup>
_<u>r</u>_
- _t_ 2 <u>1</u> _<u>r</u>_ - _a_ + _b_ ( _t−t_ 2) <u>1</u>
_Proof._ For _r_ = 0, the integral becomes
- _t_ 2
_t_ 1
- _<u>a</u>_ <u>+</u> _<u>b</u>_ <u>(</u> _<u>t−t</u>_ <u>1)</u>
_a_ + _b_ ( _t−t_ 2)
<u>1</u>
_bu_ <sup>_e−u_</sup> <sup>d</sup> <sup>_u_</sup>
_<u>r</u>_
- _a_ + _b_ ( _t−t_ 2)
_t_ 1
_a_ + _b_ (1 _t −_ _t_ <sup>_′_</sup> ) <sup>_e−_</sup> _a_ + _b_ ( _<u>rt−t</u>_ <sup>_<u>′</u>_</sup> ) d _t_ <sup>_′_</sup> =
- + _∞_
_<u>r</u>_
_a_ + _b_ ( _t−t_ 2)
<u>1</u>
_bu_ <sup>_e−u_</sup> <sup>d</sup> <sup>_u_</sup>
=
_<u>r</u>_
_a_ + _b_ ( _t−t_ 1)
- + _∞_
_<u>r</u>_
_a_ + _b_ ( _t−t_ 1)
<u>1</u>
_bu_ <sup>_e−u_</sup> <sup>d</sup> <sup>_u −_</sup>
= <sup><u>1</u></sup>
_b_
- _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ 2)
_E_ 1
- _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ 1)
- _−_ _E_ 1
- <sup>�</sup>
_._
It is straightforward to show that for _a_ + _b_ ( _t −_ _t_ 1) _̸_ = 0 and _a_ + _b_ ( _t −_ _t_ 2) _̸_ = 0, _f_ ( _r_ ) is continuous on
(0 _, ∞_ ). Moreover, using the above equations in reverse order we show that _f_ ( _r_ ) is right continuous
at _r_ = 0:
- _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ 1)
- _−_ _E_ 1
- _t_ 2
_t_ 1
<u>1</u> _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ <sup>_′_</sup> ) <sup>_e−_</sup> _a_ + _b_ ( _t−t_ <sup>_<u>′</u>_</sup> ) d _t_ <sup>_′_</sup>
- _<u>r</u>_
_a_ + _b_ ( _t −_ _t_ 2)
- <sup>�</sup>
= lim
_r→_ 0 <sup>+</sup>
lim
_r→_ 0 <sup>+</sup>
<u>1</u>
_b_
_E_ 1
= <sup><u>1</u></sup>
_b_ <sup>ln</sup>
- _<u>a</u>_ <u>+</u> _<u>b</u>_ <u>(</u> _<u>t −</u>_ _<u>t</u>_ <u>1)</u> - _._
_a_ + _b_ ( _t −_ _t_ 2)
8.3 Derivation of Eq. (8)
Inserting Eq. (7) in Eq. (3) and setting _d_ = 2 gives
- min( _t,t_ 0+ _τ_ )
_ϕ_ ( _r_ _, t_ ) =
_t_ 0
_<u>Q</u>_ <u>0</u>
4 _π_ <sup>2</sup> _rs_ <sup>2</sup> ( _t −_ _t_ <sup>_′_</sup> ) ~~<u>�</u>~~ _|_ _D_ _|_
_I_ d _t_ <sup>_′_</sup> _,_ (45)
where
_I_ :=
_∥_ _r_ <sup>_′_</sup> _−_ _r_ 0 _∥_ 2 _≤rs_
exp
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup>
4( _t −_ _t_ <sup>_′_</sup> )
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup>
�d _r_ <sup>_′_</sup> _._
By a change of variable _r_ <sup>_′′_</sup> = _r_ <sup>_′_</sup> _−_ _r_ 0,
_I_ :=
_∥_ _r_ <sup>_′′_</sup> _∥_ 2 _≤rs_
exp
-
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_′′_</sup> <sup><u>+</u></sup> <sup>_<u>r</u>_</sup> <sup><u>0))</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_′′_</sup> <sup><u>+</u></sup> <sup>_<u>r</u>_</sup> <sup><u>0))</u></sup> d _r_ <sup>_′′_</sup>
4( _t −_ _t_ <sup>_′_</sup> )
= exp
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup>
4( _t −_ _t_ <sup>_′_</sup> )
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup><u>0)</u></sup>
_· I_ 1 _,_ (46)
where
- <u>(</u> _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0)</u> _⊤_ _<u>D</u>_ _−_ 1 _<u>r</u>_ _′′_
d _r_ <sup>_′′_</sup> _._ (47)
2( _t −_ _t_ <sup>_′_</sup> )
_I_ 1 :=
_∥_ _r_ <sup>_′′_</sup> _∥_ 2 _≤rs_
exp
_−_ <sup>_<u>r</u>_</sup> <sup>_′′⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1</sup> <sup>_<u>r</u>_</sup> <sup>_′′_</sup>
4( _t −_ _t_ <sup>_′_</sup> )
exp
To compute _I_ 1 it is necessary to convert Cartesian to Polar coordinates by defining _r_ <sup>_′′_</sup> = [ _r_ 1 <sup>_′′, r_</sup> 2 <sup>_′′_</sup> <sup>]</sup> <sup>_⊤_</sup> <sup>:=</sup>
[ _u_ cos _θ, u_ sin _θ_ ] <sup>_⊤_</sup> and _r_ _−_ _r_ 0 = [ _r_ 1 _−_ _r_ 0 _,_ 1 _, r_ 2 _−_ _r_ 0 _,_ 2] <sup>_⊤_</sup> := [ _v_ cos _α, v_ sin _α_ ] <sup>_⊤_</sup> ; hence
d _r_ <sup>_′′_</sup> = d _r_ 1 <sup>_′′_</sup> <sup>d</sup> <sup>_r_</sup> 2 <sup>_′′_</sup> <sup>=</sup> <sup>_u_</sup> <sup>d</sup> <sup>_u_</sup> <sup>d</sup> <sup>_θ,_</sup> (48)
1 <sup>_−_</sup> <sup>1</sup> + _D_ 2 <sup>_−_</sup> <sup>1</sup>
_r_ <sup>_′′⊤_</sup> _D_ <sup>_−_</sup> <sup>1</sup> _r_ <sup>_′′_</sup> = _u_ <sup>2</sup> ( _D_ 1 <sup>_−_</sup> <sup>1</sup>
2 <sup>_−_</sup> <sup>1</sup> sin <sup>2</sup> _θ_ ) = <sup>_<u>u</u>_</sup> <sup>2</sup>
1 <sup>_−_</sup> <sup>1</sup> cos <sup>2</sup> _θ_ + _D_ 2 <sup>_−_</sup> <sup>1</sup>
2 <sup>2</sup> ( _D_ 1 <sup>_−_</sup> <sup>1</sup>
2 <sup>_−_</sup> <sup>1) + (</sup> <sup>_D_</sup> 1 <sup>_−_</sup> <sup>1</sup> _−_ _D_ 2 <sup>_−_</sup> <sup>1</sup>
2 <sup>_−_</sup> <sup>1) cos 2</sup> <sup>_θ_</sup> - _,_ (49)
( _r_ _−_ _r_ 0) <sup>_⊤_</sup> _D_ <sup>_−_</sup> <sup>1</sup> _r_ <sup>_′′_</sup> = _u v_
1 <sup>_−_</sup> <sup>1</sup> cos _θ_ cos _α_ + _D_ 2 <sup>_−_</sup> <sup>1</sup>
- _D_ 1 <sup>_−_</sup> <sup>1</sup>
2 <sup>_−_</sup> <sup>1</sup> sin _θ_ sin _α_
- = _u v a_ cos ( _θ −_ _β_ ) _,_ (50)
32
2 <sup>_−_</sup> <sup>2</sup> sin <sup>2</sup> _α_ and _β_ := arctan ( <sup>_<u>D</u>_</sup> _D_ <sup><u>1</u></sup> 2
where in Eq. (50), _a_ :=
~~�~~
_D_ 1 <sup>_−_</sup> <sup>2</sup>
1 <sup>_−_</sup> <sup>2</sup> cos <sup>2</sup> _α_ + _D_ 2 <sup>_−_</sup> <sup>2</sup>
where in Eq. (50), _a_ := _D_ 1 <sup>_−_</sup> <sup>2</sup> cos <sup>2</sup> _α_ + _D_ 2 <sup>_−_</sup> <sup>2</sup> sin <sup>2</sup> _α_ and _β_ := arctan ( <sup>_<u>D</u>_</sup> _D_ <sup><u>1</u></sup> 2 <sup>tan</sup> <sup>_α_</sup> <sup>).</sup> Substituting
Eqs. (48), (49), and (50) in Eq. (47) yields
- <u>1</u>
_−_ <sup><u>(</u></sup> <sup>_<u>D−</u>_</sup> <sup>1</sup>
<u>1</u> <sup>_−_</sup> <sup>1</sup> <u>+</u> _<u>D</u>_ <u>2</u> <sup>_−_</sup> <sup>1</sup>
- <u>12</u> <sup>_u_</sup> <sup>2(</sup> <sup>_D_</sup> <u>1</u> <sup>_−_</sup> <sup>1</sup> _−_ _D_ <u>2</u> <sup>_−_</sup> <sup>1) cos 2</sup> <sup>_θ_</sup> <sup><u>+</u></sup> <sup>_u v a_</sup> <sup><u>cos (</u></sup> <sup>_θ −_</sup> <sup>_β_</sup> <sup><u>)</u></sup>
2( _t −_ _t_ <sup>_′_</sup> )
- <sup>�</sup> 2 _π_
exp
0
d _θ_ d _u,_
_I_ 1 =
- _rs_
_u_ exp
0
8( _t −_ _t_ <sup>_′_</sup> )
<u>2</u> <sup>_−_</sup> <sup>1)</sup> <sup>_<u>u</u>_</sup> <sup>2</sup>
which does not simplify further. However, by setting _D_ 1 = _D_ 2 = _D_ the Integral _I_ 1 reduces to
- _<u>u</u>_ <sup>2</sup>
_−_
4 _D_ ( _t −_ _t_ <sup>_′_</sup> )
- _<u>u</u>_ <sup>2</sup>
_−_
- <sup>�</sup> 2 _π_
exp
0
- _<u>u v</u>_ <u>cos (</u> _<u>θ −</u>_ _<u>α</u>_ <u>)</u>
2 _D_ ( _t −_ _t_ <sup>_′_</sup> )
d _θ_ d _u,_
_I_ 1 =
- _rs_
_u_ exp
0
- _rs_
- _<u>u</u>_ <sup>2</sup>
_−_
4 _D_ ( _t −_ _t_ <sup>_′_</sup> )
- _<u>u</u>_ <sup>2</sup>
_−_
_I_ 0
- _<u>u v</u>_ �d _u,_ (51)
2 _D_ ( _t −_ _t_ <sup>_′_</sup> )
=2 _π_
_u_ exp
0
where in the second line we use the fact that
- 2 _π_
exp
0
- _<u>u v</u>_ <u>cos (</u> _<u>θ −</u>_ _<u>α</u>_ <u>)</u>
d _θ_ =2
2 _D_ ( _t −_ _t_ <sup>_′_</sup> )
- _π_
exp
0
- _<u>u v</u>_ <u>cos</u> _<u>θ</u>_
2 _D_ ( _t −_ _t_ <sup>_′_</sup> )
d _θ_ = 2 _πI_ 0
- _<u>u v</u>_ - _._
2 _D_ ( _t −_ _t_ <sup>_′_</sup> )
Substituting Eq. (51) in Eq. (46) and combining the result with Eq. (45) results in
_<u>Q</u>_ <u>0</u> - <u>2</u> �� _rs_ - _<u>u</u>_ <sup>2</sup> 2 _πrs_ <sup>2</sup> _D_ ( _t−t_ <sup>_′_</sup> ) <sup>exp</sup> _−_ 4 <sup>_<u>∥</u>_</sup> _D_ <sup>_<u>r</u>_</sup> <sup>_<u>−</u>_</sup> ( _t_ <sup>_<u>r</u>_</sup> _−_ <sup><u>0</u></sup> _t_ <sup>_<u>∥′</u>_</sup> <sup>2</sup> ) 0 <sup>_u_</sup> <sup>exp</sup> _−_ 4 _D_ ( _t−t_ <sup>_<u>′</u>_</sup> ) _I_ 0
- _<u>u</u>_ 2 _<u>∥D</u>_ _<u>r</u>_ ( _<u>−t−</u>_ _<u>r</u>_ <u>0</u> _t∥_ <sup>_<u>′</u>_</sup> )2 �d _u_ d _t_ <sup>_′_</sup> _._
_ϕ_ ( _r_ _, t_ ) =
- min( _t,t_ 0+ _τ_ )
_t_ 0
8.4 Diffusion distribution for a continuous square disc source
In this section we study the diffusion distribution for a continuous square disc source with halfwidth _rs_ centered at _r_ = _r_ 0 and activated during time _t ∈_ [ _t_ 0 _, t_ 0 + _τ_ ]. In this case, the corresponding
source function is _h_ ( _r_ _, t_ ) = _Q_ 0 _· hs_ ( _r_ ) _· ht_ ( _t_ ) with
_hs_ ( _r_ ) =
- 41 _rs_ <sup>2</sup> <sup>_,_</sup> if _∥_ _r_ _−_ _r_ 0 _∥∞_ _≤_ _rs,_
0 _,_ otherwise _,_
and _ht_ ( _t_ ) =
1 _,_ if _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
(52)
0 _,_ otherwise _,_
with _Q_ 0 in u _·_ s <sup>_−_</sup> <sup>1</sup> . In Eq. (52), the _ℓ∞_ -norm _∥_ _u_ _∥∞_ := max _i |ui|_, which returns the maximum
absolute value entry of the input vector, is used to model the square disc source. Inserting (52) in
(3) for _d_ = 2 gives (see Section 8.4.1 for the details)
- _<u>r</u>_ <u>1</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>1</u> _<u>−</u>_ _<u>rs</u>_
~~<u>�</u>~~ 4 _D_ 1( _t −_ _t_ <sup>_′_</sup> )
- _<u>r</u>_ <u>2</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>2</u> _<u>−</u>_ _<u>rs</u>_
~~<u>�</u>~~ 4 _D_ 2( _t −_ _t_ <sup>_′_</sup> )
_ϕ_ ( _r_ _, t_ ) = <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup>
16 _rs_ <sup>2</sup>
- min( _t,t_ 0+ _τ_ )
_t_ 0
erf
- _<u>r</u>_ <u>1</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>1 +</u> _<u>rs</u>_ - _−_ erf
~~<u>�</u>~~ 4 _D_ 1( _t −_ _t_ <sup>_′_</sup> )
- _<u>r</u>_ <u>2</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>2 +</u> _<u>rs</u>_ - _−_ erf
~~<u>�</u>~~ 4 _D_ 2( _t −_ _t_ <sup>_′_</sup> )
- <sup>�</sup>
- <sup>�</sup> d _t_ <sup>_′_</sup> _,_ (53)
_·_ erf
<u>2</u>
where erf( _v_ ) := _~~√~~_ _<u>π</u>_
�0 _v_ <sup>exp (</sup> <sup>_−u_</sup> <sup>2) d</sup> <sup>_u_</sup> <sup>is</sup> <sup>the</sup> <sup>error</sup> <sup>function.</sup> <sup>This</sup> <sup>special</sup> <sup>case</sup> <sup>is</sup> <sup>pertinent</sup> <sup>to</sup> <sup>imaging</sup>
applications using wide (or parallel) beams as in some applications of X-ray ptychography, _e.g._,
with coherently illuminated condensed aperture [43, 44].
33
Figure 13: Diffusion distributions for a square disc source following Eq. (53) with _D_ = diag(0 _._ 25 _,_ 0 _._ 5), _rs_ = 0 _._ 2,
_τ_ = 1, _Q_ 0 = 1, _t_ 0 = 0, and _r_ 0 = 0 . The range of vertical axes are identical.
8.4.1 Derivation of Eq. (53)
First, we note that
_{_ _r_ <sup>_′_</sup> : _∥_ _r_ <sup>_′_</sup> _−_ _r_ 0 _∥∞_ _≤_ _rs}_ = _{_ _r_ <sup>_′_</sup> : _|r_ 1 <sup>_′_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0</sup> <sup>_,_</sup> <sup>1</sup> <sup>_| ≤_</sup> <sup>_rs_</sup> <sup>and</sup> <sup>_|r_</sup> 2 <sup>_′_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0</sup> <sup>_,_</sup> <sup>2</sup> <sup>_| ≤_</sup> <sup>_rs}._</sup>
Inserting Eq. (52) in Eq. (3), setting _d_ = 2, and since ( _r_ _−_ _r_ <sup>_′_</sup> ) <sup>_⊤_</sup> _D_ <sup>_−_</sup> <sup>1</sup> ( _r_ _−_ _r_ <sup>_′_</sup> ) = _D_ <u>11</u> <sup>(</sup> <sup>_r_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_r_</sup> 1 <sup>_′_</sup>
Inserting Eq. (52) in Eq. (3), setting _d_ = 2, and since ( _r_ _−_ _r_ <sup>_′_</sup> ) <sup>_⊤_</sup> _D_ <sup>_−_</sup> <sup>1</sup> ( _r_ _−_ _r_ <sup>_′_</sup> ) = _D_ <u>11</u> <sup>(</sup> <sup>_r_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_r_</sup> 1 <sup>_′_</sup> <sup>)2</sup> <sup>+</sup> _D_ <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_r_</sup> <sup>2</sup> <sup>_−_</sup>
_r_ 2 <sup>_′_</sup> <sup>)2,</sup> <sup>gives</sup>
2 <sup>_′_</sup> <sup>)2,</sup> <sup>gives</sup>
_<u>Q</u>_ <u>0</u>
_ϕ_ ( _r_ _, t_ ) =
16 _πrs_ <sup>2</sup> ~~<u>�</u>~~ _|_ _D_ _|_
- min( _t,t_ 0+ _τ_ )
_t_ 0
_I_ 1 _· I_ 2 d _t_ <sup>_′_</sup> _,_ (54)
where
<u>1</u>
_Ii_ := _~~√~~_
_t −_ _t_ <sup>_<u>′</u>_</sup>
�d _ri_ <sup>_′,_</sup> for _i ∈{_ 1 _,_ 2 _}._
�d _ri_ <sup>_′_</sup>
- _r_ 0 _,i_ + _rs_
_r_ 0 _,i−rs_
exp
- _−_ <sup><u>(</u></sup> <sup>_<u>ri −</u>_</sup> <sup>_<u>r</u>_</sup> _<u>i</u>_ <sup>_′_</sup>
4 _Di_ ( _t −_ _t_ <sup>_′_</sup> )
_<u>i</u>_ <sup>_′_</sup> <sup><u>)2</u></sup>
An application of Lemma 2 below, _i.e._, setting _T_ = 4 _Di_ ( _t −_ _t_ <sup>_′_</sup> ), _r_ = _ri_, _r_ <sup>_′_</sup> = _ri_ <sup>_′_</sup> <sup>,</sup> <sup>_a_</sup> <sup>1</sup> <sup>=</sup> <sup>_r_</sup> <sup>0</sup> <sup>_,i −_</sup> <sup>_rs_</sup> <sup>,</sup>
and _a_ 2 = _r_ 0 _,i_ + _rs_, yields
- _<u>ri −</u>_ _<u>r</u>_ <u>0</u> _<u>,i −</u>_ _<u>rs</u>_
~~<u>�</u>~~ 4 _Di_ ( _t −_ _t_ <sup>_′_</sup> )
- _<u>ri −</u>_ _<u>r</u>_ <u>0</u> _<u>,i</u>_ <u>+</u> _<u>rs</u>_
~~<u>�</u>~~ 4 _Di_ ( _t −_ _t_ <sup>_′_</sup> )
- <sup>�</sup>
_._ (55)
_Ii_ =
~~�~~ _πDi_ <u>�erf</u>
- _−_ erf
Substituting Eq. (55) in Eq. (54) for _i ∈{_ 1 _,_ 2 _}_ and noting _|_ _D_ _|_ = _D_ 1 _D_ 2 gives
- _<u>r</u>_ <u>1</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>1 +</u> _<u>rs</u>_ - _−_ erf
~~<u>�</u>~~ 4 _D_ 1( _t −_ _t_ <sup>_′_</sup> )
- _<u>r</u>_ <u>2</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>2 +</u> _<u>rs</u>_ - _−_ erf
~~<u>�</u>~~ 4 _D_ 2( _t −_ _t_ <sup>_′_</sup> )
- _<u>r</u>_ <u>1</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>1</u> _<u>−</u>_ _<u>rs</u>_ - <sup>�</sup>
~~<u>�</u>~~ 4 _D_ 1( _t −_ _t_ <sup>_′_</sup> )
- _<u>r</u>_ <u>2</u> _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>,</u>_ <u>2</u> _<u>−</u>_ _<u>rs</u>_ - <sup>�</sup> d _t_ <sup>_′_</sup> _._
~~<u>�</u>~~ 4 _D_ 2( _t −_ _t_ <sup>_′_</sup> )
_ϕ_ ( _r_ _, t_ ) = <sup>_<u>Q</u>_</sup> <sup><u>0</u></sup>
16 _rs_ <sup>2</sup>
- min( _t,t_ 0+ _τ_ )�
erf
_t_ 0
_·_ erf
Lemma 2.
<u>1</u>
_~~√~~_
_T_
_e_ <sup>_−_</sup> <sup><u>(</u></sup> <sup>_<u>r−</u>_</sup> _T_ <sup>_<u>r′</u>_</sup> <sup><u>)2</u></sup> d _r_ <sup>_′_</sup> =
- _<u>r −</u>_ _<u>a</u>_ <u>1</u>
_~~√~~_
_T_
- _a_ 2
_a_ 1
- _−_ erf
_√π_
2
erf
- _<u>r −</u>_ _<u>a</u>_ <u>1</u>
_~~√~~_
- _<u>r −</u>_ _<u>a</u>_ <u>2</u>
_~~√~~_
_T_
- <sup>�</sup>
_._
_T_ d _u_, giving
_Proof._ A change of a variable _u_ = <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> _~~√~~_ <sup>_<u>−</u>_</sup> _T_ <sup>_<u>r′</u>_</sup> <sup><u>)</u></sup>
_√_
_T_ <sup>_<u>r′</u>_</sup> <sup><u>)</u></sup> <sup>,</sup> <sup>gives</sup> <sup>d</sup> <sup>_r′_</sup> <sup>=</sup> <sup>_−_</sup>
_e_ <sup>_−u_</sup> <sup>2</sup> d _u_ =
34
- _a_ 2
_a_ 1
_e_ <sup>_−_</sup> <sup><u>(</u></sup> <sup>_<u>r−</u>_</sup> _T_ <sup>_<u>r′</u>_</sup> <sup><u>)2</u></sup>
_√_
_T_
<sup>_<u>−</u>_</sup> _T_ <sup>_<u>r′</u>_</sup> <sup><u>)2</u></sup> d _r_ <sup>_′_</sup> =
- _<u>r −</u>_ _<u>a</u>_ <u>1</u>
_~~√~~_
_T_
- _−_ erf
_√_
_<u>πT</u>_
2
erf
- _<u>r −</u>_ _<u>a</u>_ <u>2</u>
_~~√~~_
_T_
- <sup>�</sup>
_._
- _<u>r</u>_ _~~√~~_ _<u>−Ta</u>_ <u>1</u>
_<u>r</u>_ _~~√~~_ _<u>−a</u>_ <u>2</u>
_T_
8.5 Derivation of Eqs. (10) and (11)
Inserting Eq. (9) in Eq. (3) and setting _d_ = 2 gives
_ϕ_ ( _r_ _, t_ ) = _Q_ 0
- min( _t,t_ 0+ _τ_ )
_t_ 0
(56)
R <sup>2</sup> <sup>_f_</sup> <sup>1(</sup> <sup>_r_</sup> <sup>_′_</sup> <sup>)</sup> <sup>_· f_</sup> <sup>2(</sup> <sup>_r_</sup> <sup>_′_</sup> <sup>) d</sup> <sup>_r_</sup> <sup>_′_</sup> <sup>d</sup> <sup>_t′,_</sup>
where
<u>1</u>
_f_ 1( _r_ <sup>_′_</sup> ) :=
2 _π_ ~~<u>�</u>~~ _|_ _D_ _s|_
- _,_
exp
_−_ 2 <sup><u>1</u></sup>
2 <sup><u>1</u></sup> <sup>(</sup> <sup>_r_</sup> <sup>_′ −_</sup> <sup>_r_</sup> <sup>0)</sup> <sup>_⊤_</sup> <sup>_D_</sup> _s_ <sup>_−_</sup> <sup>1(</sup> <sup>_r_</sup> <sup>_′ −_</sup> <sup>_r_</sup> <sup>0)</sup>
<u>1</u>
_f_ 2( _r_ <sup>_′_</sup> ) :=
4 _π_ ( _t −_ _t_ <sup>_′_</sup> ) ~~<u>�</u>~~ _|_ _D_ _|_
- _−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_′ −_</sup> <sup>_<u>r</u>_</sup> <sup><u>)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_′ −_</sup> <sup>_<u>r</u>_</sup> <sup><u>)</u></sup> - _._
4( _t −_ _t_ <sup>_′_</sup> )
_−_ <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_′ −_</sup> <sup>_<u>r</u>_</sup> <sup><u>)</u></sup> <sup>_⊤_</sup> <sup>_<u>D</u>_</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_<u>r</u>_</sup> <sup>_′ −_</sup> <sup>_<u>r</u>_</sup> <sup><u>)</u></sup>
exp
Setting _m_ 1 = _r_ 0, _m_ 2 = _r_, Σ 1 = _D_ _s_, Σ 2 = 2( _t −_ _t_ <sup>_′_</sup> ) _D_ in Lemma 3 and solving Eq. (56) yields
_<u>Q</u>_ <u>0</u>
2 _π_ ~~<u>�</u>~~ _|_ _D_ _e|_
- d _t_ <sup>_′_</sup> _,_ (57)
_ϕ_ ( _r_ _, t_ ) =
- min( _t,t_ 0+ _τ_ )
_t_ 0
exp
_−_ <sup><u>1</u></sup>
2
<sup><u>1</u></sup>
2 <sup>(</sup> <sup>_r_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0)</sup> <sup>_⊤_</sup> <sup>_D_</sup> _e_ <sup>_−_</sup> <sup>1(</sup> <sup>_r_</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>0)</sup>
with _D_ _e_ = _D_ _s_ + 2( _t −_ _t_ <sup>_′_</sup> ) _D_ . Furthermore, assuming isotropic source and diffusion coefficients, _i.e._,
_Ds,_ 1 = _Ds,_ 2 = _Ds_ and _D_ 1 = _D_ 2 = _D_, Eq. (57) becomes
- min( _t,t_ 0+ _τ_ )
_ϕ_ ( _r_ _, t_ ) =
_t_ 0
2 _π_ ( _Ds_ + 2 _<u>QD</u>_ <u>0</u> ( _t −_ _t_ <sup>_′_</sup> )) <sup>exp</sup> - _−_ 2 _Ds∥_ + 4 _<u>r</u>_ _<u>−D</u>_ _<u>r</u>_ (0 _t∥ −_ <sup>2</sup> <u>2</u> _t_ <sup>_′_</sup> ) - d _t_ <sup>_′_</sup> _._ (58)
Using Lemma 1 and setting _a_ = 2 _Ds_, _b_ = 4 _D_, and _r_ = _∥_ _r_ _−_ _r_ 0 _∥_ <sup>2</sup> 2 <sup>gives</sup>
- 2 _Ds∥_ +4 _<u>r</u>_ _<u>−D</u>_ _<u>r</u>_ <u>0(</u> _<u>∥t−</u>_ <sup>2</sup> <u>2</u> _t_ 0) - _−_ _E_ 1
- _<u>∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>∥</u>_ <sup>2</sup> <u>2</u>
- _<u>∥</u>_ _<u>r</u>_ 2 _<u>−D</u>_ _<u>r</u>_ _s_ <u>0</u> _<u>∥</u>_ 22 - <sup>�</sup> _,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
_ϕ_ ( _r_ _, t_ ) =
and for _r_ _̸_ = _r_ 0 and
4 _<u>QπD</u>_ <u>0</u> - _E_ 1
4 _<u>QπD</u>_ <u>0</u> - _E_ 1
- 2 _Ds∥_ +4 _<u>r</u>_ _<u>−D</u>_ _<u>r</u>_ <u>0(</u> _<u>∥t−</u>_ <sup>2</sup> <u>2</u> _t_ 0) - _−_ _E_ 1
- _<u>∥</u>_ _<u>r</u>_ _<u>−</u>_ _<u>r</u>_ <u>0</u> _<u>∥</u>_ <sup>2</sup> <u>2</u>
- 2 _Ds_ +4 _<u>∥</u>_ _<u>r</u>_ _D−_ ( _t_ _<u>r</u>_ _−_ <u>0</u> _<u>∥</u>_ ( _t_ <sup>2</sup> <u>20+</u> _τ_ )) - <sup>�</sup> _,_ _t > t_ 0 + _τ,_
_ϕ_ ( _r_ 0 _, t_ ) =
- _<u>Q</u>_ <u>0</u> - _<u>Ds</u>_ <u>+2</u> _<u>D</u>_ <u>(</u> _<u>t−t</u>_ <u>0)</u>
4 _πD_ <sup>ln</sup> _Ds_
4 _<u>QπD</u>_ <u>0</u> <sup>ln</sup> - _<u>Ds</u>_ <u>+2</u> _DDs_ <u>(</u> _<u>t−t</u>_ <u>0)</u> - _,_ _t_ 0 _≤_ _t ≤_ _t_ 0 + _τ,_
4 _<u>QπD</u>_ <u>0</u> <sup>ln</sup> - _DDs_ +2 _<u>s</u>_ <u>+2</u> _DD_ ( _t_ <u>(</u> _−t−t_ 0 _<u>t−</u>_ <u>0)</u> _τ_ ) - _,_ _t > t_ 0 + _τ._
- _,_ _t > t_ 0 + _τ._
_m_ _,_ Σ ) := _~~√~~_ _|_ 21 _π_ Σ _|_ <sup>exp</sup> - _−_ 2 <sup><u>1</u></sup> <sup>(</sup> <sup>_u_</sup> <sup>_−_</sup> <sup>_m_</sup> <sup>)</sup> <sup>_⊤_</sup> <sup>Σ</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_u_</sup> <sup>_−_</sup> <sup>_m_</sup> <sup>)</sup> - _._ _Then_
Lemma 3. _Let_ _N_ ( _u_ _|_ _m_ _,_ Σ ) := _~~√~~_ _|_ 21
_|_ 21 _π_ Σ _|_ <sup>exp</sup>
- _−_ 2 <sup><u>1</u></sup>
R <sup>2</sup> <sup>_N_</sup> <sup>(</sup> <sup>_u_</sup> <sup>_|_</sup> <sup>_m_</sup> <sup>1</sup> <sup>_,_</sup> <sup>Σ</sup> <sup>1)</sup> <sup>_· N_</sup> <sup>(</sup> <sup>_u_</sup> <sup>_|_</sup> <sup>_m_</sup> <sup>2</sup> <sup>_,_</sup> <sup>Σ</sup> <sup>2) d</sup> <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> <sup>(</sup> <sup>_m_</sup> <sup>1</sup> <sup>_|_</sup> <sup>_m_</sup> <sup>2</sup> <sup>_,_</sup> <sup>Σ</sup> <sup>_c_</sup> <sup>)</sup> <sup>_,_</sup>
_where_ Σ _c_ := Σ 1 + Σ 2 _._
_Proof._ An application of Lemma 4 and recalling that �R <sup>2</sup> <sup>_N_</sup> <sup>(</sup> <sup>_u_</sup> <sup>_|_</sup> <sup>_m_</sup> <sup>_′,_</sup> <sup>Σ</sup> <sup>_′_</sup> <sup>) d</sup> <sup>_u_</sup> <sup>= 1, for arbitrary</sup> <sup>_m_</sup> <sup>_′_</sup> <sup>and</sup>
Σ <sup>_′_</sup>, completes the proof.
_Proof._ An application of Lemma 4 and recalling that
Lemma 4. ([55, p. 41]) _Let_ _N_ ( _u_ _|_ _m_ _,_ Σ ) := _~~√~~_ _|_ 21 _π_ Σ _|_ <sup>exp</sup>
Lemma 4. ([55, p. 41]) _Let_ _N_ ( _u_ _|_ _m_ _,_ Σ ) := _~~√~~_ _|_ 21
- _−_ <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_u_</sup> <sup>_−_</sup> <sup>_m_</sup> <sup>)</sup> <sup>_⊤_</sup> <sup>Σ</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_u_</sup> <sup>_−_</sup> <sup>_m_</sup> <sup>)</sup> - _._ _Then_
<sup><u>1</u></sup> 2 <sup>(</sup> <sup>_u_</sup> <sup>_−_</sup> <sup>_m_</sup> <sup>)</sup> <sup>_⊤_</sup> <sup>Σ</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_u_</sup> <sup>_−_</sup> <sup>_m_</sup> <sup>)</sup> - _._ _Then_
_N_ ( _u_ _|_ _m_ 1 _,_ Σ 1) _· N_ ( _u_ _m_ 2 _,_ Σ 2) = _N_ ( _m_ 1 _|_ _m_ 2 _,_ Σ _c_ ) _· N_ ( _u_ _|_ _m_ 3 _,_ Σ 3) _,_
_where_
Σ _c_ := Σ 1 + Σ 2
Σ 3 := ( Σ <sup>_−_</sup> 1 <sup>1</sup> + Σ
<sup>_−_</sup> 2 <sup>1)</sup> <sup>_−_</sup> <sup>1</sup>
<sup>_−_</sup> 1 <sup>1</sup> + Σ <sup>_−_</sup> 2 <sup>1</sup>
_m_ 3 := Σ 3( Σ <sup>_−_</sup> 1 <sup>1</sup> <sup>_m_</sup> <sup>1 +</sup> <sup>Σ</sup> <sup>_−_</sup> 2 <sup>1</sup> <sup>_m_</sup> <sup>2)</sup> <sup>_._</sup>
35
8.6 Diffusion distribution as a function of distance to the activation point
Let _di_ := _∥_ _r_ _−_ _r_ _i∥_ 2 be the Euclidean distance from the activation location of the electron beam.
We compute the first and second derivatives of _ϕ_ <sup>on</sup> _i_ in the following Lemma proved in Sec. 8.6.1.
Lemma 5. _For_ _ϕ_ <sup>on</sup> _i_ _defined_ _in_ _Eq._ (13) _and_ _for_ _di_ := _∥_ _r_ _−_ _r_ _i∥_ 2 _̸_ = 0 _we_ _have_
_<u>i</u>_
2 _Ds_ <sup>�</sup> _,_ (59)
_<u>∂</u>_
_∂di_
_<u>∂</u>_ <sup>2</sup>
_∂d_ <sup>2</sup> _i_
_<u>Q</u>_ <u>0</u>
_ϕ_ <sup>on</sup> _i_ = 2 _πDd_ <sup>2</sup> _i_
_<u>Q</u>_ <u>0</u>
<sup>on</sup> _i_ = 2 _πDd_ <sup>2</sup> _i_
_<u>Q</u>_ <u>0</u>
_ϕ_ <sup>on</sup> _i_ = _−_ 2 _πDdi_
- _e_ <sup>_−_</sup>
2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) _−_ _e_ <sup>_−_</sup> 2 _dDs_ <sup>2</sup> _<u>i</u>_
_d_ <sup>2</sup>
- _e_ <sup>_−_</sup>
��1 + <u>2</u> _<u>d</u>_ <sup>2</sup> _<u>i</u>_ - _e_ <sup>_−_</sup>
2 _Ds_ + 4 _D_ ( _t −_ _ti_ )
_d_ <sup>2</sup>
_d_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4 _D_ ( _t−ti_ ) _−_ �1 + <sup><u>2</u></sup> <sup>_<u>d</u>_</sup> _<u>i</u>_ <sup>2</sup>
2 _Ds_
_d_ <sup>2</sup> _<u>i</u>_
2 _Ds_ _._ (60)
_Moreover,_
_(i)_ _∂d∂_ _i_ <sup>_ϕ_</sup> _i_ <sup>on</sup>
_i_ <sup>on</sup> _<_ 0 _,_ _hence,_ _ϕ_ <sup>on</sup> _i_
<sup>on</sup> _i_ _is_ _a_ _decreasing_ _function_ _of_ _di,_ _for_ _all_ _di̸_ = 0 _,_
_<u>∂</u>_ <sup>2</sup>
_(ii)_
_∂d_ <sup>2</sup>
_i_
<sup>2</sup> _i_
_i_ <sup>_ϕ_</sup> <sup>on</sup>
_i_ _<_ 0 _,_ _hence,_ _ϕ_ <sup>on</sup> _i_
<sup>on</sup>
<sup>on</sup> _i_ _is_ _a_ _strictly_ _concave_ _function_ _of_ _di,_ _if_ 2 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ _s_ <sup>_<_</sup> 2 <sup><u>1</u></sup> <sup>_,_</sup>
_<u>∂</u>_ <sup>2</sup>
_(iii)_
_∂d_ <sup>2</sup>
_i_
<sup>2</sup> _i_
_i_ <sup>_ϕ_</sup> <sup>on</sup>
_i_ _>_ 0 _,_ _hence,_ _ϕ_ <sup>on</sup> _i_
<sup>on</sup>
<sup>on</sup> _i_ _is_ _a_ _strictly_ _convex_ _function_ _of_ _di,_ _if_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>_>_</sup> 2 <sup><u>1</u></sup> <sup>_._</sup>
Similarly, we can compute the first and second derivatives of _ϕ_ <sup>off</sup> _i_ using the following Lemma.
See Sec. 8.6.2 for the proof.
Lemma 6. _For_ _ϕ_ <sup>off</sup> _i_ _defined_ _in_ _Eq._ (14) _and_ _for_ _di_ := _∥_ _r_ _−_ _r_ _i∥_ 2 _̸_ = 0 _we_ _have_
_<u>i</u>_
2 _Ds_ +4 _D_ ( _t−ti−τi_ ) <sup>�</sup> _,_ (61)
_<u>∂</u>_
_∂di_
_<u>∂</u>_ <sup>2</sup>
_∂d_ <sup>2</sup> _i_
_<u>Q</u>_ <u>0</u>
_ϕ_ <sup>off</sup> _i_ = _−_ 2 _πDdi_
_<u>Q</u>_ <u>0</u>
_ϕ_ <sup>off</sup> _i_ = 2 _πDd_ <sup>2</sup> _i_
2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) _−_ _e_ <sup>_−_</sup> 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
- _e_ <sup>_−_</sup>
_d_ <sup>2</sup>
_d_ <sup>2</sup>
��1 + <u>2</u> _<u>d</u>_ <sup>2</sup> _<u>i</u>_ - _e_ <sup>_−_</sup>
2 _Ds_ + 4 _D_ ( _t −_ _ti_ )
_d_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4 _D_ ( _t−ti_ )
_d_ <sup>2</sup>
_−_
�1 + <u>2</u> _<u>d</u>_ <sup>2</sup> _<u>i</u>_ - _e_ <sup>_−_</sup>
2 _Ds_ + 4 _D_ ( _t −_ _ti −_ _τi_ )
_d_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4 _D_ ( _t−ti−τi_ ) _._ (62)
_Moreover,_
_(i)_ _∂d∂_ _i_ <sup>_ϕ_</sup> _i_ <sup>off</sup>
_i_ <sup>off</sup> _<_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
<sup>off</sup> _i_ _is_ _a_ _decreasing_ _function_ _of_ _di,_ _for_ _all_ _di̸_ = 0 _,_
_<u>∂</u>_ <sup>2</sup>
_(ii)_
_∂d_ <sup>2</sup>
_i_
<sup>2</sup> _i_
_i_ <sup>_ϕ_</sup> <sup>off</sup>
<sup>off</sup> _i_ _is_ _a_ _strictly_ _concave_ _function_ _of_ _di,_ _if_ 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
_i_ _<_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
<sup>off</sup>
2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it−ti−τi</u>_ ) <sup>_<_</sup> 2 <sup><u>1</u></sup> <sup>_,_</sup>
_<u>∂</u>_ <sup>2</sup>
_(iii)_
_∂d_ <sup>2</sup>
_i_
<sup>2</sup> _i_
_i_ <sup>_ϕ_</sup> <sup>off</sup>
<sup>off</sup> _i_ _is_ _a_ _strictly_ _convex_ _function_ _of_ _di,_ _if_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ _>_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
<sup>off</sup>
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>_>_</sup> 2 <sup><u>1</u></sup> <sup>_._</sup>
Lemmas 5 and 6 state that, regardless of the status of the electron beam, the diffusion distribution is always a decreasing function of the distance to the activation point, hence, the maximum
value of the diffusion distribution is always at the activation point. Moreover, cases _(ii)_ and _(iii)_
in Lemmas 5 and 6 provide, respectively, sufficient conditions for the diffusion distribution to be
a concave or convex function of distance to the activation point. These results provide an understanding of when a diffusion distribution has a global minimum or maximum, as a strictly convex
(or concave) function has no more than one minimum (respectively, maximum). For example, when
36
True sign Estimated sign
Figure 14: Sign of the first (top) and second (bottom) derivative of the diffusion distribution from
a single electron STEM probe with respect to distance from the activation point. (Left) true sign of
diffusion distribution numerically computed from Eqs. (59), (60), (61), and (62). (Right) Estimated sign following
the sufficient conditions given by Cases _(ii)_ and _(iii)_ of Lemmas 5 and 6. The upper plots are shown for visual
comparison with the plots in Fig. 15(top)
the condition of case _(ii)_ in Lemma 6 is met, there is a point in space at a distance _di_ from the
activation point with the maximum number of diffusing substances compared to the other spatial
points. The conditions in Lemmas 5 and 6, as illustrated in Fig. 14 (left), correspond to regions
identified by a vertical line and two parabolas. As an example, from the blue region in Fig. 14(bottom), for points ( _di, t_ ) where 2 _Ds_ ( _t −_ _ti_ ) _<_ _d_ <sup>2</sup> _i_ <sup>,</sup> <sup>the</sup> <sup>diffusion</sup> <sup>distribution</sup> <sup>is</sup> <sup>a</sup> <sup>convex</sup> <sup>function</sup> <sup>of</sup>
tom), for points ( _di, t_ ) where 2 _Ds_ ( _t −_ _ti_ ) _<_ _d_ <sup>2</sup> _i_ <sup>,</sup> <sup>the</sup> <sup>diffusion</sup> <sup>distribution</sup> <sup>is</sup> <sup>a</sup> <sup>convex</sup> <sup>function</sup> <sup>of</sup>
_di_ . However, those lemmas do not cover the points where _Ds_ _<_ _d_ <sup>2</sup> _i_ <sup>_<_</sup> <sup>_Ds_</sup> <sup>+ 2</sup> <sup>_D_</sup> <sup>(</sup> <sup>_t −_</sup> <sup>_ti_</sup> <sup>),</sup> <sup>_i.e._</sup> <sup>,</sup> <sup>an</sup>
_di_ . However, those lemmas do not cover the points where _Ds_ _<_ _d_ <sup>2</sup> _i_ <sup>_<_</sup> <sup>_Ds_</sup> <sup>+ 2</sup> <sup>_D_</sup> <sup>(</sup> <sup>_t −_</sup> <sup>_ti_</sup> <sup>),</sup> <sup>_i.e._</sup> <sup>,</sup> <sup>an</sup>
ambiguous region, as highlighted in gray in Fig. 14 (right). We note that when _Dτi_ _→_ 0, the
area of ambiguous region reduces to zero. Fig. 14(left) illustrates the true sign of the derivatives,
numerically computed from Eqs. (59) and (60) for 0 _< t −_ _ti_ _< τi_ and from Eqs. (61) and (62) for
_τi_ _< t −_ _ti_ .
37
8.6.1 Proof of Lemma 5
An application of Lemma 7 by setting _v_ _←_ 0, and _u_ _←_ _di_, for two settings of _α_, _i.e._, _α_ _←_
2 _Ds_ +41 _D_ ( _t−ti_ ) <sup>and</sup> <sup>_α ←_</sup> 2 _D_ <u>1</u> _s_ <sup>,</sup> <sup>gives</sup> <sup>(59)</sup> <sup>and</sup> <sup>(60).</sup> <sup>Since</sup> <sup>2</sup> <sup>_Ds_</sup> <sup>_<_</sup> <sup>2</sup> <sup>_Ds_</sup> <sup>+ 4</sup> <sup>_D_</sup> <sup>(</sup> <sup>_t −_</sup> <sup>_ti_</sup> <sup>),</sup> <sup>it</sup> <sup>is</sup> <sup>evident</sup> <sup>that</sup>
_<u>i</u>_
2 _Ds_ _,_
2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) _> e_ <sup>_−_</sup> 2 _dDs_ <sup>2</sup> _<u>i</u>_
_e_ <sup>_−_</sup>
_d_ <sup>2</sup>
hence, _∂d∂_ _i_ <sup>_ϕ_</sup> _i_ <sup>on</sup>
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>_<_</sup> 2 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ <sup>on</sup> _<_ 0 and _ϕ_ <sup>on</sup> _i_
<sup>on</sup> _i_ is a decreasing function of _di_, for all _di̸_ = 0.
We now prove the cases _(ii)_ and _(iii)_ . Since 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _Di_ _s_ <sup>,</sup> <sup>an</sup> <sup>application</sup> <sup>of</sup> <sup>Lemma</sup> <sup>9</sup> <sup>by</sup>
setting _u ←_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>and</sup> <sup>_v_</sup> <sup>_←_</sup> 2 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _Di_ _s_ <sup>completes</sup> <sup>the</sup> <sup>proof.</sup>
Lemma 7. _Let_ _f_ ( _u_ ) := _E_ 1
- _α_ ( _v −_ _u_ ) <sup>2�</sup>
Lemma 7. _Let_ _f_ ( _u_ ) := _E_ 1 _α_ ( _v −_ _u_ ) <sup>2�</sup> _for_ _u_ _≥_ 0 _with_ _α, v_ _≥_ 0 _._ _The_ _first_ _and_ _second_ _derivatives_
_of_ _f_ _reads,_ _for_ _u̸_ = _v,_
<u>2</u>
_f_ <sup>_′_</sup> ( _u_ ) = _v −_ _u_ <sup>_e−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup> <sup>_,_</sup>
<u>2</u>
_f_ <sup>_′′_</sup> ( _u_ ) =
( _v −_ _u_ ) <sup>2</sup>
�1 + 2 _α_ ( _v −_ _u_ ) <sup>2�</sup> _e_ <sup>_−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup> _._
_Moreover,_
- _f_ <sup>_′_</sup> ( _u_ ) _<_ 0 _,_ if _u > v,_
and _f_ <sup>_′′_</sup> ( _u_ ) _>_ 0 _,_
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ if _u < v,_
_Proof._ We define _g_ ( _u_ ) := _α_ ( _v −_ _u_ ) <sup>2</sup> . Then, _g_ <sup>_′_</sup> ( _u_ ) = _−_ 2 _α_ ( _v −_ _u_ ). Using a chain rule and Lemma 8,
<u>2</u>
_f_ <sup>_′_</sup> ( _u_ ) = _g_ <sup>_′_</sup> ( _u_ ) _E_ 1 <sup>_′_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> �� _v_ = _g_ ( _u_ ) <sup>=</sup> _v −_ _u_ <sup>_e−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup> <sup>_,_</sup>
for _u̸_ = _v_ and
_<u>∂</u>_
_∂u_
_f_ <sup>_′′_</sup> ( _u_ ) = <sup>_<u>∂</u>_</sup>
_∂u_
- <u>2</u> - _e_ <sup>_−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup> + <u>2</u>
_v −_ _u_ _v −_ _u_
- _e_ <sup>_−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2�</sup>
<u>2</u> <u>2</u>
=
( _v −_ _u_ ) <sup>2</sup> <sup>_e−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup> <sup>+</sup> _v −_ _u_ <sup>(2</sup> <sup>_α_</sup> <sup>)(</sup> <sup>_v −_</sup> <sup>_u_</sup> <sup>)</sup> <sup>_e−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup>
<u>2</u>
=
( _v −_ _u_ ) <sup>2</sup>
�1 + 2 _α_ ( _v −_ _u_ ) <sup>2�</sup> _e_ <sup>_−α_</sup> <sup>(</sup> <sup>_v−u_</sup> <sup>)2</sup> _._
We now prove the second part of the Lemma. We initially note that exp( _−w_ ) _>_ 0 for _w_ _∈_ R and
- _f_ <sup>_′_</sup> ( _u_ ) _<_ 0 _,_ if _v−_ <u>1</u> _u_ <sup>_<_</sup> <sup>0</sup> <sup>_,_</sup> <sup>or</sup> <sup>_v −_</sup> <sup>_u <_</sup> <sup>0</sup> <sup>_,_</sup>
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ if _v−_ <u>1</u> _u_ <sup>_>_</sup> <sup>0</sup> <sup>_,_</sup> <sup>or</sup> <sup>_v −_</sup> <sup>_u >_</sup> <sup>0</sup> <sup>_._</sup>
Moreover, it is evident that _f_ <sup>_′′_</sup> ( _u_ ) _>_ 0 for _u ≥_ 0, which completes the proof.
_v_ <u>1</u> <sup>exp (</sup> <sup>_−v_</sup> <sup>) d</sup> <sup>_v_</sup> <sup>_be_</sup> <sup>_the_</sup> <sup>_Exponential_</sup> <sup>_integral_</sup> <sup>_of_</sup> <sup>_order_</sup> <sup>_one._</sup> <sup>_Then,_</sup>
Lemma 8. _Let_ _E_ 1( _u_ ) :=
- + _∞_
_u_
1 <sup>_′_</sup> <sup>(</sup> <sup>_u_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_<u>e−u</u>_</sup>
_u_
_E_ 1 <sup>_′_</sup>
<sup>_−u_</sup> for _u >_ 0 _._
_u_ <sup>_,_</sup>
38
_Proof._ The proof is a direct application of Thm. 3 by setting _g_ ( _u_ ) _←_ _u_, _h_ ( _u_ ) _←_ + _∞_, _t_ _←_ _v_, and
_f_ ( _u, t_ ) _←_ _v_ <sup><u>1</u></sup> <sup>exp (</sup> <sup>_−v_</sup> <sup>).</sup>
Theorem 3. ( Leibniz integral rule [56, p. 156]) _Let_ _g_ ( _u_ ) _and_ _h_ ( _u_ ) _be_ _continuously_ _differen-_
_tiable_ _functions_ _of_ _u_ _for_ _u_ 0 _< u < u_ 1 _._ _Let_ _f_ ( _u, t_ ) _and_ _∂f_ ( _u, t_ ) _/∂u_ _be_ _continuous_ _for_ _g_ ( _u_ ) _< t < h_ ( _u_ )
_and_ _u_ 0 _< u < u_ 1 _._ _Then,_ _for_ _u_ 0 _< u < u_ 1 _,_
_<u>∂</u>_
_∂u_
- _h_ ( _u_ )
_g_ ( _u_ )
_f_ ( _u, t_ ) d _t_ = _h_ <sup>_′_</sup> ( _u_ ) _f_ ( _u, h_ ( _u_ )) _−_ _g_ <sup>_′_</sup> ( _u_ ) _f_ ( _u, g_ ( _u_ )) +
- _h_ ( _u_ )
_g_ ( _u_ )
_<u>∂</u>_
_∂u_ <sup>_f_</sup> <sup>(</sup> <sup>_u, t_</sup> <sup>) d</sup> <sup>_t._</sup>
Lemma 9. _Let_ _f_ ( _u_ ) := (1 + 2 _u_ ) _e_ <sup>_−u_</sup> _for_ _u ∈_ R _and_ _g_ ( _u, v_ ) := _f_ ( _u_ ) _−_ _f_ ( _v_ ) _with_ _u < v._ _Then,_
- _g_ ( _u, v_ ) _>_ 0 _,_ if _u >_ 2 <sup><u>1</u></sup>
_g_ ( _u, v_ ) _>_ 0 _,_ if _u >_ 2 <sup><u>1</u></sup> <sup>_,_</sup>
_g_ ( _u, v_ ) _<_ 0 _,_ if _v_ _<_ 2 <sup><u>1</u></sup> <sup>_,_</sup>
2 <sup><u>1</u></sup> <sup>_,_</sup>
_Proof._ From Lemma 10, _f_ ( _u_ ) is a decreasing function of _u_, if _u_ _>_ <sup><u>1</u></sup> 2
_Proof._ From Lemma 10, _f_ ( _u_ ) is a decreasing function of _u_, if _u_ _>_ <sup><u>1</u></sup> 2 <sup>.</sup> <sup>Therefore,</sup> <sup>for</sup> <sup>_u_</sup> <sup>_<_</sup> <sup>_v_</sup> <sup>and</sup>
_u >_ <sup><u>1</u></sup> 2 <sup>,</sup> <sup>_f_</sup> <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_f_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0.</sup> <sup>Similarly,</sup> <sup>_f_</sup> <sup>(</sup> <sup>_v_</sup> <sup>) is an increasing function of</sup> <sup>_v_</sup> <sup>,</sup> <sup>if</sup> <sup>_v_</sup> <sup>_<_</sup> <sup><u>1</u></sup> 2 <sup>.</sup> <sup>Therefore,</sup> <sup>for</sup> <sup>_u < v_</sup>
_u >_ <sup><u>1</u></sup> 2 <sup>,</sup> <sup>_f_</sup> <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_f_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0.</sup> <sup>Similarly,</sup> <sup>_f_</sup> <sup>(</sup> <sup>_v_</sup> <sup>) is an increasing function of</sup> <sup>_v_</sup> <sup>,</sup> <sup>if</sup> <sup>_v_</sup> <sup>_<_</sup> <sup><u>1</u></sup> 2 <sup>.</sup> <sup>Therefore,</sup> <sup>for</sup> <sup>_u < v_</sup>
and _v_ _<_ <sup><u>1</u></sup> 2 <sup>,</sup> <sup>_f_</sup> <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_f_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>_<_</sup> <sup>0.</sup>
<sup><u>1</u></sup> 2 <sup>,</sup> <sup>_f_</sup> <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_f_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>_<_</sup> <sup>0.</sup>
Lemma 10. _Let_ _f_ ( _u_ ) := (1 + 2 _u_ ) _e_ <sup>_−u_</sup> _._ _Then,_
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ for _u <_ 2 <sup><u>1</u></sup>
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ for _u <_ 2 <sup><u>1</u></sup> <sup>_,_</sup>
_f_ <sup>_′_</sup> ( _u_ ) = 0 _,_ for _u_ = 2 <sup><u>1</u></sup> <sup>_,_</sup>
_f_ <sup>_′_</sup> ( _u_ ) = 0 _,_ for _u_ = 2 <sup><u>1</u></sup> <sup>_,_</sup>
_f_ <sup>_′_</sup> ( _u_ ) _<_ 0 _,_ for _u >_ 2 <sup><u>1</u></sup> <sup>_._</sup>
2 <sup><u>1</u></sup> <sup>_._</sup>
_Proof._ The proof is straightforward by showing that _f_ <sup>_′_</sup> ( _u_ ) = (1 _−_ 2 _u_ ) _e_ <sup>_−u_</sup> and noting that _e_ <sup>_−u_</sup> _>_
0.
8.6.2 Proof of Lemma 6
We follow the same approach to the proof of Lemma 6 in Sec. 8.6.1. An application of Lemma 7 by
setting _v_ _←_ 0, and _u_ _←_ _di_, for two settings of _α_, _i.e._, _α_ _←_ 2 _Ds_ +41 _D_ ( _t−ti_ ) <sup>and</sup> <sup>_α_</sup> <sup>_←_</sup> 2 _Ds_ +4 _D_ <u>1(</u> _t−ti−τi_ ) <sup>,</sup>
gives Eqs. (61) and (62). Since 2 _Ds_ + 4 _D_ ( _t −_ _ti −_ _τi_ ) _<_ 2 _Ds_ + 4 _D_ ( _t −_ _ti_ ), it is evident that
2 _Ds_ +4 _D_ ( _<u>it−ti−τi</u>_ ) _,_
_e_ <sup>_−_</sup>
2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) _> e_ <sup>_−_</sup> 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
_d_ <sup>2</sup>
hence, _∂d∂_ _i_ <sup>_ϕ_</sup> _i_ <sup>off</sup>
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>_<_</sup> 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
_i_ <sup>off</sup> _<_ 0 and _ϕ_ <sup>off</sup> _i_
<sup>off</sup> _i_ is a decreasing function of _di_, for all _di̸_ = 0.
We now prove the cases _(ii)_ and _(iii)_ . Since 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4 _D_ ( _<u>it−ti−τi</u>_ ) <sup>,</sup> <sup>an</sup> <sup>application</sup> <sup>of</sup>
Lemma 9 by setting _u ←_ 2 _Ds_ + _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ + _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>and</sup> <sup>_v_</sup> <sup>_←_</sup> 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
2 _Ds_ +4 _D_ ( _<u>it−ti−τi</u>_ ) <sup>completes</sup> <sup>the</sup> <sup>proof.</sup>
8.7 Diffusion distribution as a function of time
To understand the behaviour of the diffusion distribution as a function of time, we compute the first
and second derivatives of _ϕ_ <sup>on</sup> _i_ with respect to _t_ in the following Lemma. See the proof in Sec. 8.7.1
39
Lemma 11. _For_ _ϕ_ <sup>on</sup> _i_ _defined_ _in_ _Eq._ (13) _and_ _for_ _di_ := _∥_ _r_ _−_ _r_ _i∥_ 2 _̸_ = 0 _we_ _have_
_π_ (2 _Ds−_ +44 _<u>QD</u>_ <u>0(</u> _<u>Dt−ti</u>_ )) <sup>2</sup> <sup>_,_</sup> if _di_ = 0 _._
2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) _,_ if _di̸_ = 0 _,_
_<u>∂</u>_
_i_ =
_∂t_ <sup>_ϕ_</sup> <sup>on</sup>
_π_ (2 _Ds_ +4 _<u>QD</u>_ <u>0</u> ( _t−ti_ )) <sup>_e−_</sup>
_π_ (2 _Ds_ +4 _<u>QD</u>_ <u>0</u> ( _t−ti_ )) <sup>_,_</sup> if _di_ = 0 _._
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) - _,_ if _di̸_ = 0 _,_
(63)
(64)
2 _Ds_ +4 _Di_ ( _t−ti_ ) �1 _−_ _<u>d</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4
_d_ <sup>2</sup>
_<u>∂</u>_ <sup>2</sup>
_i_ =
<sup>on</sup>
_i_
_∂t_ <sup>2</sup> <sup>_ϕ_</sup> <sup>on</sup>
_π_ (2 _Ds−_ +44 _<u>QD</u>_ <u>0(</u> _<u>Dt−ti</u>_ )) <sup>2</sup> <sup>_e−_</sup>
_Moreover,_
_(i)_ _∂t∂_ <sup>_ϕ_</sup> _i_ <sup>on</sup>
_i_ <sup>on</sup> _>_ 0 _,_ _hence,_ _ϕ_ <sup>on</sup> _i_
<sup>on</sup> _i_ _is_ _an_ _increasing_ _function_ _of_ _t,_ _for_ _all_ _ti_ _≤_ _t ≤_ _τi,_
_<u>∂</u>_ <sup>2</sup>
_(ii)_ _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
<sup>on</sup> _i_ _has_ _an_ _inflection_ _point_ _at_ _time_ _t,_ _if_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ <sup>on</sup> = 0 _,_ _hence,_ _given_ _di,_ _ϕ_ <sup>on</sup> _i_
2 _Ds_ +4 _Di_ ( _t−ti_ ) <sup>= 1</sup> <sup>_,_</sup>
_<u>∂</u>_ <sup>2</sup>
_(iii)_ _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
<sup>on</sup> _i_ _is_ _a_ _strictly_ _concave_ _function_ _of_ _t,_ _if_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ <sup>on</sup> _<_ 0 _,_ _hence,_ _ϕ_ <sup>on</sup> _i_
2 _Ds_ +4 _Di_ ( _t−ti_ ) <sup>_<_</sup> <sup>1</sup> <sup>_,_</sup>
_<u>∂</u>_ <sup>2</sup>
_(iv)_ _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
<sup>on</sup> _i_ _is_ _a_ _strictly_ _convex_ _function_ _of_ _t,_ _if_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ <sup>on</sup> _>_ 0 _,_ _hence,_ _ϕ_ <sup>on</sup> _i_
2 _Ds_ +4 _Di_ ( _t−ti_ ) <sup>_>_</sup> <sup>1</sup> <sup>_._</sup>
Similarly, following Lemma, proved in Sec. 8.7.2, which reports the first and second derivatives
of _ϕ_ <sup>off</sup> _i_ with respect to _t_ .
Lemma 12. _For_ _ϕ_ <sup>off</sup> _i_ _defined_ _in_ _Eq._ (14) _and_ _for_ _di_ := _∥_ _r_ _−_ _r_ _i∥_ 2 _̸_ = 0 _we_ _have_
_,_ if _di̸_ = 0 _,_
- _Ae_ <sup>_−A_</sup> _−_ _Be_ <sup>_−B_</sup> <sup>�</sup>
_<u>∂</u>_
_i_ =
_∂t_ <sup>_ϕ_</sup> <sup>off</sup>
_<u>∂</u>_
_i_
_∂t_ <sup>_ϕ_</sup> <sup>off</sup>
- _<u>Q</u>_ <u>0</u>
_πd_ <sup>2</sup> _i_
_π_ (2 _Ds_ +4 _D_ ( _t−−ti_ <u>4))(2</u> _<u>Q</u>_ <u>0</u> _DDτs_ +4 _<u>i</u>_ _D_ ( _t−ti−τi_ )) <sup>_,_</sup> if _di_ = 0 _._
_i_
_,_ if _di̸_ = 0 _,_
_<u>∂</u>_ <sup>2</sup>
_i_ =
<sup>off</sup>
_<u>−</u>_ <u>4</u> _<u>Q</u>_ <u>0</u>
_i_
- _A_ <sup>2</sup> (1 _−_ _A_ ) _e_ <sup>_−A_</sup> _−_ _B_ <sup>2</sup> (1 _−_ _B_ ) _e_ <sup>_−B_</sup> <sup>�</sup>
_i_
_∂t_ <sup>2</sup> <sup>_ϕ_</sup> <sup>off</sup>
<u>8</u> _<u>Q</u>_ <u>0</u> _<u>D</u>_ <sup>2</sup> <u>(2</u> _<u>Ds</u>_ <u>+4</u> _<u>D</u>_ <u>(</u> _<u>t−ti−τi</u>_ <u>))</u>
_π_ (2 _Ds_ +4 _D_ ( _t−ti_ )) <sup>2</sup> (2 _Ds_ +4 _D_ ( _t−ti−τi_ )) <sup>2</sup> <sup>_,_</sup> if _di_ = 0 _._
_πd_ <sup>4</sup> _i_
_where_
_Moreover,_
_A_ := _<u>d</u>_ <sup>2</sup> _<u>i</u>_
_<u>d</u>_ <sup>2</sup> _<u>i</u>_ and _B_ := _<u>d</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ + 4 _D_ ( _t −_ _ti_ ) 2 _Ds_ + 4 _D_ ( _t_
2 _Ds_ + 4 _D_ ( _<u>it −</u>_ _ti −_ _τi_ ) <sup>_._</sup>
_(i)_ _∂t∂_ <sup>_ϕ_</sup> _i_ <sup>off</sup>
<sup>off</sup> _i_ _is_ _a_ _decreasing_ _function_ _of_ _t,_ _if_ 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
_i_ <sup>off</sup> _<_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
2 _Ds_ +4 _D_ ( _<u>it−ti−τi</u>_ ) <sup>_<_</sup> <sup>1</sup> <sup>_,_</sup>
_(ii)_ _∂t∂_ <sup>_ϕ_</sup> _i_ <sup>off</sup>
<sup>off</sup> _i_ _is_ _an_ _increasing_ _function_ _of_ _t,_ _if_ 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ <sup>off</sup> _>_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
2 _Ds_ +4 _Di_ ( _t−ti_ ) <sup>_>_</sup> <sup>1</sup> <sup>_,_</sup>
(65)
(66)
2 _and_
_<u>∂</u>_ <sup>2</sup>
_(iii)_ _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>off</sup>
_i_ <sup>off</sup> _<_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it−ti−τi</u>_ ) <sup>_<_</sup> <sup>2 +</sup> _√_
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>_>_</sup> <sup>2</sup> <sup>_−_</sup> _√_
<sup>off</sup> _i_ _is_ _a_ _strictly_ _concave_ _function_ _of_ _t,_ _if_ 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
_<u>d</u>_ <sup>2</sup> _<u>i</u>_
2 _,_
_<u>∂</u>_ <sup>2</sup>
_(iv)_ _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>off</sup>
_i_ <sup>off</sup> _>_ 0 _,_ _hence,_ _ϕ_ <sup>off</sup> _i_
2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it−ti−τi</u>_ ) <sup>_<_</sup> <sup>2</sup> <sup>_−_</sup> _√_
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) <sup>_>_</sup> <sup>2 +</sup> _√_
<sup>off</sup> _i_ _is_ _a_ _strictly_ _convex_ _function_ _of_ _t,_ _if_ 2 _Ds_ +4 _Dd_ ( <sup>2</sup> _<u>it</u>_
2 _or_
_<u>d</u>_ <sup>2</sup> _<u>i</u>_
2 _,_
40
True sign Estimated sign
Figure 15: Sign of the first (top) and second (bottom) derivatives of the diffusion distribution from a
single STEM electron probe with respect to time. Points with 0 _<_ _t −_ _ti_ _<_ _τi_ and _τi_ _<_ _t −_ _ti_ correspond to
the electron beam being, respectively, on and off. True sign of the first (top-left) and second (bottom-left) derivatives
are numerically computed from the equations provided by Lemmas 11 and 12. (Right) Estimated sign following the
sufficient conditions given by cases _(ii)_ and _(iii)_ of Lemmas 11 and 12. Ambiguous regions are the pairs of ( _di, t −_ _ti_ )
that are not covered by the sufficient conditions in Lemmas 11 and 12.
Lemma 11 states that when the electron beam is on, diffusion distribution is always an increasing
function of time, _i.e._, the concentration of diffusing substances increases, and reaches a maximum
value at the end of the dwell time. In contrast, when the electron beam is off depending on the ratios
given in _(i)_ and _(ii)_ in Lemma 12, diffusion distribution can increase or decrease as a function of
time. Cases _(iii)_ and _(iv)_ in Lemmas 11 and 12 give sufficient conditions for convexity or concavity
of the diffusion distribution. These conditions, when illustrated, as in Fig. 15 (left), correspond to
regions identified by parabolas. Regions in time and space that are not covered by Lemma 12,
_i.e._, ambiguous regions, are highlighted in gray in Fig. 15 (left). Fig. 15(top-right) illustrates the
true sign of the first derivative and Fig. 15(bottom-right) illustrates the true sign of the second
derivative, both numerically computed from Eq. (63) for 0 _< t_ _−_ _ti_ _< τi_ and from (66) for _τi_ _< t_ _−_ _ti_ .
41
8.7.1 Proof of Lemma 11
Using Lemma 8, we first note that
- _<u>d</u>_ <sup>2</sup> _<u>i</u>_
_<u>i</u>_
2 _Ds_ +4 _D_ ( _t−ti_ ) (67)
_<u>∂</u>_
_∂t_ <sup>_E_</sup> <sup>1</sup>
_<u>∂</u>_
_∂t_ <sup>ln</sup>
_<u>d</u>_ <sup>2</sup> _<u>i</u>_ - = <u>4</u> _<u>D</u>_ 2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_
2 _Ds_ + 4 _D_ ( _t −_ _ti_ ) 2 _Ds_ + 4 _D_ ( _t −_ _ti_ ) <sup>_e−_</sup>
- <u>2</u> _<u>Ds</u>_ <u>+ 4</u> _<u>D</u>_ <u>(</u> _<u>t −</u>_ _<u>ti</u>_ <u>)</u>
2 _Ds_
- = 2 _Ds_ + 44 _DD_ ( _t −_ _ti_ ) <sup>_._</sup> (68)
Using Eqs. (67) and (68) gives
_<u>∂</u>_
_i_ =
_∂t_ <sup>_ϕ_</sup> <sup>on</sup>
2 _Ds_ <u>2+4</u> _<u>Q</u>_ <u>0</u> _DD_ ( _ts−ti_ ) <sup>_,_</sup> if _di_ = 0 _._
2 _Ds_ <u>2+4</u> _<u>Q</u>_ <u>0</u> _DD_ ( _ts−ti_ ) <sup>_e−_</sup> 2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) _,_ if _di̸_ = 0 _,_
2 _Ds_ <u>2+4</u> _<u>Q</u>_ <u>0</u> _DD_ ( _ts−ti_ ) <sup>_e−_</sup> 2 _Ds_ +4 _dD_ <sup>2</sup> _<u>i</u>_
(69)
It is evident that _∂t_ <sup>_<u>∂</u>_</sup>
_i_ <sup>on</sup> _>_ 0. From Eq. (69), the second derivative of _ϕ_ <sup>on</sup> _i_
<sup>on</sup> _i_ with respect to _t_ reads
_∂t_ <sup>_<u>∂</u>_</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_ ( _t−ti_ ) - _,_ if _di̸_ = 0 _,_
(70)
2 _Ds_ +4 _Di_ ( _t−ti_ ) �1 _−_ _<u>d</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ +4
_d_ <sup>2</sup>
_<u>∂</u>_ <sup>2</sup>
_i_ =
<sup>on</sup>
_i_
_∂t_ <sup>2</sup> <sup>_ϕ_</sup> <sup>on</sup>
(2 _D−s_ +48 _<u>QD</u>_ <u>0</u> _<u>D</u>_ ( _ts−Dti_ )) <sup>2</sup> <sup>_e−_</sup>
(2 _D−s_ +48 _<u>QD</u>_ <u>0</u> _<u>D</u>_ ( _ts−Dti_ )) <sup>2</sup> <sup>_,_</sup> if _di_ = 0 _._
_i_ <sup>on</sup> _<_ 0 for 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_i_ <sup>on</sup> _>_ 0 for 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_<u>∂</u>_ <sup>2</sup>
It is also evident that _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
_<u>d</u>_ <sup>2</sup> _<u>i</u>_ _<u>∂</u>_ <sup>2</sup>
2 _Ds_ +4 _D_ ( _t−ti_ ) <sup>_<_</sup> <sup>1</sup> <sup>and</sup> _∂t_ <sup>2</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
2 _Ds_ +4 _Di_ ( _t−ti_ ) <sup>_>_</sup> <sup>1.</sup>
Moreover, _∂t_ <sup>_<u>∂</u>_</sup> <sup>2</sup>
_i_ <sup>on</sup> = 0, if 2 _Ds_ +4 _<u>dD</u>_ <sup>2</sup> _<u>i</u>_
_∂t_ <sup>_<u>∂</u>_</sup> <sup>22</sup> <sup>_ϕ_</sup> _i_ <sup>on</sup>
2 _Ds_ +4 _Di_ ( _t−ti_ ) <sup>= 1.</sup>
8.7.2 Proof of Lemma 12
We first note that
_<u>∂</u>_
_∂t_ <sup>ln</sup>
- <u>2</u> _<u>Ds</u>_ <u>+ 4</u> _<u>D</u>_ <u>(</u> _<u>t −</u>_ _<u>ti</u>_ <u>)</u> - = _<u>−</u>_ <u>16</u> _<u>D</u>_ <sup>2</sup> _<u>τi</u>_ (71)
2 _Ds_ + 4 _D_ ( _t −_ _ti −_ _τi_ ) (2 _Ds_ + 4 _D_ ( _t −_ _ti_ )) (2 _Ds_ + 4 _D_ ( _t −_ _ti −_ _τi_ )) <sup>_._</sup>
Using Eqs. (67) and (71) gives
_<u>∂</u>_
_i_ =
_∂t_ <sup>_ϕ_</sup> <sup>off</sup>
(2 _Ds_ +4 _D_ ( _t−−t_ <u>8</u> _i_ ))(2 _<u>Q</u>_ <u>0</u> _<u>DDssDτ</u>_ +4 _<u>iD</u>_ ( _t−ti−τi_ )) <sup>_,_</sup> if _di_ = 0 _,_
(72)
- <u>2</u> _<u>Q</u>_ <u>0</u> _<u>Ds</u>_
_d_ <sup>2</sup> _i_
- _Ae_ <sup>_−A_</sup> _−_ _Be_ <sup>_−B_</sup> <sup>�</sup> _,_ if _di̸_ = 0 _,_
_i_
where
_A_ := _<u>d</u>_ <sup>2</sup> _<u>i</u>_
_<u>d</u>_ <sup>2</sup> _<u>i</u>_ and _B_ := _<u>d</u>_ <sup>2</sup> _<u>i</u>_
2 _Ds_ + 4 _D_ ( _t −_ _ti_ ) 2 _Ds_ + 4 _D_ ( _t_
2 _Ds_ + 4 _D_ ( _ti −_ _ti −_ _τi_ ) <sup>_._</sup>
Since 2 _Ds_ +4 _D_ ( _t_ _−_ _ti −_ _τi_ ) _<_ 2 _Ds_ +4 _D_ ( _t_ _−_ _ti_ ), then _A < B_ . An application of Lemma 13 by setting
_u ←_ _A_ and _v_ _←_ _B_ proves cases _(i)_ and _(ii)_ .
From Eq. (72), the second derivative of _ϕ_ <sup>off</sup> _i_ with respect to _t_ reads
_,_ if _di̸_ = 0 _,_
(73)
_<u>∂</u>_ <sup>2</sup>
_i_ =
<sup>on</sup>
_<u>−</u>_ <u>8</u> _<u>Q</u>_ <u>0</u> _<u>Ds</u>_
_i_
- _A_ <sup>2</sup> (1 _−_ _A_ ) _e_ <sup>_−A_</sup> _−_ _B_ <sup>2</sup> (1 _−_ _B_ ) _e_ <sup>_−B_</sup> <sup>�</sup>
_i_
_∂t_ <sup>2</sup> <sup>_ϕ_</sup> <sup>on</sup>
<u>16</u> _<u>Q</u>_ <u>0</u> _<u>DsD</u>_ <sup>2</sup> <u>(2</u> _<u>Ds</u>_ <u>+4</u> _<u>D</u>_ <u>(</u> _<u>t−ti−τi</u>_ <u>))</u>
(2 _Ds_ +4 _D_ ( _t−ti_ )) <sup>2</sup> (2 _Ds_ +4 _D_ ( _t−ti−τi_ )) <sup>2</sup> <sup>_,_</sup> if _di_ = 0 _._
_d_ <sup>4</sup> _i_
Since _A < B_, an application of Lemma 15 by setting _u ←_ _A_ and _v_ _←_ _B_ proves the cases _(iii)_ and
_(iv)_ .
42
Lemma 13. _Let_ _f_ ( _u_ ) := _ue_ <sup>_−u_</sup> _for_ _u ∈_ R _and_ _g_ ( _u, v_ ) := _f_ ( _u_ ) _−_ _f_ ( _v_ ) _with_ _u < v._ _Then,_
_g_ ( _u, v_ ) _>_ 0 _,_ if _u >_ 1 _,_
_g_ ( _u, v_ ) _<_ 0 _,_ if _v_ _<_ 1 _,_
_Proof._ From Lemma 14, _f_ ( _u_ ) is a decreasing function of _u_, if _u_ _>_ 1. Therefore, for _u_ _<_ _v_ and
_u >_ 1, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _>_ 0. Similarly, _f_ ( _v_ ) is an increasing function of _v_, if _v_ _<_ 1. Therefore, for _u < v_
and _v_ _<_ 1, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _<_ 0.
Lemma 14. _Let_ _f_ ( _u_ ) := _ue_ <sup>_−u_</sup> _._ _Then,_
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ for _u <_ 1 _,_
_f_ <sup>_′_</sup> ( _u_ ) = 0 _,_ for _u_ = 1 _,_
_f_ <sup>_′_</sup> ( _u_ ) _<_ 0 _,_ for _u >_ 1 _._
_Proof._ The proof is straightforward by showing that _f_ <sup>_′_</sup> ( _u_ ) = (1 _−u_ ) _e_ <sup>_−u_</sup> and noting that _e_ <sup>_−u_</sup> _>_ 0.
Lemma 15. _Let_ _f_ ( _u_ ) := _u_ <sup>2</sup> (1 _−_ _u_ ) _e_ <sup>_−u_</sup> _for_ _u ∈_ R _and_ _g_ ( _u, v_ ) := _f_ ( _u_ ) _−_ _f_ ( _v_ ) _with_ _u < v._ _Then,_
_√_
_√_
_g_ ( _u, v_ ) _>_ 0 _,_ if _v_ _<_ 2 _−_
_√_
2 or _u >_ 2 +
_√_
2 and _u >_ 2 _−_
_g_ ( _u, v_ ) _>_ 0 _,_ if _v_ _<_ 2 _−_ 2 or _u >_ 2 + 2 _,_
_√_ _√_
_g_ ( _u, v_ ) _<_ 0 _,_ if _v_ _<_ 2 + 2 and _u >_ 2 _−_
_Proof._ From Lemma 16, _f_ ( _u_ ) is a decreasing function of _u_, if _u ∈_ (2 _−_
_√_ _√_
_Proof._ From Lemma 16, _f_ ( _u_ ) is a decreasing function of _u_, if _u ∈_ (2 _−_ 2 _,_ 2 + 2). Therefore, for
_√_ _√_
_u_ _<_ _v_, _v_ _<_ 2 + 2 <u>and</u> _u_ _>_ 2 _<u>−</u>_ 2, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _>_ 0. Similarly, _f_ ( _v_ ) is an increasing function
_√_ _√_ _√_
2 _,_
_√_
_√_
2 _,_ 2 +
_√_
16, _f_ ( _u_ ) is a d
_√_
2 <u>and</u> _u_ _>_ 2 _<u>−</u>_
_√_ _√_
_u_ _<_ _v_, _v_ _<_ 2 + 2 <u>and</u> _u_ _>_ 2 _<u>−</u>_ 2, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _>_ 0. Similarly, _f_ ( _v_ ) is an increasing function
_√_ _√_ _√_
of _v_, if _v_ _<u>∈</u>_ (0 _,_ 2 _−_ 2) _∪_ (2 + 2 _,_ + _∞_ ). Therefore, for _u_ _<_ _v_, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _<_ 0, if _v_ _<_ 2 _−_ 2 or
_√_
2, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _>_ 0. Similarly, _f_ ( _v_ ) is an increasing fun
_√_
2 _,_ + _∞_ ). Therefore, for _u_ _<_ _v_, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _<_ 0, if _v_ _<_ 2 _−_
2
_√_
<u>and</u> _u_ _>_ 2
_√_
2) _∪_ (2 +
of _v_, if _v_ _<u>∈</u>_ (0 _,_ 2 _−_ 2) _∪_ (2 + 2 _,_ + _∞_ ). Therefore, for _u_ _<_ _v_, _f_ ( _u_ ) _−_ _f_ ( _v_ ) _<_ 0, if _v_ _<_ 2 _−_ 2 or
_√_
_u >_ 2 + 2.
_√_
2.
Lemma 16. _Let_ _f_ ( _u_ ) := _u_ <sup>2</sup> (1 _−_ _u_ ) _e_ <sup>_−u_</sup> _._ _Then,_
_√_
2) _∪_ (2 +
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ for _u ∈_ ( _−∞,_ 2 _−_
_√_
_f_ <sup>_′_</sup> ( _u_ ) _>_ 0 _,_ for _u ∈_ ( _−∞,_ 2 _−_ 2) _∪_ (2 + 2 _,_ + _∞_ ) _,_
_√_ _√_
_f_ <sup>_′_</sup> ( _u_ ) = 0 _,_ for _u ∈{_ 0 _,_ 2 + 2 _,_ 2 + 2 _},_
_√_
_f_ <sup>_′_</sup> ( _u_ ) = 0 _,_ for _u ∈{_ 0 _,_ 2 + 2 _,_ 2 + 2 _},_
_√_ _√_
_f_ <sup>_′_</sup> ( _u_ ) _<_ 0 _,_ for _u ∈_ (2 _−_ 2 _,_ 2 + 2) _._
_√_
2 _,_ 2 +
2) _._
_√_
_√_
2 _,_ 2 +
_√_
2 _,_ 2 +
2 _}_ .
_Proof._ We note that _f_ <sup>_′_</sup> ( _u_ ) = _u_ ( _u_ <sup>2</sup> _−_ 4 _u_ + 2) _e_ <sup>_−u_</sup> and _f_ <sup>_′_</sup> ( _u_ ) = 0 for _u ∈{_ 0 _,_ 2 _−_
8.8 Proof of Theorem 1
_√_
Since _∀_ _r_ _,_ Λ( _r_ ; _λ_ ) _≥_ 0 _,_ we note that Λ( _λ_ ) = - Λ( _r_ ; _λ_ ) d _r_ = 0 if and only _∀_ _r_ _,_ Λ( _r_ ; _λ_ ) = 0.
We first prove Λ( _λ_ ) = 0 = _⇒_ _χ_ <sup>max</sup> _≤_ _λ_ by contradiction. Assume that _χ_ <sup>max</sup> _>_ _λ_, then, from
Eq. 31, there exists a point _r_ <sup>_∗_</sup> in space, such that _χ_ ( _r_ <sup>_∗_</sup> ) _> λ_ . Eq. (29) implies that there also exists
a point _t_ <sup>_∗_</sup> and a probe position _j_ <sup>_∗_</sup> such that _ψj_ <sup>_∗_</sup> ( _r_ <sup>_∗_</sup> _, t_ <sup>_∗_</sup> ) _>_ _λ_ . Therefore, since the function _g_ is
non-negative and _g_ ( _u_ ) _>_ 0 for _u >_ 0, _g_ ( _ψj_ <sup>_∗_</sup> ( _r_ <sup>_∗_</sup> _, t_ <sup>_∗_</sup> ) _−_ _λ_ ) _>_ 0. Moreover, since - _tt_ 1 _N_ <sup>_p_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) d</sup> <sup>_t′_</sup> <sup>_>_</sup> <sup>0</sup> <sup>for</sup>
Since _∀_ _r_ _,_ Λ( _r_ ; _λ_ ) _≥_ 0 _,_ we note that Λ( _λ_ ) =
- _tt_ 1 _N_ <sup>_p_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) d</sup> <sup>_t′_</sup> <sup>_>_</sup> <sup>0</sup> <sup>for</sup>
every location _r_, this implies that - _tN_
_t_ 1 <sup>_p_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_∗, t_</sup> <sup>) d</sup> <sup>_t′_</sup> <sup>_>_</sup> <sup>0.</sup> <sup>Therefore,</sup> <sup>Λ(</sup> <sup>_r_</sup> <sup>_∗_</sup> <sup>;</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0;</sup> <sup>hence,</sup> <sup>Λ(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0.</sup>
We finally prove _χ_ <sup>max</sup> _≤_ _λ_ = _⇒_ Λ( _λ_ ) = 0. If _χ_ <sup>max</sup> _≤_ _λ_, by definition in Eq. (31), for all spatial
locations _r_, we have _χ_ ( _r_ ) _≤_ _λ_ . Therefore, from the definition in Eq. (29), for all spatial and
temporal points _r_ and _t_ and for all electron probes _j_, _ψj_ ( _r_ _, t_ ) _≤_ _λ_ ; hence, _g_ ( _ψj_ ( _r_ _, t_ ) _−_ _λ_ ) = 0. This
implies that Λ( _r_ ; _λ_ ) = 0 for all _r_ .
every location _r_, this implies that
43
8.9 Computational complexity of diffusion distribution in STEM
In this section, we analyse the time complexity of computing (or simulating) the CDD in Eqs. (20)
and (33) for full STEM and compressive STEM, respectively. Numerical supports are performed
in Sec. 8.9.1. We emphasise that without the explicit formulation of a diffusion distribution in
Eq. (20), it is necessary to use numerical solvers for the PDE in Eq. (1), for instance, as in [32], for
which the time complexity is greater than computing the exponential integral in Eq. (15).
Full STEM. Let _R_ sim be a set of spatial points defined as the simulation grid. We assume
that _NT_ temporal grids are defined during every period of two consecutive electron probes, _i.e._,
_ti_ _≤_ _t ≤_ _ti_ +1. For a given time instance, the time complexity of every diffusion distribution _ϕi_ ( _r_ _, t_ )
in Eq. (19) scales as _O_ ( _|R_ sim _| · TE_ 1), where _TE_ 1 is the time complexity required to compute the
exponential integral function _E_ 1 in (13). Hence, the time complexity of every CDD is _ψj_ ( _r_ _, t_ ) is
_O_ ( _j ·_ _NT ·|R_ sim _|·_ _TE_ 1). Since <sup>�</sup> _j_ <sup>_N_</sup> =1 <sup>_j_</sup> <sup>=</sup> <sup>_N_</sup> <sup>(</sup> <sup>_N_</sup> <sup>+1)</sup> <sup>_/_</sup> <sup>2, the time complexity of diffusion in a full STEM</sup>
scan, with _N_ probe positions, is _O_ ( _N_ <sup>2</sup> _· NT_ _· |R_ sim _| · TE_ 1). Since _|R_ sim _|_ scales with the number
of probe positions _N_, the time complexity of diffusion with respect to only the number of probe
positions will be _O_ ( _N_ <sup>3</sup> ). Notice that the irreversible DID modeled in Eq. (23) shares the same time
complexity.
Compressive STEM. Following the same steps as above for compressive STEM with _M_ subsampled probe results in a time complexity of _O_ ( _M_ <sup>2</sup> _· NT_ _· |R_ sim _| · TE_ 1). Therefore, the simulation
of CDD of compressive STEM is computationally more tractable.
Methods for reducing time complexity of diffusion distribution in STEM. Although
our explicit formulation of diffusion has orders of magnitude lower time complexity compared to approaches using PDE solvers, its application for large-scale, high-resolution, and accurate numerical
analysis is limited. In the following, we provide two approaches to reduce computational time, albeit at the cost of reduced accuracy. Therefore in a subsequent section we describe approximations
of the CDD in STEM.
_K_ -Nearest Probes ( _K_ -NP). We assume that when an electron probe is activated, only a
subset of previous probes have contribution to the CDD and that the diffusion distributions of the
other electron probe positions are negligible. From Eq. (20), let _Nj_ with cardinality _|Nj|_ = _K_ be
the set of _K_ -nearest neighbor probes to the _j_ -th electron probe position. Note that definition of
a distance function identifying the nearest neighbor is arbitrary and can be based on, Euclidean,
Manhattan, or Chebyshev distances [57]. Therefore, the CDD can be written as
_ψj_ ( _r_ _, t_ ) = _ψj_ <sup>_K−_</sup> <sup>NP</sup>
_j_ <sup>_K−_</sup> <sup>NP</sup> ( _r_ _, t_ ) + _ϵ_ <sup>_K_</sup> _j_ <sup>_−_</sup> <sup>NP</sup>
<sup>_K_</sup> _j_ <sup>_−_</sup> <sup>NP</sup> ( _r_ _, t_ ) _,_ (74)
where
_ψj_ <sup>_K−_</sup> <sup>NP</sup> ( _r_ _, t_ ) := _ϕj_ ( _r_ _, t_ ) +
_i∈Nj_
_ϕi_ ( _r_ _, t_ ) (75)
is the _K_ -NP approximation of the CDD and _ϵj_ <sup>_K−_</sup> <sup>NP</sup>
is the _K_ -NP approximation of the CDD and _ϵj_ <sup>_K−_</sup> <sup>NP</sup> is the corresponding approximation error.
Following the same steps as above, the time complexity of every _ψj_ ( _r_ _, t_ ) with a _K_ -NP approximation
is _O_ (min( _j, K_ ) _·_ _NT ·|R_ sim _|·_ _TE_ 1). Since <sup>�</sup> _j_ <sup>_N_</sup> =1 <sup>min(</sup> <sup>_j, K_</sup> <sup>) =</sup> <sup>_K_</sup> <sup>(</sup> <sup>_K_</sup> <sup>+1)</sup> <sup>_/_</sup> <sup>2+</sup> <sup>_K_</sup> <sup>(</sup> <sup>_N −_</sup> <sup>_K_</sup> <sup>), the full STEM</sup>
_j_ <sup>_N_</sup> =1 <sup>min(</sup> <sup>_j, K_</sup> <sup>) =</sup> <sup>_K_</sup> <sup>(</sup> <sup>_K_</sup> <sup>+1)</sup> <sup>_/_</sup> <sup>2+</sup> <sup>_K_</sup> <sup>(</sup> <sup>_N −_</sup> <sup>_K_</sup> <sup>), the full STEM</sup>
44
scan with an _K_ -NP approximation will have a time complexity of _O_ ( _K_ ( _N −_ _K/_ 2) _·_ _NT ·|R_ sim _|·_ _TE_ 1)
which is more scalable compared to that of _ψN_ ( _r_ _, t_ ), _i.e._, _O_ ( _N_ <sup>2</sup> _· NT_ _· |R_ sim _| · TE_ 1). The number of
nearest probes hence _K_ controls the trade-off between computational time and accuracy.
Upper bound. For cases where the upper bound or the maximum value of the diffusion distribution is important, an upper bound on the diffusion distribution in Eq. (20) can be understood
by considering Cor. 1. Let _ψj_ <sup>UB</sup> ( _r_ _, t_ ) be an upper bound to the CDD _ψj_ ( _r_ _, t_ ). Using Cor. 1 and at
by considering Cor. 1. Let _ψj_ <sup>UB</sup> ( _r_ _, t_ ) be an upper bound to the CDD _ψj_ ( _r_ _, t_ ). Using Cor. 1 and at
a given time instance, the maximum value of the diffusion distribution happens at the activation
point, we replace the value of _ϕ_ <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>in</sup> <sup>Eq.</sup> <sup>(20)</sup> <sup>for</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i ≤_</sup> <sup>_j −_</sup> <sup>1</sup> <sup>with</sup> <sup>its</sup> <sup>maximum</sup> <sup>value</sup> <sup>at</sup> <sup>the</sup>
point, we replace the value of _ϕ_ <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>in</sup> <sup>Eq.</sup> <sup>(20)</sup> <sup>for</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i ≤_</sup> <sup>_j −_</sup> <sup>1</sup> <sup>with</sup> <sup>its</sup> <sup>maximum</sup> <sup>value</sup> <sup>at</sup> <sup>the</sup>
activation point; Hence,
_j_ <sup>UB</sup> ( _r_ _, t_ ) := _ϕ_ <sup>on</sup> _j_
_ψj_ ( _r_ _, t_ ) _≤_ _ψj_ <sup>UB</sup>
<sup>on</sup> _j_ <sup>(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>) +</sup>
_j−_ 1
_i_ =1
_ϕ_ <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_i, t_</sup> <sup>)</sup> <sup>_._</sup> (76)
For a given time instance, the time complexity of every _ϕ_ <sup>off</sup> _i_
For a given time instance, the time complexity of every _ϕ_ <sup>off</sup> _i_ <sup>(</sup> <sup>_r_</sup> <sup>_i, t_</sup> <sup>)</sup> <sup>in</sup> <sup>Eq.</sup> <sup>(76)</sup> <sup>is</sup> <sup>_O_</sup> <sup>(</sup> <sup>_TE_</sup> 1 <sup>).</sup> <sup>By</sup>
taking into account the _j_ number of terms in Eq. (76) and _NT_ the number of time instances, the
time complexity of the diffusion distribution _ψj_ <sup>UB</sup> ( _r_ _, t_ ) is _O_ (( _j_ + _|R_ sim _|_ ) _· NT_ _· TE_ 1). Therefore, the
time complexity of the diffusion distribution _ψj_ <sup>UB</sup> ( _r_ _, t_ ) is _O_ (( _j_ + _|R_ sim _|_ ) _· NT_ _· TE_ 1). Therefore, the
time complexity of diffusion in a full STEM scan using the upper bound _ψN_ <sup>UB(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>is</sup> <sup>_O_</sup> <sup>(</sup> <sup>_N_</sup> <sup>(</sup> <sup>_|R_</sup> <sup>sim</sup> <sup>_|_</sup> <sup>+</sup>
time complexity of diffusion in a full STEM scan using the upper bound _ψN_ <sup>UB(</sup> <sup>_r_</sup> <sup>_, t_</sup> <sup>)</sup> <sup>is</sup> <sup>_O_</sup> <sup>(</sup> <sup>_N_</sup> <sup>(</sup> <sup>_|R_</sup> <sup>sim</sup> <sup>_|_</sup> <sup>+</sup>
_N/_ 2) _· NT_ _· TE_ 1), which is lower than that of the diffusion distribution _ψN_ ( _r_ _, t_ ) by order _O_ ( _N_ ).
8.9.1 Numerical experiments for time complexity of diffusion distribution
To verify the time complexity analyses above, we have carried out several numerical tests using the
same values as for the baseline STEM scan, reported in Tab. 1, for _τ, Q_ 0 _, D, Ds,_ ∆ _p_ . The remaining
parameters are given below.
Fig. 16 shows the empirical and theoretical time complexities, with the latter given by _O_ ( _N_ <sup>2</sup> _·_
_NT_ _·_ _|R_ sim _|_ _·_ _TE_ 1) in Sec. 8.9. The elapsed times are averaged over 50 Monte-Carlo trials. In
Fig. 16-left, _|R_ sim _|_ is set as _N_, _i.e._, every scan step length is simulated with one pixel, _NT_ = 1,
and we have simulated systems with _N_ _∈{_ 1 _,_ 2 <sup>2</sup> _, · · ·_ _,_ 20 <sup>2</sup> _}_ . We observe that the elapsed time
is proportional to _N_ <sup>3</sup> . In Fig. 16-middle, we set _N_ = 2 <sup>2</sup> and _NT_ = 1 and simulate systems
with _|R_ sim _|_ _∈{_ 1 _,_ 10 <sup>2</sup> _, · · ·_ _,_ 100 <sup>2</sup> _}_ . In this case we observe that the elapsed time is proportional to
_|R_ sim _|_ . Finally, in Fig. 16-right, we set _N_ = 2 <sup>2</sup> and _|R_ sim _|_ = _N_ and simulate systems with _NT_ _∈_
_{_ 1 _,_ 10 _, · · ·_ _,_ 90 _}_, where we observe that the elapsed time is proportional to _NT_ . These simulations
confirm our theoretical bound _O_ ( _N_ <sup>2</sup> _· NT_ _· |R_ sim _| · TE_ 1).
The simulations have also been extended to two acceleration methods for simulating CDD.
Initially we set _N_ = 20 <sup>2</sup>, _NT_ = 1, and _|R_ sim _|_ = _N_ with results averaged over 50 Monte-Carlo
trials. From Sec. 8.9 the time complexity bounds of the _K−_ NP approximation and upper bound
approaches are respectively, _O_ ( _K_ ( _N −_ _K/_ 2) _· NT_ _· |R_ sim _| · TE_ 1) and _O_ ( _N_ ( _|R_ sim _|_ + _N/_ 2) _· NT_ _· TE_ 1).
Fig. 17 shows the time complexity of the _K_ -NP approximation with _K_ _∈{_ 10 _j_ + 1 _}_ <sup>_N_</sup> _j_ =0 <sup>2</sup> <sup>_/_</sup> <sup>10</sup> <sup>_−_</sup> <sup>1</sup> . It
is clear that the elapsed time is proportional to _K_ ( _N_ _−_ _K/_ 2), as expected. The relative errors of
this _K_ -NP approach are plotted in Fig. 17. As a specific example approximating the CDD using
only _K_ = 50% of the previous probes resulted in approximately a 2% relative error. The elapsed
time for simulating CDD in STEM using the upper bound approach is shown in Fig. 17, which is
proportional to _N_ ( _|R_ sim _|_ + _N/_ 2).
45
Figure 16: Time complexity of CDD in STEM. Number of probe positions (left); spatial resolution (middle);
and temporal resolution (right).
Figure 17: Time complexity of CDD in STEM using acceleration methods. Elapsed time for _K_ -nearest
neighbours approximation (left) with corresponding relative error (middle); Simulated elapsed time for the upper
bound of CDD using (76).
46