1 Introduction

Synchronization processes are ubiquitous in nature and, in particular, are rooted in human life from the metabolic processes in our cells to the highest cognitive tasks we perform as a group of individuals. Synchronously flashing fireflies, chirping crickets, violinists playing in unison, applauding audiences, firings of neuron assemblies, pacemaker cell beats, etc. are ensembles of units able to organize spontaneously allowing order to arise starting from disordered configurations [30, 36]. Synchrony has attracted much interest in the last decades due to its relevance in many different contexts as biology [3, 12, 25], chemistry [14], ecology [39], climatology [37], sociology [26], physics and engineering [34, 38, 42].

The fundamental features of all the mentioned examples are the presence of many objects—each of which is oscillating in a proper sense—and the phenomenon of mutual influence between oscillations. The attempt of modeling these complex systems therefore led to consider large families of microscopic interacting oscillators. Typically such systems are far from being (easily) tractable. The milestone, pionered by Winfree, was to consider biological oscillators as phase oscillators, neglecting the amplitude. He discovered that a population of non-identical oscillators, coupled by all-to-all interaction terms, can exhibit a temporal analog of a phase transition producing a remarkable cooperative phenomenon [43]. The model was subsequently refined by Kuramoto who proposed a soluble coupled phase oscillator model, which has a simple form and undergoes a transition from an incoherent to a coherent scenario [24]. The original model was deterministic and its dynamics described by a system of ordinary differential equations where oscillators lie on the complete graph and are coupled through the sine of their phase difference. Since then, several variants have been extensively investigated: more general interaction function and/or network [4, 11, 33, 41]; with periodic forcing [32]; stochastic [7, 18, 31] and noisy in random environment [8, 17, 27]; active rotator models [19, 21, 35]; and possible combinations of these cases. It is impossible to properly account for the literature in this field, we refer to the review article [1] for more details and further references.

From an application viewpoint, an interesting modification of the Kuramoto model is represented by the XY model in magnetic systems. The latter is particularly important on the two-dimensional regular lattice since it provides for a microscopic description of certain systems in solid state physics, in particular superfluid helium films [23]. Further applications include superconducting films [5], the Coulomb gas model [16], Josephson junction arrays [6] and nematic liquid crystals [29].

In this paper we consider a noisy and disordered mean-field version of the XY model. We deal with a population of N planar spins, represented by angular variables lying in \([0,2\pi )\), with mean-field interaction. Each spin evolves stochastically, driven by Brownian motion, coupled with all the other particles and subject to an external random field (quenched disorder) that accounts for effects of the environment or anisotropies in the medium where particles live. The interaction term is of the same form as Kuramoto’s and therefore is of “imitative” type in the sense that favor particle configurations where the spins are aligned. In the limit \(N \rightarrow +\infty \) this model is accurately described by an ordinary differential equation (McKean–Vlasov equation). We study the long-time behavior of this equation and obtain the full phase diagram of the stationary solutions. In particular we show that at the macroscopic level the system may undergo a transition from an incoherent to a coherent state whenever the interaction is sufficiently strong compared with the field. Indeed the cooperative behavior of the system is a result of the competition between the coupling strength and the intensity of the external field. The coupling tries to keep aligned all the elements of the population, whereas the anisotropy breaks the symmetry by imposing at each spin a privileged orientation.

Differently from [7], where the zero-field case is considered, when supercritical we do not have a continuum of coherent stationary solutions. Due to the presence of disorder, a finite number of them is selected. Namely the directions the system possibly orders are either parallel or perpendicular to the randomness and moreover only magnetic orderings orthogonal to the field are chosen by the free energy. This transition where spins align perpendicularly to the field is called spin-flop transition and is very special in particular on \(\mathbb {Z}^2\), since Mermin–Wagner theorem forbids phase transition in \(d=2\) for models with continuous symmetry [28]. As far as the XY model on \(\mathbb {Z}^2\) is concerned, it is worth to mention that the occurrence of a spin-flop transition has been shown in presence of an alternating external field in [15] and in presence of a uniaxial random field in [9].

In comparison with the treatment in [2] we consider a dichotomic quenched disorder. The results in [2] are derived for an even distribution of the random field, but the techniques allow for an approximate equation of the critical curve valid only in the case of small variance field density. This requirement excludes the possibility of bi-modal distributions which indeed cover our choice.

For the XY model in i.i.d. dichotomic quenched disorder we are able to provide a complete and rigorous phase portrait, finding another example of spin-flop transition appearing.

Our paper is organized as follows. In Sect. 2 we define the model and introduce the notation. In the following Sect. 3 we present our results. Section 4 is devoted to some conclusions and future perspectives. Finally in the Sect. 5 we present the proofs.

2 Description of the Microscopic Model

Let \([0,2\pi )\) be the one dimensional torus. Let also \(\underline{\eta }=(\eta _j)_{j=1}^N \in \{ -1,+1\}^N\) be a sequence of independent, identically distributed random variables, defined on some probability space \((\Omega , \mathcal {F}, P)\), and distributed according to \(\mu \). We assume \(\mu =\frac{1}{2}(\delta _{-1}+\delta _{+1})\).

Given a configuration \(\underline{x}=(x_j)_{j=1}^N \in [0,2\pi )^N\) and a realization of the random environment \(\underline{\eta }\), we can define the Hamiltonian \(H_N(\underline{x},\underline{\eta }): [0,2\pi )^N \times \{ -1,+1\}^N \longrightarrow \mathbb {R}\) as

$$\begin{aligned} H_N(\underline{x},\underline{\eta })=-\frac{\theta }{2N}\sum _{j,k=1}^N \cos (x_k-x_j) - h \sum _{j=1}^N \eta _j \cos x_j, \end{aligned}$$
(1)

where \(x_j\) is the spin at site j and \(h \eta _j\), with \(h >0\), is the local magnetic field associated with the same site. Let \(\theta \), positive parameter, be the coupling strength. For given \(\underline{\eta }\), the stochastic process \(\underline{x}(t)=(x_j(t))_{j=1}^N\), with \(t \ge 0\), is a N-spin system evolving as a Markov diffusion process on \([0,2\pi )^N\), with infinitesimal generator \(L_N\) acting on \(\mathcal{{C}}^2\) functions \(f:[0,2\pi )^N \longrightarrow \mathbb {R}\) as follows:

