## Figures

## Abstract

We theoretically study the dynamics of two interacting microbial species in the chemostat. These species are competitors for a common resource, as well as mutualists due to cross-feeding. In line with previous studies (Assaneo, et al., 2013; Holland, et al., 2010; Iwata, et al., 2011), we demonstrate that this system has a rich repertoire of dynamical behavior, including bistability. Standard Lotka-Volterra equations are not capable to describe this particular system, as these account for only one type of interaction (mutualistic or competitive). We show here that the different steady state solutions can be well captured by an extended Lotka-Volterra model, which better describe the density-dependent interaction (mutualism at low density and competition at high density). This two-variable model provides a more intuitive description of the dynamical behavior than the chemostat equations.

**Citation: **Vet S, de Buyl S, Faust K, Danckaert J, Gonze D, Gelens L (2018) Bistability in a system of two species interacting through mutualism as well as competition: Chemostat vs. Lotka-Volterra equations. PLoS ONE 13(6):
e0197462.
https://doi.org/10.1371/journal.pone.0197462

**Editor: **Ramon Grima,
University of Edinburgh, UNITED KINGDOM

**Received: **January 16, 2018; **Accepted: **May 2, 2018; **Published: ** June 6, 2018

**Copyright: ** © 2018 Vet et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

**Data Availability: **All relevant data are within the paper and its Supporting Information files.

**Funding: **This research was funded by the Research Council of the Vrije Universiteit Brussel, the Belgian Science Policy Office (BelSPO) and by the Interuniversity Institute of Bioinformatics in Brussels (IB2). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

**Competing interests: ** The authors have declared that no competing interests exist.

## Introduction

Microorganisms form complex communities whose members compete for nutrients, cross-feed metabolites, parasitize each other and engage in a variety of other interactions. The recent advance of sequencing technology has greatly increased our knowledge of microbial community composition and in particular its change over time [4, 5]. Numerous studies have explored interactions within microbial communities and between hosts and their microorganisms [6–9], thereby showing that microorganisms compete with and parasitize each other, cross-feed and engage in all the other ecological interaction types known from macro-ecology (i.e. mutualism, commensalism, amensalism, competition and exploitation). These data sets form the basis for the development and parameterization of community models [10, 11], which in turn serve to deepen our understanding of community structure and dynamics (e.g. [12, 13]) and allow predicting the community response to perturbations such as change in diet [14] and pathogens [15].

The Lotka-Volterra equation is a classical way to model competition between species [16, 17] that has been generalized to multiple species engaging in all types of ecological interactions [18, 19]. Thanks to its ease of parameterization and well-established mathematical properties, as the interactions are modeled via linear functions in the growth rates, this generalized Lotka-Volterra (gLV) equation is frequently employed to model microbial communities [15, 20, 21]. Its simplicity enabled the formulation of a number of criteria to test for the stability of the coexistence equilibrium, where all species survive together [12, 22]. However, the gLV model provides a greatly simplified view on microbial communities, since it ignores the interaction mechanism, e.g. in the case of cross-feeding, the kinetics of the metabolite(s) that is/are exchanged between the species. In addition, it assumes that microbial community dynamics can be described by considering only pair-wise interactions and that effects of interacting species can be added (“additivity assumption”). The total fitness of a species is then the sum of the individual fitness with the fitness influences of the species it interacts with [23].

While recent experiments demonstrated that community dynamics can be predicted to a certain extent from pair-wise interactions [6, 24], the additivity assumption and the neglect of the interaction mechanism are serious limitations of the gLV. Recently, Momeni and colleagues have shown that some interaction mechanisms involving cross-feeding break the assumption of the gLV that the explicit modeling of interaction mediators can be neglected. For different interactions they compare numerically the mechanistic models, alternative pairwise models and LV models. They show that, depending on the interaction mechanism, pairwise models may fail [23]. Furthermore, there is experimental evidence where pair-wise interaction strengths do not add up in co-culture [25], while also theoretically the importance of higher order interactions, where there are multiple mediators, has been shown [26]. It is therefore still unclear to what extent the additivity assumption holds in microbial communities and in which conditions the gLV formalism is applicable.

Here, we want to address an interesting case, namely the simultaneous presence of a mutualistic and a competitive relationship between two species. Such a situation occurs when bacteria cross-feed essential co-factors, but in parallel compete for the main carbon source which can happen for instance in human gut microbiota (e.g. [27, 28]). If several species compete for a single nutrient, the competitive exclusion principle predicts that only a single species will survive in the long term [29]. In general, coexistence of species at steady state is only possible when the number of competing species is smaller than the number of different nutrients they compete for [30]. This principle inspired Hutchinson’s paradox of the plankton [31], which refers to the surprisingly large diversity of plankton species supported by a small number of nutrients. Several solutions to this paradox have been proposed. One suggested solution is to allow the species to coexist dynamically, e.g. in an oscillatory or chaotic state [32, 33]. The presence of spatial heterogeneity also permits the co-existence of several competing species (e.g. [34]). In addition, the competitive exclusion principle breaks down when including other types of interactions, such as mutualism [27] or cross-feeding [35]. Thus, even in a well-mixed environment, we expect to find scenarios where two competing and mutually cross-feeding species survive.

