Skip to main content
Royal Society Open Science logoLink to Royal Society Open Science
. 2019 Feb 6;6(2):181273. doi: 10.1098/rsos.181273

Ecological feedback on diffusion dynamics

Hye Jin Park 1, Chaitanya S Gokhale 2,
PMCID: PMC6408370  PMID: 30891264

Abstract

Spatial patterns are ubiquitous across different scales of organization in ecological systems. Animal coat pattern, spatial organization of insect colonies and vegetation in arid areas are prominent examples from such diverse ecologies. Typically, pattern formation has been described by reaction–diffusion equations, which consider individuals dispersing between subpopulations of a global pool. This framework applied to public goods game nicely showed the endurance of populations via diffusion and generation of spatial patterns. However, how the spatial characteristics, such as diffusion, are related to the eco-evolutionary process as well as the nature of the feedback from evolution to ecology and vice versa, has been so far neglected. We present a thorough analysis of the ecologically driven evolutionary dynamics in a spatially extended version of ecological public goods games. Furthermore, we show how these evolutionary dynamics feed back into shaping the ecology, thus together determining the fate of the system.

Keywords: eco-evolutionary dynamics, social dilemma, spatial dynamics, pattern formation

1. Introduction

Evolutionary game theory has been successfully used to describe the evolution of types in a population, be it frequencies of alleles in a biological setting or languages in a cultural setting [1,2]. The most widely used application of this theory is in addressing social dilemmas. Social dilemmas result from a collision between the interests of an individual and that of the group to which it belongs [3]. The ubiquity of social dilemmas is evident by its appearance in pertinent issues such as fishery and wildlife management [4] and global climate change [5]. Biologically relevant scenarios such as foraging strategies [6], group hunting behaviour [7,8] and bacterial secretions interpreted as public goods [9] provide these dilemmas a sociobiological setting. The resolution of social dilemmas lies at the heart of achieving a transition in the level of organization, e.g. evolving multicellularity [10] (or the deconstruction of sociality, as in cancer evolution [11]).

Numerous ways of resolving such dilemmas, elegantly captured by public goods games (PGG), have been proposed [12,13]. One way of resolving PGG is the imposition of spatial structure on the evolving population. Conceptually, classical ideas such as Wright’s island model [14], the haystack model [15], contemporary group selection models [16], evolutionary dynamics with structure and many more [1720], impose a condition limiting encounters between the interacting agents. Spatial dynamics thus has been successful in resolving social dilemmas maintaining a mixture of cooperators and defectors in the long run [21].

Besides stabilizing cooperation, spatial dynamics also results in intricate spatial patterns under eco-evolutionary processes [22]. Ecological dynamics are incorporated by explicitly accounting for the feedback of population densities on the evolutionary processes and vice versa. We deviate from the classical use of diffusion as a ‘constant’ and investigate an eco-evolutionary feedback on population mobility. Experimental and empirical studies show that dispersal is a property which could be conditioned on a variety of factors, either environmental or a property of the population under question [23] in both plants and animals [24,25]. Including dispersal, it is possible to explain how populations can avoid extinction in a spatially extended selection-diffusion system. This improves our understanding of the ecological aspects of the diffusion process responsible for the spatial patterns. Making diffusion depend on the total density, we put it on an ecological footing and examine its effect on pattern formation. We formulate simple but general density-dependent diffusions and study their effects on pattern formation. First, we employ various density-dependent diffusion formulations and capture the important diffusion properties for forming different patterns by a crude look. After that, as relevant scenarios, we focus on two distinct density-dependent formulations inspired from growing bacterial cultures and human migration. We establish a connection between the diffusion properties and the observed spatial patterns. The details of the diffusion rule, which can differ between species are shown to be crucial in determining the observed patterns.

2. Model

2.1. Eco-evolutionary dynamics with diffusion

In PGG, cooperators invest a fixed amount c into a common pool. For m such cooperators, this common pool of value mc is then multiplied by a factor r. The benefits of this interaction are returned equally to all individuals participating in the game S, thus rmc/S. While this is the payoff of a defector, PD(m) = rmc/S, a cooperator, having paid the cost, gets PC(m) = PD(m) − c. The multiplication factor r determines the value of the public good, bounded as 1 < r to ensure that mutual cooperation is better than mutual defection.

In order to incorporate population dynamics, (normalized) densities are introduced instead of frequencies of cooperators and defectors. The sum of cooperator and defector densities u and v, lies between zero and unity, 0 ≤ u + v ≤ 1. The total population density ranges from extinction, u + v = 0, to the maximum density, u + v = 1. If the density has not reached the maximum, i.e. w ≡ 1 − uv > 0, then the population can still expand.

The actual number of participants, S, is sampled according to the total density with the maximum group size N. Individuals have a chance to meet another individual with a probability that is proportional to the total density in a well-mixed population. If the population density is small, individuals meet less often and hence form smaller groups. If the density is high then the maximum group size N can be reached. As a consequence, the game-interaction group size S depends on the total density and ranges from 2 to N. The lower bound 2 is natural because we need at least two individuals to interact. If there is only one individual, there is no interaction, the game is not played. The average payoffs for defectors and cooperators, fD and fC, are then the product of the expected payoffs and the probability p(S; N) summed over all possible group sizes S. This gives us [26],

fD=ru1w(11wNN(1w)) 2.1a

and

fC=fD1(r1)wN1+rN1wN1w. 2.1b

We have set the investment cost c = 1 (for details see appendix A).

If there is an opportunity for reproduction (w > 0), individuals reproduce according to their average payoffs. All individuals are assumed to have the same constant birth and death rates given by b and d, respectively. The change in the densities of cooperators and defectors over time is given by the following extension of the replicator dynamics [2729],

u˙=u[w(fC+b)d] 2.2a

and

v˙=v[w(fD+b)d]. 2.2b

