Collective Behaviors of Vortices in 2D XY model

For more detailed discussions, one can take a peek at this lecture note; the derivation seems to be different but one can show that what is done in the note is equivalent to the sketched derivation in this part of the Website. Indeed, the 2 approaches yield the same result in the end as one might expected.