1 Introduction

Active matter has been of great interest due to its use in understanding a wide range of biological and artificial out-of-equilibrium systems [1, 2]. Many active systems studied consist of individual particles that consume energy locally and generate independent motion. Examples of these self-propelled particles include bacteria (e.g. E.coli [3]); their artificial counterparts, micron-sized catalytic swimmers [4, 5]; and molecular motors [6, 7].

Two quantities that characterize the motion of self-propelled particles is a propulsion force or velocity and most importantly, a persistence time for the direction of propulsion. On short time scales, their motion is ballistic-like, while on long time scales in free space, they undergo random walks and effectively diffuse, much like passive Brownian particles undergoing thermal diffusion. However, despite the similarities with passive particles on long time scales, it is known that a nonzero persistence time combined with interactions with an environment, for example obstacles and other particles, can lead to emergent out-of-equilibrium behaviors: liquid-gas phase separation in the absence of attractive interactions [8,9,10,11,12], preferential motion of bacteria in one direction through funnel-shaped gates [13], and bacteria-powered microscopic ratchets, gears, or motors [14, 15]. In addition, the persistent nature of active particles—and more generally, systems containing components driven by non-thermal noise—has noticeable effect on the dynamic response of those systems to mechanical and chemical perturbations [16,17,18,19,20,21,22,23,24,25,26]. What has been less studied is how the details of the diffusive and ballistic movements of passive and active particles within a larger system may affect that system’s response to external forcing.

In this paper, we present a solvable minimal model of a suspension of non-interacting passive or active particles driven periodically at the boundaries. We extract the response functions of the system, which relate the external forcing to the behavior of the suspension, and consider how the particles store and dissipate energy from the drive. We find that the diffusivities of the particles play an important role in how the suspension responds to forcing on different time-scales. We observe that on short time-scales, persistent particles indeed exhibit a response different from that of diffusive particles.

Fig. 1
figure 1

Model of the system. Left Large bulk of particles confined by a piston and the corresponding ramp potential (Eq. (1)). Right Particles trapped and transported between two co-moving pistons represented by a V-shaped potential (Eq. (2)). The red double arrows indicate movement of the pistons and potentials due to drive

2 Model

To model an externally forced suspension of passive or active particles, we consider two scenarios (Fig. 1): a uniform bulk of particles confined by a single piston and particles trapped between two pistons. To make this model analytically tractable, we restrict ourselves to 1D and describe the pistons as linear potentials. In the first case of a single piston, the confining potential is given by a ramp potential