Without migration between subpopulations, the population dynamics at a given position can be analysed separately as an independent population [29].

Transforming variables from cooperator and defector densities u and v to cooperation fraction fuu+v and total density ρu + v decouples the evolutionary and ecological parameters, f and ρ [29,30]:

f˙=(1ρ)f(1f)F(ρ) 2.3a

and

ρ˙=ρd+ρ(1ρ)[b+f(r1)(1(1ρ)N1)], 2.3b

where F(ρ) = −1 − (r − 1)(1 − ρ) N−1 + (r/)(1 − (1 − ρ) N). The asymptotic behaviour of the system is determined by the stabilities of the fixed points in the f-ρ space. In this manuscript, we only focus on d > b = 1 and N = 8 wherein defectors cannot survive without cooperators, and the system undergoes a Hopf bifurcation as r varies at a given d [22,26,31]. For small r, extinction (u = v = 0) is the stable fixed point while for a large r coexistence (u, v > 0) becomes stable. Both cooperators as well as defectors die out for a small rate of return from the public good (r < rhopf).

Including spatial dynamics, the stability of the fixed point can change. By forming patterns, cooperators and defectors can coexist even for r < rhopf [22]. To include spatial dynamics, we envision subpopulations spatially arranged on a two-dimensional lattice. In each patch, the dynamics of the subpopulation is described by equation (2.2), and individuals, cooperators and defectors, randomly move between adjacent patches. There is no game interaction between individuals who live in different patches. By taking the continuum limit of this spatially structured subpopulations, we can get the changes of densities over time,

u˙=(Dcu)+u[w(fC+b)d] 2.4a

and

v˙=(Ddv)+v[w(fD+b)d]. 2.4b

The diffusion coefficients Dc and Dd for cooperators and defectors indicate the speeds of their diffusion, respectively. There is no external in- or out-flux at the boundaries. This dynamics with constant diffusion coefficients is the form of the classical activator–inhibitor system [32]: according to the constant ratio of diffusion coefficients D = Dd/Dc > 1, various patterns have been observed. With various r and D, different dynamical regimes emerge—from homogeneous coexistence to extinction—with chaos between extinction and diffusion-induced coexistence [22] (figure 1).

Figure 1.

Figure 1.

Spatial patterns with various parameters (reproduced with permission from [22]). For simulating given reaction–diffusion system, we consider a two-dimensional square lattice. The space is discretized into small sites which we refer to as patches. Each subpopulation resides in each patch where they play the eco-evolutionary public goods game with a maximum group size of N = 8. For visualizing, cooperator and defector densities are presented as mint green and fuchsia pink colours and the brightness indicates the total density (see appendix D). There are five phases (framed using different colours), extinction (black), chaos (blue), diffusion-induced coexistence (red), diffusion-induced instability (green) and homogeneous coexistence (orange). Among them, chaos patterns are dynamic while others are stationary patterns. We used the Crank–Nicolson method to get patterns with a linear system size of L = 283, dt = 0.1 and dx = 1.4. All configurations are obtained after at least t = 10 000. A uniform disc with densities u = v = 0.1 at a centre is used for an initial condition. We use constant birth rate of b = 1 and death rate of d = 1.2. Note that the symmetry breaking for r = 2.28 and D = 4 arises from numerical underflow [33].

2.2. Ecological feedback on diffusion dynamics

Diffusion dynamics affects extinction of populations and pattern formation. So far, most research has focused on constant diffusion, and eco-evolutionary effects on the diffusion dynamics have not been explored. However, density-dependent diffusion is observed across scales of organization from microbial systems to human societies [3438]. The density-dependent diffusion coefficients may have eco-evolutionary components such as f and ρ. We examine the effect of this eco-evolutionary diffusion dynamics on pattern formation.

For the sake of simplicity, we assume a fixed diffusion coefficient for cooperators and develop the defector’s density-dependent diffusion. These differential mobilities are empirically motivated. Within a population, different types of individuals can show different mobility, for example, as in the aphid and planthopper populations [3944]. Examples show that when defectors are moving faster than cooperators, it is possible for the population to survive harsh environments [45,46]. It will thus be interesting to focus on D > 1. The defector’s diffusion coefficient may be written as

Dd(f,ρ)=Dc[1+σg(f,ρ)maxf,ρ[0:1]g(f,ρ)]. 2.5

The function g(f, ρ) encodes diffusion behaviour and is normalized by the maximum value to bind the range of density dependence from zero to unity. The parameter σ acts as the intensity of density dependence. To study the impact of f and ρ, we examine all possible combinations of f, 1 − f, ρ and 1 − ρ taking into account their geometry. The different cases have different geometries, and thus they cannot span each others. Density-dependent functional forms are visualized in figure 2a in f and ρ space.

Figure 2.

Figure 2.

Patterns with various functional forms for defector’s diffusion coefficient. The density-dependent functional form is determined by multiplying the functions in row and column. In (a), the shape of functions is shown in f (x-axis) and ρ (y-axis) space (contour plot). Blue and yellow colours represent low and high values at a given f and ρ, respectively. In (b), we present the patterns at a given functional form for r = 2.32 and σ = 20. As we can see, different density-dependent diffusion shows different patterns, largely dotted and striped patterns. Here, we use the red and blue coloured frames for striped and dotted patterns, respectively. We include the chaotic patterns in dotted patterns because there chaotic patterns emerge close to the dotted patterns in parameter space (figure 1). A uniform disc with densities u = v = 0.1 at a centre is used for an initial condition. Note that symmetry breaking patterns come from numerical underflow [33]. We use the forward Euler method with dt = 0.005 and dx = 1.4, and the stabilized patterns are obtained after at least t = 4500. For the temporal evolution of all these patterns, see electronic supplementary material, video.

