Benchmark AI / Public workspace

CritPt / Challenge_36_main / In the following autocatalytic reaction cycle, each component catalyzes the…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

code template

Code

import sympy as sp

k, n = sp.symbols('k n')
X_tot = sp.symbols('X_tot')

def answer(k, n, X_tot):
    r"""
    Return the expression of $\mathbb E\left[C^2\right]$ in Sympy format,
    and the minimal value of $n$ need to be to observe such oscillatory behavior.

    Inputs
    ----------
    k: sympy.Symbol, reaction rate constant $k$
    n: sympy.Symbol, number of components in the cycle $n$
    X_tot: sympy.Symbol, total population size $X_{tot}$

    Outputs
    ----------
    E_C2: sympy.Expr, expression of $\mathbb E\left[C^2\right]$ in terms of model parameters $k$ and $n$
    n_min: sympy.Expr, minimal value of $n$ to observe such oscillatory behavior
    """

    # ------------------ FILL IN YOUR RESULTS BELOW ------------------
    E_C2  = ...  # SymPy expression of Inputs
    n_min = ...
    # ---------------------------------------------------------------

    return E_C2, n_min

problem description

# Problem setup: In the following autocatalytic reaction cycle, each component catalyzes the production of the next one in a cycle \begin{equation} X_{i-1} \xrightarrow{\; k\;}X_{i-1}+ X_i, \end{equation} for 1<in1<i\leq n and \begin{equation} X_n \xrightarrow{\; k\;}X_n+ X_1. \end{equation} Asymptotically, these reactions lead to exponential growth and homeostasis of all the components. The goal of this problem is to understand the stochastic transient dynamics of the approach to this asymptotic state. We start with a single copy of X1X_1 and no XiX_i for i>1i>1 at time zero. For large tt and for large enough nn, the number of XjX_j molecules approaches \begin{equation} X_j \to \frac{1}{n}\left(X_{tot}+2\, C\cos(\omega t+\Phi) e^{\lambda t}\right), \end{equation} where Xtot=jXjX_{tot}=\sum_j X_j, ω\omega and λ\lambda are unknown constants, and CC and Φ\Phi are random variables with unknown distributions. Physically, this says that the approach of XjX_j to its steady exponential growth differs from that of the total population size with a relatively decaying oscillating component with the stochastic amplitude 2C2C. # Main problem: Find the mean-squared value of CC, $\mathbb E\left[C^2\right]$, in terms of the model parameters kk and nn, and determine how large nn needs to be to observe such oscillatory behavior.
Plain-text mathematical notation (without MathML)
# Problem setup:
In the following autocatalytic reaction cycle, each component catalyzes the production of the next one in a cycle
\begin{equation}
    X_{i-1} \xrightarrow{\; k\;}X_{i-1}+ X_i,
\end{equation}
for 1<i≤n and
\begin{equation}
    X_n \xrightarrow{\; k\;}X_n+ X_1.
\end{equation}
Asymptotically, these reactions lead to exponential growth and homeostasis of all the components. The goal of this problem is to understand the stochastic transient dynamics of the approach to this asymptotic state. We start with a single copy of X₁ and no X_(i) for i>1 at time zero. For large t and for large enough n, the number of X_(j) molecules approaches
\begin{equation}
    X_j \to \frac{1}{n}\left(X_{tot}+2\, C\cos(\omega t+\Phi) e^{\lambda t}\right),
\end{equation}
where X_(tot)=∑_(j)X_(j), ω and λ are unknown constants, and C and Φ are random variables with unknown distributions. Physically, this says that the approach of X_(j) to its steady exponential growth differs from that of the total population size with a relatively decaying oscillating component with the stochastic amplitude 2C.

# Main problem:

Find the mean-squared value of C, $\mathbb E\left[C^2\right]$, in terms of the model parameters k and n, and determine how large n needs to be to observe such oscillatory behavior.
Original LaTeX notation
# Problem setup:
In the following autocatalytic reaction cycle, each component catalyzes the production of the next one in a cycle
\begin{equation}
    X_{i-1} \xrightarrow{\; k\;}X_{i-1}+ X_i,
\end{equation}
for $1<i\leq n$ and
\begin{equation}
    X_n \xrightarrow{\; k\;}X_n+ X_1.
\end{equation}
Asymptotically, these reactions lead to exponential growth and homeostasis of all the components. The goal of this problem is to understand the stochastic transient dynamics of the approach to this asymptotic state. We start with a single copy of $X_1$ and no $X_i$ for $i>1$ at time zero. For large $t$ and for large enough $n$, the number of $X_j$ molecules approaches
\begin{equation}
    X_j \to \frac{1}{n}\left(X_{tot}+2\, C\cos(\omega t+\Phi) e^{\lambda t}\right),
\end{equation}
where $X_{tot}=\sum_j X_j$, $\omega$ and $\lambda$ are unknown constants, and $C$ and $\Phi$ are random variables with unknown distributions. Physically, this says that the approach of $X_j$ to its steady exponential growth differs from that of the total population size with a relatively decaying oscillating component with the stochastic amplitude $2C$.

# Main problem:

Find the mean-squared value of $C$, $\mathbb E\left[C^2\right]$, in terms of the model parameters $k$ and $n$, and determine how large $n$ needs to be to observe such oscillatory behavior.

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import