What is reversible and irreversible process? Can process below even be irreversible?

I heard the definitions, but I have much trouble understanding them. My teacher told me that in an example with two chambers and gas particles (look below) entropy increases, but I cannot understand why.

Let’s say that we have $2$ empty, identical chambers, separated by a wall. Inside one of these chambers we have a gas particle with non-zero kinetic energy. Let’s say that if we had more than one particle, theirs collisions would be elastic and they wouldn’t lose energy while hitting the walls.

Now, let’s remove the wall and let the particle fly freely. After some time it can come back to the initial position, so entropy didn’t change at all. So the process isn’t irreversible. If we have $2$ particles, then after some time they can come back to the initial state too. The same with $3, 4, 5, \dots, n$ particles. Even if for large $n$ it is less and less possible, it is still possible, so it still shouldn’t be an irreversible process, but from what I heard, it is.

Where is my misunderstanding? It seems nonsensical than for some $n$ the process wasn’t irreversible, but for $n+1$ it was, so... was the process irreversible from the very beginning? If yes, how does entropy increase, if the particle goes back to its initial state?

Now, let’s look at the problem from a different side. I heard that entropy is a measure of the number of ways in which a system may be arranged. Let’s say that we have $1$ particle and $2$ chambers. It can happen that the particle will be just flying from one chamber to the other and back, with probability of being in a specific one of them equal to $\frac{1}{2}$. So, entropy shouldn’t change then, should it?

Now, if we have $2$ particles, the probability changes, but there is still very likely for all particles to be either in first or second chamber, so entropy cannot change. The same with $3$ particles, $4$ particles… $n$ particles.

The chances for all particles being in the same chamber are getting lower and lower, but are always positive, so entropy shouldn’t really increase, as in the “long run”, the system will be going back to its initial state with probability equal to $1$.

If I am wrong and it is irreversible for many particles, then there should be a certain number $n$ for which the process is reversible, but for $n+1$ it isn't. I don't see why should this happen, especially because probability for particles to be in a certain chamber decreases gradually. Thus there should be no reason for such drastic changes.

And if it is irreversible, then it should be irreversible for the single particle too. But this particle can go back perfectly to it's initial state, why then does the entropy increase?

How can this process even be irreversible?

• you should see this part of lecture by Dr. Richard Feynman youtube.com/watch?v=2OU_f7vYDys Jan 26, 2018 at 17:19
• These are excellent questions... Nov 2, 2023 at 13:46
• @aaaaasaysreinstateMonica The video is not available anymore. Would you know another link to the recording? Nov 2, 2023 at 13:46

Before: \begin{align}S&=-k_b\sum_i p_i \ln(p_i)\\&=-k_b\times 1\times \ln(1)\\&=0\end{align}
After: \begin{align}S &= -k_b\sum_i p_i \ln(p_i)\\ &=-k_b(0.5\ln(0.5) + 0.5\ln(0.5))\\ &=-k_b\times (-0.7)\\&=0.7k_b>0\end{align}