Since two distinctly different directions of pattern formation are observed by the density-dependent diffusions, we take a closer look at two representative density-dependent diffusion formulations instead of tracking all functional forms. As possible concrete examples, we develop two relevant formulations; one inspired by bacterial diffusion on a Petri dish and the second inspired by human migration studies [37,47]. These mobility patterns can be described by a subset of functions described in figure 2a. For the diffusion sketched from the bacterial movement, we look at the experiment results and its modelling [36,47]. In the model, bacteria grow by consuming nutrients and spread by diffusing in space. The results have shown that the bacteria grow faster when nutrients are in abundance and slower when the bacterial density is too low. From this experimental result, we interpret that bacterial productivity is fast, when nutrients are abundant, and slow, when bacterial concentrations are too low. Defectors mobility is thus a function of their productivity, approximated as vwf equivalent to ρ(1 − ρ) f(1 − f) from f = u/(u + v) and ρ = u + v,

Dd(B)(f,ρ)=Dc[1+16σρ(1ρ)f(1f)], 2.6

where the factor 16 comes from the normalization of the density-dependent part. As shown in figure 3a, the diffusion coefficient Dd(B) has a maximum at intermediate values of f and ρ. In contrast to bacteria, human mobility may be maximized at low and high population densities ρ. Utility in humans seems to be maximized by avoiding extremely low and extremely high total population densities [37]. We introduce this diffusion dynamics for defectors as,

Dd(H)(f,ρ)=Dc[1+σ{4ρ(ρ1)+1}]. 2.7

The addition of 1 maintains non-zero diffusion Dd > 0.

Figure 3.

Figure 3.

Patterns under the two density-dependent behaviours for r = 2.2 and r = 2.36 (in column) with σ = 40 and σ = 20, respectively. The sensitivity to density dependence σ is denoted with the multiplication factors r. The patterns in the same row as (a) are the result of the density-dependent diffusion function as in equation (2.6). The second row (b) is the results of using equation (2.7). The functions Dd(f, ρ) are shown as contour plots in f and ρ space. Blue and yellow colours represent low and high values at a given f and ρ, respectively. For bacterial growth, dotted patterns emerge, while striped patterns appear for human migration. The results show that the fast movement of the defectors in high reproduction region forces the system to the edge of extinction. We use L = 283, N = 8, dt = 0.005, dx = 1.4, b = 1 and d = 1.2. Cooperator and defector densities in each patch are randomly drawn from 0 to 0.1 as an initial condition.

To implement the dynamics as in equation (2.4), we numerically solve the equation on a two-dimensional square lattice. The Crank–Nicolson method is used for constant diffusion coefficient; however, we use the forward Euler method for a dynamic diffusion coefficient. Since we are varying σ, we focus on r-σ space instead of r-D space as opposed to [22]. The diffusion coefficient now can vary in space due to the inhomogeneous densities. An average diffusion coefficient D¯=Dx,y averaged in all patches is determined at a given σ and the associated density-dependent dynamics. Diffusion dynamics as described above is a function of both evolutionary (fraction of cooperators) as well as ecological (total population density) parameters. This eco-evolutionary diffusion dependence forms the nucleus of our model elucidating the effects of eco-evolutionary processes on pattern formation.

3. Results

We get patterns for r = 2.32 < rhopf at given 16 density-dependent diffusion coefficient formula and compare the results in figure 2b. Different density dependencies show different patterns, and largely there are two patterns, dot and stripe. As a crude conclusion, with ρ in Dd(f, ρ), dotted or chaotic patterns appear implying defectors’ slow movement in low density ρ induces the dotted or chaotic patterns. In general, the dotted and chaotic patterns are observed close to the extinction phase while striped patterns are far from the extinction. Therefore, the emergence of dotted and chaotic patterns implies that the density-dependent diffusion drives the system to the margins of the harsh environment for surviving with r < rhopf.

For more intensive investigation of this different pattern formation, we focus only two relevant and concrete examples formulated in equations (2.6) and (2.7) inspired by bacterial growth and human migration. The bacterial diffusion comes from the top left corner in figure 2a, and it is expected that dotted patterns are favoured in this case. On the other hand, the human migration is not exactly mapping into one of the functional form, but we can expect the results from our analysis above. For humans, defectors move faster when the density ρ is low which is exactly opposite to the behaviour of inducing dotted pattern. Hence, we can infer that the striped patterns are more favoured. As expected, we get the dotted patterns in bacterial diffusion while striped patterns appear in human migration (figure 3).

Next, we test the robustness of bacterial and human mobility in the r-σ space. Bacterial diffusion mainly forms dotted pattern for r < rhopf, while human migration shows striped patterns as seen in figure 4. The tendency towards these patterns remains stable even when average diffusion coefficients D¯ are the same for both cases. These patterns imply that two different density-dependent diffusions modify the ranges of the surviving area in the r-σ parameter space. At a given σ, human migration dynamics is more resilient against extinction than bacterial diffusion. This resilience is lost for r > rhopf because two different density-dependent diffusions show opposite behaviour when r increases (figure 5). For small values of r, bacterial diffusion suppresses average diffusion coefficient D¯ while human migration diffusion boosts D¯. However, the effect is opposite for large r as shown in figure 5. As a result, bacterial diffusion reduces the size of the parameter space where survival is possible—the habitable space—for r < rhopf. For r > rhopf, bacterial diffusion increases the size of the region with patterns when comparing bacterial and human migration dynamics. Furthermore, we analyse the average quantities of patterns for each case, see appendix C. Interestingly and counterintuitively, for r < rhopf, we observe the higher cooperator fraction in the striped patterns than the dotted patterns.

Figure 4.

Figure 4.

Phase diagrams with different diffusion functions: (a) where the diffusion reflects bacterial growth equation (2.6) and (b) where the diffusion reflects human migration equation (2.7). Each frame of pattern is coloured by the same criteria with figure 1 except dotted pattern for r < rhopf. To distinguish dotted and striped patterns for r < rhopf, we have used different colours. For dotted patterns, we used the blue colour which is used for chaotic patterns, as both are observed near extinction phase. We can clearly see the different patterns for different density-dependent diffusion for r < rhopf. Cooperator and defector densities in each patch are randomly drawn from 0 to 0.1 as an initial condition.