$$\begin{aligned} L_Nf(\underline{x}) = \frac{1}{2} \sum _{j=1}^N \frac{\partial ^2 f}{\partial x_j^2} (\underline{x}) + \sum _{j=1}^N \left\{ \frac{\theta }{N} \sum _{k=1}^N \sin (x_k - x_j) - h \eta _j \sin x_j \right\} \frac{\partial f}{\partial x_j} (\underline{x}). \end{aligned}$$
(2)

Consider the complex quantity

$$\begin{aligned} r_{N} e^{i \Psi _N}=\frac{1}{N}\sum _{j=1}^N e^{i x_j}, \end{aligned}$$
(3)

where \(0 \le r_N \le 1\) gives information about the degree of alignment (magnetization) of the spins and \(\Psi _N\) measures the average value they are pointing. We can reformulate the expression of the infinitesimal generator (2) in terms of (3):

$$\begin{aligned} L_N f(\underline{x}) = \frac{1}{2} \sum _{j=1}^N \frac{\partial ^2 f}{\partial x_j^2} (\underline{x}) + \sum _{j=1}^N \left\{ \theta r_N \sin (\Psi _N - x_j) - h \eta _j \sin x_j \right\} \frac{\partial f}{\partial x_j} (\underline{x}). \end{aligned}$$
(4)

The expressions (1) and (4) describe a system of mean field ferromagnetically coupled spins, each with its own random field and subject to diffusive dynamics. The two terms in the Hamiltonian have different effects: the first one tends to align the spins, while the second one tends to make each of them point in the direction prescribed by the magnetic field. Observe that when \(\eta _j=+1\) the spin is pushed toward 0; whereas, when \(\eta _j=-1\) toward \(\pi \).

For simplicity, the initial condition \(\underline{x}(0)\) is such that \((x_j(0),\eta _j)_{j=1}^N\) are independent and identically distributed with law \(\nu \) of the form

$$\begin{aligned} \nu (dx,d\eta ) = q_0(x,\eta ) \mu (d\eta )dx \end{aligned}$$
(5)

with \(\int _0^{2\pi } q_0(x,\eta ) \, dx = 1\), \(\mu \)-almost surely. The quantity \(x_j(t)\) represents the time evolution on [0, T] of jth spin; it is the trajectory of the single jth spin in time. The space of all these paths is \(\mathcal {C}[0,T]\), which is the space of the continuous function from [0, T] to \([0,2\pi )\), endowed with the uniform topology.

3 Results

We first describe the dynamics of the process (2), in the limit as \(N\rightarrow +\infty \), in a fixed time interval [0, T]. To this effect we shall derive a law of large numbers based on a large deviation principle on the path space. Later, the possible equilibria of the limiting dynamics will be studied.

3.1 Limiting Dynamics

Let \((x_j [0,T])_{j=1}^N \in (\mathcal {C}[0,T])^N\) denote a path of the system in the time interval [0, T], with T positive and fixed. If \(f: [0,2\pi ) \times \{-1,+1\} \longrightarrow \mathbb {C}\), we are interested in the asymptotic (as \(N \rightarrow +\infty \)) behavior of empirical averages of the form

$$\begin{aligned} \int fd\rho _N(t) = \frac{1}{N} \sum _{j=1}^N f(x_j(t),\eta _j) \end{aligned}$$
(6)

where \((\rho _N(t))_{t\in [0,T]}\) is the flow of empirical measures

$$\begin{aligned} \rho _N(t) = \frac{1}{N}\sum _{j=1}^N \delta _{(x_j(t),\eta _j)}. \end{aligned}$$
(7)

Notice that by choosing \(f(x,\eta )=e^{ix}\) we obtain the order parameter (3). We may think of \(\rho _N:= (\rho _N(t))_{t \in [0,T]}\) as a continuous function taking values in \(\mathcal {M}_1([0,2\pi ) \times \{-1,+1\})\), the space of probability measures on \([0,2\pi ) \times \{-1,+1\}\) endowed with the weak convergence topology, and the related Prokhorov metric, that we denote by \(d_P(\, \cdot , \cdot \,)\).

The first result we state concerns the dynamics of the flow of empirical measures. It is a special case of what is shown in [2, 10, 20], so the proof is omitted. We need some more notation. For a given \(q: [0,2\pi ) \times \{-1,+1\} \longrightarrow \mathbb {R}\), we introduce the linear operator \(L_q\), acting on \(f: [0,2\pi ) \times \{-1,+1\} \longrightarrow \mathbb {R}\) as follows:

$$\begin{aligned} L_q f(x,\eta )= \frac{1}{2}\frac{\partial ^2 f}{\partial x^2}(x,\eta ) - \frac{\partial }{\partial x} \left\{ \left[ \theta r_{q} \sin (\Psi _{q} - x) - h \eta \sin x \right] f(x,\eta ) \right\} , \end{aligned}$$
(8)

where

$$\begin{aligned} r_{q} \, e^{i\Psi _{q}} := \int _{\{-1,+1\}} \int _0^{2\pi } e^{ix} \, q(x,\eta ) \, dx \, \mu (d\eta ). \end{aligned}$$

Given \(\underline{\eta } \in \{-1,+1\}^N\), we denote by \(\mathcal {P}_N^{\underline{\eta }}\) the distribution on \((\mathcal {C}[0,T])^N\) of the Markov process with generator (2) and initial distribution \(\lambda \). We also denote by

$$\begin{aligned} \mathcal {P}_N\left( d \underline{x}[0,T], d\underline{\eta } \right) := \mathcal {P}_N^{\underline{\eta }} \left( d \underline{x}[0,T]\right) \mu ^{\otimes N} \left( d\underline{\eta } \right) \end{aligned}$$

the joint law of the process and the environment. A large deviation principle for \(\mathcal {P}_N\) allows to characterize the unique limit of the sequence \(\{\rho _N(\cdot )\}_{N \ge 1}\) and, in particular, makes possible to provide a Fokker–Planck equation useful to describe the time evolution of the limiting probability measure.

Theorem 1

The nonlinear McKean–Vlasov equation

