Irrelevance of boundary conditions

We can wonder what happens if we change the boundary conditions: since they affect only a small part of the system we expect that as long as the system is finite we can observe some differences if we choose different boundary conditions, but as soon as we take the thermodynamic limit these differences become irrelevant. As an example let us compute again but with periodic boundary conditions, i.e. the first and the last spin are coupled (this can be visually interpreted as "closing" our system in a circle, connecting the first and last spins). In this case we have:

In order to compute this partition function we use another "trick"; we define the variables:
and set . This way, we can substitute with and since we can also write:
Therefore, the partition function in terms of becomes:
Now, summing over and rewriting with the definition of exponential series:


and the finite-size free energy is:
which is different from what we have seen in Bulk free energy, thermodynamic limit and absence of phase transitions, and as we have already stated this is due to the fact that the system we are considering is still finite-sized. If we now take the thermodynamic limit we will have:
The last limit, however, is null: in fact for any and so as grows goes to zero, so a fortiori vanishes as . Therefore:
which is exactly what we have seen previously.

Since, as expected, the boundary conditions do not affect the properties of macroscopic systems and their effect on finite systems are very small, when we are studying a model we can choose the one we prefer and which makes calculations easier.