A dummy example of how to numerically solve a system of first-order ODEs with Euler's method

$$ \begin{align} &\frac{dx}{dt}=+p_1 x + p_2 y - p_3 z\\ &\frac{dy}{dt}=+p_1 x - p_2 y + p_3 z\\ &\frac{dz}{dt}=-p_1 x + p_2 y + p_3 z \end{align} $$

The PhoP/PhoQ system

$$ \begin{align} &\frac{dU}{dt} = k_1 + k_2\frac{P^n}{K^n+P^n}+k_a^-P-(k_d+k_a^+)U\\ &\frac{dP}{dt}=k_a^+U-(k_d+k_a^-)P \end{align} $$

Phase diagram of an oscillating system

image.png

See animation: https://www.geogebra.org/m/y746ry8g

Stochasticity produces nontrivial behaviors in some systems

In the L-V oscillation model, stochastic deviation from the idealized cycle can have lasting consequences..

The trajectory no longer stays close to a deterministic solution, because all cycles are equally stable. There is no "force" pulling the system back to its deterministic trajectory, so that stochasticity moves the system around different cycles randomly.

Noise interacts with bistable systems and causes the system to jump between equilibria

1D approximation of U (not covered in section, not required to know!)

If $k_a^+,k_a^-$ are much larger than other parameters, then the conversion between $U$ and $P$ happens at a much shorter time scale than the other reactions. We may then assume that, at the time scale of conversion, all other reactions are too slow to affect the system in any way. This conversion process brings the system to the line of conversion equilibriums $P = k_a^+ U/(k_a^-+k_a^+)$. You can see this line in the previous phase diagram! It is the thin line that starts at 0 and absorbs many thick trajectories.

Once you are on $P = k_a^+ U/(k_a^-+k_a^+)$, the conversion has reached its equilibrium, and it is only then that other slow reactions begin to show their effects on the system. The system will evolve along the line $P = k_a^+ U/(k_a^-+k_a^+)$, governed by the slow reactions.

That's the reason why you see the deterministic solution has two phases. In the first phase, U and P rapidly increase/decrease to a turning point, and after that, both of them change slowly through time.

It is possible to simplify the system further along that line $P = k_a^+ U/(k_a^-+k_a^+)$, and you only have to work with one variables now because $U$ and $P$ are locked together by that relationship. It can be shown that the system evolves following:

$$ \frac{dU}{dt} = \frac{1}{\bar{k}_a+1}\left(k_1+\frac{k_2\bar{k}_a^n U^n}{K^n+\bar{k}_a^nU^n}\right)-k_d U $$

where $\bar{k}_a = k_a^+/k_a^-$

Here, you can see that the 1-D approximation of U (dotted line) is very accurate, it is only slightly different from the real trajectory (blue line)

Next, we add noise to the 1-D equation. Noise is assumed to be Normal with mean 0 and standard deviation $\sqrt{k_1 u \times dt}$

This figure shows that sometimes noisy system stays near the deterministic equilibrium:

The following figure shows that noise can push the system to a different equilibrium after some long waiting time. The parameters are exactly the same as the previous one