$$\begin{aligned} \varPhi _{\mathrm{ramp}}(x)= {\left\{ \begin{array}{ll} 0, &{} x<0\\ fx, &{} x\ge 0 \end{array}\right. }. \end{aligned}$$
(1)

Here, f is the force experienced by the particles when they enter the ramp region. In the second case of two pistons, the confining potential is given by a V-shaped potential

$$\begin{aligned} \varPhi _{\mathrm{V-shaped}}(x)=f\left| x\right| . \end{aligned}$$
(2)

The presence of a bulk, or lack thereof, affects the response of these particles to an external time-dependent forcing. A time-dependent forcing can be realized by moving the positions of the pistons according to some protocol a(t), or mathematically, by replacing \(\varPhi (x)\) with \(\varPhi (x-a(t))\). In this paper, we consider a time-periodic drive given by \(a(t)=a\sin \omega t\). Note that we assume the pistons are completely permeable to fluid such that the drive does not generate fluid flow and the only change to the local density of particles is through direct interaction with the potentials.

The particles we study here are non-interacting passive particles with diffusivity D and run-and-tumble (RnT) particles with propulsion velocity \(\pm v\) and tumble rate \(\alpha \). The particles are assumed to be overdamped with mobility \(\mu \) in the static fluid. For passive particles, the density \(\rho (x,t)\) evolves according to the usual advection-diffusion equation

$$\begin{aligned} \frac{\partial \rho }{\partial t}=-\frac{\partial }{\partial x}\Big [{-\mu \varPhi '(x-a(t))\rho }\Big ]+D\frac{\partial ^2\rho }{\partial x^2} \end{aligned}$$
(3)

while for RnT particles in 1D, the densities \(\rho _{\pm }(x,t)\) of left (\(+\)) and right (−) moving particles evolve according to [27]

$$\begin{aligned} \frac{\partial \rho _{\pm }}{\partial t}=-\frac{\partial }{\partial x}\Big [(\pm v-\mu \varPhi '(x-a(t)))\rho _{\pm }\Big ]-\alpha \rho _{\pm }+\alpha \rho _{\mp }. \end{aligned}$$
(4)

The first term on the right-hand side is responsible for drift due to self-propulsion and external forces while the second and third terms capture the transitions or tumbles between the two propulsion directions. We are interested in how perturbations to the local density influences the response due to external forcing.

3 Calculation

3.1 Co-moving Frame and Dimensionless Parameters

It is more convenient to solve the model described in Sect. 2 in the rest frame of the pistons. Transforming to said frame using \(y=x-a\sin \omega t\) introduces a fictitious drift \(-\dot{a}(t)=-a\omega \cos \omega t\) (see Appendix A for the resulting PDEs).

We pick the characteristic time scale to be \(\tau _{\mathrm{drive}}=1/\omega \), the time scale of the drive. Consequently, we pick the characteristic length scale to be the root mean-squared displacement of the particles in that time \(\tau _{\mathrm{drive}}\).

\(\bullet \)For passive particles, that length scale is \(l_{\mathrm{diffusion}}=\sqrt{D\tau _{\mathrm{drive}}}=\sqrt{D/\omega }\). With these choices, Eq. (3) becomes

$$\begin{aligned} \frac{\partial \rho }{\partial \tilde{t}}=-\frac{\partial }{\partial \tilde{y}}\left[ \left( -\epsilon \cos \tilde{t}-\gamma \tilde{\varPhi }'(\tilde{y})\right) \rho \right] +\frac{\partial ^2\rho }{\partial \tilde{y}^2}, \end{aligned}$$
(5)

where the rescaled potential is \(\tilde{\varPhi }=\varPhi /f\). The dimensionless parameters are defined as

$$\begin{aligned} \epsilon =\sqrt{\frac{a^2\omega }{D}},\ \ \ \gamma =\sqrt{\frac{\mu ^2f^2}{\omega D}}. \end{aligned}$$
(6)

It is useful to note that \(\epsilon \) and \(\gamma \) can be written as the ratios \(a/l_{\mathrm{diffusion}}\) and \(l_{\mathrm{diffusion}}/l_{\mathrm{penetration}}\), respectively. Here, \(l_{\mathrm{penetration}}=D/\mu f\) (alternatively \(k_BT/f\) for thermal particles) is approximately the maximum distance a diffusing particle penetrates into a linear potential region.

We want to study the linear response of the system to external drive, that is, the response which is linear in the drive amplitude a. We claim that the correct way to form the dimensionless criteria for determining the “smallness” of the amplitude a is the above defined \(\epsilon =a\sqrt{\omega /D}=a/l_{\mathrm{diffusion}}\). This is clear physically because at small drive frequencies \(\omega \), even a relatively large drive amplitude a corresponds to a gentle drive, as the system remains very close to steady-state at all times. We therefore will perform expansions linear in \(\epsilon \ll 1\).

The parameter \(\gamma \) characterizes how far the particles climb up or down the confining potentials and hence how much of the potentials they can explore over each cycle. If \(\gamma \gg 1\) (\(l_{\mathrm{diffusion}}\gg l_{\mathrm{penetration}}\)), the particles have sufficient time to diffuse over the entirety of their confinement up to the penetration depth. We call this the “slow” drive regime. On the other hand, if \(\gamma \ll 1\) (\(l_{\mathrm{diffusion}}\ll l_{\mathrm{penetration}}\)), the particles can only explore a small portion of the potentials. We call this the “fast” drive regime.

\(\bullet \)For RnT particles, the effective diffusivity over long time scales is given by \(D=v^2/2\alpha \) and so we pick \(l_{\mathrm{diffusion}}=\sqrt{v^2/\alpha \omega }\). Eq. (4) becomes

$$\begin{aligned} \frac{\partial \rho _{\pm }}{\partial \tilde{t}}=-\frac{\partial }{\partial \tilde{y}}\left[ \left( \pm \gamma _{\omega }^{-1/2}-\epsilon \cos \tilde{t}-\gamma _f\gamma _{\omega }^{-1/2}\tilde{\varPhi }'(\tilde{y})\right) \rho _{\pm }\right] -\gamma _{\omega }^{-1}\rho _{\pm }+\gamma _{\omega }^{-1}\rho _{\mp }, \end{aligned}$$
(7)

where the parameters are defined as

$$\begin{aligned} \epsilon =\sqrt{\frac{a^2\omega \alpha }{v^2}},\ \ \ \gamma _{\omega }=\frac{\omega }{\alpha },\ \ \ \gamma _f=\frac{\mu f}{v}. \end{aligned}$$
(8)

Here, \(\epsilon \) plays the same physical role as that of the passive particles and as such, we consider corrections to linear order in \(\epsilon \). The key difference between passive and active particles is the introduction of a new time scale \(\alpha ^{-1}\). The parameter \(\gamma _{\omega }\) controls the number of times a RnT particle tumbles during one cycle. This introduces a new regime where the drive is faster than the tumbling (\(\omega \gg \alpha \)), which cannot happen for passive particles. Finally, the parameter \(\gamma _f\) compares the force the potential exerts on the particles to their propulsion force. We take \(\gamma _f<1\) so that the RnT particles are able to climb up the potentials.

It should be noted that the quantity \(\gamma _f\gamma _{\omega }^{-1/2}\) in Eq. (7) is analogous to \(\gamma \) for passive particles. This is easily seen by taking \(D\sim v^2/\alpha \). As we will see, this means that the ratio \(l_{\mathrm{diffusion}}/l_{\mathrm{penetration}}\) will be important in determining the behavior of RnT particles, in addition to \(\gamma _{\omega }\).

3.2 Mechanical Force and Linear Response Function

In linear response theory, we may ask how much extra force \(\varDelta F\) the pistons exert on the suspension of particles due to a particular motion a(t) of the pistons. Mathematically, we write

$$\begin{aligned} \varDelta F(t)=\int B(t-t')a(t')dt', \end{aligned}$$
(9)

where B(t) is the linear response function linking the perturbations to the responses. In frequency space, Eq. (9) can be written as \(\varDelta F_{\omega }=B_{\omega }a_{\omega }\), that is, a drive with frequency \(\omega \) leads to a response with the same frequency in the linear regime.

As discussed, we solve Eqs. (5) and (7) to linear order in \(\epsilon \). The details of the calculation for all cases can be found in Appendix A. For all of the cases, the resulting density can be written in the form

$$\begin{aligned} \rho (y,t)=\rho ^{(0)}(y)+2\epsilon \text {Re}\left\{ p(y)e^{i\omega t}\right\} , \end{aligned}$$
(10)

where \(\rho =\rho _++\rho _-\) for RnT particles and p(y) describes the position dependence of the perturbation to the density. The total mechanical force applied to the suspension can be computed as

$$\begin{aligned} F(t)=-\int _{-\infty }^{\infty }\varPhi '(y)\rho (y,t)dy=F^{(0)}+\varDelta F(t), \end{aligned}$$
(11)

where \(F^{(0)}\) is the force needed to keep the pistons stationary when there is no time-dependent drive. For the ramp potential in 1D, this is the usual ideal gas pressure/force \(F^{(0)}=-\rho _0D/\mu \), where \(D=v^2/2\alpha \) for RnT particles. For the V-shaped potential, \(F^{(0)}=0\). The extra force generated by the motion \(a(t)=a\sin \omega t\) in the pistons is

$$\begin{aligned} \varDelta F(t)=-2\epsilon \int _{-\infty }^{\infty }\varPhi '(y)\,\text {Re}\left\{ p(y)e^{i\omega t}\right\} dy. \end{aligned}$$
(12)

Using the relation \(\varDelta F_{\omega }=B_{\omega }a_{\omega }\) and after some algebra (Appendix A.5), we arrive at

$$\begin{aligned} B_{\omega }=-\frac{2i}{l_{\mathrm{diffusion}}}\int _{-\infty }^{\infty }\varPhi '(y)p(y)dy, \end{aligned}$$
(13)
Fig. 2
figure 2

Top Response function for V-shaped potential. Bottom Response function for ramp potential. Real (blue) and imaginary (orange) parts of the response function for passive (dots) and RnT (solid line) particles. For the rescaled frequency \(\tilde{\omega }=\gamma _{\omega }/2\gamma _f^2\), we show \(\gamma _f=0.1\) for the RnT particles. There are three regimes: \(\tilde{\omega }\ll 1\), \(1\ll \tilde{\omega }\ll \gamma _f^{-2}\), and \(\tilde{\omega }\gg \gamma _f^{-2}\)

\(\bullet \) We start with the results for the double pistons (V-shaped potential). For passive particles, the response function is

$$\begin{aligned} B_{\omega }=i\rho _0f\left( -2i-\gamma ^2+\gamma \sqrt{\gamma ^2+4i}\right) , \end{aligned}$$
(14)

where \(\gamma =\sqrt{\mu ^2f^2/\omega D}\) (Eq. (6)). For RnT particles, it is

$$\begin{aligned} B_{\omega }=i\rho _0f\left( -2i-\frac{2\gamma _f^2}{\gamma _{\omega }}+\frac{\sqrt{2}\gamma _f}{\gamma _{\omega }^{1/2}}\sqrt{\frac{2\gamma _f^2}{\gamma _{\omega }}+4i-2\gamma _{\omega }}\right) , \end{aligned}$$
(15)

where \(\gamma _{\omega }=\omega /\alpha \) and \(\gamma _f=\mu f/v\) (Eq. (8)).

Both cases can be compared in terms of a single rescaled frequency \(\tilde{\omega }=\gamma _{\omega }/2\gamma _f^2=\gamma ^{-2}\) (Fig. 2) by equating the diffusivities \(v^2/2\alpha \) and D. There are a total of three regimes. For passive particles, the two regimes \(\tilde{\omega }\ll 1\) and \(\tilde{\omega }\gg 1\) correspond to the aforementioned slow and fast drives. The key is that for RnT particles there is an additional region \(\tilde{\omega }\gg \gamma _f^{-2}\) or \(\omega \gg \alpha \), in which the pistons oscillate many times during a single tumble, that is, the particles appear persistent on the time scale of the drive. The region \(\omega \ll \alpha \) where the passive and active particles have similar behaviors is the passive limit of RnT particles, which can be obtained by taking \(v,\alpha \rightarrow \infty \) while holding \(v^2/2\alpha \) constant, or equivalently moving along the contours \(\gamma _{\omega }=2\tilde{\omega }\gamma _f^2\) for fixed \(\tilde{\omega }\) (Fig. 3).

Fig. 3
figure 3

Level sets of \(B_{\omega }\) for RnT particles in the V-shaped potential. The contours correspond to fixed \(\tilde{\omega }\). Top Real part. Bottom Imaginary part. There are two crossovers indicated by the black dashed lines: \(\gamma _{\omega }\sim \gamma _f^2\), which divides the slow and fast regimes; and \(\gamma _{\omega }\sim 1\), which divides the diffusive and persistent regimes

\(\bullet \) For the single piston (ramp potential), the response function for passive particles is

$$\begin{aligned} B_{\omega }=\frac{i^{3/2}\rho _0f}{2}\left( \gamma -\sqrt{\gamma ^2+4i}\right) . \end{aligned}$$
(16)

For RnT particles, the expression is rather cumbersome and is presented in Appendix A.6 (Eq. (105)). We see the same three regions as with the V-shaped potential. The key difference is the frequency dependence of the response functions in the slow drive regime \(\tilde{\omega }\ll 1\) (Fig. 2, right).

4 Discussion

To briefly summarize, we obtained the linear response functions of a system of passive particles (diffusivity D) or run-and-tumble particles (swim speed v and tumble rate \(\alpha \)) under external forcing by considering a suspension of these particles driven by a single piston or between two pistons, which we represented by linear potentials. In particular, we considered a periodic drive \(a(t)=a\sin \omega t\), from which we extracted the frequency dependence of the response of the mechanical force to the drive.

The real and imaginary parts of the response function \(B_{\omega }=B_{\omega }'+iB_{\omega }''\) are associated with the storage and dissipation of energy, respectively. Note that the excess mechanical force \(\varDelta F\) and the rate at which excess work \(\varDelta \dot{W}=\varDelta F\dot{a}\) is performed on the particles can be written as

$$\begin{aligned} \varDelta F(t)=aB_{\omega }'\sin \omega t+aB_{\omega }''\cos \omega t \end{aligned}$$
(17)

and

$$\begin{aligned} \varDelta \dot{W}=\frac{1}{2}a^2\omega B_{\omega }'\sin 2\omega t+\frac{1}{2}a^2\omega B_{\omega }''\left( 1+\cos 2\omega t\right) , \end{aligned}$$
(18)

where the first terms correspond to in-phase responses and the second terms, out-of-phase responses.

The work performed on the system by the drive is stored and dissipated by the particles. The first term on the right-hand side of Eq. (18), which is due to the in-phase “elastic”-like response, is related to storage. In this non-interacting ideal gas-like system, energy is stored when the particles climb up and spend time in the potentials. Even though no energy is stored on average over time, we identify the amplitude of the rate of storage as

$$\begin{aligned} \varDelta \dot{U}\approx \frac{1}{2}a^2\omega B_{\omega }'. \end{aligned}$$
(19)

The second term on the right-hand side of Eq. (18), which comes from the out-of-phase “viscous”-like response, is related to dissipation. As expected, this term has a non-zero average over each cycle since the dissipated energy cannot be returned. Thus the average rate of dissipation is

$$\begin{aligned} \langle \dot{Q}\rangle =\frac{1}{2}a^2\omega B_{\omega }''. \end{aligned}$$
(20)

There are three distinct regimes of response, depending on the driving frequency \(\omega \):

  1. (i)

    Slow drive—In this regime, we have \(\sqrt{D/\omega }\gg D/\mu f\) (for the case of active particles, \(D=v^2/2\alpha \)), that is, the region over which particles diffuse in a cycle is much greater than the penetration depth of the linear potentials. As a consequence, the particles can explore the confining potentials and effectively equilibrate with them.

  2. (ii)

    Fast drive, diffusive particles—In this regime, we instead have \(\sqrt{D/\omega }\ll D/\mu f\). In other words, the particles will not have sufficient time to diffuse sufficiently far in a cycle to explore the confinement and thus will not equilibrate with the potentials.

  3. (iii)

    Fast drive, persistent particles—In this regime, the drive is sufficiently fast \(\omega \gg \alpha \) such that the rate of driving is faster than the tumble rate of the particles and the particles appear persistent on the time scale of the drive.

Note that in the first two regimes (Fig. 2), the passive and active particles have similar behaviors. This is the passive limit for RnT particles, that is, for sufficiently slow drive, the RnT particles effectively behave as passive particles with diffusivity \(v^2/2\alpha \). As such, for these two regimes, we will consider particles with diffusivity D, keeping in mind that we can simply replace D with \(v^2/2\alpha \) for active particles.

We now illustrate our results with scaling arguments (Table 1).

Table 1 Average rate of dissipation \(\langle \dot{Q}\rangle \) and the characteristic rate of storage \(\varDelta \dot{U}\) for a drive \(a(t)=a\sin \omega t\)

4.1 Slow Drive

When the drive is sufficiently slow, the drive probes time scales greater than the relaxation time of diffusing particles in the linear potentials and we have \(l_{\mathrm{diffusion}}\gg l_{\mathrm{penetration}}\) (\(\gamma \gg 1\)). Note that in this regime, the system can be described by an adiabatic approximation. We start with the average rate at which particles dissipate work performed by the drive (Eq. (20)):

$$\begin{aligned}&\langle \dot{Q}\rangle _{\mathrm{V-shaped}}\sim \rho _0\frac{D}{\mu f}\frac{(a\omega )^2}{\mu }, \end{aligned}$$
(21)
$$\begin{aligned}&\langle \dot{Q}\rangle _{\mathrm{ramp}}\sim \rho _0\sqrt{\frac{D}{\omega }}\frac{(a\omega )^2}{\mu }. \end{aligned}$$
(22)

Before we continue, it is useful to interpret the dissipation rates for both the slow and fast drive regimes in terms of the particle current generated by the drive (Appendix B). The current can be written as \(J_x(y,t)=\rho (y,t)v_x(y,t)\), where \(v_x\) is the average drift velocity of the particles relative to the static fluid. The dissipation rate due to drag can then be computed as

$$\begin{aligned} \dot{Q}=\int _{-\infty }^{\infty }\rho \frac{v_x^2}{\mu }dy. \end{aligned}$$
(23)

Upon time averaging, we finally note that the average dissipation rate scales as

$$\begin{aligned} \langle \dot{Q}\rangle \sim \rho _0L\frac{V^2}{\mu }, \end{aligned}$$
(24)

where L is the characteristic decay length of the current, or \(\rho _0L\) is the number of particles contributing to dissipation, and V is the characteristic drift velocity of those particles.

For the double pistons (V-shaped potential), we find in terms of Eq. (24) \(L\sim D/\mu f\), the penetration depth, and \(V\sim a\omega \), the characteristic speed of the pistons. Since the particles can equilibrate with the potential, they on average drift with the same velocity as the pistons. Thus, we have the net transport of \(\rho _0D/\mu f\) particles (the total number of trapped particles) each with a dissipation rate of \((a\omega )^2/\mu \) (Eq. (21)).

For the single piston (ramp potential), particles are still transported with the piston. However, the key difference from the V-shaped potential is in the number of particles that contribute to dissipation. This is due to the presence of a bulk. Again using the language of Eq. (24), we have \(L\sim \sqrt{D/\omega }\), the diffusion distance. In the bulk, only particles within a diffusion distance of the piston will equilibrate with the potential. Particles farther than that remain unaffected by the movement of the pistons during a cycle. Thus, unlike with the V-shaped potential, \(\rho _0\sqrt{D/\omega }\) particles are instead transported each with dissipation rate \((a\omega )^2/\mu \) (Eq. (22)).

The storage rates given by Eq. (19) are

$$\begin{aligned}&\varDelta \dot{U}_{\mathrm{V-shaped}}\sim \rho _0\frac{D}{\mu f}\frac{(a\omega )^2}{\mu }\frac{1}{\gamma ^2}\ll \langle \dot{Q}\rangle _{\mathrm{V-shaped}}, \end{aligned}$$
(25)
$$\begin{aligned}&\varDelta \dot{U}_{\mathrm{ramp}}\sim \rho _0\sqrt{\frac{D}{\omega }}\frac{(a\omega )^2}{\mu }\sim \langle \dot{Q}\rangle _{\mathrm{ramp}}. \end{aligned}$$
(26)

For the double pistons (V-shaped potential), we expect that very little energy will be stored during a cycle. Indeed, we find that the storage rate is significantly smaller than the dissipation rate since \(\gamma \gg 1\). This is due to the symmetry of the potential. When the potential shifts positions slowly, depending on the direction, the potential energy on one side of the origin increases slightly from an influx of particles while the potential energy on the other side decreases by roughly an equal amount from an efflux of particles.

For the single piston (ramp potential), the situation is different since particles in the bulk do not have any potential energy; a flow in or out of the potential region will lead to a much more significant change in the potential energy of the system. In fact, we find that the storage rate is of order the dissipation rate. As the piston moves towards the bulk, the influx of particles into the potential region leads to an increase in potential energy while the efflux of particles from the bulk does nothing. Since the drive is slow, these particles have sufficient time to leave the region and dissipate any energy given to them.

Note that since the slow drive regime can be described by an adiabatic approximation, these results should hold for any confining potential.

4.2 Fast Drive, Diffusive Particles

When the pistons are driven quickly, the particles do not have sufficient time to relax in the potential regions since \(l_{\mathrm{diffusion}}\ll l_{\mathrm{penetration}}\) (\(\gamma \ll 1\)). In this case, the dissipation rates (Eq. (20)) go as

$$\begin{aligned} \langle \dot{Q}\rangle _{\mathrm{V-shaped}}\sim \langle \dot{Q}\rangle _{\mathrm{ramp}}\sim \rho _0\sqrt{\frac{D}{\omega }}\frac{(a\omega \gamma )^2}{\mu }. \end{aligned}$$
(27)

Here for both potentials, we find \(L\sim \sqrt{D/\omega }\) and \(V\sim a\omega \gamma \), which is much slower than the drive. It is not too surprising that the decay length scale of the current is the diffusion distance. For fast drive, particles farther than that distance from the origin will not see a change in their environment (they experience the same constant force \(\pm f\) throughout each cycle) and thus the density in those regions will roughly remain unaffected by the drive. However, particles within a diffusion distance of the origin will notice the shift in the potentials and begin to relax to a new steady-state density (Fig. 4). This relaxation of density near the origin generates the current.

To understand how the particular speed \(V\sim a\omega \gamma \) arises, note that the condition \(l_{\mathrm{diffusion}}\ll l_{\mathrm{penetration}}\) can be written as \(fl_{\mathrm{diffusion}}\ll D/\mu \) (\(\equiv k_BT_{\mathrm{eff}}\)). Therefore, the effect of the potentials is weak compared to that of diffusion, that is, the diffusive flux due to density gradients dominates over the advective flux due to the potentials. The density gradients of interest are those that occur over the region of size \(\sim l_{\mathrm{diffusion}}\) around the origin since only the density in that region evolves. In other words, by shifting the potential a distance a on time-scale \(\omega ^{-1}\), the density at the boundaries of the region bounded by \(\pm l_{\mathrm{diffusion}}\) is either increased or decreased by a fixed amount \(\delta \rho \) (Fig. 4). The unperturbed density is given by \(\rho (x)=\rho _0e^{-\mu f|x|/D}\). Shifting and taking the difference, we find for small a

$$\begin{aligned} \delta \rho =\rho (\pm l_{\mathrm{diffusion}})-\rho (\pm l_{\mathrm{diffusion}}-a)\approx \mp \frac{\rho _0a\mu f}{D}. \end{aligned}$$
(28)

Therefore, the diffusive current over this region can be computed as

$$\begin{aligned} J\sim D\frac{\delta \rho }{l_{\mathrm{diffusion}}}\sim \rho _0a\omega \gamma , \end{aligned}$$
(29)

from which we obtain \(V\sim a\omega \gamma \). Note that although \(\delta \rho \approx 0\) at \(-l_{\mathrm{diffusion}}\) for the case of the ramp potential (the bulk does not change very much), the density gradient still scales the same and we would still obtain the same characteristic drift speed.

Fig. 4
figure 4

Schematic of the density gradients that give rise to dissipation through diffusion for fast drive. If the drive were sufficiently slow, the original density (solid blue) would relax to the new shifted density (dashed blue). However, for fast drive, only particles within \(l_{\mathrm{diffusion}}\) of the origin will see a change in the environment and begin to relax through diffusion

The storage rates (Eq. (19)) go as

$$\begin{aligned} \varDelta \dot{U}_{\mathrm{V-shaped}}\sim \varDelta \dot{U}_{\mathrm{ramp}}\sim (\rho _0a)(fa)\omega . \end{aligned}$$
(30)

Note that since particles on average transport much slower than the pistons, we can treat them on average as stationary over a period. Thus, when a piston moves a distance a towards particles, \(\rho _0a\) particles are forced a distance of order a into the potential region. The potential energy increase per particle is then roughly fa. This happens at a rate \(\omega \) and so we obtain the same scaling.

4.3 Fast Drive, Persistent Particles

As we saw in the previous two regimes, there is little difference between the passive and active particles aside from a re-defined diffusion constant. This is due to the diffusive nature of the active particles on long time-scales. In this regime, however, the drive rate is larger than the tumbling rate (\(\omega \gg \alpha \)) and the active particles will be persistent on the time-scales of the drive. The dissipation rates (Eq. (20)) are given by

$$\begin{aligned} \langle \dot{Q}\rangle _{\mathrm{V-shaped}}\sim \langle \dot{Q}\rangle _{\mathrm{ramp}}\sim \rho _0\frac{a^2\mu f^2\alpha }{v}. \end{aligned}$$
(31)

If we compute the currents as we did for the slow and fast drive regimes for diffusive particles, we find that the dissipation through particle currents is

$$\begin{aligned} \langle \dot{Q}\rangle \sim \rho _0\frac{a^2\mu f^2\alpha }{v}\left( \frac{\omega }{\alpha }\right) ^2, \end{aligned}$$
(32)

which is different from the work the drive performs on the system. To illustrate the source of this discrepancy, consider a passive Brownian particle and an active swimmer, both acted on by an external force \(f_{ext }\). For the Brownian particle, we know that in addition to diffusion, it will on average drift with a speed \(v=\mu f_{\mathrm{ext}}\). The average work rate of the external force is \(\dot{w}_{\mathrm{ext}}=f_{\mathrm{ext}}v=\mu f_{\mathrm{ext}}^2=\dot{q}\), which is the rate of dissipation through friction. For a swimmer, on a time-scale shorter than the correlation time \(\alpha ^{-1}\), the drift velocity is \(v=\mu (f_p+f_{\mathrm{ext}})\), where \(f_p\) is the propulsion force, and the rate of dissipation is \(\dot{q}=(f_p+f_{\mathrm{ext}})v=\mu (f_p+f_{\mathrm{ext}})^2\). The change in the rate of dissipation from when there is no external force is \(\delta \dot{q}=\mu (f_p+f_{\mathrm{ext}})^2-\mu f_p^2=2\mu f_pf_{\mathrm{ext}}+\mu f_{\mathrm{ext}}^2\). Naively, we would attribute this extra dissipation to work performed by the external force; however, a quick calculation reveals that the work rate of the external force is given by \(\dot{w}_{\mathrm{ext}}=f_{\mathrm{ext}}v=\mu f_{\mathrm{ext}}(f_p+f_{\mathrm{ext}})\ne \dot{q}\). Note that the work rate performed by the swimmer propulsion is \(\dot{w}_p=\mu f_p(f_p+f_{\mathrm{ext}})\). Therefore, the dissipation for a swimmer not only accounts for the work performed by the external force, but also the effect of that external force on the motoring activity of the swimmer, that is, the external force changes the work rate performed by self-propulsion.

We should note that different physical situations are possible with regards to the interplay between external drive and internal motoring activity of the swimmers. We assumed above—as was natural in the context of our work—that the propulsion force \(f_p\) remains unaffected by the external drive. In other systems, it is possible, for instance, that the power output by a propelled motor, \(f_pv\), is a constant, in which case the propulsion force itself will have to be dependent on the external drive (since velocity depends on it). Various intermediate cases, between constant propulsion force and constant power output, are also possible. We do not analyze all these possibilities in this paper.

The storage rates (Eq. (19)) are given by

$$\begin{aligned} \varDelta \dot{U}_{\mathrm{V-shaped}}\sim \varDelta \dot{U}_{\mathrm{ramp}}\sim (\rho _0a)(fa)\omega . \end{aligned}$$
(33)

Not surprisingly, this scaling is the same as fast drive since the same reasoning applies, that is, moving a piston a distance a forces \(\rho _0a\) particles into the potential region and gives them a potential energy fa on a time scale \(\omega \). This is independent of whether these particles are passive or active.

4.4 Beyond Linear Potentials

In this work, we chose linear potentials for mathematical convenience. However, the three regimes analyzed above—slow drive, fast drive, and persistent particles—should be present for more general confining potentials, as the length scales, \(l_{\mathrm{diffusion}}\) and \(l_{\mathrm{penetration}}\), and time scales, \(\omega \) and \(\alpha \), are still important to the problem.

In the slow drive regime, the system can be described by an adiabatic approximation, meaning that the particles effectively transport with the moving potential.

  • For the case of two pistons, the dissipation should generalize to \(\langle \dot{Q}\rangle \sim \rho _0l_{\mathrm{penetration}}\frac{(a\omega )^2}{\mu }\), where \(l_{\mathrm{penetration}}\) is now the penetration depth of an arbitrary confining potential, which is independent of \(\omega \). The storage rate does not have a clear generalization, though it should still be much less than the dissipation rate.

  • For the case of a single piston, we found that the dissipation is dominated by the particles in the bulk within a diffusion distance of the piston. Therefore, no matter the shape of the confining potential, the dissipation will still be \(\langle \dot{Q}\rangle \sim \rho _0\sqrt{\frac{D}{\omega }}\frac{(a\omega )^2}{\mu }\). In this case, the storage rate should scale the same as the dissipation, as the particles from the bulk have enough time to dissipate the energy given to them.

In the fast drive regime, we do not expect our results for dissipation to hold as they relied on the idea that only particles within a diffusion distance of the origin experience the moving potential. Determining the precise form of the dissipation will require further investigation, which we do not perform here. We do, however, expect the storage rates to have the same frequency dependence since the potential energy gain per oscillation period should be independent of frequency if the particles are not given much time to diffuse, that is, the storage rate should still be linear in \(\omega \), with a coefficient that is of course dependent on the particular form of the confining potential.

In the limit of persistent particles, it is not immediately clear how the dissipation will change in a different confining potential. This will also require further investigation. The storage, however, will still be linear in \(\omega \) as discussed for the fast drive regime.

5 Concluding Remarks

To conclude, we examined the linear response of a system of passive or active (run-and-tumble) particles to a time-periodic drive. We found that the active suspension responds in a way similar to that of passive particles when the frequency of drive is smaller than the inverse persistence time of the active particles. At higher frequencies (larger than the inverse persistence time), however, the persistence of the active particles changes the response a great deal; in particular, we found that the dissipation rate of the active particles changes not only due to work performed by the drive but also due to the effect of the drive on the motoring activity of the particles, that is, the drive changes the work rate of the particles own self-propulsion.

The phenomena we studied here has an interesting analogy with a very old problem examined first by J. Fourier himself in his treatise from where Fourier transforms originate [28, 29]. In particular, Fourier considered the diffusion of heat through a medium due to temperature variations at the boundary; for example, the heating and cooling below ground as a result of temperature variations throughout the seasons. In our notation, he found that the temperature variations as a function of the depth went as

$$\begin{aligned} \delta T(y,t)=\delta T_0e^{\sqrt{i\frac{\omega }{D}}y+i\omega t}. \end{aligned}$$
(34)

The key feature is that the wavelength of the variations is the same as the decay length. For us, for example for the ramp potential (Eq. (59)), the density variations in the bulk due to a drive effectively at the boundaries (since the drive amplitude is much smaller than how far the particles diffuse in a single period) have the same form

$$\begin{aligned} \delta \rho (y,t)=\delta \rho _0e^{\sqrt{i\frac{\omega }{D}}y+i\omega t}. \end{aligned}$$
(35)

It is interesting to note that for active particles in the persistent limit (drive frequency larger than the inverse persistence time), the density variations (Eq. (89)) become

$$\begin{aligned} \delta \rho (y,t)=\delta \rho _0e^{\frac{\alpha }{v}y}e^{i\left( -\frac{\omega }{v}y+\omega t\right) }. \end{aligned}$$
(36)

where now the wavelength of the variations (swim distance in a cycle) is much shorter than the decay length (persistence length of the active particles).

Before we conclude this story, it is worth mentioning other works that similarly study the dynamical properties of systems (other than passive or active particles) in the presence of a fluctuating or oscillating components. Such works include the dynamical Casimir effect with fluctuating plates [30] and polymer translocation through an oscillating environment [31, 32].