In this proceeding, we present a simple algorithm to simulate a Brownian particle in an optical trap . We provide an implementation of this algorithm using MatLab®, because this language is widely employed in the science and engineering. All algorithms can also be translated straightforwardly in the freeware programming language SciLab .
The interest of these simulations is dual. On the one hand, it is interesting to simulate an optically trapped particle to gain insight into how an optical trap works; since optical traps have found a widespread set of applications in fields as diverse as, e.g., cooling of single atoms, colloidal physics and biophysics, it can be useful for many students to understand how these optical traps work in simple and inexpensive simulations. On the other hand, an optically trapped particle constitutes a simple example of a stochastic phenomenon whose evolution is determined by both stochastic (the Brownian motion) and deterministic (the optical forces) forcing terms and can, therefore, be used as a model system for more general stochastic phenomena.
where x(t) is the trajectory of the particle with respect to the trap center, m is the particle mass, γ is the friction exerted by the surrounding medium on the particle, k is the optical trap stiffness, kBT is the thermal energy unit, kB is the Boltzmann constant, T is the absolute temperature and W(t) is a Wiener process.
For microscopic particles immersed in a liquid, viscous forces are several orders of magnitude larger than inertial forces, i.e. the particle is in a low-Reynolds-number regime . The Reynolds number is the ratio between inertial and viscous forces acting on an object moving in a fluid. If the object has a characteristic dimension L and is moving at velocity ν through a fluid with viscosity η and density ρ, its Reynold number is Re = Lνρ/η. In the low-Reynold-number regime, i.e for Re < 1, the viscosity dominates over inertia. Considering, for example, an E. coli bacterium in swimming in water , L ≈ 1μm, ν ≈ 30μm/s, η = 0.001P as and ρ = 1000kg/m3, so that Re = 3e-5 ⪡ 1. One of the most striking aspect of low Reynolds number phenomena is that the speed of an object is solely determined by the forces acting on it at the moment; a good introduction to how is life at low Reynold numbers can be found in Ref. . In general, most optical manipulation experiments take place at low Reynolds numbers, the exceptions being experiments in fluids with very low viscosity such as air . Therefore, in Eq. (1) we can drop the inertial term obtaining:
where D is the Stokes-Einstein diffusion coefficient.
Eq. (2) is one of the simplest examples of a stochastic differential equation [7, 8]. In general, stochastic differential equations are obtained from ordinary differential equations adding a noise term, i.e. the Wiener process W(t). W(t) is characterized by the following properties:
1. the mean <W(t)> = 0 for all t;
2. <W(t)2> = 1 for each value t;
3. W(t1) and W(t2)) are independent of each other for t1 different from t2. Because of these properties, a white noise is not a standard function. In particular, W(t) is almost everywhere discontinuous and has infinite variation. In an intuitive picture, it can be seen as the continuous-time equivalent of a discrete sequence of independent random numbers.
In order to simulate Eq. (2) it is possible to employ a finite difference algorithm, where the continuous-time solution x(t) is approximated by a discrete time sequence xi evaluated at times ti = i Δt. This is in practice done by doing the following substitutions in Eq. (2) [1, 7]:
where wi is a sequence of Gaussian random numbers with the following properties:
Notice how these properties mimick the ones of the Wiener process given above.
By making the aforementioned substitutions in Eq. (2) one obtains the following finite difference equation:
which can now be solved numerically.
1D Simulation Code
This function implements Eq. (3) in one dimension. Inputs: number of samples N, timestep Dt, initial position x1, particle radius R, temperature T, fluid viscosity eta, and trap stiffness k. Outputs: particle position x in meters and time t in seconds. Figure 1 shows the result of this simulation.
3D Simulation Code
This function implements Eq. (3) in three dimensions. Inputs: number of samples N, timestep Dt, initial position x1 y1 z1, particle radius R, temperature T, fluid viscosity eta, and trap stiffness kx ky kz. Outputs: particle position x y z in meters and time t in seconds. Figure 2 shows the result of this simulation.
In the presence of diffusion gradients, which arise naturally, e.g., when a Brownian particle is trapped near another particle or near a surface, some additional correction are needed in order to account for a spurious drift [9, 10, 11, 12]. This spurious drift results from the fact that the Wiener process is multiplied by a function of the particle position and is needed to correct an indetermination inherently occurring in stochastic differential equations with multiplicative noise. How to deal with these cases is explained in Refs. [13, 14]. Similar considerations hold also in the case of diffusion gradients induced by, e.g., chemical gradients or temperature gradients [15, 16, 17].
FURTHER NUMERICAL EXPERIMENTS
Using the code provided in Section 4, it is possible to simulate an optically trapped particle under various conditions and verify, e.g., that the particle variance in the optical trap is inversely proportional to the trap stiffness . Furthermore, it can be interesting to apply these simulation techniques to simulate and study the behavior of a Brownian particle in more complex force fields: for example, a Brownian particle in the presence of external forces or torques [19, 20, 21, 22, 23, 24, 25, 26, 27, 28]. Also time-varying force fields can be considered, which leads to more complex phenomena, such as Kramers transitions , stochastic resonant damping  and stochastic resonance .
Nelson E., Dynamical Theories of Brownian Motion (Princeton University Press, Princeton, NJ, 1967).Google Scholar
Berg, H., E. coli in Motion (Springer Verlag, New York, NY, 2004).Google Scholar
Kloeden, P. E., and Platen, E., Numerical Solution of Stochastic Differential Equations (Springer, Heidelberg, 1999).Google Scholar
Ashkin, A., “Optical trapping and manipulation of neutral particles using lasers,” Proc. Natl. Acad. Sci. U.S.A. 94, 4853-4860 (1997).Google Scholar