32 ing systems in static and cosmological backgrounds in Dynamics and Thermodynamics of Systems with Long Range Interactions , edited by T. Dauxois, S. Ruffo, E. Arimondo, and M. Wilkens, Lecture Notes in Physics 602 , 165 (Springer, 2002) [28] P.H. Chavanis, Phys. Rev. E 65 , 056123 (2002) [29] C. Sire, P.H. Chavanis, Phys. Rev. E 66 , 046133 (2002) [30] J. Katz, Found. Phys. 33 , 223 (2003) [31] P.H. Chavanis, Int. J. Mod. Phys. B, 20 , 3113 (2006) [32] S. Inagaki, Prog. Theor. Phys. 90 , 577 (1993) [33] M. Antoni, S. Ruffo, Phys. Rev. E 52 , 2361 (1995) [34] P.H. Chavanis, J. Vatteville & F. Bouchet, Eur. Phys. J. B 46 , 61 (2005) [35] A. Antoniazzi, D. Fanelli, S. Ruffo, Y. Yamaguchi, Phys. Rev. Lett. 99 , 040601 (2007) [36] F. Staniscia, P.H. Chavanis, G. de Ninno, D. Fanelli, Phys. Rev. E 80 , 021138 (2009) [37] B. Miller, P. Youngkins, Phys. Rev. Lett. 81 , 4794 (1998) [38] J. Barr´ e, D. Mukamel, S. Ruffo, Phys. Rev. Lett. 87 , 030601 (2001) [39] M. Antoni, S. Ruffo, A. Torcini, Phys. Rev. E 66 , 025103(R) (2002) [40] T. Tatekawa, F. Bouchet, T. Dauxois, S. Ruffo, Phys. Rev. E 71 , 056111 (2005) [41] P. Valageas, Astron. Astrophys. 450 , 445 (2006) [42] J. Messer, H. Spohn, J. Stat. Phys. 29 , 561 (1982) [61] G.L. Camm, Mon. Not. R. Astron. Soc. 110 , 305 (1950) [62] R. Schaaf, Trans. Amer. Math. Soc. 292 , 531 (1985) [63] It is known that this approximation becomes exact for systems with long-range interactions in a proper thermo- dynamic limit N → $^{+}$∞ [42]. For systems with short- range interactions (e.g. a screened Newtonian potential), we shall still use a mean field approximation although it may not be exact. One motivation of our approach is that the Keller-Segel model in biology is formulated in the mean field approximation even if the degradation of the chemical is large. The incorrectness of the mean field approximation as the interaction becomes short-range is interesting but will not be considered in this paper. [64] We cannot impose the boundary conditions (33) for the Poisson equation (41) since the integration of this equa- tion ∮ ∇ $^{c}$·d S = − λM = 0 implies that ∇ $^{c}$· n = 0 on the boundary of the domain. [65] This interpretation also holds for the chemotactic prob- lem. We have seen that the (mean field) Keller-Segel model has an effective thermodynamical structure asso- ciated with the canonical ensemble. Furthermore, we can derive kinetic models of chemotaxis in which the evolu- tion of the cells (or bacteria) is described in terms of coupled stochastic equations [51, 52]. In that sense, the cells behave as Brownian particles in interaction as in Secs. II 2 and II 3, and the canonical structure of this model is clear. [43] D. Lynden-Bell, Mon. Not. R. Astron. Soc. 136 , 101 (1967) [44] R. Ellis, K. Haven, B. Turkington, J. Stat. Phys. 101 , 999 (2000) [45] F. Bouchet, J. Barr´ e, J. Stat. Phys. 118 , 1073 (2005) [46] H. Risken, The Fokker-Planck equation (Springer, 1989) [47] M.A. Herrero, E. Medina, J.J.L. Velazquez, J. Comput. Appl. Math. 97 , 99 (1998) [48] K. Huang, Statistical Mechanics (Wiley, 1963) [49] D.H.E. Gross, Microcanonical Thermodynamics: Phase Transitions in “Small” Systems , Lecture Notes in Physics 66 (World Scientific, Singapore, 2001) [66] In many papers, only fully stable states forming the strict caloric curve are indicated. We think that clarity is gained when the full series of equilibria is shown. Then, we can see where the stable, metastable and unstable branches are located and how they are connected to each other. This also allows us to use the Poincar´ e theory of linear series of equilibria to settle their stability without be- ing required to study an eigenvalue equation associated with the second order variations of the thermodynamical potential [18, 31]. [67] This is, in fact, just a quasistationary state that forms on a timescale that is short with respect to the Hubble time so that the expansion of the universe can be neglected or treated adiabatically. Indeed, if we allow for the time variation of the scale factor a ( t ), it is simple to see that there is no statistical equilibrium state in a strict sense. [50] A. Campa, T. Dauxois, S. Ruffo, Physics Reports 480 , 57 (2009) [51] T.J. Newman, R. Grima, Phys. Rev. E 70 , 051916 (2004) [52] P.H. Chavanis, C. Sire, Physica A 384 , 199 (2007) [53] S. Chandrasekhar Principles of Stellar Dynamics (Uni- versity of Chicago Press, 1942) [54] S. Childress, J.K. Percus, Math. Biosci. 56 , 217 (1981) [55] M. Antoni, S. Ruffo, A. Torcini, Europhys. Lett. 66 , 645 (2004) [56] P.H. Chavanis, Astron. Astrophys. 432 , 117 (2005) [57] P.H. Chavanis, C. Sire, Physica A 387 , 4033 (2008) [58] J.H. Jeans, Astronomy and Cosmogony (Cambridge Univ. Press, 1929) [59] J. Binney, S. Tremaine, Galactic Dynamics (Princeton Series in Astrophysics, 1987) [60] T. Padmanabhan, Statistical mechanics of gravitat-