The LV equations are often employed to model pair-wise interactions [16, 36, 37]. However, it is challenging to model the presence of several interactions between two species with the LV formalism, since only the combined interaction strength can be represented. Our goal here is therefore to extend the LV equations in such a manner that the simultaneous occurrence of competition and mutualism can be accurately modeled.

To extend the LV model, we turn to chemostat equations [38–41], which describe species interactions while taking the interaction mechanism into account. Chemostat equations are based on controlled cultures of microorganisms, which allow measuring growth, metabolite consumption and production kinetics. In its simplest form, a chemostat is a well-stirred growth vessel with a continuous inflow of fresh medium and outflow of cell culture medium, such that the culture volume is kept constant. The chemostat is frequently employed to study ecological interactions such as competition [38]. In contrast to LV models, chemostat models explicitly take into account nutrient concentrations and can therefore capture more complex relationships, including the combination of mutualism and competition, thereby breaking the additivity assumption. Here, we show that the chemostat equations, which are relatively complex (five variables and nonlinear growth functions), can be simplified to a set of two extended LV equations. Every term has a simple, intuitive interpretation. The extended LV differs from the regular LV equations by including growth rates that are quadratic functions of the species abundances. We show that this reduced set of equations provides a good approximation of all steady-state solutions, and correctly captures the occurrence of bistability in a competitive-mutualistic system, as described previously [1, 42–44]. Moreover, as this reduced model is two-dimensional, we can illustrate its dynamics in the phase plane. This paper is organized in the following way. We start by introducing the chemostat system of two species that interact in a mutualistic and competitive manner and study its dynamical behavior. Next, we introduce the reduced model, a two-dimensional extended LV system. With this simplified model, we then analyze the dynamics in more detail, describe the conditions for bistability and discuss how well the extended LV captures the dynamics in the original chemostat system. We expect that a multispecies version of our extended model will better capture the dynamics of microbial communities than the generalized Lotka-Volterra model [4, 15, 20] as it allows to represent more complex dynamical behavior.

## Methods

