1 Introduction

Chemotaxis describes a motility response in which a cell or organism steers itself according to the concentration gradient of a chemical orienteering signal, termed a chemoattractant (repellent) when movement is up (down) the gradient. At the level of a population, chemotaxis can lead to self-organisation, driving a dispersed population into aggregated groups. This process relies on self-reinforcement, for example a population in which each member secretes its own attractant. Such “autocrine signalling” allows attraction between near neighbours, leading to localised accumulations that steadily grow in size. Numerous examples of this collective organisation can be cited, spanning the natural world from microscopic to macroscopic: in microbiology, both bacteria and slime molds use chemotaxis to form multicellular aggregation mounds (Budrene and Berg 1991, 1995; Bonner 2009); during embryonic development, chemotactic self-organisation in the mesenchyme is a key component of hair and feather morphogenesis in the skin (Lin et al. 2009; Glover et al. 2017; Bailleul et al. 2019; Ho et al. 2019); during immune responses, activated neutrophils start to produce chemoattractants that recruit other immune cells (Afonso et al. 2012; Lämmermann et al. 2013; Glaser et al. 2021); in the animal world, marine invertebrates such as starfish (Hall et al. 2017) and sea cucumbers (Marquet et al. 2018) release water-borne factors to attract neighbours, a prelude to mass spawning. For further examples, we refer the reader to Painter (2019).

A large modelling literature has, naturally, emerged. At a population level, the majority of models rely on the partial differential equation (PDE) framework introduced by Keller and Segel (1970), and a “minimal” model can be formulated with straightforward functional forms and featuring a single (we assume cellular) population and its chemoattractant, see Fig. 1a. Following a non-dimensionalisation (see Appendix A), this minimal model is given by the following PDE system