$$\begin{aligned} \left\{ \begin{array}{cccr} \frac{\partial q_t}{\partial t} (x, \eta ) &{} = &{} L_{q_t} \, q_t (x, \eta ) \\ \\ q_0 (x,\eta ) &{} &{} \text{ given } \text{ in } \text{(5) } &{} \\ \end{array} \right. \end{aligned}$$
(9)

admits a unique solution in \(\mathcal {C}^1 \left[ [0,T], L^1(dx \otimes \mu ) \right] \), and \(q_t(\cdot ,\eta )\) is a probability density on \([0,2\pi )\), for \(\mu \)-almost every \(\eta \) and every \(t>0\). Moreover, for every \(\varepsilon >0\) there exists \(C(\varepsilon ) >0 \) such that

$$\begin{aligned} \mathcal {P}_N \left( \sup _{t \in [0,T]} d_P ( \rho _N(t), q_t) > \varepsilon \right) \le e^{-C(\varepsilon ) N} \end{aligned}$$

for N sufficiently large, where, by abuse of notations, we identify \(q_t\) with the probability \(q_t(x,\eta ) \mu (d\eta )dx\) on \([0,2\pi ) \times \{-1,+1\}\).

In other words Theorem 1 states that under \(\mathcal {P}_N\), for every \(t \in [0,T]\), the sequence of empirical measures \(\left\{ \rho _N (t) \right\} _{N \ge 1}\) converges weakly, as \(N\rightarrow +\infty \), to a measure \(\rho _t\) admitting density \(q_t(x,\eta ) \mu (d\eta ) dx\).

3.2 Phase Diagram for the Mean Field Limit

Equation (9) describes the infinite-volume dynamics of the system governed by generator (2). We are interested in the detection of t-stationary solutions and possible phase transitions. We recall that being t-stationary solution for (9) means to satisfy \(L_{q} q \equiv 0\).

Next result gives a characterization of stationary solutions of (9).

Proposition 1

Let \(q:[0,2\pi ) \times \{-1,+1\} \longrightarrow \mathbb {R}\), such that \(q(x, \cdot )\) is measurable and \(q(\cdot ,\eta )\) is a probability on \([0,2\pi )\). Then q is a stationary solution of (9) if and only if it is of the form

$$\begin{aligned} q(x,\eta )= [Z(\eta )]^{-1} \cdot \exp \left\{ 2\theta r \cos (\Psi -x) + 2h \eta \cos x \right\} , \end{aligned}$$
(10)

where \(Z(\eta )\) is a normalizing factor and \((r,\Psi )\) satisfies the self-consistency relation

$$\begin{aligned} r \, e^{i \Psi } = \int _{\{-1,+1\}} \int _0^{2\pi } e^{ix} \, q(x,\eta ) \, dx \, \mu (d\eta ). \end{aligned}$$
(11)

There is a one-to-one correspondence between equilibrium distributions (10) and solutions of the self-consistency equation (11). Therefore, our analysis reduces to the study of the self-consistency relation that corresponds to a bi-dimensional fixed point problem of the form

$$\begin{aligned} \begin{pmatrix} r \\ \Psi \end{pmatrix} = F \begin{pmatrix} r \\ \Psi \end{pmatrix}. \end{aligned}$$

The quantities r and \(\Psi \) are the macroscopic counterpart of \(r_N\) and \(\Psi _N\) in (3) and still are indicators of global coherence. Solutions with \(r=0\) are called paramagnetic, those with \(r>0\) are called ferromagnetic.

Remark 1

If \(r=0\) the stationary distribution (10) is given by

$$\begin{aligned} q^{(0)}(x,\eta ) := [Z(\eta )]^{-1} \cdot \exp \left\{ 2h \eta \cos x \right\} , \end{aligned}$$
(12)

where \(Z(\eta )\) is a normalizing factor.

Proposition 2

The pair \((0, \Psi _0)\), with arbitrary \(\Psi _0 \in [0,2\pi )\), is solution of (11) for all values of the parameters.

The next proposition shows that ferromagnetic solutions for (11) appear only with specific values of average position \(\Psi \). In those cases r may be implicitly characterized in terms of first kind modified Bessel functions

$$\begin{aligned} I_v (y) = \frac{1}{2\pi } \int _0^{2 \pi } \cos (v \alpha ) \exp \left\{ y \cos \alpha \right\} \, d\alpha \end{aligned}$$

of orders \(v=0\) and 1. Indeed,

Proposition 3

The self-consistency relation (11) admits solutions \((r_+,\Psi _+)\), with \(r_+>0\), if and only if

$$\begin{aligned} \Psi _+ \in \left\{ 0, \frac{\pi }{2}, \pi , \frac{3\pi }{2} \right\} . \end{aligned}$$

Moreover, \(r_+\) has to satisfy

$$\begin{aligned} r = {\left\{ \begin{array}{ll} \frac{1}{2} \left[ \frac{I_1(2(h+\theta r))}{I_0(2(h+\theta r))} - \frac{I_1(2 ( h-\theta r ))}{I_0(2 ( h-\theta r ))} \right] &{} \text { if } \quad \Psi _+ \in \{0,\pi \} \\ &{}\\ \frac{\theta r}{\sqrt{h^2+\theta ^2r^2}} \frac{I_1(2\sqrt{h^2+\theta ^2r^2})}{I_0(2\sqrt{h^2+\theta ^2r^2 })} &{} \text { if } \quad \Psi _+ \in \left\{ \frac{\pi }{2}, \frac{3\pi }{2} \right\} , \end{array}\right. } \end{aligned}$$
(13)

where \(I_v(\cdot )\) denotes the first kind modified Bessel function of order v.

We will state now our main theorem. It is concerned with the investigation of under what conditions ferromagnetic solutions for (11) may occur. In particular, it is shown that the system undergoes several phase transitions depending on the parameters.

Theorem 2

Set

$$\begin{aligned}&\theta _1 (h) := \frac{1}{2} \left[ \int _0^{2\pi } \sin ^2 (x) q^{(0)} (x,+1) dx \right] ^{-1},\\&\theta _2 (h) := \frac{1}{2} \left[ \int _0^{2\pi } \cos ^2 (x) q^{(0)} (x,+1) \, dx - \left( \int _0^{2\pi }\cos (x) q^{(0)} (x,+1) \, dx \right) ^2 \right] ^{-1} \end{aligned}$$

and, moreover, let \(\bar{h}\) be the value of h such that

$$\begin{aligned} \frac{d^3}{dr^3} \left[ \frac{I_1(2(h+\theta r))}{I_0(2(h+\theta r))} - \frac{I_1(2 ( h-\theta r ))}{I_0(2 ( h-\theta r ))} \right] \Bigg \vert _{r=0} = 0. \end{aligned}$$
(14)

Then,

  • for \(\theta \le \theta _1 (h)\), then there is no ferromagnetic solution;

  • for \(h \le \bar{h}\) and \(\theta _1 (h) < \theta \le \theta _2 (h)\), there exist ferromagnetic solutions \(\left( r_+,\frac{\pi }{2} \right) \) and \(\left( r_+, \frac{3\pi }{2} \right) \);

  • for \(h > \bar{h}\) and \(\theta _1 (h)< \theta < \theta _2 (h)\), there exists a further value \(\theta _\star (h)\), with \(\theta _1 (h)< \theta _\star (h) < \theta _2 (h)\), such that

    • if \(\theta _1 (h) < \theta \le \theta _\star (h)\), there exist ferromagnetic solutions \(\left( r_+,\frac{\pi }{2} \right) \) and \(\left( r_+, \frac{3\pi }{2} \right) \);

    • if \(\theta _\star (h) < \theta \le \theta _2 (h)\), in addition to \(\left( r_+,\frac{\pi }{2} \right) \) and \(\left( r_+, \frac{3\pi }{2} \right) \), two further pairs of ferromagnetic solutions arise: \(\left( \bar{r}_+,0 \right) \), \(\left( \bar{r}_+,\pi \right) \) and \(\left( \hat{r}_+,0 \right) \), \(\left( \hat{r}_+,\pi \right) \), with \(\bar{r}_+ \ne \hat{r}_+\).

  • for \(\theta > \theta _2 (h)\), there exist ferromagnetic solutions \(\left( r_+, \frac{\pi }{2} \right) \), \(\left( r_+,\frac{3\pi }{2} \right) \) and \(\left( \bar{r}_+,0 \right) \), \(\left( \bar{r}_+,\pi \right) \).

The values \(r_+\), \(\bar{r}_+\) and \(\hat{r}_+\) depend on the parameters \(\theta \) and h; therefore, they vary according to the phase we are considering.

The rich scenario depicted in Theorem 2 can be qualitatively summarized in the phase portrait presented in Fig. 1.

Fig. 1
figure 1

Picture of the phase space \((h,\theta )\). Each region represents a phase with as many ferromagnetic solutions of (11) as indicated by the numerical label. The value \(\bar{h}\) is implicitly defined by (14). The lower blue curve is \(\theta _1\), whereas the upper red one corresponds to \(\theta _2\). The dashed green separation line is \(\theta _\star \) and is obtained numerically. Indeed, the latter is defined by a tangency relation. More hints about this curve will be given in the proof of Theorem 2 in Sect. 5 (Color figure online)

4 Discussion and Future Perspectives

The paper is concerned with the study of the phase diagram for a mean-field planar XY model with external field. We first determined the \(N \rightarrow + \infty \) limiting distribution on the path space by deriving an appropriate law of large numbers based on a large deviation principle. Then we analyzed the long-time behavior of the system. Indeed we were able to characterize the equilibria as solutions of a fixed point equation and in turn to detect several phase transitions.

Two basic mechanisms play a relevant role. On the one hand, a ferromagnetic-type interaction tends to align the spins by decreasing their phase difference. On the other, the presence of a magnetic field tends to separate the population in two different groups, pointing in opposite orientations. Clearly there is a competition between interaction and field intensity. In particular, above a critical threshold for the interaction strength a phase transition from a paramagnetic to a ferromagnetic state occurs. More precisely we have shown that, whenever the interaction is sufficiently strong, a net magnetization appears spontaneously with average spin displacement either perpendicular or parallel to the direction fixed by the field. We then obtained 2, 4 or 6 different possible ferromagnetic solutions. The richness of the phase diagram is due to the addition of a dichotomic random environment.

4.1 Simulations, Free Energy and Stability

If we integrate the model numerically, how does \(\left( r_N(t), \Psi _N(t) \right) \) evolve? For concreteness, suppose we fix the field intensity h and vary the coupling \(\theta \). Simulations show that for all \(\theta \) less than the threshold \(\theta _1\), the spins act as if they were uncoupled: their values become distributed around 0 or \(\pi \), as prescribed by the magnetic field, starting from any initial condition (see Fig. 2).

Fig. 2
figure 2

The picture shows the time-evolution of interacting particle system (2) with \(N=2000\) spins in the case when \(h=1.5\) and \(\theta =0.5\) (phase 0 in Fig. 1). Simulations have been run for 2000 iterations, with time-step \(dt=0.01\), and starting from an initial uniform random configuration on \([0,2\pi )^{N}\). The three snapshot histograms correspond to the configurations of the system at times \(t=0\), 1000 and 2000 respectively. In each panel, on the x-axis we have the interval \([0,2\pi )\) and on the y-axis the normalized number of spins lying on the same angular position is registered; in blue (resp. red) spins subject to positive (resp. negative) field are displayed. We can see that in the long-run the spins tend to align with the site-dependent magnetic fields. As a result, approximately half of the particles are around angle 0 and the other half around \(\pi \), giving a null total magnetization; more precisely, we get \(r_N (t_{fin}) = 0.001\). In the last snapshot the limiting distributions for the two families of spins are superposed; the solid blue (resp. red) line is \(q(x,+1)\) (resp. \(q(x,-1)\)) defined by (10) (Color figure online)

But when \(\theta \) exceeds \(\theta _1\), this paramagnetic state seems to lose stability and \(r_N(t)\) grows, reflecting the formation of a small cluster of spins that are aligned, thereby generating a collective phenomenon. Eventually \(r_N(t)\) saturates at some level \(0< r_N(\infty ) < 1\) (see Fig. 3). With further increases in \(\theta \), more and more spins are recruited into the “aligned cluster” and \(r_N(\infty )\) grows as shown in Fig. 4.

Fig. 3
figure 3

The picture shows the time-evolution of interacting particle system (2) with \(N=2000\) spins in the case when \(h=1.5\) and \(\theta =5\) (phase 6 in Fig. 1). Simulations have been run for 2000 iterations, with time-step \(dt=0.01\), and starting from an initial uniform random configuration on \([0,2\pi )^{N}\). a The three snapshot histograms correspond to the configurations of the system at times \(t=0\), 1000 and 2000 respectively. In each panel, on the x-axis we have the interval \([0,2\pi )\) and on the y-axis the normalized number of spins lying on the same angular position is registered; in blue (resp. red) spins subject to positive (resp. negative) field are displayed. We can see that in the long-run the spins point angles close to \(\frac{\pi }{2}\). As a result, a spontaneous net magnetization appears; indeed, we have \(r_N (t_{fin}) = 0.8\) and the mean orientation of the particles is \(\Psi _N (t_{fin}) = 1.64\). In the last snapshot the limiting distributions for the two families of spins are superposed; the solid blue (resp. red) line is \(q(x,+1)\) (resp. \(q(x,-1)\)) defined by (10). b The time-evolutions of \(r_N\) and \(\Psi _N\) corresponding to the current simulation are displayed (Color figure online)

Fig. 4
figure 4

Dependence of the steady-state coherence \(r_N(\infty )\) on the coupling strength \(\theta \) for fixed h

Simulations indicate that the paramagnetic solution is globally stable for \(\theta < \theta _1\); whereas, it becomes unstable for \(\theta > \theta _1\), when ferromagnetic equilibria arise. In the multiplicity phase the numerics further suggest that the dynamics approach either \(\left( r_+, \frac{\pi }{2} \right) \) or \(\left( r_+, \frac{3\pi }{2} \right) \). All the other ferromagnetic stationary points are unstable. In other words, it seems there are only two attracting states for each value of \(\theta > \theta _1\). Indeed dynamical simulations are confirmed by the analysis of the free energy. The model is reversible and therefore the evolution is driven by a free energy \(\mathcal {F}_{\theta ,h}\) that corresponds (up to an additive constant) to the large deviation functional of the invariant measure. Let q be a stationary solution of (9); following [13] we obtain

$$\begin{aligned} \mathcal {F}_{\theta ,h} (r_q, \Psi _q)= & {} \int _{\{-1,1\}}\int _{0}^{2\pi } \left[ -\frac{\theta }{2} \, r_q \cos (\Psi _q-x) - h\eta \cos x \right] q(x,\eta ) \, dx \, \mu (d\eta ) \nonumber \\&+\, \frac{1}{2} \int _{\{-1,1\}} \int _{0}^{2\pi } q(x,\eta )\log [2\pi q(x,\eta )] \, dx \, \mu (d\eta ). \end{aligned}$$
(15)

To study the stability of the various equilibria we found, we checked their relative heights on the free energy surface: we solved numerically the self-consistency relation (13) and we plugged the obtain pair(s) \((r,\Psi )\) in (15). Moreover, to visualize the energy landscape, we plotted directly the surface (15). See Fig. 5 for an example. We tested several choices of \(\theta \) and h for each region of the parameter space. In all multiplicity phases the free energy functional has minima at the spin-flop points \(\left( r_+, \frac{\pi }{2} \right) \) and \(\left( r_+, \frac{3\pi }{2} \right) \). Whereas, in phases 4 and 6, the ferromagnetic solutions having \(\Psi \in \{0,\pi \}\) are either maxima or saddles for \(\mathcal {F}_{\theta , h}\) and hence always unstable. This study supports the idea that a spin-flop transition occurs when increasing the coupling strength.

Finally we would remark that, if we fix h and vary \(\theta \), there is no ordering between \(r_+(\theta )\), \(\overline{r}_+(\theta )\) and \(\hat{r}_+(\theta )\). On the other hand, for fixed \(\theta \) and variable h, we have a monotone relation between the different coherence indicators seen as functions of h. Namely, in phase 4 we always get \(r_+(h) \le \overline{r}_+(h)\) and in regime 6 it holds \(\hat{r}_+(h) \le r_+(h) \le \overline{r}_+(h)\).

Fig. 5
figure 5

The picture shows the free energy surface and the corresponding contour plot for several values of the parameters. A representative image for each of the phases in Fig. 1 is displayed. Color convention: the darker the color, the lower the height of the surface (Color figure online)

4.2 Critical Fluctuations

An important and interesting further step would be to understand how macroscopic observables fluctuate around their mean values when the system is put at the critical point. In this regime to obtain a limit theorem describing the fluctuations of the empirical measure process as \(N \rightarrow +\infty \) we construct a process of the form

$$\begin{aligned} N^{\frac{1}{4}} \left[ \rho _N \left( N^{\alpha }t \right) - q \right] \end{aligned}$$
(16)

for suitable \(\alpha > 0\). There are two notable features of this rescaling. On the one hand, we have a non-Gaussian spatial scale (\(N^{\frac{1}{4}}\) instead of \(N^{\frac{1}{2}}\)); this implies that critical fluctuations are spatially larger than non-critical ones. On the other, the process must be observed in fast time \(N^{\alpha }t\) because of the phenomenon of “critical slowing down”. It means that the fluctuations persist over long time scale.

We would like to determine the exponent \(\alpha \) such that (16) admits a meaningful limit in the sense of weak convergence. It is not clear a priori what to expect as time scale. The addition of disorder may have a drastic impact on the fluctuation process and change the time scale at which it exists.

In the paper [8] the authors analyze how disorder affects the dynamics of critical fluctuations for two different types of interacting particle system: the Curie-Weiss and Kuramoto models in random environment. The interesting point is that when disorder is added, spin and rotator systems belong to different universality classes, which is not the case for their non-disordered counterparts. Hence the disorder is responsible for destroying universality. Roughly speaking in the Curie-Weiss model the fluctuations produced by the disorder always prevail in the critical regime: these fluctuations evolve in a time scale which is much shorter (\(\alpha =\frac{1}{4}\)) than the corresponding one for homogeneous system (\(\alpha =\frac{1}{2}\)). For rotators, the disorder does not modify the “standard” slowing down (\(\alpha =\frac{1}{2}\)).

The question is why does it happen? The random Kuramoto model in [8] is not reversibleFootnote 1 and moreover presents a discrepancy between the symmetry type of the state and the disorder variables (rotational vs. up/down). We wonder if this difference is due to the reversibility/irreversibility or rather symmetry issues. The general idea is therefore to consider two modifications of the random Kuramoto model, aimed at getting a reversible system with disorder having either up/down or rotational symmetry, and then make a comparison between the time scale of critical fluctuations. The XY model can be read as the variation that accounts for the reversibility plus up/down symmetry case. As a first step it would be interesting to investigate its critical fluctuations and compare them to those of the Curie-Weiss model.

Both stability properties of the steady solutions and the behavior of fluctuations appear to be difficult to determine analytically and are left unsolved by the present paper. To prove them rigorously one should have the complete control over the spectrum of the linearization of the operator (8) that is an open and difficult problem at the moment. We feel that this analysis may deserve much more room and defer some more detailed work to future research.

5 Proofs

5.1 Proof of Proposition 1

An equilibrium probability density for (9) must satisfy

$$\begin{aligned} \frac{1}{2}\frac{\partial ^2 q}{\partial x^2}(x,\eta ) = \frac{\partial }{\partial x} \left\{ \left[ \theta r \sin (\Psi - x) - h \eta \sin x \right] q(x,\eta ) \right\} \end{aligned}$$
(18)

Respecting normalization (\(\int _0^{2\pi } q(x,\eta ) \, dx = 1\)) and periodic boundary conditions (\(q(0,\eta )=q(2\pi ,\eta )\) for every \(\eta \)), we can solve (18) and complete the proof.

5.2 Proofs of Proposition 2 and Proposition 3

Every stationary solution \((r,\Psi )\) has to satisfy the self-consistency relation (11), which is equivalent to conditions

$$\begin{aligned} r&= \int _{\{-1,+1\}} \int _0^{2\pi } \cos ( x-\Psi ) \, q (x,\eta ) \, dx \, \mu (d\eta ) \end{aligned}$$
(19)
$$\begin{aligned} 0&= \int _{\{-1,+1\}} \int _0^{2\pi } \sin (x-\Psi ) \, q (x,\eta ) \, dx \, \mu (d\eta ), \end{aligned}$$
(20)

where \(q (x,\eta )=[Z(\eta )]^{-1} \cdot \exp \{2\theta r \cos (\Psi -x)+2h\eta \cos x \}\). By standard trigonometric formulas, equations (19) and (20) can be rewritten as

All the integrals involved can be rephrased in terms of Bessel functions. We make the main steps explicit for \(\int _0^{2\pi } \cos x \, q (x, +1) \, dx\), the remaining integrals can be dealt with similarly. We have,

$$\begin{aligned} Z(+1) \int _0^{2\pi } \cos x \, q (x,+1) dx&=\sum _{k \in 2\mathbb {N}+1} \frac{1}{k!} \int _0^{2\pi } \cos x \, \Bigl [2\theta r \cos (\Psi -x)+2h\cos x \, \Bigr ]^k dx \nonumber \\&= 2 \pi (h+\theta r \cos \Psi ) \sum _{k=0}^{+\infty } \frac{\left( h^2+\theta ^2r ^2+2\theta h r \cos \Psi \right) ^k}{\Gamma (k+2)\Gamma (k+1)} \nonumber \\&=2\pi (h+\theta r \cos \Psi )\frac{I_1\left( 2\sqrt{h^2+\theta ^2r ^2+2\theta h r \cos \Psi } \right) }{\sqrt{h^2+\theta ^2r ^2+2\theta h r \cos \Psi }}, \end{aligned}$$
(21)

where \(\Gamma ( \cdot )\) is the Gamma function and \(I_{v} (\cdot )\) denotes the first kind modified Bessel function of order v. The derivation of (21) is postponed to Appendix “Derivation of Formula (21)”. In the same manner we calculate

$$\begin{aligned}&Z(-1) \int _0^{2\pi } \cos x \, q (x,-1) dx = - 2\pi (h-\theta r \cos \Psi ) \, \frac{I_1\left( 2\sqrt{h^2+\theta ^2r ^2-2\theta h r \cos \Psi } \right) }{\sqrt{h^2+\theta ^2r ^2-2\theta h r \cos \Psi }},\\&Z(\pm 1) \int _0^{2\pi } \sin x \, q (x,\pm 1) dx = 2\pi (\theta r \sin \Psi ) \, \frac{I_1\left( 2\sqrt{h^2+\theta ^2r ^2 \pm 2\theta h r \cos \Psi } \right) }{\sqrt{h^2+\theta ^2r ^2 \pm 2\theta h r \cos \Psi }} \end{aligned}$$

and the normalizing constants

$$\begin{aligned} Z(\pm 1) = 2\pi I_0 \left( 2\sqrt{h^2+\theta ^2r ^2 \pm 2\theta h r \cos \Psi } \right) . \end{aligned}$$

By plugging what we obtained into equations (19\(^\prime \)) and (20\(^\prime \)), we get

Focus on equation (20\(^{\prime \prime }\)). It is equivalent either to \(\sin \Psi = 0\) or the term into square brackets vanishes. By Lemma 2 in Appendix “A Technical Lemma on Bessel Functions” we know that the function \(g(z)=\frac{I_1(2\sqrt{z})}{\sqrt{z} \, I_0(2\sqrt{z})}\) is strictly decreasing on \(]0,+\infty [\) and so the latter circumstance occurs if and only if the arguments of the two functions appearing into brackets are equal. Therefore, equation (20\(^{\prime \prime }\)) admits solution when: (a) \(\Psi = 0\) or \(\Psi = \pi \); (b) \(\Psi = \frac{\pi }{2}\) or \(\Psi = \frac{3\pi }{2}\); (c) \(r=0\).

It is easy to see that under (c) equation (19\(^{\prime \prime }\)) is always satisfied, giving the statement of Proposition 2. Moreover, under (a) or (b) equation (19\(^{\prime \prime }\)) reduces to (13) and this concludes the proof of Proposition 3.

5.3 Proof of Theorem 2

From Proposition 3 we infer that we have only to consider the cases when \(\Psi \in \left\{ 0, \frac{\pi }{2}, \pi , \frac{3\pi }{2} \right\} \). We divide the study in a few steps.

Analysis for \(\Psi \in \left\{ \frac{\pi }{2}, \frac{3\pi }{2} \right\} \). We stick on the case \(\Psi = \frac{\pi }{2}\), the other being similar. First we prove that for \(\theta \le \theta _1 (h)\) there are only paramagnetic solutions; whereas, for \(\theta > \theta _1 (h)\), there exists a unique ferromagnetic solution.

If we set \(\Psi =\frac{\pi }{2}\), then \(q(x,\eta ) = [ Z(\eta )]^{-1} \cdot \exp \left\{ 2 \theta r \sin x + 2 h \eta \cos x\right\} \) and the self-consistency relation (11) is equivalent to the conditions

$$\begin{aligned} r&= \int _{\{-1,+1\}} \int _0^{2\pi } \sin x \, q(x,\eta ) \, dx \, \mu (d\eta ) \end{aligned}$$
(22)
$$\begin{aligned} 0&= \int _{\{-1,+1\}} \int _0^{2\pi } \cos x \, q(x,\eta ) \, dx \, \mu (d\eta ). \end{aligned}$$
(23)

We must show that (22) has a positive solution and that (23) is always satisfied.

First observe that

$$\begin{aligned}&\int _{\{-1,+1\}} \int _0^{2\pi } \sin x \, q(x,\eta ) \, dx \, \mu (d\eta ) \\&\quad = \frac{1}{2} \left[ \int _0^{2\pi } \sin x \, q(x,-1) \, dx \, + \int _0^{2\pi } \sin x \, q(x,+1) \, dx \, \right] \\&\quad \mathop {=}\limits ^{{(y=\pi -x)}} \frac{1}{2} \left[ \int _{-\pi }^{\pi } \sin y \, q(y,+1) \, dy + \int _{0}^{2\pi } \sin x \, q(x,+1) \, dx \right] \\&\mathop {=}\limits ^{\text{(periodicity) }} \int _{0}^{2\pi } \sin x \, q(x,+1) \, dx \end{aligned}$$

and analogously

$$\begin{aligned} \int _{\{-1,+1\}} \int _0^{2\pi } \cos x \, q(x,\eta ) \, dx \, \mu (d\eta ) = 0. \end{aligned}$$

Therefore, (23) is proved and it remains to show that (22) admits a solution \(r>0\). Let us define the functional

$$\begin{aligned} F_1(r) := \frac{\displaystyle {\int _0^{2\pi } \sin x \, \exp \{2 \theta r \sin x + 2 h \cos x\} \, dx}}{\displaystyle {\int _0^{2\pi } \exp \{2 \theta r \sin x + 2 h \cos x\} \, dx}}. \end{aligned}$$

We look for a positive solution of the fixed point equation \(r = F_1(r)\). Observe that by (13) we can rewrite \(F_1\) as

$$\begin{aligned} F_1(r) = \frac{\theta r}{\sqrt{h^2+\theta ^2r^2}} \frac{I_1(2\sqrt{h^2+\theta ^2r^2})}{I_0(2\sqrt{h^2+\theta ^2r^2 })} \end{aligned}$$

and, since we are interested in solutions \(r \ne 0\), our problem translates in finding a positive solution for the equation

$$\begin{aligned} \tilde{F}_1(r) = 1, \end{aligned}$$

where \(\tilde{F}_1(r) := \frac{\theta }{\sqrt{h^2+\theta ^2r^2}} \frac{I_1(2\sqrt{h^2+\theta ^2r^2})}{I_0(2\sqrt{h^2+\theta ^2r^2 })}\). We have

  • \(\tilde{F}_1(0) = \frac{\theta }{h} \frac{I_1(2h)}{I_0(2h)}\) and \(\tilde{F}_1\) is continuous in [0, 1] for all the values of the parameters.

  • \(\tilde{F}_1(r)\) is strictly decreasing in ]0, 1]. Note that \(\tilde{F}_1(r) = (g \circ f) (r)\) with \(g(z) := \frac{I_1(2\sqrt{z})}{\sqrt{z} \, I_0(2\sqrt{z})}\) and \(f(z) := h^2 + \theta ^2 z^2\). Moreover, g is strictly decreasing on ]0, 1] by Lemma 2 in Appendix “A Technical Lemma on Bessel Functions”; whereas, f is strictly increasing. Therefore \(F_1\) is strictly decreasing as it is a composition of a decreasing and an increasing function.

