Pushoam said:
What I understood is:
The example in OP assumes that ##\Delta U ~and~\Delta V ## are arbitrary and this leads to the eq.2.
Thank you, all, for helping me.
Not so fast. You understand incorrectly. I can prove that Eqn. 14.25 of the OP is generally valid only for vanishingly small values of ##\Delta U## and ##\Delta V##. To prove this, I will show that it is not even valid for the case of an ideal gas, except in the limit of vanishingly small values of ##\Delta U## and ##\Delta V##.
In the example provided, the internal energy of system 1 decreases by ##\Delta U##, and, since the internal energy of an ideal gas is a function only of temperature, the temperature in the final state of system 1 is given by:
$$T_{1f}=T_1-\frac{\Delta U}{n_1C_{v1}}$$where ##T_1## is the initial temperature, ##n_1## is the number of moles of gas in system 1, and ##C_{v_1}## is the heat capacity at constant volume of the gas in system 1. Similarly, the volume in the final state of system 1 is given by:$$V_{1f}=V_1-\Delta V$$where ##V_1## is the initial volume of system 1. We know that the
change in entropy of an ideal gas between an initial thermodynamic equilibrium state and a final thermodynamic equilibrium state is given by:
$$\Delta S=nC_{v}\ln{(T_f/T_i)}+nR\ln{(V_f/V_i)}$$ If we substitute the values for system 1 into this equation, we obtain:
$$\Delta S_1=n_1C_{v1}\ln{\left(1-\frac{\Delta U}{n_1C_{v_1}T_1}\right)}+n_1R\ln{\left(1-\frac{\Delta V}{V_1}\right)}$$But, for an ideal gas,$$V_1=\frac{n_1RT_1}{p_1}$$So,
$$\Delta S_1=n_1C_{v1}\ln{\left(1-\frac{\Delta U}{n_1C_{v1}T_1}\right)}+n_1R\ln{\left(1-\frac{p_1\Delta V}{n_1RT_1}\right)}$$
Similarly, for system 2,
$$\Delta S_2=n_2C_{v2}\ln{\left(1+\frac{\Delta U}{n_2C_{v2}T_2}\right)}+n_2R\ln{\left(1+\frac{p_2\Delta V}{n_2RT_2}\right)}$$If we combine these two equations, we obtain the total entropy change:$$\Delta S=n_1C_{v1}\ln{\left(1-\frac{\Delta U}{n_1C_{v1}T_1}\right)}+n_1R\ln{\left(1-\frac{p_1\Delta V}{n_1RT_1}\right)}+n_2C_{v2}\ln{\left(1+\frac{\Delta U}{n_2C_{v2}T_2}\right)}+n_2R\ln{\left(1+\frac{p_2\Delta V}{n_2RT_2}\right)}\tag{1}$$
Eqn. 14.25 of the OP clearly does not match this relationship, and no amount of mathematical manipulation will allow them to be matched. However, in the limit of ##\Delta U## and ##\Delta V## becoming vanishingly small, Eqn. 1 approaches:
$$\Delta S\rightarrow \left(\frac{1}{T_2}-\frac{1}{T_1}\right)\Delta U+\left(\frac{p_2}{T_2}-\frac{p_1}{T_1}\right)\Delta V$$
This is opposite in sign to Eqn. 14.25 of the OP. They couldn't even get the sign right.