I was deriving the Boltzmann's entropy formula
$${\displaystyle S=k_{\mathrm {B} }\ln \Omega}$$
We start with two prepositions:
- Let's consider two systems and we know the entropy of the first is $S_1$ and of the second $S_2$. If we want to know the entropy of both systems, it should be
$$S_{12}=S_1+S_2\tag1$$
- The probability of a state of the first system is $p_1$ and of the second $p_2$. So the probability of the global state of those two systems is:
$$p_{12}=p_1\cdot p_2$$
If $S=f(p)$ than we should have a function:
$$f(p_1)+f(p_2) = f(p_1\cdot p_2)$$
from which by differentiating and integrating we obtain the Boltzmann's entropy formula.
How do we know that equation $(1)$ is true? Why does entropy obey the superposition principle? Is that something from classical thermodynamics or can it be shown only outside of it?