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:
. This way, we can substitute
we can also write:
Therefore, the partition function in terms of
Now, summing over
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
and so as
goes to zero, so a fortiori
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.