Figure 5.

Figure 5.

(a) Bacterial growth, (b) human migration. The average diffusion coefficient D¯ against the multiplication factor r at a given σ. Different point symbols represent results of D¯ with different σ. Configurations in figure 4 are used for calculating D¯. Solid lines are guidelines for points with the same σ. The average diffusion coefficient D¯ increases as r increases for bacterial growth diffusion, while D¯ decreases for human migration diffusion. This opposite behaviour over r of two different diffusions makes different shifts of two boundaries between heterogeneous and homogeneous pattern phases for r < rhopf and r > rhopf. For r < rhopf, the boundary under bacterial growth diffusion is located much higher than human migration diffusion, while it is opposite for r > rhopf.

The different diffusion dynamics for different organisms results in different spatial patterns. Surely, this can result from the diffusion property itself. The defectors grow, reproduce and spread their offspring fast, inducing a fast decrease of cooperators while increasing the risk of extinction leading to a formation of dotted patterns. The tendency of human migration to stay in moderate total density stabilizes populations producing striped patterns implying that diffusion increases the size of the habitable parameter space.

4. Summary and discussion

We investigate the effect of diffusion driven by eco-evolutionary dynamics on pattern formation using numerical calculations. We find the kinds of movements that induce dotted or striped patterns drawing close to extinction phase or rescuing the population from extinction risk. The results show that slow movement of defectors in low total population density threatens the system with extinction. For more intensive analysis, we focus on two opposite examples of density-dependent diffusions, mimicking bacterial growth dynamics and human migration. We confirm our findings by noting the observation that one behaviour draws the system to the edge of survival, whereas the other increases the size of the habitable parameter space. This result supports the hypothesis that a structured population including migration dynamics can help avoid extinctions and facilitate the maintenance of diversity [48,49].

The equations of motion employed in this study are in principle modifications of the classical inhibitor–activator systems [32]. While it is clear that pattern formation is possible due to the higher diffusion coefficient of the inhibitor, we have provided a biologically meaningful reason for this diffusion disparity between activators and inhibitors at a given assumption for the constant diffusion of cooperators. Across scales of organization, it might be possible that defectors, cheaters, cancerous cells etc. have secured higher mobility as a benefit from not paying the costs of cooperation [46,50]. Many of such model systems are in vivo based in turbulent environments, e.g. bloodstreams and fluid environments. A control over mobility through density can be envisioned by the evolution of stickiness or such an associated trait which can work against environmental shearing; control of metastasis of cancer cells via cell densities has been recently proposed [51]. Such examples exemplify the higher diffusion coefficient of the defectors over cooperators as we have used in our model. Our model, however, goes a step beyond in including density-dependent diffusion coefficients. A number of studies show why this extension is not only of theoretical interest but could be a widely observed property from classical ecology to sociobiology. Negative density-dependent dispersion (diffusion rate decreases with the total population density) can come about in different species due to a variety of reasons [52]. Avoiding inbreeding depression, competition for resources, resolving sexual conflicts or response to climate change as seen in vole populations [5355] are just some of the causes. On the human scale, theoretical results of social dilemma resolutions as well as the experimental results should be heeded with caution; cross-cultural studies highlight the difference in social attitudes [56,57]. We believe that conducting social dilemma experiments in cities and their countrysides might already tease out the microstructure in behaviours across the spatial landscape. With this knowledge, it is possible to make educated migration decisions. If a certain location is getting too crowded then it might not be the best option to stay there—a throwback to the classical ‘El Farol’ problem from Santa Fe [58]. Density-dependent diffusion can influence not just independent levels of the organization but also mediate the transitions between them for e.g. the evolution of multicellularity [59].

Diffusion with a preference for forming alliances can induce ecological conditions which are favourable to the spread of cooperation [60]. We have shown that diffusion driven by eco-evolutionary dynamics is instrumental in generating patterns which can be routinely seen in nature. Density-dependent movement resulting in striking spatial patterns is a well-known phenomena in physics known as the Cahn–Hilliard principle of phase separation. Studies have highlighted its underuse in ecology even though examples satisfying the principle abound in nature from sperm cells to mussel beds [61,62]. The relationship between the movement of mussels and their density is similar to the human migration pattern proposed herein. The resulting patterns are thus similar as well [61], although in our case we have also included population dynamics. Patterns in nature are generally expected to promote efficiency in organisms. Different organisms, with their different eco-evolutionary diffusion dynamics, show different patterns which affect their ability to survive harsh conditions. In this context, despite our strong assumption for the constant diffusion of cooperators, our finding may support the reason why we frequently observe dotted patterns in nature when the population gets stressed, either via extrinsic causes such as the environment or the population composition (e.g. increase in defectors) [63]. On a macro-scale, this further encourages the use of both ecological as well as evolutionary approaches to understanding regular patterns observed widely in nature.

Supplementary Material

Reviewer comments

Acknowledgements

We thank Christoph Hauert and three anonymous referees for comments and suggestions for improving the manuscript. We also thank David Rogers for improving the readability and clarity of the manuscript. The authors thank a reviewer from a previous submission for constructive criticism.

Appendix A. Average payoffs

In a PGG, cooperators invest a fixed amount c in the common pool. The investments of all cooperators are amplified by multiplication factor r > 1, and then evenly returned to all individual participants S in the game as the benefit. Under this setting, the payoffs for defectors and cooperators are given by,

PD(m;S)=rcmSandPC(m;S)=rcmSc,} A 1

