Introduction

A reversible elementary reaction takes place inside a closed, highly thermally conductive container of constant volume, whose reactants are all gases, and the reaction equation is

kakXkkbkYk, \sum_ka_kX_k\rightleftharpoons\sum_kb_kY_k,

where XkX_k and YkY_k are reactants, and aka_k and bkb_k are stoichiometries.

Use square brackets to denote concentrations. Our goal is to find [Xk]\left[X_k\right] and [Yk]\left[Y_k\right] as functions with respect to time tt.

The approach

It is easy to write out the rate equations

d[Xj]dt=aj(μYk[Yk]bkμXk[Xk]ak),d[Yj]dt=bj(μXk[Xk]akμYk[Yk]bk),\begin{split} \frac{\mathrm d\left[X_j\right]}{\mathrm dt}= a_j\left(\mu_Y\prod_k\left[Y_k\right]^{b_k}- \mu_X\prod_k\left[X_k\right]^{a_k}\right),\\ \frac{\mathrm d\left[Y_j\right]}{\mathrm dt}= b_j\left(\mu_X\prod_k\left[X_k\right]^{a_k}- \mu_Y\prod_k\left[Y_k\right]^{b_k}\right), \end{split} (1)(1)

where μX\mu_X and μY\mu_Y are rate constants derived by experimenting.

Apply a substitution

xj[Xj]aj,yj[Yj]bj,μxμXkakak,μyμYkbkbk\begin{split} x_j\coloneqq\frac{\left[X_j\right]}{a_j},\quad y_j\coloneqq\frac{\left[Y_j\right]}{b_j},\\ \mu_x\coloneqq\mu_X\prod_ka_k^{a_k},\quad \mu_y\coloneqq\mu_Y\prod_kb_k^{b_k} \end{split} (2)(2)

to Formula 1, and then it becomes

dxjdt=μykykbkμxkxkak,dyjdt=μxkxkakμykykbk,\begin{split} \frac{\mathrm dx_j}{\mathrm dt}= \mu_y\prod_ky_k^{b_k}-\mu_x\prod_kx_k^{a_k},\\ \frac{\mathrm dy_j}{\mathrm dt}= \mu_x\prod_kx_k^{a_k}-\mu_y\prod_ky_k^{b_k}, \end{split} (3)(3)

which means the changes of xjx_j are all equal, the changes of yjy_j are all equal, and the changes of xjx_j are opposite to the changes of yjy_j.

Denote the changes of xjx_j are equal to ss, the initial value of xjx_j is AjA_j, the initial value of yjy_j is BjB_j, which means

xj=Aj+s,yj=Bjs.\begin{split} x_j=A_j+s,\\ y_j=B_j-s. \end{split} (4)(4)

Substitute Formula 4 into Formula 3, and it can be derived that

dsdt=F ⁣(s), \frac{\mathrm ds}{\mathrm dt}=F\!\left(s\right),

by which we can reduce the problem to an integral problem

t=0sdsF ⁣(s),t=\int_0^s\frac{\mathrm ds}{F\!\left(s\right)}, (5)(5)

where

F ⁣(s)μyk(Bks)bkμxk(Ak+s)akF\!\left(s\right)\coloneqq\mu_y\prod_k\left(B_k-s\right)^{b_k}- \mu_x\prod_k\left(A_k+s\right)^{a_k} (6)(6)

is a polynomial of nnth degree, where

nmax ⁣(kak,kbk) n\coloneqq\max\!\left(\sum_ka_k,\sum_kb_k\right)

is the larger of the orders of the forward and reverse reactions. The degree of FF may be lower if the high-order term is offset, but only mathematicians believe in such coincidences.

Since Formula 5 is to integrate a rational function, it is easy.

After deriving ss as a function of tt, substitute it into Formula 4 and then Formula 2. We can derive

[Xj]=aj(Aj+s),[Yj]=bj(Bjs)\begin{split} \left[X_j\right]=a_j\left(A_j+s\right),\\ \left[Y_j\right]=b_j\left(B_j-s\right) \end{split} (7)(7)

as the answer.

Properties of FF

As we all know, here exists a state where the system is in chemical equilibrium. Denote the value of ss in this case as qq. It is easy to figure out that qq is a zero of F ⁣(s)F\!\left(s\right) on the interval I(minkAk,minkBk), I\coloneqq\left(-\min_kA_k,\min_kB_k\right), which is the range of ss such that the concentration of all reactants are positive.

It is obvious that the value of qq is unique. It is because FF is monotonic over II and the signs of its value at ends of interval II are different.