$$\begin{aligned} {\left\{ \begin{array}{ll} \dfrac{\partial n}{\partial t}=\nabla \cdot \left( D \nabla n-\chi n \nabla s \right) ,\\ \dfrac{\partial s}{\partial t}=\nabla ^2 s + n - s, \end{array}\right. } \quad \textbf{x}\in \Omega . \end{aligned}$$
(1)

Here, the real, non-negative functions \(n \equiv n(\textbf{x},t)\) and \(s \equiv s(\textbf{x},t)\) represent, respectively, the density of cells and the concentration of chemoattractant at time \(t \in {\mathbb {R}}_{+}\) and at position \(\textbf{x} \in \Omega \). The set \(\Omega \) is an open and bounded subset of \({\mathbb {R}}^d\) with smooth boundary \(\partial \Omega \) and \(d \ge 1\) depending on the biological problem under study.

The population dynamics are governed by diffusion (modelling random movement) and chemotactic advection according to the gradient of the attractant, while the chemoattractant is produced by the population, decays and diffuses. For an initially dispersed (i.e. spatially uniform) population to aggregate requires that \(\chi > D\). This effectively stipulates that the positive feedback process in which a population secretes its own attractant must overcome the homogenising tendencies of diffusion. Models based on (1) have received significant interest for their patterning and mathematical properties, see the reviews in (Horstmann 2003; Hillen and Painter 2009; Bellomo et al. 2015; Painter 2019). Mathematical interest has particularly centred on the question of global existence or blow-up (singularity formation), where for the formulation (1) blow-up has been shown to occur in the biologically relevant case of \(d \ge 2\). While indicative of self-aggregation, the formation of singularities is problematic and artificial in the context of applications, where one naturally expects the growth of an aggregate to be curbed, for example due to lack of space. Consequently, various plausible “regularisations” have been proposed (for example see  Hillen and Painter 2009).

An implicit assumption underlying (1) and related models is phenotypic homogeneity of the cell population: members are assumed, as a first approximation, identical with regards to their ability to perform chemotaxis, grow, produce/secrete attractant, etc. This, however, ignores the typical phenotypic heterogeneity observed within populations: for example, a spectrum of phenotypes whereby population members express different behaviours to different degrees. Chemotactic heterogeneity has been shown for E. coli populations which, when subjected to an attractant-filled “T-maze” structure, spatially sort according to chemotactic ability (Salek et al. 2019). Performing chemotaxis, however, demands energy expenditure and the need to balance energy expenditure against energy intake leads to the natural conclusion that high activity in one area must be compensated by lower activity elsewhere, i.e. a trade-off (Keegstra et al. 2022). The negative relationship between chemotaxis and growth investment observed for bacteria (Ni et al. 2020) provide one such trade-off, but given that numerous functions demand significant energy – movement, growth, protein synthesis, internal molecule and organelle transport, signal transduction, etc. – a wide variety of trade-offs will be necessary (Keegstra et al. 2022).

Intra-population phenotypic heterogeneity can also arise through anti-cooperative behaviours, exemplified by “cheater” strains within the slime mold D. discoideum. These “social amoebae” (Bonner 2009) are famous for the multicellular phase to their lifecycle, starvation inducing auto-aggregation in response to the chemoattractant cAMP, ultimately manifesting in a differentiated fruiting body in which the majority of the population are preserved as “spores”, but at the cost of a sacrificed 20% in the supporting “stalk”. Cheater strains aim to minimise their stalk contribution, feasibly through a spectrum of strategies that include limiting or avoiding the energy-consuming production of cAMP necessary for aggregation (Shaulsky and Kessin 2007). Intra-population phenotypic heterogeneity also extends to large organisms, where the heterogeneity extends from natural variability to distinctly different sub-populations, for example males and females. In the context of chemotactic heterogeneity, for example, only male sea cucumbers release pheromone attractants during the aggregation leading to spawning (Marquet et al. 2018).

Motivated by the examples cited above, in this paper we address the following question: How does phenotypic heterogeneity impact on autoaggregation of a population? To this end, we consider a simple extension of the system (1) whereby the population is subdivided into distinct chemotactic and secreting phenotypes, with the possibility of switching between them. Following the formulation of the model (Sect. 2), we use linear stability analysis to derive conditions under which patterning is possible (Sect. 3), and carry out numerical simulations to determine the patterning properties (Sect. 4). We conclude with a discussion (Sect. 5), in the process proposing some future model extensions and speculating on the analytical properties of the model in the context of global existence and blow-up of solutions.

Fig. 1
figure 1

a Assumptions underlying the classical minimal autoaggregation model, whereby a population comprises identical members that are both chemosensitive and secrete the chemoattractant signal. b Assumptions underlying our binary phenotype model. Here the population is subdivided into distinct chemotactic and secreting phenotypes, with the possibility of switching between these two phenotypic states (Color figure online)

2 Model Formulation

We investigate an extension of the basic model (1) such that, based on the idea of a trade-off between chemotactic sensitivity and attractant secretion, a binary variable \(p \in \{0, 1\}\) is introduced to describe the cell phenotypic state: cells in the phenotypic state \(p=0\) produce the chemoattractant but have negligible chemotactic sensitivity, whereas cells in the phenotypic state \(p=1\) do not produce the chemoattractant but are chemotactically sensitive, see Fig. 1b. As a result, denoting the chemotactic sensitivity of cells in the phenotypic state p as \(\chi _{p}\) and the rate of attractant production of cells in the phenotypic state p as \(\alpha _{p}\), we assume

$$\begin{aligned} \chi _0 = 0, \quad \chi _1 \in {\mathbb {R}}^*_+, \quad \alpha _0 \in {\mathbb {R}}^*_+, \quad \alpha _1 = 0\,, \end{aligned}$$

where \({\mathbb {R}}^*_+\) is the set of positive real numbers.

The dynamics of the density of cells in the phenotypic state \(p \in \{0, 1\}\) at time \(t \ge 0\), \(n_p \equiv n_{p}(\textbf{x},t)\), and the local concentration of chemoattractant, \(s \equiv s(\textbf{x},t)\), are governed by the following system of partial differential equations (PDEs)

$$\begin{aligned} {\left\{ \begin{array}{ll} \dfrac{\partial n_0}{\partial t} =D_n\nabla ^2 n_0 -{\gamma _{01}(\rho ,s)} \, n_0 + {\gamma _{10}(\rho ,s)} \, n_1,\\ \dfrac{\partial n_1}{\partial t} =\nabla \cdot \left( D_n \nabla n_1-\chi _1 n_1 \nabla s \right) + {\gamma _{01}(\rho ,s)} \, n_0-{\gamma _{10}(\rho ,s)} \, n_1, \\ {\rho (\textbf{x},t):= n_0(\textbf{x},t) + n_1(\textbf{x},t)}, \\ \dfrac{\partial s}{\partial t} =D_s\nabla ^2 s + \alpha _0 \, n_0 - \eta \, s, \end{array}\right. } \quad \textbf{x}\in \Omega . \end{aligned}$$
(2)

Here, \(D_\text {n} \in {\mathbb {R}}^*_+\) is the rate of random motion of the cells, \(D_\text {s} \in {\mathbb {R}}^*_+\) is the diffusion rate of the chemoattractant, and \(\eta \in {\mathbb {R}}^*_+\) is the decay rate of the chemoattractant. Generally, eukaryotic cells utilise membrane extensions (pseudopods) to move, whereby the pseudopods anchor the cell to the substrate (or other cells) and permit traction. In the absence of signals promoting directed motion, these pseudopods typically extend in random directions (Van Haastert and Devreotes 2004) and the inherent random motion is often described using diffusion terms in mathematical models of chemotaxing populations (Painter 2019). To account for this, we have assumed that while cells in the phenotypic state \(p=0\) do not undergo directed motion, they still undergo a degree of random motion and are not completely stationary. For convenience, we assume this inherent degree of randomness is the same for the two phenotypic states, however this could be relaxed at the cost of an additional parameter. The additional kinetic terms on the right-hand sides of the PDEs (2) for \(n_0\) and \(n_1\) describe potential switching between phenotypes, that is, the functions

$$\begin{aligned} {\gamma _{01}}: {\mathbb {R}}^2_+ \rightarrow {\mathbb {R}}^*_+ \quad \text {and} \quad {\gamma _{10}}: {\mathbb {R}}^2_+ \rightarrow {\mathbb {R}}^*_+ \end{aligned}$$

represent the rate of switching from phenotypic state 0 (state 1) to phenotypic state 1 (state 0). A switching dependence according to the total cell density \(\rho \) could result from a cell changing phenotype following direct contacts at the cell surface, or mediated through a secreted quorum-sensing factor (Striednig and Hilbi 2022) that provides cell density information. To maximise the generality of the modelling framework, we do not make specific assumptions on these functions and will utilise classical forms based on Hill functions, thus ensuring that switching rates remain bounded.

For the analysis and numerical simulations that follow, we will assume zero-flux conditions at the boundary \(\partial \Omega \), i.e.

$$\begin{aligned} \mathbf{{u}}\cdot \nabla n_0=0, \quad \mathbf{{u}} \cdot \nabla n_1 = 0, \quad \mathbf{{u}} \cdot \nabla s=0,\quad \textbf{x}\in \partial \Omega \end{aligned}$$
(3)

where \(\mathbf{{u}}\) is the unit normal to \(\partial \Omega \) that points outwards from \(\Omega \). Moreover, initially we simply assume

$$\begin{aligned} n_0(\textbf{x},0)\ge 0, \quad n_1(\textbf{x},0)\ge 0, \quad s(\textbf{x},0) \ge 0 \quad \forall \, \textbf{x} \in \Omega . \end{aligned}$$

We remark that, when subject to boundary conditions (3), the PDE system (2) is such that the total cell number is conserved, i.e.

$$\begin{aligned} \int _{\Omega } \rho (\textbf{x},t)\,\textrm{d}{} \textbf{x} = \int _{\Omega } \rho (\textbf{x},0)\,\textrm{d}{} \textbf{x} \quad \forall \, t \ge 0. \end{aligned}$$
(4)

Thus, also the mean of the total cell density over \(\Omega \) is conserved. This leads to a further notable quantity \(\sigma \in {\mathbb {R}}_+\) with

$$\begin{aligned} \dfrac{1}{\vert \Omega \vert } \int _{\Omega } \rho (\textbf{x},0)\,\textrm{d}{} \textbf{x} =: \sigma , \end{aligned}$$
(5)

where \(\vert \Omega \vert \) is the measure of the set \(\Omega \).

2.1 Dimensionless Model

As detailed in Appendix B, the PDE system (2) subject to boundary conditions (3) can be rewritten in the following dimensionless form

$$\begin{aligned} {\left\{ \begin{array}{ll} \dfrac{\partial n_0}{\partial t} =D\nabla ^2 n_0 {{-\mu _{01}(\rho ,s) \, n_0 +\mu _{10}(\rho ,s) \, n_1,}}\\ \dfrac{\partial n_1}{\partial t} =D \nabla ^2 n_1 -\chi \nabla \cdot \left( n_1 \nabla s\right) {{+\mu _{01}(\rho ,s) \, n_0 -\mu _{10}(\rho ,s) \, n_1}}, \\ {\rho (\textbf{x},t):= n_0(\textbf{x},t) + n_1(\textbf{x},t)}, \\ \dfrac{\partial s}{\partial t} =\nabla ^2 s+ n_0 -s, \end{array}\right. } \quad \textbf{x}\in \Omega \end{aligned}$$
(6)

subject to boundary conditions (3).

Here, \(D \in {\mathbb {R}}^*_+\) is the dimensionless rate of random motion of the cells, \(\chi \in {\mathbb {R}}^*_+\) is the dimensionless chemotactic sensitivity, and

$$\begin{aligned} \mu _{01}: {\mathbb {R}}^2_+ \rightarrow {\mathbb {R}}^*_+ \quad \text {and} \quad \mu _{10}: {\mathbb {R}}^2_+ \rightarrow {\mathbb {R}}^*_+ \end{aligned}$$
(7)

are the dimensionless phenotypic switching functions. Furthermore, upon nondimensionalisation, the conservation relation (5) reduces to

$$\begin{aligned} \dfrac{1}{\vert \Omega \vert } \int _{\Omega } \rho (\textbf{x},0)\,\textrm{d}{} \textbf{x} = 1. \end{aligned}$$
(8)

2.2 Definitions of Phenotypic Switching Functions

The definitions of the the phenotypic switching functions, \(\mu _{01}\) and \(\mu _{10}\), considered here are listed in Table 1. Case A corresponds to environment-independent phenotypic switching, with an identical (constant) switching rate, \(\mu \in {\mathbb {R}}^*_+\), in either direction (i.e. from phenotypic state 0 to phenotypic state 1, and vice versa). Cases \(\hbox {B}_1\) and \(\hbox {B}_2\) each describe density-dependent phenotypic switching: in Case \(\hbox {B}_1\) the rate of switching from phenotypic state 0 (state 1) to phenotypic state 1 (state 0) increases (decreases) with the total cell density; in Case \(\hbox {B}_2\) these relationships are reversed. Cases \(\hbox {C}_1\) and \(\hbox {C}_2\) are equivalent to \(\hbox {B}_1\) and \(\hbox {B}_2\), but where the switching rate now depends on the attractant concentration. In Cases B and C, the parameter \(\mu \in {\mathbb {R}}^*_+\) denotes the maximum rate of switching, while the parameter \(q \in {\mathbb {R}}^*_+\) determines the steepness of the step for the Hill function forms that are used to define \(\mu _{01}\) and \(\mu _{10}\).

3 Linear Stability Analysis of Positive Uniform Steady States

In this section, we summarise the results of linear stability analysis of the positive uniform steady states of the PDE system (6), complemented with definition

$$\begin{aligned} {G(n_0,n_1,\rho ,s)}:= -\mu _{01}(\rho ,s) \, n_0 +\mu _{10}(\rho ,s) \, n_1, \end{aligned}$$
(9)

and subject to boundary conditions (3) and condition (8), which we carried out to identify conditions under which patterning (i.e. formation of cell aggregates) is possible. The parameter regimes that lead to aggregations of the cell population in the minimal model (1) have been identified through performing linear stability analysis at the homogeneous steady state of the system and this method can also be applied to investigate patterning in similar chemotactic systems. We explore the conditions under which diffusion/chemotaxis-driven patterning is possible, that is, that the positive uniform steady states of (6) are stable to small spatially homogeneous perturbations but unstable to small spatially nonhomogeneous perturbations due to the presence of diffusion/chemotaxis (Murray 2001).To distil the essence of the problem, we focus on the case where the spatial domain is a 1D interval of length \(L \in {\mathbb {R}}^*_+\), i.e. \(\Omega := (0, L)\) and \(\textbf{x} \equiv x\). Extension to higher spatial dimensions is straightforward, but adds little in terms of insight into the mechanisms that underpin the formation of cellular aggregates. The full details of the analysis are provided in Appendix C.

When phenotypic switching does not occur (i.e. when \(\mu _{01}\equiv 0\) and \(\mu _{10}\equiv 0\)), positive uniform steady states are of the form

$$\begin{aligned} (n^{\star }_0,n^{\star }_1,s^{\star }) = ({\overline{n}}, 1- {\overline{n}}, {\overline{n}}), \quad 0< {\overline{n}} = \dfrac{1}{\vert \Omega \vert } \int _{\Omega } n_0(x,0) \, \textrm{d}x<1, \end{aligned}$$
(10)

whereas when phenotypic switching occurs (i.e. when assumptions (7) hold) for all the definitions of the functions \(\mu _{01}\) and \(\mu _{10}\) given in Table 1, the unique positive uniform steady state is

$$\begin{aligned} (n^{\star }_0,n^{\star }_1,s^{\star }) = ({\overline{n}}, 1- {\overline{n}}, {\overline{n}}), \quad {\overline{n}} = 0.5. \end{aligned}$$
(11)

In the former case, the positive uniform steady states (10) cannot be driven unstable by small spatially nonhomogeneous perturbations and, therefore, cell aggregates are not expected to form.

On the other hand, in the latter case, we introduce the definitions

$$\begin{aligned} H_0:=\left[ \frac{\partial G}{\partial n_0}\right] _{ss}, \qquad H_1:=\left[ \frac{\partial G}{\partial n_1}\right] _{ss}, \qquad H_s:=\left[ \frac{\partial G}{\partial s}\right] _{ss}, \end{aligned}$$
(12)

where \([]_{ss}\) indicates that the functions inside the square brackets are evaluated at the steady state (11). Note that, under assumptions (7), we have \({H_1 - H_0 > 0}\). Furthermore, for the positive uniform steady state (11) to be stable with respect to small spatially homogeneous perturbations, we require that

$$\begin{aligned} H_1-H_0-H_s \ge 0. \end{aligned}$$
(13)

Then the conditions for the positive uniform steady state (11) to be driven unstable by small spatially nonhomogeneous perturbations (i.e. for the formation of cell aggregates to occur) depend on the form of the function \(H_1\) and the value of the parameter \(\chi \). In more detail:

  • If \(\mu _{01}\) and \(\mu _{10}\) are such that \(H_1<0\) then a sufficient condition for the formation of cell aggregates to occur is that

    $$\begin{aligned} \chi >\frac{D(H_{1}-H_{0}-H_{s})}{H_{1} (1-{\overline{n}})}, \end{aligned}$$
    (14)

    then the perturbation modes labelled by the indices \(m \in {\mathbb {N}}\) such that the following condition on the domain size is satisfied

    $$\begin{aligned} L>\sqrt{\frac{2D m^2 \pi ^2}{-\left[ (H_{1}-H_{0}) +D\right] +\sqrt{\left[ (H_{1}-H_{0}) -D\right] ^2+4 H_{1}\chi (1-{\overline{n}})+4H_{s}D}}}\nonumber \\ \end{aligned}$$
    (15)

    can grow into aggregation patterns.

  • On the other hand, if \(\mu _{01}\) and \(\mu _{10}\) are such that \(H_1>0\), the following condition holds

    $$\begin{aligned} \chi >\frac{\left[ (H_1-H_0-H_s)+(H_1-H_0)^2\right] (D+1)+(3D+1)(H_1-H_0)+2D}{(-H_1)(1-{\overline{n}})}.\nonumber \\ \end{aligned}$$
    (16)

    Note, in this case the conditions on domain size are less easily calculated, and have therefore been omitted.

Explicit forms of conditions (14)–(16) for the particular choices of the phenotypic switching functions considered here are summarised in Table 1.

Table 1 Different forms of phenotypic switching functions investigated along with the resulting conditions (14)-(15). Note that here \(\mu \in {\mathbb {R}}^*_+\) (i.e. assumptions (7) hold) and, according to (11), \({\overline{n}}=0.5\). Note that for the specific parameter setting used to produce the results shown in Fig. 4 for the phenotypic switching Case \(B_1\) we have that as q increases, the minimum domain length that permits patterns L also increases

Remark 1

Commenting on the constant switching function case (Case A in Table 1) for its simplicity, we note that the condition placed on the chemotactic sensitivity is more stringent than under the minimal formulation of the model (see Sect. 1). This is logical, given the division into separate chemotacting and secreting phenotypes: population members actively performing chemotaxis do not reinforce the signal until transitioning into the secreting phenotype, at which point they are no longer actively climbing the attractant gradient. Notably, the rate of phenotypic transition does not impact on the minimal chemotactic sensitivity condition, but it can alter whether self-aggregation will occur through the domain size condition: slow transitioning phenotypes will demand larger domains for pattern formation to occur. The above observations generally hold for the more complicated switching functions, although greater subtleties can arise.

4 Numerical Simulations

We carry out numerical simulations of the PDE system (6), complemented with definition (9) and subject to boundary conditions (3) and condition (8). We consider both one- and two-dimensional spatial domains. The full details of the initial conditions and the set-up of numerical simulations are provided in Appendix D. We investigate the various forms for the phenotypic switching functions, \(\mu _{01}\) and \(\mu _{10}\), listed in Table 1.

4.1 Autoaggregation in 1D

We first consider a one-dimensional setting, i.e. \(\textbf{x} \equiv x\), and study the patterns that emerge under each choice of the functions \(\mu _{01}\) and \(\mu _{10}\) defined in Table 1. The corresponding results of numerical simulations are summarised in Fig. 2, where the top row of panels displays the plot of the cell density \(n_1(x,t)\), for the same choice of initial conditions and parameter values, except for the functions \(\mu _{01}\) and \(\mu _{10}\) and the chemotactic sensitivity, \(\chi \). In the bottom row of panels we display the corresponding cell densities after a simulation time \(t=500\), i.e. \(n_0(x,500)\) and \(n_1(x,500)\). The value of \(\chi \) is chosen in each case so as to ensure that the conditions for pattern formation listed in Table 1 are satisfied.

In all cases we observe the formation of cell density aggregations, where the height and width of peaks varies with the choice of phenotypic switching functions. These results support the idea that phenotypic switching naturally curbs the density of aggregates. Generally, the chemotactic phenotype forms a concentrated group at the core of the aggregate, while the secreting phenotype is more diffusely spread about the centre.

Fig. 2
figure 2

Comparing the effects of different phenotypic switching functions in 1D. Top row: Each panel displays the spatial distributions of the cell density \(n_1\) over time. Bottom row: Each panel displays the spatial distributions of the cell densities \(n_0\) (black) and \(n_1\) (blue) at the end of simulations, i.e. at \(t=T\) with \(T:=500\). Each column displays the results of simulations carried out using the definitions of the functions \(\mu _{01}\) and \(\mu _{10}\) given in Table 1, with \(\mu =1\) and \(q=1\). The values of the parameter \(\chi \) used to perform simulations are such that the conditions for pattern formation provided in Table 1 are satisfied, that is, \(\chi =\) 10 (Case A), 15 (Case \(\hbox {B}_1\)), 5 (Case \(\hbox {B}_2\)), 10 (Case \(\hbox {C}_1\)), 10 (Case \(\hbox {C}_2\)). The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.1 (Color figure online)

Fig. 3
figure 3

Investigating the role of the model parameters in 1D. Each panel displays the spatial distribution of the cell density \(n_1\) over time. The functions \(\mu _{01}\) and \(\mu _{10}\) are taken to be those of Case A in Table 1, that is, \(\mu _{01}\equiv \mu _{10}\equiv \mu \). For each panel we have the general parameter setting \(L=40\), \(D=1\), \(\mu =1\), and \(\chi =10\), while the value of one of these parameters is varied in each case as highlighted by the panel titles. The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.1 (Color figure online)

To further investigate the role of model parameters, we consider the constant phenotypic switching case (i.e. Case A in Table 1) and perform simulations while varying one parameter at a time; the results are displayed in Fig. 3. This confirms the results of linear stability analysis summarised in Sect. 3, in particular the instability condition and minimum domain length provided in Table 1 for Case A. As expected from the characteristic wavelength associated with the fastest growing mode, increasing the domain length L leads to the emergence of a larger number of aggregates, Fig. 3 (top row). Increasing the random cell movement parameter D both reduces the number of peaks that form and increases the time taken for patterns to emerge from the uniform initial distribution of cells, Fig. 3 (second row). Too large a value of D leads to the elimination of pattern formation, since the value of D determines the counter-aggregation diffusion and thereby influences the minimal condition for \(\chi \) to have pattern formation. Although the instability condition on \(\chi \) is independent of the value of \(\mu \), altering \(\mu \) does impact on the minimum domain length and, consequently, we observe a loss of pattern formation when the rate of switching becomes too low, Fig. 3 (third row). Changing the rate of phenotypic switching also impacts on the timescale of pattern formation, with slower switching leading to slower evolution towards the aggregated state. Finally, we investigate the role of \(\chi \), where from the linear stability analysis we expect pattern formation beyond a critical \(\chi \). This is again confirmed by the simulation results, Fig. 3 (bottom row). We note that while the linear stability analysis predicts the dynamics when close to the uniform steady state, it becomes less relevant when patterns have formed. Here, numerical simulations indicate dynamics in which nearby aggregates, consisting of both cell phenotypes, merge leading over time to a reduction in the number of aggregates. This behaviour is well known within chemotaxis-type models, for example see (Potapov and Hillen 2005). Overall, the results of Fig. 3 corroborate the conditions for patterning established via linear stability analysis.

4.2 Oscillating Patterns and Extinction Scenarios in 1D

We investigate further the cases of environment-dependent phenotypic switching functions given in Table 1 for step-like changes from a negligible rate of switching to a maximum rate of switching, as some threshold in total cell density (Cases B) or attractant concentration (Cases C) is breached. Specifically, we consider the same general parameter setting as for Fig. 2, but with q increased (from \(q=1\) to \(q=30\)) to generate the step-like change and \(\chi \) chosen to satisfy conditions for instability provided in Table 1. Results are displayed in Fig. 4.

Fig. 4
figure 4

Comparing the effects of different step-like phenotypic switching functions in 1D. Top row: Each panel displays the spatial distribution of the cell density \(n_1\) over time. Bottom row: Each panel displays the spatial distributions of the cell densities \(n_0\) (black) and \(n_1\) (blue) at three simulation times, i.e. \(t=498\), \(t=499\), and \(t=500\) or \(t=1\), \(t=3\), and \(t=500\). Each column displays the results of simulations carried out using the definitions of the functions \(\mu _{01}\) and \(\mu _{10}\) given in Table 1 (Cases B and C), with \(\mu =1\) and \(q=30\). The values of the parameter \(\chi \) used to perform simulations are such that the conditions for pattern formation provided in Table 1 are satisfied, that is, \(\chi \) is equal to 15 (Case \(\hbox {B}_1\)), 5 (Case \(\hbox {B}_2\)), 75 (Case \(\hbox {C}_1\)), 10 (Case \(\hbox {C}_2\)). The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.1. The full time evolution of the cell densities for each case are provided in Supplementary Material video SM1 (Color figure online)

Introducing step-like switching with respect to the total population density (Cases B) can profoundly impact on the form and nature of aggregates. For the setting in which high total cell densities trigger a switch from the chemotactic to secreting state (Case \(\hbox {B}_2\)), we observe a significant flattening of the peaks: the maximum density within each aggregate decreases and the peak broadens. This suggests that controlling the balance of secreting and chemotactic cells according to the total population level can be used as an effective means of balancing the density of aggregates. In the reverse setting, where high total densities trigger a switch from the secreting state to the chemotactic state (Case \(\hbox {B}_1\)), we find evidence of novel patterning. Specifically, non-stationary patterning in which complementary aggregates of each individual cell phenotype undergo (apparently) sustained oscillations in time. Spatio-temporal oscillations often arise in situations in which the corresponding linear stability analysis indicates the presence of eigenvalues with both a positive real part and non-zero imaginary components (for example see Tania et al. 2012). To understand whether this is the case here, we calculate the eigenvalues for this setting. Specifically, we calculate the eigenvalues, i.e. the roots of (C6), for various values of \(\mu \) and \(\chi \), under Case \(\hbox {B}_1\) with other parameters as listed in Fig. 4. As shown in Fig. 9, as the values of \(\chi \) and \(\mu \) are altered we do indeed observe complex eigenvalues that switch from a negative to positive real part.

Introducing a step-like switching according to the chemoattractant concentration (Cases C) reveals the possibility of further dynamics. For the setting in which higher attractant concentrations trigger a switch from secreting to chemotactic (Case \(\hbox {C}_1\)), self-organisation occurs as previously, but again with relatively low aggregate densities and a secreting phenotype spread almost uniformly through space. Case \(\hbox {C}_2\), where a higher attractant concentration triggers a switch from chemotactic to secreting, demonstrates the possibility of extinction scenarios: rapid evolution to a population dominated by the chemotaxis phenotype. Here a feedback loop is formed, in which as the number of cells with secreting phenotype drops, so does the overall level of attractant and phenotypic switching is increasingly weighted towards the chemotactic state.

4.3 Emergence of Patterns in 2D

To consider a more biologically relevant situation, we now turn to a two dimensional setting, i.e. \(\textbf{x} \equiv (x,y)\). We note that the transition into two spatial dimensions raises immediate (analytical) questions regarding global existence and blow-up of solutions: for the corresponding minimal model (A1), blow-up typically occurs in two dimensions for scenarios in which autoaggregation is predicted (e.g. see the reviews (Horstmann 2003; Hillen and Painter 2009; Bellomo et al. 2015)). In the 2D setting, we again investigate the emergence of patterns under each definition of the phenotypic switching functions listed in Table 1. Results are displayed in Fig. 5, where in each column from top to bottom we plot the spatial distributions of \(n_0\) and \(n_1\) for each phenotypic switching case at the same time-step (\(t=500\)). Parameters are as in Fig. 2.

As predicted from the linear stability analysis, if parameters are selected to satisfy the instability conditions, we observe pattern formation. Specifically, we see the emergence of a spot-like pattern of aggregates, although the size and sharpness of aggregates varies with the form of phenotypic switching. Comparing the distribution of the densities of cells in the two phenotypic states, we observe that the distribution of the chemotactic state is generally concentrated in a sharper peak at the core of each aggregate, with the secreting state more dispersed about the centre.

In comparison to the constant switching form, total cell density dependent and chemoattractant dependent switching forms lead to reduced densities within cell aggregates, clearest within Case \(\hbox {B}_1\). Notably, none of the switching cases that have been considered here lead to numerical blow-up phenomena, defined as instances in which the numerical solutions form densities and/or gradients that lead to numerical instability and simulation failure. This hints that the introduction of switching between chemotactic and secreting phenotypic states may lead to global existence of solutions, although caution is noted given the numerical nature of the study. We return to this in the discussion, where we also exploit radial symmetry scenarios to perform more refined simulations.

Fig. 5
figure 5

Comparing the effects of different phenotypic switching functions in 2D. Top row: Each panel displays the 2D spatial distribution of the cell density \(n_0\) at the time \(t=T\) with \(T:=500\). Bottom row: Each panel displays the 2D spatial distribution of the cell density \(n_1\) at the time \(t=T\) with \(T:=500\). Each column displays the results of simulations carried out using the definitions of the functions \(\mu _{01}\) and \(\mu _{10}\) given in Table 1, with \(\mu =1\) and \(q=1\). The values of the parameter \(\chi \) used to perform simulations are such that the conditions for pattern formation provided in Table 1 are satisfied, that is, \(\chi \) is equal to 10 (Case A), 15 (Case \(\hbox {B}_1\)), 5 (Case \(\hbox {B}_2\)), 10 (Case \(\hbox {C}_1\)), 10 (Case \(\hbox {C}_2\)). The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.2. The full time evolution corresponding to each panel is provided in Supplementary Material video SM2 (Color figure online)

We also consider two dimensional equivalents for the results displayed in Fig. 4, i.e. where step-like phenotypic switching functions were selected. The results are shown in Fig. 6, where again each column displays the density of the two phenotypes, \(n_1\) and \(n_2\), at \(t=500\). For comparison, we additionally plot the density of \(n_1\) at \(t=490\), i.e. the density at an earlier time instant. Similar phenomena to those observed in one dimension are observed. For Case \(\hbox {B}_1\) we see a two-dimensional analogue to the oscillating pattern, with aggregated single cell phenotype structures that undergo sustained temporal dynamics. For Case \(\hbox {B}_2\) we observe the evolution to relatively low-density cell aggregates, in which the peak density at the core of the aggregate remains bounded at a relatively low level with respect to the uniform density. In this scenario there is a notable distribution of the two phenotypes, with the secreting phenotype centered at the core of an aggregate and encapsulated by a chemotaxing ring at the periphery. This is distinct from the standard arrangement (chemotactic phenotype concentrated in a high density peak at the centre) and arises through a transition from chemotaxis to secretion behaviour as an individual reaches the higher density at the centre of an aggregate. For Case \(\hbox {C}_1\) we see the emergence of low-density aggregates where, as in the one-dimensional setting, the secreting phenotype is spread almost uniformly in space while the chemotactic phenotype forms spot-like patterns.

Fig. 6
figure 6

Comparing the effects of different step-like phenotypic switching functions in 2D. Top row: Each panel displays the 2D spatial distribution of the cell density \(n_0\) at the time \(t=T\) with \(T:=500\). Middle row: Each panel displays the 2D spatial distribution of the cell density \(n_1\) at the time \(t=T\). Bottom row Each panel displays the 2D spatial distribution of the cell density \(n_1\) at a previous time instant, i.e. \(t=T-10=490\). Each column displays the results of simulations carried out using the definitions of the functions \(\mu _{01}\) and \(\mu _{10}\) given in Table 1 (Cases B and C), with \(\mu =1\) and \(q=30\). The values of the parameter \(\chi \) used to perform simulations are such that the conditions for pattern formation provided in Table 1 are satisfied, that is, \(\chi \) equal to 15 (Case \(\hbox {B}_1\)), 5 (Case \(\hbox {B}_2\)), 75 (Case \(\hbox {C}_1\)). The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.2. The full time evolution corresponding to each panel is provided in Supplementary Material video SM3 (Color figure online)

The two sets of simulation results under Case \(\hbox {B}_2\) (displayed in Figs. 5 and 6) suggest that this form of phenotypic switching is particularly effective for controlling the density and width of cell aggregates: for example, leading to densities only a few times larger than the uniform steady state density, as compared to several hundred times under constant switching forms (Fig. 5). We investigate this further, considering a range of parameter settings for Case \(\hbox {B}_2\). Results are shown in Fig. 7, where each panel displays the density \(n_1\) obtained under a distinct parameter setting (cf. panel titles). Note that we have omitted here the figures for the corresponding densities \(n_0\), where in all cases the aggregates consist of cells of both phenotypes. The top row explores the impact of increasing the chemotactic sensitivity, where we observe a transition from low-density stripe-like patterns at low \(\chi \), to ring-like structures with a peaked centre for moderate values of \(\chi \), and to sharp high-density peaks at higher \(\chi \). The transitions under increasing \(\mu \) (middle row) or q (bottom row) show this patterning in reverse, with the transition from high-density spots to lower-density rings and/or stripes as the parameters are increased. Overall, these results indicate that density-dependent phenotypic switching functions can lead to a broad spectrum of spatial patterning, with regimes of spatio-temporal patterning for certain functional forms, or allow for a spectrum between stripe-like and spot-like patterns.

Fig. 7
figure 7

Investigating the role of the model parameters in 2D. Each panel displays the 2D spatial distribution of the cell density \(n_1\) at the time \(t=T\) with \(T:=500\). The functions \(\mu _{01}\) and \(\mu _{10}\) are taken to be those of Case \(\hbox {B}_2\) in Table 1. For each panel, the parameter setting investigated is highlighted by the panel titles. The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.2. The full time evolution corresponding to each panel is provided in Supplementary Material video SM4 (Color figure online)

5 Discussion and Conclusions

Overview of results We have developed a simple model to describe the dynamics of a phenotypically heterogeneous population of cells that interacts with some chemoattractant. Intra-population phenotypic heterogeneity is incorporated into the model by assuming the population to be composed of individuals in two distinct phenotypic states, with the possibility of switching between these states. Individuals in one phenotypic state perform chemotaxis but do not secrete attractant, whilst individuals in the other phenotypic state secrete attractant but do not display chemotaxis.

Using a combination of linear stability analysis and numerical simulations, we have shown that pattern formation can occur in the form of cell density aggregates that contain a mixture of the two phenotypic states. Moreover, when the rate of switching between these phenotypic states depends on the local environment – the total cell density or the attractant concentration – a range of dynamical behaviours can be observed, including oscillations in space and time, pattern structures that range from stripes to spots, or “phenotype extinction” scenarios in which the cell population evolves to one in which all members occupy the same phenotypic state.

Discussion of results in the context of chemotactic aggregation Notably, our results indicate that a level of transitioning between phenotypic states is an essential criterion for autoaggregation within the system: when switching is negligible, aggregation is not possible. Certain systems, however, may preclude this transitioning: for example, an ecological population featuring a division into male and female members. In the context of aggregation scenarios, many marine invertebrates employ chemical aggregation to achieve higher population densities prior to broadcast swarming (simultaneous release of gametes into the water column). Recent studies in certain sea cucumbers suggest that only the males release the aggregating pheromones, but that these attract nearby members of both sexes (Marquet et al. 2018). In this respect, the modelling here suggests that male to male attraction is essential for aggregation to occur in this system.

The inherent cost attached to some labour (movement, protein synthesis, etc.) leads naturally to the question of energy balance, i.e. that individuals must balance their energy expenditure with the rate at which energy can be generated. Intra-population phenotypic diversity may then results from a trade-off: individuals in a phenotypic state that allows them to perform one task at a high level have less energy for other tasks (Keegstra et al. 2022). The trade-off considered here is between performing chemotaxis and both producing and secreting an attractant. In particular, we have shown that a division of labour between the time spent in the phenotypic state enabling individuals to perform chemotaxis and the time spent in the phenotypic state enabling individuals to produce and secrete the attractant can still lead to successful aggregation of the population, provided there is a non-negligible degree of transition between these phenotypic states. Here, we have concentrated on energy trade-offs related to the chemoattractant secretion and chemotactic movement of cells. However, we should note that the approach taken here has been phenomenological in spirit and a plausible future extension would be to explicitly account for energetics. One way to do this would be to initially formulate a model at the discrete level, for example through a random walk for an individual cell, but in which its movement and secretion behaviour depend on an internal variable that represents its energy reserve. Accounting for a dependency on the state of an internal variable has a rich history in the modelling of chemotaxis behaviour (e.g. Erban and Othmer 2004) and, using similar methods that we have employed before (Bubba et al. 2020; Macfarlane et al. 2020; Chaplain et al. 2020; Macfarlane et al. 2022), we could then derive the continuum limit as a PDE model that can further be analysed. We considered here the trade-off to be between cell motility and chemoattractant secretion, however, other trade-offs could exist in the population such as proliferation-migrations trade-offs. Such trade-offs have been observed in cancer growth, that is the “go-or-grow” hypothesis, and have been studied extensively both experimentally and theoretically (Corcoran and Del Maestro 2003; Gallaher et al. 2019; Giese et al. 1996; Hatzikirou et al. 2012; Hoek et al. 2008; Pham et al. 2012; Stepien et al. 2018; Vittadello et al. 2020; Zhigun et al. 2018; Stinner et al. 2016; Dhruv et al. 2013; Giese et al. 2003; Wang et al. 2012; Xie et al. 2014). In fact, mathematical models of the form developed in this manuscript can also be used to study these proliferation-migration trade-offs (Macfarlane et al. 2022; Lorenzi and Painter 2022). In this work, we considered that cells in the phenotypic state \(p=0\) would still undergo a degree of random motion, however, an alternative model would be to consider a phenotypic transition into a sessile population (i.e. with neither random or directed movement terms). An investigation into the effects that this would have on the solutions to the system would be of interest.

Acquiring an aggregated state can be essential for many populations, whether as a prelude to tissue morphogenesis during embryonic development or as a key stage within the life-cycle of some unicellular or multicellular organisms. Yet aggregating can also be risky: within an ecological context, as an example, reaching a high density state could lead to the depletion of local resources and starvation. Consequently, while a mechanism for aggregating may be crucial, it may be similarly important to have some counter-aggregation mechanism in place, preventing the population from over-accumulating at a location. An upper bound to the density of individuals can certainly arise from considerations of “volume-filling” (i.e. individuals being unable to occupy the same space) (Hillen and Painter 2009), but for many aggregates the density lies far below such extreme conditions, see, for instance, Mittal et al. (2003). Our results support the idea that allowing individuals in the population to transition between chemotactic and secreting phenotypes according to the local environment provides an effective means of controlling the density of aggregates. The greatest control was found in the case of responses to total density, specifically whereby individuals transition from performing chemotaxis to performing secretion as the local density surpasses some threshold. Under this scenario, low density aggregates are readily achieved, as well as the capacity to arrange into a diversity of two-dimensional structures from spots to labyrinthine stripes.

Fig. 8
figure 8

Investigating the possibility of having no numerical blow-up in the radially symmetric case. Top row: Each panel displays the 2D radial distance of the cell density \(n_1\) at four increasing time instants, as described by the legend. Bottom row: Each panel displays the 2D radial distance of the cell density \(n_0\) at four increasing time instants, as described by the legend. In each case, phenotypic switching is of the form of Case A given in Table 1, and each column displays the simulation results obtained for different value of \(\mu \in {\mathbb {R}}^*_+\). The full details of the initial conditions and numerical simulation set-up are provided in Appendix D.3 (Color figure online)

Discussion of results in the context of PDE models for chemotaxis PDE models for chemotaxis that comprise two or more populations have been extensively explored by numerous authors, from both applied and theoretical perspectives. Avoiding a detailed discussion, we restrict to highlighting a few particularly relevant examples. From an applied perspective, the study presented in Tania et al. (2012) features two populations of forager and scrounger type, where foragers follow (and consume) a nutrient, and scroungers follow the foragers. “Behavioural switching” analogous to the population transition terms considered here were employed to describe shifting between these two behaviour types and, despite the absence of an autocrine relationship between the foragers and the attractant, spatio-temporal oscillations were observed. Two population systems have also been considered in the context of “autocrine-paracrine” relationships, where two populations can produce and respond to their own attractant (autocrine), but also respond to the attractant produced by the other population (paracrine): see (Painter 2009) in the context of differential-chemotaxis induced sorting, or Knútsdóttir et al. (2014) in the context of tumour-macrophage signalling.

From a more theoretical perspective, the model (2) sits closely to the general “p-populations, q-chemicals” models that were described in Wolansky (2002): the addition in the model here lies in the possibility to switch between populations. A substantial literature has emerged on the analytical properties, particularly regarding blow-up of solutions, for example see (Espejo et al. 2012; Tello and Winkler 2012; Kurganov and Lukáčová-Medvidová 2014; Fu et al. 2016; Wang et al. 2017). These studies raise the question of blow-up in this system, and we briefly comment on the numerically-obtained insights from the present study. For the minimal model (1), blow-up is dimensionally-dependent: in one space dimension, solutions exist globally, but in two or more dimensions finite-time blow-up can occur (e.g. see the reviews in Horstmann 2003; Hillen and Painter 2009; Bellomo et al. 2015). The studies conducted here, however, suggest that switching between secreting and chemotactic states curbs the rate at which aggregates accumulate, leading to the question as to whether the model permits global existence. To explore this in further depth, we exploit the convenience of a radially symmetric (two dimensions) setting, thereby reducing to an effectively one-dimensional structure for numerical simulations, which permits computation for a highly refined spatial discretisation (see Appendix D.3 for details). Concentrating on the case of constant rate of phenotypic switching (i.e. Case A given in Table 1 whereby \(\mu _{01}\equiv \mu _{10}\equiv \mu \) with \(\mu \in {\mathbb {R}}^*_+\)), we track the cell densities over time, computing until there is negligible change to the solution profile or, if relevant, numerical blow-up occurs. The results are displayed in Fig. 8, under a range of values of \(\mu \). In all cases solutions are found to evolve to smooth profiles and no numerical blow-up was observed. Increasing \(\mu \) generates a sharper profile, however the maximum density remains bounded. A similar boundedness to the computed solutions was found to occur in a spherically symmetric (three dimensional) setting (data not shown). While exercising caution given the numerical nature of this study, these results suggest that the model studied here may admit globally existing non-uniform solutions.

Possible generalisations of the model The mathematical model defined by the PDE system (2) subject to the boundary conditions (3) relies on the assumption that the cell phenotypic state is binary. Hence, as a first generalisation of this model, we could consider the case in which the population is subdivided into a discrete spectrum of \(P+1\) phenotypes, labelled by the index \(p \in \mathcal {P}:= \{ 0, \ldots , P\},\) which vary according to both their chemotactic ability and their rate of attractant production. The generalised model would then comprise the following PDE system

$$\begin{aligned} {\left\{ \begin{array}{ll} \displaystyle {\dfrac{\partial n_p}{\partial t}=\nabla \cdot \left( D_n \nabla n_p - \chi _p n_p \nabla s \right) + \sum _{q\in \mathcal{{P}}, q\ne p} \Big (\gamma _{qp}(\rho ,s) n_q - \gamma _{pq}(\rho ,s) n_p \Big )},\\ \displaystyle {\rho (\textbf{x},t):= \sum _{p\in \mathcal{{P}}} n_p(\textbf{x},t)}, \\ \displaystyle {\dfrac{\partial s}{\partial t} =D_s\nabla ^2 s + \sum _{p\in \mathcal{{P}}} \alpha _p n_p - \eta \, s}, \end{array}\right. } \textbf{x}\in \Omega , \nonumber \\ \end{aligned}$$
(17)

subject to the following zero-flux boundary conditions

$$\begin{aligned} \mathbf{{u}} \cdot \nabla n_p =0, \quad \mathbf{{u}} \cdot \nabla s=0,\quad x\in \partial \Omega , \quad p=0, \ldots , \mathcal {P}. \end{aligned}$$

In analogy with the case of model (2), the function \(\gamma _{qp}(\rho , s)\), with \(\gamma _{qp}: {\mathbb {R}}^2_+ \rightarrow {\mathbb {R}}_+\), models the rate at which cells switch from phenotype p to phenotype \(q \ne p\).

As a further generalisation, in the vein of Macfarlane et al. (2022), Lorenzi and Painter (2022), Lorenzi et al. (2021), we could also consider the case where the cell phenotypic state varies along a continuum and is thus described by a continuous variable \(\theta \in {\mathbb {R}}\). In this case, the dynamics of the density of cells in the phenotypic state \(\theta \) at time \(t \ge 0\), \(n \equiv n(\theta ,\textbf{x},t)\), and the local concentration of the chemoattractant would be governed by the following system of partial integro-differential equations

$$\begin{aligned} {\left\{ \begin{array}{ll} \displaystyle {\dfrac{\partial n}{\partial t}=\nabla _{\textbf{x}}\cdot \left( D_n \nabla _{\textbf{x}} n - \chi (y) n \nabla _{\textbf{x}} s \right) } \\ \displaystyle {\qquad \quad + \int _{{\mathbb {R}}} \gamma (\theta ,\theta ',\rho ,s) \, n(\theta ',\textbf{x},t) \, \textrm{d}\theta ' - n \int _{{\mathbb {R}}} \gamma (\theta ',\theta ,\rho ,s) \, \textrm{d}\theta '},\\ \displaystyle {\rho \equiv \rho (\textbf{x},t):= \int _{{\mathbb {R}}} n(\theta ,\textbf{x},t) \, \textrm{d}\theta }, \\ \displaystyle {\dfrac{\partial s}{\partial t} =D_s\nabla ^2_{\textbf{x}} s + \int _{{\mathbb {R}}} \alpha (\theta ) \, n(\theta ,\textbf{x},t) \, \textrm{d}\theta - \eta \, s}, \end{array}\right. } \; \textbf{x}\in \Omega , \end{aligned}$$
(18)

subject to the following zero-flux boundary conditions

$$\begin{aligned} \mathbf{{u}} \cdot \nabla _{\textbf{x}} n = 0, \quad \mathbf{{u}} \cdot \nabla _{\textbf{x}} s=0,\quad \textbf{x} \in \partial \Omega . \end{aligned}$$

Here, the functions \(\chi : {\mathbb {R}} \rightarrow {\mathbb {R}}^*_+\) and \(\alpha : {\mathbb {R}} \rightarrow {\mathbb {R}}^*_+\) model, respectively, the chemotactic sensitivity and the rate of attractant production of cells in the phenotypic state \(\theta \). Moreover, the function \(\gamma (\theta , \theta ',\rho ,s)\), with \(\gamma : {\mathbb {R}}^2 \times {\mathbb {R}}^2_+ \rightarrow {\mathbb {R}}_+\), models the rate of switching from the phenotypic state \(\theta '\) to the phenotypic state \(\theta \).

Analysis and numerical simulation of the generalised models (17) and (18), which are expected to pose a series of analytical and numerical challenges that make these models interesting mathematical objects per se, will allow for further investigation into how phenotypic heterogeneity shapes the emergence of chemotactic self-organisation in different biological contexts.