<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>On pattern formation in the thermodynamically-consistent variational Gray-Scott model</title></titleStmt>
			<publicationStmt>
				<publisher>Elsevier</publisher>
				<date>04/30/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10607908</idno>
					<idno type="doi">10.1016/j.mbs.2025.109453</idno>
					<title level='j'>Mathematical Biosciences</title>
<idno>0025-5564</idno>
<biblScope unit="volume">385</biblScope>
<biblScope unit="issue">C</biblScope>					

					<author>Wenrui Hao</author><author>Chun Liu</author><author>Yiwei Wang</author><author>Yahong Yang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[In this paper, we explore pattern formation in a four-species variational Gary-Scott model, which includes all reverse reactions and introduces a virtual species to describe the birth–death process in the classical Gray-Scott model. This modification transforms the classical Gray-Scott model into a thermodynamically consistent closed system. The classical two-species Gray-Scott model can be viewed as a subsystem of the variational model in the limiting case when the small parameter ε, related to the reaction rate of the reverse reactions, approaches zero. We numerically explore pattern formation in this physically more complete Gray-Scott model in one spatial dimension, using non-uniform steady states of the classical model as initial conditions. By decreasing ε, we observed that the stationary patterns in the classical Gray-Scott model can be stabilized as the transient states in the variational model for a significantly small ε. Additionally, the variational model admits oscillating and traveling wave-like patterns for small ε. The persistent time of these patterns is on the order of O(1/ε). We also analyze the energy stability of two uniform steady states in the variational Gary-Scott model for fixed. Although both states are stable in a certain sense, the gradient flow type dynamics of the variational model exhibit a selection effect based on the initial conditions, with pattern formation occurring only if the initial condition does not converge to the boundary steady state, which corresponds to the trivial uniform steady state in the classical Gray-Scott model.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Pattern formation is an emerging phenomenon observed across various disciplines, including biology, chemistry, physics, and engineering. Examples range from the stripes on a zebra to the spirals of galaxies <ref type="bibr">[1]</ref>. Understanding the mechanisms and principles behind pattern formation has been a longstanding scientific challenge, as it plays a fundamental role in the organization and functionality of natural systems. In biology, pattern formation underpins key processes such as embryonic development, tissue morphogenesis, and cellular differentiation, which are essential for the proper structure and function of living organisms. Mathematical models play a crucial role in understanding pattern formation, offering a powerful tool to unravel its intricate dynamics, uncover fundamental principles, and predict complex behaviors <ref type="bibr">[2]</ref><ref type="bibr">[3]</ref><ref type="bibr">[4]</ref>. During past decades, significant contributions have advanced our understanding of pattern formation, including the molecular underpinnings <ref type="bibr">[5]</ref>, modeling dispersal in biological systems <ref type="bibr">[6]</ref>, investigating dynamic pattern formation in cellular networks <ref type="bibr">[7]</ref>, and exploring multiscale models of developmental systems <ref type="bibr">[8]</ref>.</p><p>Reaction-diffusion equations, rooted in the seminal work of Alan Turing <ref type="bibr">[3]</ref>, have been one of the best-known mathematical models used to study pattern formation <ref type="bibr">[9]</ref><ref type="bibr">[10]</ref><ref type="bibr">[11]</ref><ref type="bibr">[12]</ref>. Arising from Turing instability, reaction-diffusion models can generate a wide variety of spatial patterns. Recent advances in the mathematical study of pattern formation include the integration of computational techniques to compute multiple patterns <ref type="bibr">[13]</ref><ref type="bibr">[14]</ref><ref type="bibr">[15]</ref><ref type="bibr">[16]</ref><ref type="bibr">[17]</ref><ref type="bibr">[18]</ref>, as well as the application of machine learning methods to analyze complex pattern formation from data and discover novel patterns <ref type="bibr">[16,</ref><ref type="bibr">19]</ref>.</p><p>One of the most well-known reaction-diffusion systems for pattern formation is the Gray-Scott model, which can generate a diverse range of spatial patterns <ref type="bibr">[20]</ref><ref type="bibr">[21]</ref><ref type="bibr">[22]</ref><ref type="bibr">[23]</ref>. Originally proposed by Gray and Scott <ref type="bibr">[24,</ref><ref type="bibr">25]</ref>, this model consists of two reacting chemical species in a system of two ordinary differential equations. Later, mechanical effects, i.e., diffusion, was incorporated into the model, leading to reactiondiffusion equations capable of generating complex patterns <ref type="bibr">[20]</ref>. The Gray-Scott model contributes to our understanding of pattern formation observed in various natural and artificial systems <ref type="bibr">[9]</ref> has been widely studied during the past decades <ref type="bibr">[23,</ref><ref type="bibr">26,</ref><ref type="bibr">27]</ref>. These insights not only deepen our understanding of nonlinear dynamics and self-organization but also have practical implications in fields such as chemistry, materials science, and biology <ref type="bibr">[28]</ref>. The Gray-Scott model is a widely used prototype for studying pattern formation, providing a critical link between theoretical modeling and experimental observations across various disciplines <ref type="bibr">[29]</ref>. Similar models for pattern formation include the Belousov-Zhabotinsky reaction <ref type="bibr">[30]</ref>, the Schnakenberg model <ref type="bibr">[31]</ref>, the Gierer-Meinhardt model <ref type="bibr">[32]</ref>, and the Brusselator model <ref type="bibr">[33]</ref>, which also exhibit rich dynamics and are commonly used in mathematical biology and related fields.</p><p>The classical Gray-Scott model is built by coupling linear diffusion equations with the reaction kinetics of two irreversible reactions, described by the law of mass action. More precisely, the Gray-Scott model considers the following two irreversible reactions</p><p>where &#119881; is an activator, &#119880; is a substrate, and &#119875; is an inert product. To maintain the system out of equilibrium, both &#119880; and &#119881; are removed by the feed process <ref type="bibr">[20]</ref>. Consequently, The reaction-diffusion equation of &#119906; and &#119907; are given by <ref type="bibr">[20]</ref> </p><p>subject to certain boundary and initial conditions. Here, &#119906; and &#119907; denote the concentration of &#119880; and &#119881; , the dimensionless reaction rate for the first reaction is set to be 1, &#119896; is the dimensionless rate constant of the second reaction, &#119891; represents the dimensionless feed rate, and &#119863; &#119906; and &#119863; &#119907; are diffusion coefficients. A surprising variety of spatiotemporal patterns can emerge from the reaction-diffusion Eq. ( <ref type="formula">2</ref>) under specific parameter values and initial conditions <ref type="bibr">[20]</ref>.</p><p>From a modeling perspective, the classical Gray-Scott model is not thermodynamically consistent, meaning it may not satisfy the first and second laws of thermodynamics. In biological systems, where energy input, dissipation, and conversion govern self-organization, thermodynamic consistency is crucial for developing mechanistically accurate and predictive models that faithfully capture the underlying physical principles. As a result, the thermodynamic basis for pattern formation in the Gray-Scott model is unclear. For instance, it remains uncertain whether these patterns represent transient phenomena or nonequilibrium steady states, what is the energetic cost of the complex pattern in the models.</p><p>In a recent work <ref type="bibr">[34]</ref>, a variational, reversible Gray-Scott model is developed based on an energetic variational approach (EnVarA) <ref type="bibr">[35,</ref><ref type="bibr">36]</ref>. The model revises the classical Gray-Scott model into a thermodynamically consistent form by including all reverse reactions in the model. Additionally, a virtual species is introduced to account for the influx and efflux of &#119906; and &#119907;, effectively transforming the open system into a subsystem of a larger, closed system. It is proved in <ref type="bibr">[34]</ref> that in the short-time dynamic process, when &#120598;, the small constant related to reaction rates in the reverse part, goes to zero, the solution to the variational Gray-Scott models will converge to that of the classical Gray-Scott models. Additionally, numerical simulations in a recent study <ref type="bibr">[37]</ref> demonstrate pattern formation can occur in the variational model.</p><p>The variational Gray-Scott model not only restores thermodynamic consistency of the classical model but also provides a more realistic framework for studying biological and chemical pattern formation. Many natural processes, such as biochemical reactions and cellular transport mechanisms, involve reversible dynamics that adhere to thermodynamic laws. By capturing these aspects, the variational model allows for a deeper understanding of pattern formation in systems where classical models fall short. Moreover, the techniques and insights developed through this study can be extended to other reactiondiffusion systems, offering a roadmap for analyzing complex patterns in fields ranging from developmental biology to materials science.</p><p>For the classical Gray-Scott model, many nontrivial steady states on the domain &#120570; = (0, 1) with no-flux boundary conditions have been computed in <ref type="bibr">[13]</ref>. As a first step in exploring pattern formation in the thermodynamically consistent variational Gray-Scott model for various values of &#120598;, we use these steady states as initial conditions, expecting they may serve as suitable starting points for observing potential pattern formation in the variational model. Numerical experiments indicate that for relatively large values of &#120598;, all initial conditions quickly converge to a uniform steady state. However, for sufficiently small &#120598;, the variational model exhibits rich transient dynamics: stationary patterns may persist for long periods, and both oscillatory and traveling-wave-like behaviors can emerge. We also analyze the stability of two uniform steady states in the variational Gray-Scott model for fixed &#120598; to provide some theoretical insights to the simulation results. Although both uniform states are stable in a certain sense, pattern formation can only occur if the initial condition does not converge to the boundary steady state, in which (&#119906;, &#119907;) = (1, 0).</p><p>The rest of the paper is organized as follows. In Section 2, we derive the variational Gray-Scott model using the energetic variational approach. Section 3 is devoted to analyzing the energy stability of two uniform steady states. In Section 4, we investigate pattern formation in one dimension for different values of &#120598;, using the steady states from <ref type="bibr">[13]</ref> as initial conditions. Finally, in Section 5, we examine how the persistence time of patterns depends on the parameter &#120598;. A conclusion remark is given in Section 6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Variational Gray-Scott model</head><p>In this section, we briefly review the derivation of the thermodynamically consistent variational Gray-Scott model, proposed in <ref type="bibr">[34]</ref>, by an energetic variational approach <ref type="bibr">[35,</ref><ref type="bibr">36]</ref>.</p><p>Motivated by non-equilibrium thermodynamics, particularly the celebrated works of Lord Rayleigh <ref type="bibr">[38]</ref> and Onsager <ref type="bibr">[39,</ref><ref type="bibr">40]</ref>, the EnVarA has been a powerful tool of building thermodynamically consistent models in physics, chemical engineering, and biology <ref type="bibr">[35,</ref><ref type="bibr">41]</ref>. The key idea of EnVarA is to describe an isothermal and mechanically isolated system by its energy and the rate of energy dissipation over time, along with kinematic (transport) assumptions on the employed variables. More precisely, according to the first and second laws of thermodynamics <ref type="bibr">[35,</ref><ref type="bibr">42]</ref>, an isothermal and closed system possesses an energy-dissipation law</p><p>Here, &#119864; total is the total energy, which is the sum of the Helmholtz free energy &#57906; and the kinetic energy &#57911;; &#9653; (&#119905;) &#8805; 0 stands for the rate of energy dissipation, which equals to the rate of entropy production in this case. Once these quantities are specified, a thermodynamically consistent model can be derived by combining the Least Action Principle (LAP) and the Maximum Dissipation Principle (MDP) <ref type="bibr">[35]</ref>. More specifically, for the energy part, one can employ the LAP, taking variation of the action functional &#57901;(&#119961;) = &#8747; &#119879; 0 (&#57911; -&#57906; ) d&#119905; with respect to &#119961; (the trajectory in Lagrangian coordinates) <ref type="bibr">[35,</ref><ref type="bibr">43]</ref>, to derive the conservative force, i.e., &#120575;&#57901; = &#8747; &#119879; 0 &#8747; &#120570; (force iner -force conv ) &#8901; &#120575;&#119961; d&#119961;d&#119905;. For the dissipation part, one can apply the MDP, taking the variation of the Onsager dissipation functional &#57904; with respect to the ''rate'' &#119961; &#119905; , to derive the dissipative force, i.e., &#120575;&#57904; = &#8747; &#120570; force diss &#8901;&#120575;&#119961; &#119905; d&#119961;, where the dissipation functional &#57904; = 1  2 &#9653; in the linear response regime <ref type="bibr">[39]</ref>. Consequently, the force balance condition results in</p><p>which is the dynamics of the system. In the case that &#57911; = 0, &#120575;&#57901; &#120575;&#119961; = -&#120575;&#57906; &#120575;&#119961; , then the dynamics can be written as</p><p>which is a generalized gradient flow. For these systems, the free energy determines the equilibrium of the system and the rate of energy dissipation determines the dynamics. The EnVarA is originally developed for mechanical systems, and &#119961; should be understood as the flow map. Recent work <ref type="bibr">[41]</ref> extends this variational principle to reaction kinetics by computing the variation with respect to the reaction trajectory &#119877;, analogous to the flow map, and its time derivative &#120597; &#119905; &#119877;, representing the reaction rate, to derive reaction kinetics. One key advantage of using EnVarA to model complex chemo-mechanical systems in biology is its ability to provide a unified framework for both mechanics and chemistry. All multiscale energetic couplings and competing effects are naturally incorporated through the choice of the energy-dissipation law.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Derivation of the variational Gray-Scott models</head><p>Since we are only interested in the concentration of the substrate &#119880; and the activator &#119881; , we can combine the removal process &#119881; and the process of generating &#119875; , an inert product, as one process for mathematical simplicity. Therefore, the chemical reactions described in the classical Gray-Scott model (2) can be represented as follows:</p><p>In the reaction network (5), all chemical reactions are irreversible. In addition, it involves the birth and death of &#119880; , making the overall system an open system.</p><p>To formulate a thermodynamically consistent variational Gray-Scott model, we consider the following reversible chemical reactions:</p><p>where &#120598; &#119894; are small parameters, &#119884; is a virtual species added to model the birth-death process of &#119880; . Clearly, if &#120598; 1 &#8594; 0 and &#120598; 2 &#8594; 0, the first two reactions revert to those in <ref type="bibr">(5)</ref>. The introduction of the virtual species &#119884; , whose concentration is large (of the order &#119874;(1&#8725;&#120598; 3 )), allows us to treat the open system, situated in a sustained environment with influx and efflux, as a subsystem in a larger, closed ''universe'' <ref type="bibr">[44]</ref>. A similar approach is used in <ref type="bibr">[45]</ref>. In general, the small parameters &#120598; &#119894; are different and may not be in the same order. In particular, &#120598; 3 not only represents the reaction rate of the reverse reaction but also describes the concentration scale of the virtual species &#119884; . In the current study, we assume &#120598; 1 = &#120598; 2 = &#120598; 3 = &#120598;. We will explore more general cases in future work. We denote the concentrations of species &#119875; and &#119884; by &#119901; and &#119910;&#8725;&#120598; respectively. To derive the variational Gray-Scott model, we first notice that the concentrations satisfy the following kinematics</p><p>where &#119877; &#119894; is the reaction trajectory of each reaction in <ref type="bibr">(6)</ref>, and &#119958; &#119906; and &#119958; &#119907; are effective velocity induced by the diffusion process. The reaction trajectories &#119877; &#119894; (&#119905;) account for the number of forward reaction has happened for &#119894;th reaction by time &#119905; and may take negative values <ref type="bibr">[41]</ref>. Here, we disregard the diffusion effects on &#119875; and &#119884; , as the slow diffusion of P and Y minimally impacts the dynamics of U and V, which are our main focus. The boundary condition for all species is the non-flux boundary condition, given by</p><p>which ensures the boundary term vanishes in deriving the force balance equation by the EnVarA. It is important to note that</p><p>for the kinematics <ref type="bibr">(7)</ref> along with the non-flux boundary condition <ref type="bibr">(8)</ref>.</p><p>The conservation property ( <ref type="formula">9</ref>) plays an important role in studying the steady state of the variational Gray-Scott model. Following the general framework of modeling reaction-diffusion systems <ref type="bibr">[41]</ref>, the variational Gray-Scott model can be formulated based on the energy-dissipation law</p><p>Here, &#57906; (&#119906;, &#119907;, &#119901;, &#119910;) is the free energy of the system, &#9653; mech and &#9653; cheme are the rate of energy-dissipation due the mechanical (diffusion) and chemical (reaction) parts respectively. The free energy &#57906; (&#119906;, &#119907;, &#119901;, &#119910;) is taken as</p><p>Here, &#7929; = &#119910; &#120598; represents the concentration of &#119884; , &#120590; &#119906; , &#120590; &#119907; , &#120590; &#119901; , &#120590; &#7929; denote internal energy of each species, which together determine the equilibrium of the system. Let (&#119906; &#119904; + , &#119907; &#119904; + , &#119901; &#119904; + , &#7929;&#119904; + ) &#8712; R 4 + be a positive equilibrium of the chemical reaction system (6), then &#120590; &#119906; , &#120590; &#119907; , &#120590; &#119901; , &#120590; &#7929; satisfies</p><p>Since</p><p>we have</p><p>We can solve for &#120590; &#119894; (&#119894; = &#119906;, &#119907;, &#119901;, &#7929;) in terms of &#119896;, &#119891; and &#120598;. Notice in Eq. ( <ref type="formula">14</ref>), that there are four variables but only three equations, resulting in an overparameterized case. The analysis for the differential internal energy &#120590; &#119894; follows a similar pattern. In this paper, we take</p><p>Next, we impose the rate of energy dissipation of the system, given by</p><p>and</p><p>)</p><p>To derive the dynamics from the energy-dissipation law, we apply the EnVarA to the mechanical and chemical parts respectively, which leads to &#119958; &#120572; (&#120572; = &#119906;, &#119907;) and &#119877; &#119894; (&#119894; = 1, 2, 3) such that the energy-dissipation law <ref type="bibr">(10)</ref> holds. In order to get the equation of &#119958; &#119906; , we first define the flow map &#119961; &#119906; (&#119831;, &#119905;) that is associated with &#119958; &#119906; by the ODE</p><p>If we consider only the diffusion of &#119906;, &#119906;(&#119961;, &#119905;) is determined by the flow map &#119961; &#119906; (&#119831;, &#119905;), making &#57906; as a functional of &#119961; &#119906; (&#119831;, &#119905;). Applying the LAP and MDP with respect to &#119961; &#119906; and &#119958; &#119906; leads to the force balance equation (see <ref type="bibr">[34]</ref> for the detailed calculations)</p><p>where &#120583; &#119906; is known as the chemical potential for the species &#119906;. Similarly, we can derive that</p><p>For the chemical part, we need to perform the EnVarA with respect to &#119877; &#119894; and &#120597; &#119905; &#119877; &#119894; , which leads to ln</p><p>Recall that &#120590; &#119906; , &#120590; &#119907; , &#120590; &#119901; , &#120590; &#7929; satisfies ( <ref type="formula">14</ref>), we can show &#120597; &#119905; &#119877; &#119894; satisfies the law of mass action. Indeed, from <ref type="bibr">(20)</ref>, we know that</p><p>The calculations for &#120597; &#119905; &#119877; 2 and &#120597; &#119905; &#119877; 3 are similar.</p><p>Combining the force balance equations ( <ref type="formula">18</ref>)-( <ref type="formula">20</ref>) with the kinematics <ref type="bibr">(7)</ref>, we end up with the following reversible variational Gray-Scott model</p><p>Remark 2.1. Although the Gray-Scott model is not directly associated with any specific biological system, the same approach can be applied to restore thermodynamic consistency in more realistic models of pattern formation in various biological systems, as these models are typically of the reaction-diffusion type <ref type="bibr">[12]</ref>. As another representative example, consider the celebrated Schnakenberg model <ref type="bibr">[31,</ref><ref type="bibr">46]</ref>, given by</p><p>which models the sequence of reactions</p><p>where &#119906; and &#119907; denote the concentrations of species &#119883; and &#119884; , respectively, and &#119886; and &#119887; are the concentrations of &#119860; and &#119861;, assumed to be constant. A thermodynamically consistent version of the Schnakenberg model can be constructed by restoring the reversible parts of the latter two reactions with small reaction rate &#120598; and formulating the full system in terms of &#119886;, &#119887;, &#119906;, and &#119907;. The resulting reaction-diffusion system can be derived from the energy-dissipation law d d&#119905; &#8747; &#119906;(ln &#119906; -1) + &#119906;&#120590; &#119906; + &#119907;(ln &#119907; -1) + &#119907;&#120590; &#119907; + &#119886;(ln &#119886; -1) + &#119886;&#120590; &#119886; + &#119887;(ln &#119887; -1)</p><p>)</p><p>where &#119877; &#119894; are reaction trajectories for the three involved reactions, and &#119958; &#120572; (&#120572; = &#119906;, &#119907;) are average velocities due to the diffusion of &#119906; and &#119907;. The internal energies can be taken as</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Formal limit of the variational Gray-Scott model</head><p>In this subsection, we show the first two equations in the variational Gray-Scott model <ref type="bibr">(22)</ref> can be reduced to the classical Gray-Scott model (2) when &#120598; &#8594; 0.</p><p>Assume the initial concentrations of U, V, P, and Y as &#119906; 0 , &#119907; 0 , &#119901; 0 , and &#119910; 0 &#8725;&#120598;, where &#119910; 0 = &#119891; . When &#120598; is small, we notice that &#119910;(&#119905;) &#8776; &#119910; 0 = &#119891; is a nearly constant function since &#119910; &#119905; &#8776; 0. Thus, as &#120598; approaches zero, the first two equations in the variational Gray-Scott model formally converge to the classical Gray-Scott models, as we drop all terms with &#120598; and replace &#119910; by &#119891; in the &#119906;, &#119907; equation. The above argument can be made more rigorously <ref type="bibr">[34]</ref>. Since both the equations of &#119901; and &#119910; are linear, we have</p><p>By plugging Eq. ( <ref type="formula">24</ref>) into Eq. ( <ref type="formula">22</ref>), we rewrite the equations of &#119906; and &#119907; as follows: <ref type="bibr">)</ref>, where &#119872; is an order one constant with respect to &#120598;, then the following limits hold:</p><p>and &#119910; 0 &#119890; -&#120598;&#119905; &#8594; &#119910; 0 as &#120598; &#8594; 0. Hence, formally, the variational Gray-Scott model ( <ref type="formula">25</ref>) converges to the classical Gray-Scott model</p><p>when &#120598; &#8594; 0. We emphasize that it might be difficult to prove the assumption max{&#8214;&#119906;&#8214; &#119871; &#8734; , &#8214;&#119907;&#8214; &#119871; &#8734; } &#8804; &#119872;. So, the above limit is formal. However, the numerical simulations in the next section show this assumption holds for all tested initial conditions. It is worth emphasizing that the formal convergence does not imply that the performance of the variational Gray-Scott models and the classical model is identical, as the system may exhibit singularity with respect to &#120598;. In the following sections, we will study the dynamical behavior of the variational Gray-Scott model for various &#120598;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Uniform steady states in the variational Gray-Scott model and their energy stability</head><p>Unlike the classical Gray-Scott model (when &#120598; = 0), which has only one uniform steady state (&#119906;, &#119907;) = (1, 0), for a given &#120598; &gt; 0, the variational system admits two uniform steady states. More precisely, for a given initial conditions (&#119906; 0 , &#119907; 0 , &#119901; 0 , &#119910; 0 ) and the domain &#120570; = (0, 1), we define the total mass of all species &#119862; as</p><p>where &#119910; 0 = &#119891; . Assume that (&#119906; &#119904; , &#119907; &#119904; , &#119901; &#119904; , &#119910; &#119904; ) is spatially homogeneous steady-states of the variational Gray-Scott model <ref type="bibr">(22)</ref>, then (&#119906; &#119904; , &#119907; &#119904; , &#119901; &#119904; , &#119910; &#119904; ) satisfies</p><p>subject to the constraint:</p><p>Here, |&#120570;| = 1 is the size of the domain. Solving <ref type="bibr">(28)</ref> with the constraint (29), we obtain two spatially homogeneous steady-states: one is a boundary steady-state given by</p><p>and the other is an interior steady-state expressed as</p><p>where</p><p>Here, the term interior means the steady state is in the interior of the stoichiometric compatibility class <ref type="bibr">[47]</ref>, defined by</p><p>In contrast, the term boundary refers to a steady state that lies on the boundary of this compatibility class.</p><p>Notice that &#120582; = &#57915;(&#120598; -1 ) and &#119862; = &#57915;(&#120598; -1 ), we can estimate the two steady states as follows:</p><p>The concentration of &#119884; is &#57915;(&#120598; -1 ) in the boundary steady state and is &#57915;(1) in the interior steady state. Since the initial condition of &#119884; is &#57915;(&#120598; -1 ), it can be expected that a significant time is needed if the system would like to reach the interior steady state for small &#120598;.</p><p>Remark 3.1. Note that when &#120598; &#8594; 0, we have</p><p>) .</p><p>Hence, the boundary steady state in the variational Gray-Scott model corresponds to the uniform steady state of the classical Gray-Scott model, while the interior steady state is not related to any steady state of the classical Gray-Scott model.</p><p>In this section, we analyze the energy stability of two uniform steady states with fixed &#120598;. Although the variational Gray-Scott model comprises four species -&#119880; , &#119881; , &#119875; , and &#119884; , the conservation law constrains the system's degrees of freedom to three, corresponding to three reaction trajectories &#119877; &#119894; . Specifically, based on Eqs. <ref type="bibr">(7)</ref>, the perturbation in the stability analysis satisfies</p><p>where &#120572; &#119894; &#8712; R for &#119894; = 1, 2, 3. Thus we define the perturbation manifold as follows:</p><p>where, &#119956; &#119894; correspond to the perturbation along the reaction trajectory &#119877; &#119894; . We use &#119864; denote the free energy <ref type="bibr">(11)</ref> without spatial integration throughout this section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Stability of the interior steady-state</head><p>For the interior steady state &#119958; 2 , we can prove that it is a local minimizer of the free energy <ref type="bibr">(11)</ref> based on the following proposition: Proposition 3.1. For any &#120598; &gt; 0, the interior steady state</p><p>is a local minimizer of the energy &#119864; on the manifold &#119958; 0 + &#57919; 1 , where &#119958; 0 = (&#119906; 0 , &#119907; 0 , &#119901; 0 , &#119910; 0 &#8725;&#120598;) is the initial condition.</p><p>Proof. Without loss of generality, we perturb &#119958; 2 along the direction of &#119956; 2 of the three-dimensional manifold &#57919; 1 (a similar analysis applies to other directions) and obtain:</p><p>By the definition of &#120590; &#119901; and &#120590; &#119907; , we conclude that &#120575; = 0 is the unique solution of d&#119864;[&#119958; 2 +&#120575;&#119956; 1 ] d&#120575; = 0, indicating the critical point. Furthermore, by computing the second variation, we have:</p><p>Since &#119907; &#119904; 2 , &#119901; &#119904; 2 &gt; 0 for any &#120598; &gt; 0,</p><p>&gt; 0, indicating that this steady state is a local minimizer in the &#119956; 1 direction, similarly for other directions. &#9633; Next, we examine the energy landscape near the interior steady state and its evolution as &#120598; approaches zero. We plot the energy landscape around the steady state in three directions on &#57919; 1 shown in Fig. <ref type="figure">1</ref> for &#120598; = 0.01 and &#120598; = 0.0001 respectively. While the behavior of &#119956; 1 remains stable, for &#119956; 2 and &#119956; 3 , we observe a notable change as &#120598; diminishes: the stable region contracts significantly. Essentially, the inflection point approaches the steady state in this direction.</p><p>The reason for this phenomenon is that &#119906; &#119904; 2 will be close to 0 when &#120598; is small, as &#119906; &#119904;  2 is at the order of &#57915;(&#120598;). Computing the second variation in the &#119956; 1 direction, we have</p><p>Notice that</p><p>&gt; 0 requires &#120575; &lt; &#119906; &#119904; 2 . Consequently, as &#120598; decreases, the stability region around the local minimizer shrinks.</p><p>In summary, we have shown that the interior steady state remains stable for all &#120598; &gt; 0. However, as &#120598; decreases, the stable region also becomes smaller. Nonetheless, it is still challenging for the system to escape from the steady state, as it would require &#120575; &gt; &#119906; &#119904;  2 , which would result in &#119906; &lt; 0, an impossible scenario. Therefore, even for very small &#120598;, if the initial data is not far away from the steady state, the system will still converge to this interior steady state. However, when &#120598; is small, ensuring that the initial conditions are not too far from the steady state requires &#119901; to be of order &#120598; -1 , meaning species &#119875; must have a significant presence.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Stability of the boundary steady-state</head><p>For the boundary steady state, the stability analysis differs from that of the interior steady state. First, we observe that this is not a critical point of the free energy. Recall &#119956; 1 = (-1, 1, 0, 0) &#8712; &#57919; 1 , then:</p><p>This expression tends to infinity as &#120575; &#8594; 0 + , indicating it is not a critical point of the free energy. Indeed, we can compute the local minimizer of &#119864; is the three-dimensional perturbation space &#119958; 1 + &#57919; 1 , which satisfies:</p><p>This system has a unique nonzero solution such that</p><p>Hence, &#119958; 2 is the unique minimizer of the free energy &#119864; in the space &#119958; 1 + &#57919; 1 . The reason that &#119958; 1 is a steady state of the system is that the mobilities for &#119877; 1 and &#119877; 2 , given by &#120598;&#119907; 3 and &#120598;&#119901;, vanish, due to the disappearance of &#119881; and &#119875; . Consequently, the first and second reactions cease to exist:</p><p>We can show that the boundary steady state is a local minimizer of the free energy &#119864; in a one-dimensional perturbation space &#57919; 2 &#8758;= span{(-1, 0, 0, &#120598;)}, i.e., a perturbation along the direction of the third reaction trajectory: Proposition 3.2. For any &#120598; &gt; 0, the boundary steady state</p><p>is a local minimizer of the free energy &#57906; on the manifold &#119958; 0 + &#57919; 2 , where &#119854; 0 = (&#119906; 0 , &#119907; 0 , &#119901; 0 , &#119910; 0 &#8725;&#120598;) is the initial condition.</p><p>Proof. The proof follows a similar structure to that of Proposition 3.1. &#9633;</p><p>Although the boundary steady state is only stable along the direction (-1, 0, 0, &#120598;) and not stable in the (-1, 1, 0, 0) and (0, 1, -1, 0) directions. It still behaves as a nearly local minimizer when &#120598; is small and &#57915;(1) amounts of U, V, and P, and &#57915;(&#120598; -1 ) of Y present initially. More precisely, since the first and second reactions account for only a fraction of &#120598; in the system, it is reasonable to consider the perturbation along the direction &#119956; = &#119956; 3 + &#120598;&#119956; 1 + &#120598;&#119956; 2 = (-1, 0, 0, &#120598;) + (-&#120598;, 0, &#120598;, 0), direct calculation reveals that:</p><p>Additionally, numerical results further support this assertion, as shown in Fig. <ref type="figure">2</ref>. The boundary steady state is a local minimizer in the onedimensional space for small &#120598;. This is primarily because most reactions in this scenario are governed by the third reaction, which is stable for the boundary steady state. Consequently, for certain initial conditions, the system will converge to the boundary steady state when &#120598; is small. We term it as virtual stability. The reason for labeling this as ''virtual'' is that the third reaction is artificial and virtual, as it does not exist in the classical Gray-Scott models defined by Eq. ( <ref type="formula">2</ref>). Moreover, when &#120598; is not very small, it can be noticed that the boundary steady state is not a local minimizer, even within the restricted one-dimensional setting. As a result, a small perturbation around it leads to convergence towards the interior steady state.</p><p>Overall, we observe that the interior steady state is stable, while the boundary steady state is considered virtually stable. The virtual stability arises when V and P disappear quickly in the system. In such cases, the initial terms of P and V occupy only a fraction of &#120598; in the entire system, while the term Y dominates almost entirely. This scenario satisfies the conditions for virtual stability, leading the system to converge to the boundary steady state.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Pattern formulation in variational Gray-Scott models</head><p>In this section, we explore the pattern formulation in the variational Gray-Scott model for different &#120598; in one dimension.</p><p>For the classical Gray-Scott model (where &#120598; = 0), stationary spatial patterns correspond to non-uniform steady states of the system <ref type="bibr">[13]</ref>. Additionally, traveling patterns exist, which correspond to traveling wave solutions <ref type="bibr">[27]</ref>. In <ref type="bibr">[13]</ref>, the authors compute steady states of the classical Gray-Scott model in the domain &#120570; = (0, 1) subject to the non-flux boundary condition under the standard finite difference discretization. The parameter values used are &#119863; &#119906; = 5 &#215; 10 -4 , &#119863; &#119907; = 2.5 &#215; 10 -4 , &#119891; = &#119910; 0 = 0.04, and &#119896; = 0.065. It shows that, under these parameter values and the non-flux boundary condition, in addition to the trivial uniform steady state (&#119906;, &#119907;) = (0, 1), the classical Gray-Scott model has 6 non-uniform linearly stable steady states and 16 linearly unstable nonuniform steady states, shown in Fig. <ref type="figure">3</ref>. These steady states are computed using homotopy continuation techniques. Their linear stability is determined by analyzing the eigenvalues of the Jacobian matrix at the steady states. Specifically, the spectrum is computed numerically by solving the characteristic equation for the Jacobian. If any eigenvalue has a positive real part, the steady state is unstable, while if all eigenvalues have negative real parts, the steady state is stable.</p><p>To explore pattern formation in the variational Gray-Scott model for different &#120598;, we use these 23 steady states of the classical Gray-Scott model as the initial conditions for (&#119906;, &#119907;). The initial conditions of &#119901; and &#119910; are taken as</p><p>We impose the same no-flux boundary conditions as in <ref type="bibr">[13]</ref>. We then examine the evolution of these initial conditions for various values of &#120598;, with the expectation that they serve as suitable starting points for capturing pattern formation in the variational model. These initial conditions can also be interpreted as spatially heterogeneous perturbations of the two uniform steady states analyzed in the previous section. We adopt a semi-implicit method, which treats the reaction part explicitly and the diffusion part implicitly, for the temporal discretization. The spatial grid size is &#8462; = 1&#8725;256. Since the initial concentration of species &#119884; is &#119910; 0 &#8725;&#120598;, for smaller &#120598;, more &#119884; exist and the total mass &#119862;, defined in <ref type="bibr">(27)</ref>, is also larger. We consider &#120598; = 10 -2 , 10 -4 , and 10 -6 , corresponding to a relatively large &#120598;, an intermediate-sized &#120598;, and a significantly small &#120598;, respectively.   visualized through &#119906;(&#119909;, &#119905;) for &#119909; &#8712; (0, 1) and &#119905; &#8712; (0, 40). The temporal step size is set to &#120549;&#119905; = 0.5. Numerical results show that decreasing the temporal step size yields quantitatively similar solutions. The initial conditions in Fig. <ref type="figure">4</ref>(a) correspond to linearly stable steady states of the classical Gray-Scott model, while those in Fig. <ref type="figure">4</ref>(b) correspond to linearly unstable steady states.</p><p>The simulation result shows that, for relatively large &#120598;, all initial conditions, including the one with (&#119906;, &#119907;) = (1, 0), converge to the uniform interior steady state &#119958; 2 , as the concentration of &#119880; will decrease to around 0. As a result, any non-uniform patterns in the limiting system are destroyed in a relatively short time for a relatively large &#120598;. This result is consistent with the theoretical analysis presented in the previous section, as the interior steady state &#119958; 2 is a minimizer of the  free energy and the boundary steady state is not virtually stable for a relatively large &#120598;. Unlike the case of &#120598; = 10 -2 , the initial condition with (&#119906;, &#119907;) = (1, 0) can converge to the boundary steady state. Additionally, there are four initial conditions that converge to the boundary steady state &#119958; 1 quickly. The result is consistent with the theoretical analysis that the boundary steady state is virtually stable for small &#120598;. Other initial conditions tend to converge to the interior steady state &#119958; 2 as the concentration of &#119880; decreases. However, the convergence is very slow, and non-uniform patterns can persist for a long time. Non-stationary patterns are still observable at &#119905; = 1000. For further illustration, Fig. <ref type="figure">6</ref> More interestingly, for &#120598; = 10 -4 , we observe oscillating solutions during the time evolution. In the original paper on the Gray-Scott model <ref type="bibr">[24]</ref>, Gray and Scott demonstrate that the system exhibits chemical oscillations even without diffusion.</p><p>To illustrate the oscillation in the variational Gray-Scott model, we examine the solution with the initial condition corresponding to the linearly unstable solution 4 (fourth image in Fig. <ref type="figure">5(b</ref>)) in detail. Fig. <ref type="figure">7(a)-(b)</ref> show the evolution of &#119906;(0.5, &#119905;) and &#119907;(0.5, &#119905;), as well as the total mass of &#119906; and &#119907;, respectively. The plots show the damped oscillations in the concentration of &#119906; and &#119907;, which are similar to the phenomenon reported in Fig. <ref type="figure">4</ref> in <ref type="bibr">[24]</ref> for the irreversible Gray-Scott model without diffusion. After the oscillation, the solution behavior is similar to the solution with the initial condition corresponding to the stable solution 3 (fourth image in Fig. <ref type="figure">5(a)</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>4.</head><p>3. &#120598; = 10 -6 : significantly small &#120598; Next, we consider &#120598; = 10 -6 , a significantly small &#120598;. Fig. <ref type="figure">8</ref> shows the simulation results for &#120598; = 10 -6 , visualized by &#119906;(&#119909;, &#119905;) for &#119909; &#8712; (0, 1) and &#119905; &#8712; (0, 1000). Again, the initial conditions in Fig. <ref type="figure">8</ref>(a) correspond to linearly stable steady states of the classical Gray-Scott model, while those in Fig. <ref type="figure">8</ref>(b) correspond to linearly unstable steady states.</p><p>Like the case with &#120598; = 10 -4 , due to the virtual stability, the initial condition with (&#119906;, &#119907;) = (1, 0) converges to the boundary steady state quickly. Additionally, more initial conditions will converge to the boundary steady state quickly, compared with the case of &#120598; = 10 -4 .</p><p>Interestingly, for the initial conditions corresponding to six nonuniform, linearly stable steady states in the classical Gray-Scott model, the profiles of &#119906; and &#119907; remain unchanged throughout the evolution. In other words, these linearly stable stationary patterns in the classical Gray-Scott model can be stabilized as transient states in the variational model for a very long time when &#120598; is significantly small. We can view these solutions as quasi-steady states or quasi-stable patterns as the (&#119906;, &#119907;)-component of the solution is unchanged. Fig. <ref type="figure">9</ref> shows the concentrations of &#119880; , &#119881; , &#119875; , and &#119884; at &#119905; = 0 and &#119905; = 1000 for the initial condition associated with the non-uniform linearly stable solution 5. It  can be observed that although the concentrations of &#119880; and &#119881; remain unchanged, the concentration of &#119875; increases while &#119884; decreases by the same amount. The effective dynamics of the whole system is to transform &#119884; to &#119875; . From the numerical experiments, one can expect the system will reach the interior steady &#119906; 2 at the end as the concentration of &#119875; increases and &#119884; decreases. However, since the initial concentration of &#119884; is much larger than that of &#119875; , a significant time is needed to reach the steady state. Consequently, the spatial pattern can be stabilized for a long time if the concentration of &#119884; is large, i.e., &#119910;(&#119909;) &#8776; &#119891; . Additionally, there are four initial conditions, corresponding to linearly unstable steady-state 5, 6, 9, and 10, which will initially evolve towards a quasisteady state and will remain unchanged in the (&#119906;, &#119907;)-components for   will determine the dynamics either transform &#119884; to &#119875; or &#119875; to &#119884; . In the current study, since the concentration of &#119875; is taken as 1, which is much smaller than that of &#119884; , the system will converge to the boundary steady state quickly if the essential dynamics is &#119875; to &#119884; . We can observe the pattern formation for a significantly long time if the essential dynamics is &#119884; to &#119875; . We will investigate the effects of the initial concentration of &#119875; in future work.</p><p>Furthermore, the simulation results are consistent with the energy stability analysis presented in previous sections. When &#120598; is large, all initial conditions converge to the interior steady state &#119958; 2 , which minimizes the free energy. However, when &#120598; is sufficiently small, the gradient flow dynamics favor the boundary steady state &#119958; 1 for certain unstable initial configurations, due to the virtual stability of the boundary state in this regime. In this sense, both trivial steady states become effectively ''stable''. For some unstable steady states, the system tends to evolve towards the boundary steady state. Particularly, when the initial condition is close to the boundary steady state but far from the interior one -particularly due to the large value of &#119884; -the system rapidly converges to the boundary state. In contrast, convergence to the interior steady state is much slower, leading to the persistence of non-uniform patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Pattern persistence time v.s. &#120656;</head><p>In this section, we study the pattern persistence time in the variational Gray-Scott model with respect to &#120598;.</p><p>We consider two typical initial conditions, which correspond to the non-uniform linearly stable solution 6 (the last solution in Fig. <ref type="figure">3(a)</ref>) and the linearly unstable solution 3 (the third solution in Fig. <ref type="figure">3(b)</ref>). The first one will always converge to the interior steady state according to the numerical simulation. The second one will converge to the interior steady state for large &#120598;, but converge to the boundary steady state for small &#120598;. We define the pattern time as</p><p>with &#119886; being significantly small since the vanishing of the pattern indicates that both &#119906; and &#119907; are close to constant functions. We pick &#119886; = 0.05 throughout this section. Fig. <ref type="figure">12</ref> shows the relationship between the pattern persistence time and &#120598; for these two initial conditions.</p><p>For the linearly stable solution 6, the pattern persistence time increases as &#120598; decreases, and is of the order &#57915;(&#120598; -1 ). For the linearly unstable solution 3, it converges to the interior state for relatively large &#120598;, and the pattern persistence time also increases with decreasing &#120598;, following the order &#57915;(&#120598; -1 ). However, the initial condition converges to the boundary steady state for large &#120598;, and the initial pattern will be destroyed faster for smaller &#120598;. The result is consistent with the previous simulation and analysis.</p><p>We plot the evolution of free energy for two initial conditions with different values of &#120598;. For &#120598; = 10 -2 , the free energy plot clearly shows that both initial conditions converge to equilibrium around &#119905; = 400. The evolution of free energy for &#120598; = 10 -4 follows a similar pattern, but it takes significantly longer for both solutions to reach the trivial steady state, as shown in Fig. <ref type="figure">12</ref>. However, for &#120598; = 10 -6 , the linearly unstable steady state in the classical Gray-Scott model quickly converges to the boundary steady state, although the free energy of this state remains relatively large. For the linearly stable state in the classical Gray-Scott model, while the (&#119906;, &#119907;)-components of the solution remain unchanged, as shown in Fig. <ref type="figure">13</ref>, the system's free energy continuously decreases over time. The free energy plot also suggests that the linearly stable   To summarize, in order to have pattern formation in the variational Gray-Scott model, one needs to have some particular initial condition such that the variational model converges to the interior steady state, in which all &#119884; will convert to &#119875; . The pattern is maintained if the concentration of &#119884; stays large, analogous to the continuous feed of &#119880; in the classical Gray-Scott model. The conclusion is similar to that in a recent paper <ref type="bibr">[50]</ref> on a slightly different thermodynamically consistent three-species reaction-diffusion model, in which the authors show that for a finite system, a specific Turing pattern exists only within a finite range of total molecule number, and the presence of the third species stabilizes the Turing pattern of the two species.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Conclusions</head><p>In this paper, we study the pattern formation of a thermodynamically consistent variational Gray-Scott model, derived by an energetic variational approach, in one dimension, using non-uniform steady states of the classical model computed in <ref type="bibr">[13]</ref> as initial conditions. The variational Gray-Scott model includes a virtual term &#119884; and reversible reactions to the classical Gray-Scott model, transforming the system into a thermodynamically consistent closed system. The classical Gray-Scott model can be viewed as a subsystem of the variational Gray-Scott model when the reverse reaction rate &#120598; tends to zero. By decreasing &#120598;, we observed that stationary patterns in the classical Gray-Scott model can appear as transient states in the variational model when &#120598; is significantly small. Additionally, the variational model admits oscillating and traveling-wave-like solutions for small &#120598;. The results show the capability of the variational model in capturing pattern formation.</p><p>We also analyze the energy stability of two uniform steady states, an interior steady state and a boundary steady state, in the variational Gray-Scott model. Although the interior steady state is always stable, the stability region becomes significantly smaller as &#120598; decreases. In the meantime, the boundary steady state is virtually stable, i.e., is stable with respect to the third reaction &#119880; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8640; &#8637; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#8592; &#119884; . For certain initial conditions, since the concentration of &#119884; (at order &#57915;(&#120598; -1 )) is much larger than other species (at the order of &#57915;(1)) for small &#120598;, the gradient flow dynamics will drive the system to the boundary steady state. In order to observe pattern formation, one needs a special initial condition such that the dynamics will not converge to the boundary steady state.</p><p>The variational Gray-Scott model offers a new mathematical framework for understanding pattern formation from a thermodynamic perspective. The numerical simulation and theoretical analysis suggest that pattern formation is maintained by the presence of species &#119884; , i.e., the continuous input of &#119880; in the classical Gray-Scott model. The initial condition determines the effective direction of the reaction network, and the pattern formation can only occur if the network continuously generates the inert product &#119875; . Furthermore, for sufficiently small &#120598;, the system's free energy decreases over time due to the conversion of &#119884; to &#119875; , indicating that these patterns act as transition states in a larger, closed system. This also implies that maintaining the pattern requires a continuous energy input from the environment. The current study represents a first step towards understanding pattern formation in biological systems from an energetic perspective. Several open questions remain for the variational Gray-Scott model, including: (1) Investigating the effect of varying the scale of small parameter &#120598; &#119894; in the reaction network (6); (2) Analyzing the role of &#119875; in pattern formation; (3) Examining more general initial conditions. We will study these open questions in future work. CRediT authorship contribution statement Wenrui Hao: Writing -review &amp; editing, Supervision, Methodology, Funding acquisition, Conceptualization. Chun Liu: Writingreview &amp; editing, Supervision, Methodology, Conceptualization. Yiwei Wang: Writing -review &amp; editing, Writing -original draft, Software, Methodology, Investigation, Conceptualization. Yahong Yang: Writing -review &amp; editing, Writing -original draft, Methodology, Investigation, Formal analysis, Conceptualization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Declaration of competing interest</head><p>The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.</p></div></body>
		</text>
</TEI>
