Are there any analytical proofs for the 2nd law of thermodynamics?
Or is it based entirely on empirical evidence?
Are there any analytical proofs for the 2nd law of thermodynamics?
Or is it based entirely on empirical evidence?
It's simple to "roughly prove" the second law in the context of statistical physics. The evolution $A\to B$ of macrostate $A$, containing $\exp(S_A)$ microstates, to macrostate $B$, containing $\exp(S_B)$ microstates, is easily shown by the formula for the probability "summing over final outcomes, averaging over initial states", to be $\exp(S_B-S_A)$ higher than the probability of the inverse process (with velocities reversed). Because $S_B-S_A$ is supposed to be macroscopic, such as $10^{26}$ for a kilogram of matter, the probability in the wrong direction is the exponential of minus this large difference and is zero for all practical purposes.
The more rigorous versions of this proof are always variations of the 1872 proof of the so-called H-theorem by Ludwig Boltzmann:
This proof may be adjusted to particular or general physical systems, both classical ones and quantum ones. Please ignore the invasive comments on the Wikipedia about Loschmidt's paradoxes and similar stuff which is based on a misunderstanding. The H-theorem is a proof that the thermodynamic arrow of time - the direction of time in which the entropy increases - is inevitably aligned with the logical arrow of time - the direction in which one is allowed to make assumptions (the past) in order to evolve or predict other phenomena (in the future).
Every Universe of our type has to have a globally well-defined logical arrow of time: it has to know that the future is being directly evolving (although probabilistically, but with objectively calculable probabilities) from the past. So any universe has to distinguish the future and the past logically, it has to have a logical arrow of time, which is also imprinted to our asymmetric reasoning about the past and the future. Given these qualitative assumptions that are totally vital for the usage of logic in any setup that works with a time coordinate, the H-theorem shows that a particular quantity can't be decreasing, at least not by macroscopic amounts, for a closed system.
It was first found empirically, and later derived from various more theoretical assumptions.
There is a proof in Section 7.2 of Chapter 7: Phenomenological Thermodynamics of Classical and Quantum Mechanics via Lie algebras, based on a few axioms for thermodynamics, and a proof in Chapter 9 that these laws follow from the standard assumptions in statistical mechanics.
The reversibility objections (Loschmidt's paradox) are unjustified since the Poincare recurrence theorem assumes that the system in question is bounded, which is (most likely) not the case for the real universe.
If we assume time evolution is unitary and hence reversible, and the total size of the phase space subject to constraints based upon the total energy and other conserved quantities is finite, then the only conclusion is Poincaré recurrences cycling ergodically through the entire phase space. Boltzmann fluctuations to states of lower entropy might occur with exponentially suppressed probabilities, but the entropy would increase both toward its past and future. This is so not the second law as Boltzmann's critics never tire of pointing out.
The H-theorem depends upon the stosszahlansatz assumption that separate events in the past are uncorrelated, but that is statistically exceedingly improbable assuming a uniform probability distribution.
If the total size of the phase space is infinite, Carroll and Chen proposed that in eternal inflation there can be some state with finite entropy with entropy increasing in both time directions.
To me, the most likely scenario is to drop the assumption of unitarity and replace that with time evolution using Kraus operators acting upon the density matrix.
Edit: I realized the following answer is incorrect. Many things can be proven about entropy, its mathematical properties related to Liouville's theorem... any many such things. We can prove with some initial boundary conditions that the entropy increases. I leave my answer as it may lead people to read some interesting texts. But strictly speaking the second law cannot be proven as long as no premises assumes an "arrow of time". The law of mechanics being time symmetric, no time asymmetric property can be deduced from them without further assumptions.
The second law is a theorem of statistical mechanics, whenever we admit classical mechanics or quantum mechanics. This is independant of the actual forces between the particles as long as they are conservative (like all forces at particule level). The proof is quite straightforward and can be found in books by mathematical physicists as early as 1949: Mathematical Foundations of Statistical Mechanics by A. Khinchin. This work was mainly a proper formalization of Gibbs ideas with modern probability language and theorems.
The second law can be proven with more or less mathematical rigour, but the main difficulty is about having the clearest possible definition of entropy. Even though it is always defined as Shanon's entropy of "something", this "something" differs among authors and perspectives. Also, there is for the moment no mathematically rigourous (and consensual) definition of entropy out of equilibrium. Therefore, the second law can be mathematically expressed between two equilibrium states only.
If we define entropy as a property of our knwoledge about the system, Shanon's entropy of the probability distribution in the phase space, the entropy exactly increases even for microscopical systems without fluctuations. But I insist on the fact, it is only between two successive equilibrium states.
The classical mechanical proof can be summarized:
That's all. I think the quantum mechanical proof replaces Liouville's theorem by the fact the motion on quantum states is ruled by $e^{-itH}$ which is a unitary operator. I'm not familiar enough with it.
However, there are other approaches that do not rely on mechanics at all and stick to a formalization of classical thermodynamics of "substances". There are some resources about it here. According to this approach, entropy and the second law are mostly logical facts that do not require any foundation by mechanics.
The problem when you include gravity or other long range forces, is that thermodynamics becomes non extensive. For instance, the energy of the union of two systems is not the sum of the energies of the individual systems.
To handle those cases, generalized entropies have been proposed. By generalized it means that these formalisms allow for long range forces and non-extensivity, for certain parameters of the definition of entropy, but reduces to the classical extensive entropy for certain value of the parameter. One of such extended entropies is Tsallis entropy. It depends on a parameter $q$, and for $q=1$ it reduces to the standard classical entropy.
It has been shown that this entropy works well in some gravitational systems, where it predicts the correct distribution of temperatures and densities, for instance in a polytropic model of a self-gravitating system. It has also been shown that this entropy satisfies the second law for any parameters $q$ in the classical case, and at least for $q\in(0,2]$ in the quantum case.
In the strict sense of the question: no. Physics is science based on empirical evidence. But this applies to all laws of physics. E.g. if by tomorrow you find and confirm experimental evidence which contradict current theories, you have to expand the theories (or invent new ones), and you gain insight in the domain of applicability of your old theory (which still stays valid in its domain).
Of course you might be able to derive/prove the second law from certain assumptions, but if you were to find an experiment where the second law doesn't hold, then you start to know the limitations of your assumptions.
There is actually a very simple derivation of the Second Law in classical thermodynamics for an ideal gas, assuming only classical mechanics and the First Law. Here is a brief sketch -- whether this constitutes a "proof" depends largely on taste, the level of rigor desired, and how comfortable you are with thermo-style derivations.
The First Law of Thermodynamics is:
\begin{align} dU = dq + dw \end{align}
where the differentials refer to changes of the system. By convention we have defined a gain of energy or heat by the system as positive, work done on the system as positive, and work done by the system on the surroundings as negative.
Without loss of generality, we consider pressure-volume work. The work done by the system is quantified by the amount of work done in the surroundings, and so the relevant pressure is the external pressure $P_{ext}$ in the surroundings that the system is pushing against. Then, the work done by the system is
\begin{align} dw = -P_{ext} dV \end{align}
If the internal pressure of the system is greater than the external pressure of the surroundings,
\begin{align} P_{int} \ge P_{ext} \end{align}
then according to classical mechanics the system will expand against the surroundings, i.e. $dV \ge 0$.
For a reversible change, the internal and external pressures are equal ($P_{int} = P_{ext}$), and so the work done by the system in a reversible process is
\begin{align} dw_{rev} = -P_{int} dV \end{align}
Therefore,
\begin{align} P_{int} dV &\ge P_{ext} dV \\ -P_{int} dV &\le -P_{ext} dV \\ dw_{rev} &\le dw \end{align}
which means that the magnitude of work done by the system on the surroundings is maximal during a reversible process. Combining this result with the First Law gives:
\begin{align} dq_{rev} &\ge dq \end{align}
We now define the state function entropy $S$ classically as
\begin{align} dS = \frac{dq_{rev}}{T} \end{align}
From the previous inequality for reversible heat, we see that
\begin{align} dS = \frac{dq_{rev}}{T} \ge \frac{dq}{T} \end{align}
which is the generalized Clausius inequality. This is a complete mathematical statement of the Second Law of Thermodynamics. All consequences of the Second Law can be derived from it, including the proposition that heat always spontaneously flows from hot to cold.
The one missing part is that we did not establish that entropy $S$ is a state function for an ideal gas, but this can be found in any introductory thermodynamics treatment (e.g. [1]).
[1] https://en.wikiversity.org/wiki/Physics_equations/Introduction_to_entropy