with m cooperators. While we assume that the capacity of group size is N, under eco-evolutionary dynamics, it might be impossible that all N individuals participate in the game [26]. Therefore, the actual interacting group size can range from S = 2 to N. Individuals have a chance to meet and interact with each other with a probability that is proportional to the total density in a well-mixed population. Therefore, the probability p(S; N) that an individual finds itself in a group of size S is given by,

p(S;N)=(N1S1)(1w)S1wNS, A 2

with sparseness w = 1 − uv. The average payoffs for defectors and cooperators, fD and fC, are then calculated as follows:

fD=S=2Np(S;N)PD¯(S)andfC=S=2Np(S;N)PC¯(S),} A 3

where PD¯(S) and PC¯(S) are the expected payoffs for defectors and cooperators, respectively, with interacting group size S with the minimum group size being 2.

The probability that there are m cooperators among the S − 1 other individuals is given by pc(m; S),

pc(m;S)=(S1m)(u1w)m(v1w)S1m, A 4

and the expected payoffs are written as,

PD¯(S)=m=0S1pc(m;S)PD(m;S)=rSm=0S1mpc(m;S)andPC¯(S)=m=0S1pc(m;S)PC(m+1;S)=rSm=0S1(m+1)pc(m;S)1,} A 5

where we set the investment cost c = 1. Accordingly, the average payoffs fD and fC are calculated as follows:

fD=ru1w[1(1wN)N(1w)]andfC=fD1(r1)wN1+rN1wN1w.} A 6

Appendix B. Stable fixed point

Without spatial dynamics, the densities of cooperators and defectors change over time as described by the following equations:

u˙=(Dcu)+u[w(fC+b)d] B 1a

and

v˙=(Ddv)+v[w(fD+b)d]. B 1b

These equations are similar to the classical activator–inhibitor systems [32]. One of the fixed point(s) of this system is stable. Accordingly, the relation between visible f and ρ is imposed. Without spatial dynamics, we can perform a stability analysis for the system when we get an interior stable fixed point for r > rhopf. From the solution, we can get the relation between f and ρ at the stable fixed point. As shown in figure 6, f and ρ are in a certain relationship, i.e. the possible f and ρ pairs are restricted. When ρ increases, f decreases along multiplication factor r. Now we include spatial dynamics. With density-dependent diffusion, the average f and ρ are in good agreement with the relationship established under no spatial effects for r > rhopf.

Figure 6.

Figure 6.

Stable fixed points of equation (B 1) for r > rhopf. The cooperator fraction f and total density ρ are in anti-correlation. When one increases, the other decreases. With density-dependent diffusion, the average cooperator fraction f¯ and total density ρ̄ keeps the relation. The points are the scatter plot of f¯ and ρ̄ with various r. Circles and squares indicate results with bacterial growth and human migration cases, respectively. The solid line is the fixed point evaluated numerically for N = 8, d = 1.2, and b = 1 and r varying from 2.44 to 2.6 with several σ.

Appendix C. Pattern analysis

Given the predominance of the two types of patterns, dotted and striped, we analyse the different properties between them for r < rhopf. Herein, we used configurations for σ = 18.75 and r = 2.36 with two different density-dependent diffusion functions for analysing patterns. Since u and v are inhomogeneous in x-y space, Dd(u, v) is also spatially inhomogeneous.

Counterintuitively, the striped pattern has higher average cooperator fraction f¯ than the dotted pattern (0.425 > 0.422). The average total density ρ¯ of the striped pattern is smaller than that of the dotted pattern (0.156 < 0.159). It seems that the striped pattern is closer to the extinction phase, because the high fraction of cooperators and small total density are the properties of patterns for small r. To understand this result, we examine the spatial distribution of f and ρ, because the average of all subpopulations may not be representative.

The two spatial dimensions x, y are both of size 283. We pick five y values to look at the spatial distribution of u and v, y = 10, 71, 141, 211 and 272. These are the values corresponding to regions near the domain boundaries, centre and the intermediate position (figure 7), respectively. We observe that the cooperator density is locally much higher than the defector density at the centre for the dotted pattern. The aforementioned does not appear in striped patterns. Hence, f is larger in the dotted pattern than the striped pattern at the centre. However, there are some places which have smaller f in the dotted pattern than the striped pattern, and thus f¯ in the dotted pattern is lower than that of the striped pattern even though they have a higher cooperator fraction locally.

Figure 7.

Figure 7.

Density profiles at a given y. At a given pattern in each column, we horizontally slice along the x-axis at different points such as y = 271, 211, 141, 71 and 10 (from top to bottom) to show defector and cooperator densities. This gives us the densities u and v corresponding to regions near the domain boundaries (272,10), centre (141) and intermediate positions (211,71). The left (right) column is for bacterial growth (human migration) case. Cooperator and defector densities are represented by thick green and thin red coloured lines, respectively.

To see this effect, we look at the average cooperator fraction fy at each slice (average over x at a fixed y). As we can see in figure 8, even though f¯ for the dotted pattern is smaller than that of the striped pattern, locally fy has a higher value. The dotted pattern has a much higher deviation of f and thus locally has much higher f than that of the striped pattern even though it has smaller average cooperator fraction f¯. It seems that the large fluctuations of f and ρ are the properties of the patterns close to the extinction phase.

Figure 8.

Figure 8.

General y. The left column is for the dotted pattern, while right one is for the striped pattern. We can see that fy and ρy, are fluctuating in y, and the dotted pattern has a much larger deviation than the striped pattern. The dotted patterns locally have higher fy than striped patterns.

For more general analysis of patterns for r < rhopf, we measure the difference between average quantities in different patterns at the same parameter set; we measure the difference Δf¯ of the average fractions of cooperators as Δf¯=f¯ at the dotted pattern f¯ at the striped pattern. In parallel, we also measure the different Δρ¯ of the average population density the in the same way. We used all patterns in figure 4. As we can see in figure 9, dotted patterns always get lower cooperator fractions than the striped pattern under the same parameter set while the density can be higher in higher σ. Interestingly, with decreasing σ the total density more rapidly decreases in dotted patterns than striped patterns. This is the evidence that the striped patterns have a larger surviving phase. In figure 9c, we scatter plots all quantities of patterns regardless of parameter sets. Again, we can find the diffusion inspired by bacterial growth give larger f¯ at the same ρ¯.

