So, I am gonna use the most basic definition of entropy - the statistic one
S = kB ln $\Omega$
$\Omega$ is the total number of microstates possible.
In your case, different microstates can be formed by arranging momenta , energies and also by arranging POSITIONS as any molecule can be found at any possible "position" in a solution.
I will use basic principles of Permutations and Combinations to find $\Omega$.
Suppose I have 'a' and 'b' moles of A and B initially , while no C and D initially present. After a time 't', x moles of A and B have reacted to form x moles of C and D.
\begin{align}
\ce{A(aq) + B(aq) <=> C(aq) + D(aq)}\\
\end{align}
\begin{align}
\ce{t=0..... . a. . . . . . b. . . ....0... . . 0 ....... . . . . }\\
\end{align}
\begin{align}
\ce{t=t..... (a-x). . . . .(b-x). . ... x... . . x ...... . . . . . . }\\
\end{align}
The total number of molecules remain same in your example , and is (a+b+w) N0 , where N0 is Avogadro's number , and w is the number of moles of water.
Let me simplify the model by assuming there are (a+b+w) N0 positions available. Any molecule can "sit" at any position and can have any of the available value of momentum and energy. Changing either of position or momentum of any one molecule will lead to a new microstate.
But there's a catch. Suppose molecule 1 (m1) sits at position r1 and has energy E1 , momentum p1. Another identical molecule (i.e. the same compound) m2 has position r2 , energy E2 , momentum p2. If I exchange all - their positions, energies and momenta - I will not get a new microstate.
But if m2 was not identical, it would surely have resulted in a new microstate.
So, assume I haven't put any molecule at any position. First I assign every position a value of energy and momentum , and write down each possible arrangement in my notepad (my notepad has infinite pages...so don't worry , it won't run out ; ) ). Then I count them. There turn out to be Z possible arrangements of energy and momentum.
Now , I start placing the molecules randomly ( there are just A , B and water present for now). How many unique arrangements can I have only due to virtue of positioning? That I can easily calculate. It will be
\begin{equation}
V_{1} = \frac{[ (a+b+w) N_{0} ]!}{( aN_{0} )! * ( bN_{0} )! * ( wN_{0} )!}
\end{equation}
So, total number of microstates ($\Omega$1) = V1 * Z
Hence, S1 = kB ln( V1 Z )
Now, after time t , I again do the same.
The number of arrangements of energies and momenta would still be same , i.e. , Z .
But, the number of arrangements due to positioning will now be ,
\begin{equation}
V_{2} = \frac{[(a+b+w) N_{0}]!} {[(a-x) N_{0}]! * [(b-x) N_{0}]! * (xN_{0})! * (xN_{0})! * (wN_{0})! }
\end{equation}
$\Omega$2 = V2 * Z
Hence, S2 = kB ln(V2 Z)
So, Change in Entropy $\Delta$S = S2 - S1 = kB ln (V2 / V1 )
Dividing V2 by V1 , one can easily see it is equal to
\begin{equation}
\frac{V_{2}}{V_{1}} = \binom{aN_{0}}{xN_{0}} * \binom{bN_{0}}{xN_{0}}
\end{equation}
\begin{equation}
Hence, \Delta S = k_{B} * \ln\left[ \binom{aN_{0}}{xN_{0}} * \binom{bN_{0}}{xN_{0}} \right]
\end{equation}
where\begin{equation}
\binom{n}{r}\end{equation} represents binomial term nCr
This is the increase in entropy due to "mixing".
I even plotted a graph to verify. Here's the graph.
I didn't know how to approximate its derivative (as the graph is broken when viewed closer) So I instead compared the graph with another one made by integrating Rln(K/Q). Both come out to be same at some value of K. This way, we have also calculated the Equilibrium Constant :)
NOTE: In the graph, I have also considered change in "Internal Entropies" apart from Entropy of Mixing. This "internal" entropy arise due to arrangements possible within a molecule. It is characteristic of a given compound.
The Black graph is the one made by integrating Rln(K/Q) and the Red haze visible behind it is the graph made by the formula we just derived.
I took a and b = 1
SA , SB , SC , SD (the molar "internal entropies" of A , B , C and D respectively) equal to 1 , 1.5 , 2.3 , 2 kJ/mol*K (not to scale....just example)
And K came out to be nearly 1.2