We numerically simulate ordinary differential equations using *python* (Python Software Foundation. Python Language Reference, version 2.7. Available at http://www.python.org). More specifically, we use the integrate function of the package *scipy* [45].

In order to calculate a steady state over a range of parameters we use a Newton-Raphson method. This is an iterative method to find the optimal solution for the root of a set of equations, using the jacobian, see for example [46].

## Results

### Bistability in the chemostat system

The system we focus on consists of two microbial species (*X*_{1} and *X*_{2}), which are competitors for a shared compound, the main carbon source *S*_{0} (Fig 1(a)). Additionally, they are also mutualists via cross-feeding of nutrients *S*_{1} and *S*_{2} (e.g. short-chain fatty acids such as formate and acetate). Without any such mutualism, the competition for the substrate *S*_{0} would lead to the extinction of one of the species, in agreement with the competitive exclusion principle. However, thanks to the mutualistic interaction, it is in principle possible that both species survive. In this model, an additional inflow of these cross-feeding nutrients is assumed, as this allows a species to survive without the other.

Microbial species are represented by variables *X* (blue), nutrients by *S* (red), arrows represent the consumption or production of a nutrient by a species. In this system *X*_{1} and *X*_{2} compete for the consumption of *S*_{0} and they are mutualistic due to the cross-feeding through nutrients *S*_{1} and *S*_{2}. Self-inhibition in the simplified system is determined via the parameter *b*_{ii} for species *X*_{i} (*i* = 1, 2), *b*_{ij} (*i* ≠ *j*) quantifies the strength of mutualism and *c*_{i} the strength of competition, *d*_{i} is the death rate.

This system of bacteria (*X*_{i}, *i* = 1, 2) and nutrients (*S*_{i}, *i* = 0, 1, 2) can be modeled by a set of differential Eq (1) that are commonly used for the chemostat [38]:
(1)
where the meaning of the variables and parameters can be found in Table 1. Here, the parameters *ν* are defined positive for production, and negative for consumption of nutrients.

The chemostat consists of a growth chamber with a continuous inflow and outflow. Thus, the flow rate Φ of fresh culture media and the input concentration of nutrients (*i* = 0, 1, 2) are tunable experimental parameters. The growth rates *f*_{i} (*i* = 1, 2) and the production and consumption constants *ν* are specific for every microbial species. We make the following assumptions:

- The death rate of the species is negligible in comparison with the flow rate.
- The production and consumption (determined by
*ν*) of nutrients are proportional to the growth of the species. - Growth rates are given by Eq (2), consisting of
*μ*, the maximal growth rate, and Monod terms , with*K*the half saturation constant: (2) These functions were introduced by Monod [47] and increase monotonically from zero to one with*S*. The Monod functions imply a strict dependence on both nutrients [27], such that a species requires both nutrients to grow.

This system has been described before, using different models, in [1–3], where bistability was observed as well. To assess how frequent bistability can occur, we performed 10.000 simulations using random parameter values. We find bistability in less than 0.1% of the cases. However, if we require the system to have a high inflow of *S*_{0}, as well as a relatively low inflow of *S*_{1} and *S*_{2}, then we find that two distinct stable states are more frequently found (6% percent of the cases) (see S1 Text for more details). These operating conditions are more likely to lead to bistability as larger *S*_{0} ensures the species to grow, thus producing more of *S*_{1} and *S*_{2}, which again further promotes their growth. In other words, a high inflow of *S*_{0}, combined with a low inflow of the nutrients *S*_{1} and *S*_{2} strengthens the positive feedback that exists between *X*_{1} and *X*_{2}. Therefore, in this work, we assume such a high inflow of *S*_{0}, combined with a low inflow of *S*_{1} and *S*_{2} ( and are small, but non-zero). This approach allows us to illustrate the widest range of the possible dynamics in this chemostat system, as in the absence of inflow of *S*_{1} and *S*_{2} a species can not survive by itself.

In what follows, we shortly summarize how the chemostat system behaves for different values of the growth rates ** μ**, using the parameter set (3), unless mentioned otherwise.
(3)

Varying the growth rates ** μ** of the species, we find various regions of qualitatively different behavior (Fig 2). For low growth rates

**all species die out, regardless of the initial densities (Fig 2(a)). When both growth rates are increased, bistability exists, where the species coexist or die out, depending on the initial densities (Fig 2(b)). If the growth rates are not balanced, then it is also possible that one species survives or dies out, whereas the other one always survives, albeit with a different final density (Fig 2(c)). Finally, if both growth rates are large, then both species survive for all initial values (Fig 2(d)). In the next section, we introduce an extended LV-like model, with which we show and interpret the occurrence of these different types of behavior.**

*μ*For each panel 10 simulations are shown using initial densities varied between 0 and 20. (a) Extinction of the species *X*_{1} and *X*_{2} for all initial densities (** μ** = [800, 800]). (b) Bistability: depending on the initial densities the species will either survive (state 1) or become extinct (state 2) (

**= [1600, 1600]). (c) Bistability: There are two final states possible: coexistence of the species,**

*μ**X*

_{1}≠ 0 and

*X*

_{2}≠ 0 (state 1) or extinction of species

*X*

_{2}(state 2) (

**= [2400, 1200]). (d) Survival of**

*μ**X*

_{1}and

*X*

_{2}for all initial densities (

**= [2400, 2400]).**

*μ*### Derivation of an extended Lotka-Volterra model

The consumption and production of compounds is explicitly modeled in the chemostat equations, making it a quantitative model that can be related to the actual experimental system. However, this also increases the complexity of the system. Our goal here is to reduce the chemostat model to a model of only two equations with reduced complexity, allowing for a qualitative dynamical analysis, while retaining a physical interpretation of each term in the model. This model reduction consists of the following critical steps:

- Elimination of the nutrient variables, which is possible since linear relations between
*S*and*X*exist for . This means, however, that the transient dynamics of the system is no longer accurately captured in the reduced system. - Simplification of the growth rates using a Taylor approximation when
*K*≫*S*. It is always possible to find a parameter set for which the system has the same steady states that obeys this condition. - Elimination of higher order terms that are not critical for the qualitative dynamics.

For a more detailed discussion of this derivation and the corresponding approximations, see S2 Text. We obtain the following two equations: (4) where the relations of the new parameters with the chemostat parameters are listed here: (5)

Here it can also be observed that if there is no external inflow of the cross-feeding nutrients *S*_{i} (, *i* = 1, 2) this would limit the dynamic possibilities as *a*_{i} would be zero and the species would not be able to survive without their partner. The values corresponding to the parameter set (3) that was used in Fig 2 are now:
(6)

It is possible to renormalize the equations by dividing by the growth rates ** r** to reduce the amount of parameters to 9. We choose not to do this to keep a clear connection with the chemostat equations. The concentration of input nutrients is modeled via the parameters

**. The parameters**

*a***quantify the linear interactions in the growth term, either due to self-limitation (carrying capacity), or due to the beneficial effect of the other species (mutualism). The quadratic term in the growth rates,**

*b***, describes the competition between the species. This term is negligible for small densities of the competing species, but becomes more important when the densities increase. Finally, the parameter**

*c**d*characterizes the flow rate. In relation to the LV equations,

*d*can also be seen as a death rate. The interactions can be represented in a simple scheme as in Fig 1(b). Our model distinguishes itself from the classical LV equations in that the growth rates are quadratic functions of the species densities. We will show that this additional nonlinearity allows for the bistable behavior of the system.

### Bistability in the extended Lotka-Volterra model

In order to analyze the steady state solutions in the extended Lotka-Volterra model (4), we study the nullclines in the phase plane. The nullclines of the system are defined by (*i* = 1, 2), and these are either parabolae, determined by when the species are alive (*X*_{i} > 0), or the *X*_{1}- and/or *X*_{2}-axis when the species are dead (*X*_{i} = 0). At the intersection of these nullclines, steady state solutions are found (see Fig 3), which we have given the following names:

**E**: extinction of both species.**L**_{1}: survival of species*X*_{1}, extinction of species*X*_{2}.**L**_{2}: survival of species*X*_{2}, extinction of species*X*_{1}.**L**_{12}: survival of both species.

Different steady state configurations are found at the intersections of the nullclines: both species become extinct *E*, both species survive *L*_{12}, only one species survives *L*_{1}, *L*_{2}. Stable solutions are indicated by the solid circle, while unstable saddle solutions are shown by the open circle.

Different situations are illustrated in Fig 3. If the parabola do not intersect, which happens for small growth rates, there is no state where both species can survive (Fig 3(a)). As a result both species become extinct (**E**) or only one species survives (**L**_{1} or **L**_{2}). However, if the growth rates of one or both species are increased, a stable state **L**_{12} is created in a saddle-node bifurcation (SN, see S1 Fig). This leads to bistability between **E** and **L**_{12} (Fig 3(b)), or between **L**_{i} (*i* = 1, 2) and **L**_{12} when *r*_{1} ≠ *r*_{2} (Fig 3(c)). In each case, the boundary between the two basins of attractions is defined by the unstable manifold of the saddle point. When increasing the growth rates even further, the solutions **E** or **L**_{i} (*i* = 1, 2) lose their stability in a transcritical bifurcation (T, S1 Fig), such that only one stable fixed point remains, being **L**_{12} (Fig 3(d)).

In order to find criteria for bistability, we analyze the phase space depicted in Fig 3(b) in more detail. A zoom of this situation is shown in Fig 4. When the densities of *X*_{1} and *X*_{2} are both very low (region (1)), the linear and quadratic terms in the growth rates are negligible, such that the dynamics is governed by *r*_{i} *a*_{i} − *d*, which is negative here. Both species become extinct in this region because the species’ growth cannot compensate for the outflow. Therefore, *r*_{i} *a*_{i} − *d* < 0 is a first condition for bistability to occur. If only one of the species fullfils this condition, then the other one will always survive and the bistability is such as in Fig 3(c). If *r*_{i} *a*_{i} − *d* is too negative, then the nullclines will no longer intersect, leading to monostability of **E** (Fig 3(a)). Note that in the situation that there is no inflow of the cross-feeding nutrients (, for *i* = 1, 2), then *a*_{i} = 0 so that the first condition is always fulfilled. Therefore the system will be bistable for low flow rates, or both species go extinct for higher flow rates.

The blue dashed lines are the linear approximations of the nullclines and need to intersect in order to have bistability. The regions (1)-(5) are discussed in the text. The blue and red areas correspond to the basins of attraction of each steady state.

More generally, for small densities of the species the nullclines can be approximated by linear functions, hence *r*_{i}(*a*_{i} − *b*_{ii} *X*_{i} + *b*_{ij} *X*_{j}) − *d* = 0, these are the blue dashed lines in Fig 4. As the nullclines need to intersect for bistability, the slope of () needs to be larger than the slope of (). Using these linear approximations, we obtain the constraint *b*_{21} *b*_{12} > *b*_{11} *b*_{22} as a second condition for bistability. In other words, this means that mutualism needs to be stronger than self-inhibition. In region (2) of Fig 4 the mutualism between the two species is dominant, leading to a positive growth for both species. However, in region (5) the quadratic terms become larger as the species densities are higher. Hence the growth is negative here due to the competition. The fixed point **L**_{12} is thus the result of a delicate balance between mutualism and competition. In regions (3) and (4) one density (e.g. *X*_{1}) is large and the other smaller (e.g. *X*_{2}), so that due to self-inhibition and due to mutualism. This will lead to either extinction or coexistence of the species, depending on the initial densities, as respectively indicated by the blue and red region in Fig 4.

In conclusion, there exist two necessary (but not sufficient) conditions for bistability:

*r*_{1}*a*_{1}−*d*< 0 and/or*r*_{2}*a*_{2}−*d*< 0*b*_{21}*b*_{12}>*b*_{11}*b*_{22}

Looking at the significance of these parameters in chemostat (Eq (5)), these conditions become:

- and/or
*ν*_{11}*ν*_{22}>*ν*_{12}*ν*_{21}

Where we used , for *i* = 1, 2, to obtain the second condition. The first condition means that the flow rate Φ needs to sufficiently large. The second condition means that the production of the cross-feeding nutrients needs to compensate for their consumption.

### Comparing the chemostat model with the extended Lotka-Volterra model

Next, we performed a bifurcation analysis to study how the stability of the fixed points changes as a function of the parameters (Fig 5). We did this for the chemostat Eq (1), as well as for its corresponding extended Lotka-Volterra model (4). The results for changing values of the growth rates are shown in Fig 5(a) for the chemostat model and in Fig 5(b) for the extended Lotka-Volterra model. Similarly, the influence of the experimental parameters Φ and are shown in Fig 5(c) and 5(d).

We define these regimes as follows: R1: Extinction. R2: Competitive exclusion, only species *X*_{1} survives. R3: Competitive exclusion, only species *X*_{2} survives. R4: bistability between extinction and coexistence. R5: bistability between survival of *X*_{1} and coexistence. R6: bistability between survival of *X*_{2} and coexistence. R7: coexistence of *X*_{1} and *X*_{2}. (a) Influence of the growth rates ** μ** in the chemostat system (b) Influence of the growth rates

**in the extended LV model (c) Influence of the flow rate Φ and the inflow in the chemostat for**

*μ***= [1600, 800]. (d) Influence of the flow rate Φ and the inflow in the extended LV model for**

*μ***= [0.04, 0.02].**

*r*When changing the growth rates, the resulting behavior is very similar in both models (Fig 5(a) and 5(b)). There is extinction of one or both species for low growth rates (R1,R2,R3), corresponding to the situation illustrated in Fig 3(a). A slightly larger growth rate causes bistability (R4, R5 or R6), such as in Fig 3(b) and 3(c). Finally, when the growth rates are sufficiently large both species will always coexist (R7, Fig 3(d)).

Changing the experimental flow rates Φ and also reveals similar steady state dynamics of both models (Fig 5(a) and 5(b)). However, in the extended Lotka-Volterra model species are more likely to survive for higher values of , as can be seen by the increased area of regions R2 and R7. Similarly, this is also highlighted by the smaller size of regions R1 and R4. This discrepancy between the chemostat and the extended LV model is mainly explained by the neglection of the higher order terms in the simplification. Thus, when quantitative results are required, including these terms would lead to a better correspondence between both models. In general, the flow rate Φ needs to be low in comparison to the inflow in order to allow for survival of the species. Bistability will not occur if the flow rate is too low or the inflow too high.

Although both models show very similar behavior of their steady-state solutions, the extended Lotka-Volterra is highly simplified and therefore has its limitations. The agreement between the chemostat equations and the extended Lotka-Volterra model is lost when the parabola intersect more than twice (see S2 Fig). Although two stable fixed points of coexistence are predicted by the intersecting parabolic nullclines, we did not observe this behavior in the chemostat equations. This type of behavior can occur when the maximum of is situated below and to the right of the maximum of . Using the values of the maxima of parabola we find that this does not happen when the following conditions are satisfied: (7)

A physical interpretation of these conditions is not straightforward. However, one can see that the parameters for self-inhibition *b*_{11} and *b*_{22} should be sufficiently large to balance the parameters for the mutualistic strength *b*_{12} and *b*_{21}.

## Discussion

In this theoretical study we discussed the dynamics of two interacting microbial species in the chemostat. Both species compete for a common resource, while also being mutualists through cross-feeding. Regions of bistable behavior were found in this five-dimensional chemostat system through random parameter selection. In order to gain more insight into the origin of the bistability, we derived an extended Lotka-Volterra (LV) model. As this model is two-dimensional, it allowed us to study the system dynamics in the phase plane using nullclines. Our model differs from the classical LV system in that it has a quadratic term modeling the competition, while the typical linear term describes the mutualistic interaction. All parameters in our model have a clear relation to the original chemostat parameters, such as the inflow of nutrients and outflow of biomass.

We showed that the steady state solutions are qualitatively very similar in both models, such that our model can be effectively used to study such steady-state dynamics. We do not expect temporal dynamics to be accurately captured by this system as it is only a good approximation of the chemostat system after some initial transient time. Using the extended LV system, we analyzed various regions of bistable behavior and its dependence on system parameters. While neglecting higher order terms led to larger regions in parameter space where both species survive, we found good qualitative agreement between both models. We showed that bistability occurs when the mutual dependence on the cross-feeding nutrients is sufficiently high, which is the case when the system has a low inflow of the cross-feeding nutrients and a relatively high inflow of *S*_{0}. For small microbial densities, one or both species will be washed out if one or both growth rates are not sufficient to compensate for the flow rate. However, for larger densities, the growth rate is increased due to mutualism until the densities reach a point where competition limits the growth and the two species can coexist. This creates bistability between one state that has insufficient growth rate and another state where there is a balance between mutualism and competition.

The existence of bistability in such systems has been shown before using different models [1–3]. On the one hand bistability was analyzed more generally using a phase plane analysis [2, 3], while on the other hand chemostat models were also used where mutualism was incorporated in a general function in the species equations [1]. Our approach distinguishes itself from these studies in that we simplify chemostat equations to a two-variable model in which all parameters retain a clear relation to the original chemostat parameters. The advantage of such simplified model is that the dynamics of the system can be analyzed and visualized in the phase plane. For example, by analyzing how the shape of nullclines depend on the different competitive and mutualistic interaction parameters, the existence of bistability can be easily found. Interpreting the existence of bistability in the set of five chemostat equations is considerably more challenging and less intuitive as its description is often limited to numerical simulations.

Our findings are not only limited to chemostat systems, but are expected to be relevant for any system with competition and mutualism. For example, plants release carbon that allows the development of microbes in the rizosphere [48]. These microbes can interact with each other in many different ways, such as through mutualism [7]. Two mutualistic species that both grow on the released carbon could be described by our extended LV model. Furthermore, this model could likely be generalized to model the behavior of more than two interacting microbes. How such generalized systems allow for the coexistence of multiple stable states is a question for future research. We believe that such extensions of the generalized LV equations are an important step towards developing microbial community models that are both more flexible and realistic. Additional realism could be introduced by considering growth not to be proportional to nutrient production, and examining how this would alter the derived extended LV equations. Finally, it is interesting to ask why cooperation exists within microbes despite the risks of free-riders. Certainly in the field of game theory, the influence of cheating behavior of individuals in a cooperating population has been widely studied [49–51]. A model like the extended LV could be another approach to predicting whether a population can survive in the presence of cheating. Cheaters would grow selfishly without producing the cross-feeding nutrients, resulting in lower values for the mutualistic parameters *b*_{12} and *b*_{21} and shifted nullclines, making it less likely for the species to coexist. In the phase plane (Fig 3) it seems that the overall population has a larger benefit by coexisting than by cheating, as the steady state concentration of coexistence is higher in all cases. It would be interesting to further explore how cheating behavior affects the dynamics of this system.

## Supporting information

### S1 Fig. Bifurcation diagram showing the density of the fixed points *X*_{1}, *X*_{2} for increasing growth rates of the species *r*, keeping *r*_{1} = *r*_{2}.

Notation is as in Fig 3. A saddle-node bifurcation is indicated by SN and a transcritical bifurcation by T. Stable (unstable) solutions are plotted in a solid blue (dashed red) line.

https://doi.org/10.1371/journal.pone.0197462.s001

(EPS)

### S2 Fig. Illustration of a situation where the similarity between chemostat equations and the toy model breaks down.

The parabola intersect more than twice, so that two different stable fixed points exist where the species coexist. Parameters: *b*_{11} = *b*_{22} = 2, ** r** = [0.023, 0.023].

https://doi.org/10.1371/journal.pone.0197462.s002

(EPS)

### S1 Text. Random parameter simulations shows how frequent the system behaves bistable.

https://doi.org/10.1371/journal.pone.0197462.s003

(PDF)

### S2 Text. Derivation of the extended Lotka-Volterra equations.

https://doi.org/10.1371/journal.pone.0197462.s004

(PDF)

### S3 Text. Python script that creates time traces and a phase diagram for the extended LV and the chemostat model.

This script shows how the extended LV and the chemostat model can be simulated using Python code.

https://doi.org/10.1371/journal.pone.0197462.s005

(PY)

## References

- 1. Assaneo F, Coutinho RM, Lin Y, Mantilla C, Lutscher F. Dynamics and coexistence in a system with intraguild mutualism. Ecological Complexity. 2013;14:64–74.
- 2. Holland JN, DeAngelis DL. A consumer-resource approach to the density-dependent population dynamics of mutualism. Ecology. 2010;91(5):1286–1295. pmid:20503862
- 3. Iwata S, Kobayashi K, Higa S, Yoshimura J, Tainaka Ki. A simple population theory for mutualism by the use of lattice gas model. Ecological Modelling. 2011;222(13):2042–2048.
- 4. Caporaso JG, Lauber CL, Costello EK, Berg-Lyons D, Gonzalez A, Stombaugh J, et al. Moving pictures of the human microbiome. Genome Biology. 2011;12:R50. pmid:21624126
- 5. David LA, Materna AC, Friedman J, Campos-Baptista MI, Blackburn MC, Perrotta A, et al. Host lifestyle affects human microbiota on daily timescales. Genome Biology. 2014;15:R89. pmid:25146375
- 6. Vos MGJd, Zagorski M, McNally A, Bollenbach T. Interaction networks, ecological stability, and collective antibiotic tolerance in polymicrobial infections. Proceedings of the National Academy of Sciences. 2017;114(40):10666–10671.
- 7. Hassani MA, Durán P, Hacquard S. Microbial interactions within the plant holobiont. Microbiome. 2018;6(1):58. pmid:29587885
- 8. Larimer Anna L, Clay Keith, Bever James D. Synergism and context dependency of interactions between arbuscular mycorrhizal fungi and rhizobia with a prairie legume. Ecology. 2014;95(4):1045–1054. pmid:24933822
- 9. Lima-Mendez G, Faust K, Henry N, Decelle J, Colin S, Carcillo F, et al. Determinants of community structure in the global plankton interactome. Science. 2015;348(6237):1262073. pmid:25999517
- 10. Faust K, Raes J. Microbial interactions: from networks to models. Nature Reviews Microbiology. 2012;10(8):538–550. pmid:22796884
- 11. Widder S, Allen RJ, Pfeiffer T, Curtis TP, Wiuf C, Sloan WT, et al. Challenges in microbial ecology: building predictive understanding of community function and dynamics. The ISME Journal. 2016;10(11):2557–2568. pmid:27022995
- 12. Coyte KZ, Schluter J, Foster KR. The ecology of the microbiome: Networks, competition, and stability. Science. 2015;350(6261):663–666. pmid:26542567
- 13. Gonze D, Lahti L, Raes J, Faust K. Multi-stability and the origin of microbial community types. The ISME Journal. 2017; pmid:28475180
- 14. Faith JJ, McNulty NP, Rey FE, Gordon JI. Predicting a Human Gut Microbiotaś Response to Diet in Gnotobiotic Mice. Science. 2011;333:101–104. pmid:21596954
- 15. Stein RR, Bucci V, Toussaint NC, Buffie CG, Rätsch G, Pamer EG, et al. Ecological Modeling from Time-Series Inference: Insight into Dynamics and Stability of Intestinal Microbiota. PLOS Computational Biology. 2013;9(12):e1003388. pmid:24348232
- 16. Volterra V. Variations and Fluctuations of the Number of Individuals in Animal Species living together. ICES Journal of Marine Science. 1928;3(1):3–51.
- 17. Wangersky PJ. Lotka-Volterra Population Models. Annual Review of Ecology and Systematics. 1978;9(1):189–218.
- 18.
May RM. Stability and Complexity in Model Ecosystems. Princeton University Press; 2001.
- 19.
Solé RV, Bascompte J. Self-Organization in Complex Ecosystems. (MPB-42). Princeton University Press; 2012.
- 20. Marino S, Baxter NT, Huffnagle GB, Petrosino JF, Schloss PD. Mathematical modeling of primary succession of murine intestinal microbiota. PNAS. 2014;111(1):439–444. pmid:24367073
- 21. Buffie CG, Bucci V, Stein RR, McKenney PT, Ling L, Gobourne A, et al. Precision microbiome reconstitution restores bile acid mediated resistance to Clostridium difficile. Nature. 2015;517:205–208. pmid:25337874
- 22. Barabás G, J Michalska-Smith M, Allesina S. The Effect of Intra- and Interspecific Competition on Coexistence in Multispecies Communities. The American Naturalist. 2016;188(1):E1–E12. pmid:27322128
- 23. Momeni B, Xie L, Shou W. Lotka-Volterra pairwise modeling fails to capture diverse pairwise microbial interactions. eLife. 2017;6. pmid:28350295
- 24. Friedman J, Higgins LM, Gore J. Community structure follows simple assembly rules in microbial microcosms. Nature Ecology & Evolution. 2017;1(5):0109.
- 25. Dormann CF, Roxburgh SH. Experimental evidence rejects pairwise modelling approach to coexistence in plant communities. Proceedings of the Royal Society B: Biological Sciences. 2005;272(1569):1279–1285. pmid:16024393
- 26. Bairey E, Kelsic ED, Kishony R. High-order species interactions shape ecosystem diversity. Nature Communications. 2016;7:12285. pmid:27481625
- 27. Megee RD III, Drake JF, Fredrickson AG, Tsuchiya HM. Studies in intermicrobial symbiosis. Saccharomyces cerevisiae and Lactobacillus casei. Canadian Journal of Microbiology. 1972;18(11):1733–1742.
- 28. Rivière A, Gagnon M, Weckx S, Roy D, Vuyst LD. Mutual Cross-Feeding Interactions between Bifidobacterium longum subsp. longum NCC2705 and Eubacterium rectale ATCC 33656 Explain the Bifidogenic and Butyrogenic Effects of Arabinoxylan Oligosaccharides. Applied and Environmental Microbiology. 2015;81(22):7767–7781. pmid:26319874
- 29. Hardin G. The Competitive Exclusion Principle. Science. 1960;131(3409):1292–1297. pmid:14399717
- 30. Pavlou S. Microbial competition in bioreactors. Chemical Industry and Chemical Engineering Quarterly. 2006;12(1):71–81.
- 31. Hutchinson GE. The Paradox of the Plankton. The American Naturalist. 1961;95(882):137–145.
- 32. Huisman J, Weissing FJ. Oscillations and chaos generated by competition for interactively essential resources. Ecological Research. 2002;17(2):175–181.
- 33. Li B, Smith HL. Periodic coexistence of four species competing for three essential resources. Mathematical Biosciences. 2003;184(2):115–135. pmid:12832144
- 34. Allesina S, Levine JM. A competitive network theory of species diversity. PNAS. 2011;108(14):5638–5642. pmid:21415368
- 35.
Goldford JE, Lu N, Bajic D, Estrela S, Tikhonov M, Sanchez-Gorostiagac A, et al. Emergent Simplicity in Microbial Community Assembly. bioRxiv. 2017; p. 205831.
- 36. MacArthur R. Species packing and competitive equilibrium for many species. Theoretical Population Biology. 1970;1(1):1–11. pmid:5527624
- 37. Chesson P. MacArthur’s consumer-resource model. Theoretical Population Biology. 1990;37(1):26–38.
- 38.
Smith HL, Waltman P. The Theory of the Chemostat: Dynamics of Microbial Competition. Cambridge University Press; 1995.
- 39. Muñoz-Tamayo R, Laroche B, Walter E, Doré J, Duncan SH, Flint HJ, et al. Kinetic modelling of lactate utilization and butyrate production by key human colonic bacterial species. FEMS microbiology ecology. 2011;76(3):615–624. pmid:21388423
- 40. Schmidt JK, Riedele C, Regestein L, Rausenberger J, Reichl U. A novel concept combining experimental and mathematical analysis for the identification of unknown interspecies effects in a mixed culture. Biotechnology and Bioengineering. 2011;108(8):1900–1911. pmid:21391206
- 41. Weedermann M, Wolkowicz GSK, Sasara J. Optimal biogas production in a model for anaerobic digestion. Nonlinear Dynamics. 2015;81(3):1097–1112.
- 42. Hajji ME, Harmand J, Chaker H, Lobry C. Association between competition and obligate mutualism in a chemostat. Journal of Biological Dynamics. 2009;3(6):635–647. pmid:22880965
- 43. Zhang Z. Mutualism or cooperation among competitors promotes coexistence and competitive ability. Ecological Modelling. 2003;164(2–3):271–282.
- 44. Wang Y, Wu H. A mutualism-competition model characterizing competitors with mutualism at low density. Mathematical and Computer Modelling. 2011;53(9):1654–1663.
- 45.
Jones E, Oliphant T, Peterson P, et al. SciPy: Open source scientific tools for Python; 2001–. Available from: http://www.scipy.org/.
- 46. AdiBen-Israel . A Newton-Raphson method for the solution of systems of equations. Journal of Mathematical Analysis and Applications. 1966;15:243–252.
- 47. Monod J. The Growth of Bacterial Cultures. Annual Review of Microbiology. 1949;3(1):371–394.
- 48. Morgan JaW, Bending GD, White PJ. Biological costs and benefits to plant–microbe interactions in the rhizosphere. Journal of Experimental Botany. 2005;56(417):1729–1739. pmid:15911554
- 49. Cremer J, Melbinger A, Frey E. Growth dynamics and the evolution of cooperation in microbial populations. Scientific Reports. 2012;2:281. pmid:22355791
- 50. Denison R Ford, Bledsoe Caroline, Kahn Michael, OǴara Fergal, Simms Ellen L, Thomashow Linda S. Cooperation in the rhizosphere and the free rider problem. Ecology. 2003;84(4):838–845.
- 51. Gore J, Youk H, van Oudenaarden A. Snowdrift game dynamics and facultative cheating in yeast. Nature. 2009;459(7244):253–256. pmid:19349960