Figure 9.

Figure 9.

The difference of average quantities in dotted and striped patterns. For patterns used in figure 4, we try to figure out the distinct properties of dotted and striped patterns. The differences of average quantities Δf¯ and Δρ¯ get from the average quantity of dotted and striped patterns. The negative Δf¯(Δρ¯) indicates the higher f¯(ρ¯) of the striped patterns than the dotted patterns.

Appendix D. Colour coding

For visualizing cooperator and defector densities, we use mint green (colour code: no. A7FF70) and fuchsia pink (colour code: no. FF8AF3) colours for each type (colour names: [64]). The ratio of cooperators determines the colour spectrum and saturation of the colour. If only cooperators (defectors) are observed, the corresponding site is coloured mint green (fuchsia pink). The Maya blue colour appears when cooperators and defectors have the same density. The total density of the population is represented as the brightness of the colour. For convenience, we use HSB colour space which is a cylindrical coordinate system (r, θ, h) = (saturation, hue, brightness). The radius of circle r indicates saturation or the colour. The angular variable θ represents the colour spectrum, hue where the red, green and blue are located at θ = 0, θ = 2π/3 and θ = 4π/3, respectively. The relation between RGB and HSB coordinate is tan(θ)=(3(GB))/(2RGB), where R, G and B are red, green and blue coordinates of RGB space (cartesian coordinate). By blending two different colours which have different r and θ, we denote the cooperator fraction.

The height h indicates the brightness of the colour. Here, we use brightness as for the total population density ρ = u + v. If we use a linear function of ρ for brightness, it is hard to figure out the patterns for small population densities. For better visualization, we formulate the brightness as

logaρ+1loga+1, D 1

where a control parameter a (>−1 and ≠ 0) determines the curvature of the brightness function in the total population density ρ (figure 10). The complete colour scheme withstands the standard tests for colour blindness.

Figure 10.

Figure 10.

(a) To amplify brightness for small population densities, we use a nonlinear relation between population density ρ and brightness. When a = 1, the linear relation is recovered. For all figures in the main script, we use a = 15. (b) The exact colour scheme used for colouring the patterns. Each position in a pattern is coloured using this palette by choosing the corresponding f and ρ values.

Data accessibility

The core codes, for the Crank–Nicolson algorithm and the forward Euler method, and test gnuplot scripts are available on Github at https://github.com/tecoevo/DensityDependentDiffusion.

Authors' contributions

Both authors conceived the project, developed and analysed the model and wrote the paper.

Competing interests

We declare we have no competing interests.

Funding

Both authors acknowledge generous support from the Max Planck Society.