Hence, if \(\tilde{F}_1(0) > 1\) then \(\tilde{F}_1(r)\) intersects the horizontal line 1 exactly once; on the contrary, whenever \(\tilde{F}_1(0) \le 1\) there are no crosses. To conclude it is sufficient to notice that \(\theta _1(h)\) as defined in the statement of Theorem 2 equals \(h \frac{I_0(2h)}{I_1(2h)}\).

Analysis for \(\Psi \in \left\{ 0, \pi \right\} \). We stick on the case \(\Psi = 0\), the other being similar. We want to show that for \(\theta > \theta _2 (h)\), there is exactly one ferromagnetic solution and moreover, that there exists a further critical value \(\theta _\star (h)\), with \(\theta _\star (h) < \theta _2 (h)\), such that if \(\theta \le \theta _\star (h)\) there are only paramagnetic solutions, while if \( \theta _\star (h)< \theta < \theta _2 (h)\) there are two ferromagnetic ones.

If we set \(\Psi =0\), then \(q(x,\eta ) = [Z(\eta )]^{-1} \cdot \exp \left\{ 2 (\theta r + h \eta ) \cos x \right\} \) and the self-consistency relation (11) is equivalent to the conditions

$$\begin{aligned} r&= \int _{\{-1,+1\}} \int _0^{2\pi } \cos x \, q(x,\eta ) \, dx \, \mu (d\eta ) \end{aligned}$$
(24)
$$\begin{aligned} 0&= \int _{\{-1,+1\}} \int _0^{2\pi } \sin x \, q(x,\eta ) \, dx \, \mu (d\eta ). \end{aligned}$$
(25)

