# From the Markov stochastic process to chemical concentration changes

In this notes, we deduce how the differential equations that control the change of concentrations of the different species in a set of chemical reactions as the averages of the master equation describing a stochastic Markov process underlying the reactions.

In other words, we are going to go from a Markov birth/death master equation describing a stochastic process, to a set of ordinary differental equations describing the behavior of the compounds concentrations changes with time.

## An example

### The chemical reaction

We have a system that converts two compounds A, B into two different ones C, and D. The reaction is given by

In the w11 lecture we indicated that the differential equations describing the change of the concentrations of the four compounds over time is

Here we are going to deduce this results from the master equation describing the underlying stochastic Markov process.

### The master equation

The reaction

indicates that instantaneously one molecule of the A and B compounds disappear and a molecule of the C and D compounds appears with probability $k$.

If the system has $(A, B, C, D)$ molecules of the four different compounds, in one small time interval $\Delta t$, the number of molecules changes to $(A-1, B-1, C+1, D+1)$ with probability $k A B \Delta t$ because any combination of one $A$ and one $B$ molecule can be used in the reaction that results in one $C$ and one $D$ more molecules.

In a time interval $\Delta t$, the system reacts according to the following probability distribution,

Then, the master equation following the description in the w10 lecture can be written as

And in the limit of $\Delta t\rightarrow 0$ we obtain the differential equation

### The deterministic solution

By taking averages over the number of $A$ particles we obtain

which can be re-written as

or

so that

Similarly, one can find the results for the change with time of the concentrations of the other species B, C and D.

## The general case

### A general multiple chemical reaction

In the w11 lecture, we indicated that for $R$ reactions involving $N$ substrates $X_1\ldots X_N$, with rate constants $k_1,\ldots k_R$,

the differential equation controlling the average number of particles per volume unit are given by

where $\eta^r_i$ is the stoichiometry of species $X_i$ in reaction $r$,

and $\nu_r$ is the mass action law reaction $r$,

Here we are going to deduce this results directly from the master equation.

### The master equation

The master equation following the description in the w10 lecture can be written as

where the propensity $w_T(X_1\ldots\,X_N)$ is defined as the sum of the propensities for all reactions

And in the limit of $\Delta t\rightarrow 0$ we obtain the differential equation

### The deterministic solution

By taking averages over the number of $X_i$ particles we obtain

which can be re-written as

that is

The first and third term cancel out, and we obtain,

so that

Introducing the mass action law for a reaction as the average of the propensities,

then we obtain the final result