References

  • 1.Maynard Smith J, Szathmáry E. 1995. The major transitions in evolution. Oxford, UK: W. H. Freeman. [Google Scholar]
  • 2.Nowak MA. 2006. Evolutionary dynamics. Cambridge, MA: Harvard University Press. [Google Scholar]
  • 3.Dawes RM. 1980. Social dilemmas. Annu. Rev. Psychol. 31, 169–193. ( 10.1146/annurev.ps.31.020180.001125) [DOI] [Google Scholar]
  • 4.Hardin G. 1968. The tragedy of the commons. Science 162, 1243–1248. ( 10.1126/science.162.3859.1243) [DOI] [PubMed] [Google Scholar]
  • 5.Ordner JP. 2017. Community action and climate change. Nat. Clim. Change 7, 161–163. ( 10.1038/nclimate3236) [DOI] [Google Scholar]
  • 6.Milinski M. 1987. Tit for tat in sticklebacks and the evolution of cooperation. Nature 325, 433–435. ( 10.1038/325433a0) [DOI] [PubMed] [Google Scholar]
  • 7.Stander PE. 1992. Cooperative hunting in lions: the role of the individual. Behav. Ecol. Sociobiol. 29, 445–454. ( 10.1007/BF00170175) [DOI] [Google Scholar]
  • 8.Gazda SK, Connor RC, Edgar RK, Cox F. 2005. A division of labour with role specialization in group-hunting bottlenose dolphins (Tursiops truncatus) off Cedar Key, Florida. Proc. R. Soc. B 272, 135–140. ( 10.1098/rspb.2004.2937) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Gore J, Youk H, van Oudenaarden A. 2009. Snowdrift game dynamics and facultative cheating in yeast. Nature 459, 253–256. ( 10.1038/nature07921) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Hammerschmidt K, Rose CJ, Kerr B, Rainey PB. 2014. Life cycles, fitness decoupling and the evolution of multicellularity. Nature 515, 75–79. ( 10.1038/nature13884) [DOI] [PubMed] [Google Scholar]
  • 11.Pacheco JM, Santos FC, Dingli D. 2014. The ecology of cancer from an evolutionary game theory perspective. Interface Focus 4, 20140019 ( 10.1098/rsfs.2014.0019) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Ostrom E. 1999. Governing the commons. Cambridge, UK: Cambridge University Press. [Google Scholar]
  • 13.Nowak MA. 2006. Five rules for the evolution of cooperation. Science 314, 1560–1563. ( 10.1126/science.1133755) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Wright S. 1931. Evolution in Mendelian populations. Genetics 16, 97–159. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Maynard Smith J. 1964. Group selection and kin selection. Nature 201, 1145–1147. ( 10.1038/2011145a0) [DOI] [Google Scholar]
  • 16.Traulsen A, Nowak MA. 2006. Evolution of cooperation by multi-level selection. Proc. Natl Acad. Sci. USA 103, 10 952–10 955. ( 10.1073/pnas.0602530103) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Nowak MA, Tarnita CE, Antal T. 2010. Evolutionary dynamics in structured populations. Phil. Trans. R. Soc. B 365, 19–30. ( 10.1098/rstb.2009.0215) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Broom M, Rychtář J, Stadler BT. 2011. Evolutionary dynamics on graphs – the effect of graph structure and initial placement on mutant spread. J. Stat. Theory Pract. 5, 369–381. ( 10.1080/15598608.2011.10412035) [DOI] [Google Scholar]
  • 19.Allen B, Nowak MA, Dieckmann U. 2013. Adaptive dynamics with interaction structure. Am. Nat. 181, E139–E163. ( 10.1086/670192) [DOI] [PubMed] [Google Scholar]
  • 20.Peña J, Nöldeke G, Lehmann L. 2015. Evolutionary dynamics of collective action in spatially structured populations. J. Theor. Biol. 382, 122–136. ( 10.1016/j.jtbi.2015.06.039) [DOI] [PubMed] [Google Scholar]
  • 21.Nowak MA, May RM. 1992. Evolutionary games and spatial chaos. Nature 359, 826–829. ( 10.1038/359826a0) [DOI] [Google Scholar]
  • 22.Wakano JY, Nowak MA, Hauert C. 2009. Spatial dynamics of ecological public goods. Proc. Natl Acad. Sci. USA 106, 7910–7914. ( 10.1073/pnas.0812644106) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Clobert J, Ims RA, Rousset F. 2004. Causes, mechanisms and consequences of dispersal. In Ecology, genetics and evolution of metapopulations (eds IA Hanski, OE Gaggiotti), pp. 307–335. Amsterdam, The Netherlands: Elsevier.
  • 24.Hanski IA. 2011. Eco-evolutionary spatial dynamics in the Glanville fritillary butterfly. Proc. Natl Acad. Sci. USA 108, 14 397–14 404. ( 10.1073/pnas.1110020108) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Clobert J, Baguette M, Benton TG, Bullock JM. 2012. Dispersal ecology and evolution. Oxford, UK: Oxford University Press. [Google Scholar]
  • 26.Hauert C, Yuichiro Wakano J, Doebeli M. 2008. Ecological public goods games: cooperation and bifurcation. Theor. Popul. Biol. 73, 257–263. ( 10.1016/j.tpb.2007.11.007) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Taylor PD, Jonker LB. 1978. Evolutionarily stable strategies and game dynamics. Math. Biosci. 40, 145–156. ( 10.1016/0025-5564(78)90077-9) [DOI] [Google Scholar]
  • 28.Hofbauer J, Sigmund K. 1998. Evolutionary games and population dynamics. Cambridge, UK: Cambridge University Press. [Google Scholar]
  • 29.Hauert C, Holmes M, Doebeli M. 2006. Evolutionary games and population dynamics: maintenance of cooperation in public goods games. Proc. R. Soc. B 273, 2565–2570. ( 10.1098/rspb.2006.3600) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Gokhale CS, Hauert C. 2016. Eco-evolutionary dynamics of social dilemmas. Theor. Popul. Biol. 111, 28–42. ( 10.1016/j.tpb.2016.05.005) [DOI] [PubMed] [Google Scholar]
  • 31.Hauert C, Holmes M, Doebeli M. 2006. Corrigendum: evolutionary games and population dynamics: maintenance of cooperation in public goods games. Proc. R. Soc. B 273, 3131–3132. ( 10.1098/rspb.2006.3717) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Turing AM. 1952. The chemical basis of morphogenesis. Phil. Trans. R. Soc. B 237, 37–72. ( 10.1098/rstb.1952.0012) [DOI] [Google Scholar]
  • 33.Wakano JY, Hauert C. 2011. Pattern formation and chaos in spatial ecological public goods games. J. Theor. Biol. 268, 30–38. ( 10.1016/j.jtbi.2010.09.036) [DOI] [PubMed] [Google Scholar]
  • 34.Okubo A, Levin SA. 1980. Diffusion and ecological problems: mathematical models. Berlin, Germany: Springer. [Google Scholar]
  • 35.Loe LE, Mysterud A, Veiberg V, Langvatn R. 2009. Negative density-dependent emigration of males in an increasing red deer population. Proc. R. Soc. B 276, 2581–2587. ( 10.1098/rspb.2009.0224) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Ohgiwari M, Matsushita M, Matsuyama T. 1992. Morphological changes in growth phenomena of bacterial colony patterns. J. Phys. Soc. Jap. 61, 816–822. ( 10.1143/JPSJ.61.816) [DOI] [Google Scholar]
  • 37.Grauwin S, Bertin E, Lemoy R, Jensen P. 2009. Competition between collective and individual dynamics. Proc. Natl Acad. Sci. USA 106, 20 622–20 626. ( 10.1073/pnas.0906263106) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Aktipis A. 2016. Principles of cooperation across systems: from human sharing to multicellularity and cancer. Evol. Appl. 9, 17–36. ( 10.1111/eva.12303) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Denno RF. 1994. The evolution of dispersal polymorphisms in insects: the influence of habitats, host plants and mates. Res. Popul. Ecol. 36, 127–135. ( 10.1007/BF02514927) [DOI] [Google Scholar]
  • 40.Solbreck C. 1995. Variable fortunes in a patchy landscape—the habitat templet of an insect migrant. Res. Popul. Ecol. 37, 129–134. ( 10.1007/BF02515770) [DOI] [Google Scholar]
  • 41.Cappuccino N, Price P. 1995. Population dynamics: new approaches and synthesis. Amsterdam, The Netherlands: Elsevier Science. [Google Scholar]
  • 42.Ezoe H, Iwasa Y. 1997. Evolution of condition-dependent dispersal: a genetic-algorithm search for the ESS reaction norm. Res. Popul. Ecol. 39, 127–137. ( 10.1007/BF02765258) [DOI] [Google Scholar]
  • 43.Braendle C, Davis GK, Brisson JA, Stern DL. 2006. Wing dimorphism in aphids. Heredity 97, 192–199. ( 10.1038/sj.hdy.6800863) [DOI] [PubMed] [Google Scholar]
  • 44.Ogawa K, Miura T. 2014. Aphid polyphenisms: trans-generational developmental regulation through viviparity. Front. Physiol. 5, 1 ( 10.3389/fphys.2014.00001) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Sinervo B, Clobert J. 2003. Morphs, dispersal behavior, genetic similarity, and the evolution of cooperation. Science 300, 1949–1951. ( 10.1126/science.1083109) [DOI] [PubMed] [Google Scholar]
  • 46.Aktipis CA, Maley CC, Pepper JW. 2012. Dispersal evolution in neoplasms: the role of disregulated metabolism in the evolution of cell motility. Cancer Prev. Res. 5, 266–275. ( 10.1158/1940-6207.CAPR-11-0004) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Kawasaki K, Mochizuki A, Matsushita M, Umeda T, Shigesada N. 1997. Modeling spatio-temporal patterns generated by Bacillus subtilis. J. Theor. Biol. 188, 177–185. ( 10.1006/jtbi.1997.0462) [DOI] [PubMed] [Google Scholar]
  • 48.Burkey TV. 1997. Metapopulation extinction in fragmented landscapes: using bacteria and protozoa communities as model ecosystems. Am. Nat. 150, 568–591. ( 10.1086/286082) [DOI] [PubMed] [Google Scholar]
  • 49.Gonzalez A, Lawton JH, Gilbert FS, Blackburn TM, Evans-Freke I. 1998. Metapopulation dynamics, abundance, and distribution in a microecosystem. Science 281, 2045–2047. ( 10.1126/science.281.5385.2045) [DOI] [PubMed] [Google Scholar]
  • 50.Aktipis CA. 2011. Is cooperation viable in mobile organisms? Simple walk away rule favors the evolution of cooperation in groups. Evol. Hum. Behav. 32, 263–276. ( 10.1016/j.evolhumbehav.2011.01.002) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Sharif GM, Wellstein A. 2015. Cell density regulates cancer metastasis via the Hippo pathway. Future Oncol. 11, 3253–3260. ( 10.2217/fon.15.268) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Hanski I. 2001. Spatially realistic theory of metapopulation ecology. Naturwissenschaften 88, 372–381. ( 10.1007/s001140100246) [DOI] [PubMed] [Google Scholar]
  • 53.Andreassen HP, Ims RA. 2001. Dispersal in patchy vole populations: role of patch configuration, density dependence, and demography. Ecology 82, 2911–2926. ( 10.1890/0012-9658(2001)082[2911:DIPVPR]2.0.CO;2) [DOI] [Google Scholar]
  • 54.Ims RA, Andreassen HP. 2000. Spatial synchronization of vole population dynamics by predatory birds. Nature 408, 194–196. ( 10.1038/35041562) [DOI] [PubMed] [Google Scholar]
  • 55.Krebs CJ, Kenney AJ, Gilbert S, Danell K, Angerbjorn A, Erlinge S, Bromley RG, Shank C, Carriere S. 2002. Synchrony in lemming and vole populations in the Canadian Arctic. Can. J. Zool. 80, 1323–1333. ( 10.1139/z02-120) [DOI] [Google Scholar]
  • 56.Gäachter S, Herrmann B. 2009. Reciprocity, culture and human cooperation: previous insights and a new cross-cultural experiment. Phil. Trans. R. Soc. B 364, 791–806. ( 10.1098/rstb.2008.0275) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Wu JJ, Li C, Zhang BY, Cressman R, Tao Y. 2014. The role of institutional incentives and the exemplar in promoting cooperation. Sci. Rep. 4, 6421 ( 10.1038/srep06421) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Arthur WB. 1994. Inductive reasoning and bounded rationality. Am. Econ. Rev. 84, 406–411. [Google Scholar]
  • 59.Rossetti V, Filippini M, Svercel M, Barbour AD, Bagheri HC. 2011. Emergent multicellular life cycles in filamentous bacteria owing to density-dependent population dynamics. J. R. Soc. Interface 8, 1772–1784. ( 10.1098/rsif.2011.0102) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Joshi J, Couzin ID, Levin SA, Guttal V. 2017. Mobility can promote the evolution of cooperation via emergent self-assortment dynamics. PLoS Comput. Biol. 13, 1–19. ( 10.1371/journal.pcbi.1005732) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Liu QX, Doelman A, Rottschäfer V, de Jager M, Herman PMJ, Rietkerk M, van de Koppel J. 2013. Phase separation explains a new class of self-organized spatial patterns in ecological systems. Proc. Natl Acad. Sci. USA 110, 11 905–11 910. ( 10.1073/pnas.1222339110) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Liu QX, Rietkerk M, Herman PMJ, Piersma T, Fryxell JM, van de Koppel J. 2016. Phase separation driven by density-dependent movement: a novel mechanism for ecological patterns. Phys. Life Rev. 19, 107–121. ( 10.1016/j.plrev.2016.07.009) [DOI] [PubMed] [Google Scholar]
  • 63.Tarnita CE, Bonachela JA, Sheffer E, Guyton JA, Coverdale TC, Long RA, Pringle RM. 2017. A theoretical foundation for multi-scale regular vegetation patterns. Nature 541, 398–401. ( 10.1038/nature20801) [DOI] [PubMed] [Google Scholar]
  • 64.Color Name & Hue. See http://www.color-blindness.com/color-name-hue/.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Reviewer comments

Data Availability Statement

The core codes, for the Crank–Nicolson algorithm and the forward Euler method, and test gnuplot scripts are available on Github at https://github.com/tecoevo/DensityDependentDiffusion.


Articles from Royal Society Open Science are provided here courtesy of The Royal Society

RESOURCES