Note that qq is a flaw of 1F(s)\frac1{F\left(s\right)} and that the improper integral 0qdsF(s)\int_0^q\frac{\mathrm ds}{F\left(s\right)} diverges, so we can imagine how ss changes with respect to tt. s=0s=0 when t=0t=0, and then ss changes monotonically, and finally sqs\rightarrow q when t+t\rightarrow+\infty. Thus, the range of ss over t[0,+)t\in\left[0,+\infty\right) is [0,q)\left[0,q\right) for q>0q>0 or (q,0]\left(q,0\right] for q<0q<0. q=0q=0 is not considered because only mathematicians believe in such coincidences.

Suppose FF has nn different complex zeros rαr_\alpha, one of which is qq. The possible existence of multiple roots is ignored because only mathematicians believe in such coincidences. Decompose the rational function 1F(s)\frac1{F\left(s\right)} into several partial fractions, and it can be derived that

1F ⁣(s)=αCαrαs,\frac1{F\!\left(s\right)}=\sum_\alpha\frac{C_\alpha}{r_\alpha-s}, (8)(8)

where CαC_\alpha are undetermined coefficients.

Integrate Formula 8, and then it can be derived that

t=αCαln ⁣(1srα)t=-\sum_\alpha C_\alpha\ln\!\left(1-\frac s{r_\alpha}\right) (9)(9)

In most cases, Formula 9 cannot be solved analytically and can only be solved numerically.

Note that if the coefficients CαC_\alpha are in general commensurable, Formula 9 can be reduced into a rational equation. However, only mathematicians believe in such coincidences. However, if n=2n=2, it can be proved that the equation can be reduced into a rational one.

Example

The closed container that is highly thermally conductive is in a certain temperature environment, and the water-gas shift reaction

CO+HX2OCOX2+HX2 \ce{CO +H2O\rightleftharpoons CO2 +H2}

occurs under the catalysis of a certain catalyst, where the forward rate constant

μ1=2.07×104(SI), \mu_1=2.07\times10^{-4}\quad\left(\text{SI}\right),

and the reverse rate constant

μ2=8.29×106(SI). \mu_2=8.29\times10^{-6}\quad\left(\text{SI}\right).

Initial concentrations are

[CO]0=10.00(SI),[HX2O]0=20.00(SI),[COX2]0=30.00(SI),[HX2]0=40.00(SI). \begin{split} \left[\ce{CO}\right]_0=10.00\quad\left(\text{SI}\right),\\ \left[\ce{H2O}\right]_0=20.00\quad\left(\text{SI}\right),\\ \left[\ce{CO2}\right]_0=30.00\quad\left(\text{SI}\right),\\ \left[\ce{H2}\right]_0=40.00\quad\left(\text{SI}\right). \end{split}

Find [HX2O]\left[\ce{H2O}\right] as a function of time.

Formula 6 becomes

F ⁣(s)8.29×106(30s)(40s)2.07×104(10+s)(20+s)(SI). F\!\left(s\right)\coloneqq8.29\times10^{-6}\left(30-s\right)\left(40-s\right) -2.07\times10^{-4}\left(10+s\right)\left(20+s\right) \quad\left(\text{SI}\right).

It is a polynomial of 22nd degree. Its two roots are

r1=28.65(SI),r2=5.53(SI). \begin{split} r_1=-28.65\quad\left(\text{SI}\right),\\ r_2=-5.53\quad\left(\text{SI}\right). \end{split}

Decomposing 1F(s)\frac1{F\left(s\right)} into partial fractions, we can derive that

C1=217.654(SI),C2=217.654(SI). \begin{split} C_1=-217.654\quad\left(\text{SI}\right),\\ C_2=217.654\quad\left(\text{SI}\right). \end{split}

Thus,

t=217.654ln ⁣(1s28.65)217.654ln ⁣(1s5.53)(SI). t=217.654\ln\!\left(1-\frac s{-28.65}\right)- 217.654\ln\!\left(1-\frac s{-5.53}\right) \quad\left(\text{SI}\right).

Since C1C_1 and C2C_2 are in general commensurable, we can solve the equation analytically into

s=5.53(11.0046t)1.0046t0.1929(SI). s=\frac{5.53\left(1-1.0046^t\right)}{1.0046^t-0.1929} \quad\left(\text{SI}\right).

Use Formula 7, and then we can find the answer

[HX2O]=20+5.53(11.0046t)1.0046t0.1929(SI). \left[\ce{H2O}\right]=20+ \frac{5.53\left(1-1.0046^t\right)}{1.0046^t-0.1929} \quad\left(\text{SI}\right).