We must show that (24) has a positive solution and that (25) is always satisfied.

First observe the x-integral in (25) has an explicit anti-derivative that being \(2\pi \)-periodic makes the whole integral vanish for all values of the parameters. Therefore, (25) is proved and it remains to show that (24) admits solutions \(r>0\). Let us define the functional

$$\begin{aligned} F_2(r) := \int _{\{-1,+1\}} \, \frac{\displaystyle { \int _0^{2\pi } \cos x \, \exp \{ 2 (\theta r + h \eta ) \cos x \} \, dx}}{\displaystyle {\int _0^{2\pi } \exp \{ 2 (\theta r + h \eta ) \cos x \} \, dx}} \, \mu (d\eta ). \end{aligned}$$

We look for a solution of the fixed point equation \(r = F_2(r)\). We have

  • \(F_2(0)=0\) and \(F_2\) is continuous in [0, 1] for all values of the parameters.

  • \(\lim _{r \rightarrow +\infty } F_2(r) = 1\); indeed, as \(r \rightarrow +\infty \) the function \(x \mapsto \exp \{2 (\theta r + h \eta ) \cos x \}\) becomes sharply peaked around \(x = 0\) and so does also \(x \mapsto \cos x \exp \{2 (\theta r + h \eta ) \cos x \}\). Consequently, \(\lim _{r \rightarrow +\infty } F_2(r) = \int _{\{-1,+1\}} \mu (d\eta ) = 1\).

  • \(F_2\) is strictly increasing; indeed, the first derivative of \(F_2\) with respect to r is given by

    $$\begin{aligned} F_2'(r)&= 2 \theta \int _{\{-1,+1\}} \biggl [ \int _0^{2\pi } \cos ^2 x \, q(x,\eta ) \, dx - 2 \theta \biggl ( \int _0^{2\pi } \cos x \, q(x,\eta ) \, dx \biggr )^2 \biggr ] \, \mu (d\eta ) \\&=2 \theta \, \mathbb {E}_{\mu } \left[ \mathbb {V}ar_{q (x,\eta )} \left( \cos X \right) \right] \end{aligned}$$

    which is a strictly positive quantity, since expected value of a variance. Moreover, it is readily seen that

    $$\begin{aligned} {F_{2'}}(0)\mathrm{{ }} = \theta \left[ {a{r_{{q^{(0)}}(x, + 1)}}\left( {\cos X} \right) + a{r_{{q^{(0)}}(x, - 1)}}\left( {\cos X} \right) } \right] \\ \mathop = \limits ^{\left( {\begin{array}{c} {y = \pi - x}\\ {\mathrm{{and}}}\\ {\mathrm{{periodicity}}} \end{array}} \right) } 2\theta {\mathbb {V}} a{r_{{q^{(0)}}(x, + 1)}}\left( {\cos X} \right) . \end{aligned}$$
  • The second derivative is equal to

    $$\begin{aligned} F_2''(r) = 4\theta ^2 \mathbb {E}_{\mu } \left\{ \mathbb {E}_{q(x,\eta )} \left[ \cos X - \mathbb {E}_{q(x,\eta )}(\cos X) \right] ^3 \right\} \end{aligned}$$
    (26)

    and changes sign depending on the parameters, so that is not possible to conclude by a standard concavity argument. Nevertheless from numerics we see that there is at most one sign change (we checked the number of zeros for (26) in the region \([0,10] \times [0,10]\) of the parameter space \((h, \theta )\) on a grid of mesh-size 0.1 and in the region \([0,10] \times [10,30] \cup [10,30] \times [0,30]\) on a grid of mesh-size 0.5). As a consequence, \(F_2\) changes the curvature at most once.Footnote 2 Therefore we can argue as follows. Since as \(r \rightarrow +\infty \) the function \(F_2(r)\) approaches 1 from below, it must be concave for large r. Then,

    • if \(\theta \le \theta _2(h)\) and \(F_2''(r) \le 0\) in a right-neighborhood of \(r=0\), \(F_2(r)\) is strictly concave on [0, 1] for any values of the parameters and hence there is no intersection with the diagonal.

    • if \(\theta \le \theta _2(h)\) and \(F_2''(r) > 0\) in a right-neighborhood of \(r=0\), \(F_2(r)\) changes curvature either below or above the diagonal, giving rise to none or precisely two positive fix points. The boundary between these two regions is represented by the dashed green line \(\theta _\star (h)\) in Fig. 1. It has been obtained numerically and corresponds to the choice of parameters where there exists \(r > 0\) such that \(F_2(r)=r\) and \(F_2'(r)=1\). Note that the curves \(\theta _2\) and \(\theta _\star \) coincide for \(h \in \left[ 0,\bar{h} \right] \) and then separate at \(h=\bar{h}\).

    • if \(\theta > \theta _2(h)\), no matter if either \(F_2''(r) \le 0\) or \(F_2''(r) > 0\) in a right-neighborhood of \(r=0\), the curve \(F_2(r)\) crosses the diagonal at precisely one positive r.

    We are left to understand which is the curvature of \(F_2\) around \(r=0\). To infer some information we Taylor expand the function and, by means of the representation (13), we obtain

    $$\begin{aligned} F_2 (r) = \theta \left[ \frac{I_0^2(2h) + I_0(2h)I_2(2h) -2I_1^2(2h)}{I_0^2(2h)} \right] r + \theta ^3 K(h) r^3 + O(r^4) \end{aligned}$$

    with

    $$\begin{aligned} K(h):= & {} \frac{-3I_0^4(2h) +I_0^3(2h) \left[ I_4(2h) - 8I_2(2h) \right] + I_0^2(2h) \left[ 24 I_1^2(2h) -6I_2^2(2h) - 8I_1(2h) I_3(2h)\right] }{I_0^4(2h)}\\&+\, \frac{48 I_0(2h) I_1^2(2h) I_2(2h) - 48 I_1^4(2h)}{I_0^4(2h)}, \end{aligned}$$

    where \(I_v(\cdot )\) denotes a first kind modified Bessel function of order v. The function K(h) admits a (unique) zero at \(\bar{h} \simeq 0.514443\). The graph of K(h) is shown in Fig. 6. Therefore, if \(h \le \bar{h}\) the function \(F_2(r)\) starts concave; whereas, if \(h > \bar{h}\) it starts convex.

Fig. 6
figure 6

Plot of the function K(h). The value \(\bar{h}\) is defined by the equation \(K(h)=0\), which is equivalent to (14)

To conclude the proof it remains to show that \(\theta _1(h) < \theta _2(h)\), for every \(h > 0\). If \(I_v(\cdot )\) denotes a first kind modified Bessel function of order v, we must prove that

$$\begin{aligned} 1 \,{-}\, 2 \int _0^{2\pi } \cos ^2 x \, q^{(0)} (x,+1) \, dx \,{+}\left( \int _0^{2\pi } \cos x \, q^{(0)} (x,+1) \, dx \right) ^2 \,{=}\,\frac{I_1^2 (2h) - I_0 (2h) I_2 (2h)}{I_0^2 (2h)} \end{aligned}$$

is strictly positive for all values of \(h > 0\). The assertion follows from the inequality [22]

$$\begin{aligned} I_v^2 (y) - I_{v-n} (y) I_{v+n} (y)> 0, \quad \text{ whenever } v> 0, y > 0, n \ge 1. \end{aligned}$$
(27)