Introduction

Synchronization in networks of coupled dynamical oscillators continues to be the subject of intensive investigation1,2,3,4,5,6,7. The emergence of synchronization in homogeneous networks consisting of coupled identical oscillators has been analyzed using the general framework of the master stability function (MSF)8,9 and the connection graph stability method10. One of the ongoing challenges is to study the emergence of collective behavior in heterogeneous networks11,12,13,14,15,16, with a large part of the literature on heterogeneous networks focusing on phase oscillators17,18,19,20. Typical instances of synchronization in the real world include situations in which the individual parameters of the systems are heterogeneous and are not fine-tuned21,22. Hence, it is important to study how synchronization may emerge in ensembles of heterogeneous systems with large parameter variability.

Synchronization among non-phase oscillators with parameter mismatches has been studied in a number of papers; however, most of these papers focus on the case of small mismatches. In particular, (i) refs. 23,24,25 generalized the master stability approach of Pecora and Carroll8 to the case of slightly non-identical oscillators. Assuming stability and small parametric mismatches, these papers have found that deviations from the synchronous state grow linearly with the mismatches; (ii) Acharyya and Amriktar26,27 extended the approach of (i) by performing a higher-order expansion. The main difference between (i) and (ii) is that (ii) found that the stability is affected by parameter mismatches. Finally, a recent paper (iii)28 has focused on the case of Chua oscillators and shown that, both in simulation and in experiments, the stability of the synchronous solution is enhanced by mismatches, which contrasts with previous observations. Reference28 has suggested that this synchronization enhancement in the presence of mismatches is a general phenomenon that is due to the “mixing” of the modes that describe the time evolution of the perturbations when mismatches are absent. However, it is not clear why such mixing should always result in an improvement for synchronizability.

In this paper, we provide a unified approach that can be implemented to study the synchronization of a broad class of dynamical networks, for which the stability of the synchronous solution can be written in the form of a linear time-invariant system29. This class includes networks of saddle focus oscillators30,31 and networks of piecewise linear oscillators/maps. Similar to the classical master stability function approach of ref. 8, our approach decouples the effects of the dynamics from those of the network topology. However, compared to the master stability function approach, we perform a higher order expansion in the heterogeneous parameters and consider the effects of pairs of eigenvalues of the Laplacian (instead of individual eigenvalues) on the stability of the synchronous solution. Our approach allows us to explain why parameter heterogeneity sometimes hinders and sometimes favors network synchronization, which was not considered in28.

Results

Parametric mismatches in the local dynamics

We consider a general equation for the time evolution of N coupled dynamical systems, with parametric mismatches in the individual dynamics of each node,

$${\dot{{{{{{{{\boldsymbol{x}}}}}}}}}}_{i}(t)={{{{{{{\boldsymbol{F}}}}}}}}({{{{{{{{\boldsymbol{x}}}}}}}}}_{i}(t),{r}_{i})-\sigma \mathop{\sum}\limits_{j}{L}_{ij}{{{{{{{\boldsymbol{H}}}}}}}}({{{{{{{{\boldsymbol{x}}}}}}}}}_{j}(t)),$$
(1)

i = 1, …, N, \({{{{{{{{\boldsymbol{x}}}}}}}}}_{i}\in {{\mathbb{R}}}^{m}\) is the dynamical state of the node i, \({{{{{{{\boldsymbol{F}}}}}}}}:{{\mathbb{R}}}^{m}\mapsto {{\mathbb{R}}}^{m}\) and \({{{{{{{\boldsymbol{H}}}}}}}}:{{\mathbb{R}}}^{m}\mapsto {{\mathbb{R}}}^{m}\) are the local dynamics of each node and the coupling functions between the nodes, and σ is a positive scalar measuring the strength of the coupling. The symmetric Laplacian matrix L = [Lij] is constructed as L = G − A, where A = [Aij] is the adjacency matrix that describes the network topology, and G is a diagonal matrix where the diagonal entries are the sums of the rows of A. Each parameter is set equal to \({r}_{i}=\bar{r}+\epsilon {\delta }_{i}\), where \(\bar{r}={N}^{-1}\mathop{\sum }\nolimits_{i = 1}^{N}{r}_{i}\) is a nominal average value and ϵδi is a parametric mismatch, with ∑jδj = 0, and \({\sum }_{j}{\delta }_{j}^{2}=1\); the scalar ϵ is the tunable magnitude of the mismatches.

Our work applies to different classes of the master stability function32, i.e., to Class II, for which stability of the synchronous solution is achieved in an infinite range of the coupling gain σ and to Class III, for which stability of the synchronous solution is achieved in a finite range of the coupling gain σ. For Class II, as we increase σ from zero, there is only one transition from asynchrony to synchrony (A → S). For Class III, as we increase σ from zero, first there is a transition from asynchrony to synchrony (A → S) followed by another transition from synchrony to asynchrony (S → A.) We develop a theory that allows us to study the effects of parameter mismatches on each individual transition and applies to either the case of A → S transitions or S → A transitions.

We assume possibly large mismatches and small perturbations about the average solution. The particular assumption of small perturbations is discussed in detail in Supplementary Note 1. By defining \(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t)=\frac{1}{N}{\sum }_{i}{{{{{{{{\boldsymbol{x}}}}}}}}}_{i}(t)\) and \(\bar{r}=\frac{1}{N}{\sum }_{i}{r}_{i}\), we can write an equation for the average solution and the time evolution of small perturbations \({{{{{{{{\boldsymbol{w}}}}}}}}}_{i}(t)={{{{{{{{\boldsymbol{x}}}}}}}}}_{i}(t)-\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t)\),

$$\dot{\bar{{{{{{{{\boldsymbol{x}}}}}}}}}}=\frac{1}{N}\mathop{\sum}\limits_{j}\left({{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}},{r}_{j})+D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}},{r}_{j}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}\right)$$
(2a)
$${\dot{{{{{{{{\boldsymbol{w}}}}}}}}}}_{i} = \, D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}},{r}_{i}){{{{{{{{\boldsymbol{w}}}}}}}}}_{i}-\sigma \mathop{\sum}\limits_{j}{L}_{ij}D{{{{{{{\boldsymbol{H}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}+{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}},{r}_{i})\\ -\frac{1}{N}\mathop{\sum}\limits_{j}D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}},{r}_{j}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}-\frac{1}{N}\mathop{\sum}\limits_{j}{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}},{r}_{j})$$
(2b)

where D is the differential operator. We emphasize that the derivations we present only apply to the case that the perturbations in the states of the systems are small. At the same time, we do not introduce an assumption of small mismatches.

In the following, for each transition, either A → S or S → A, we investigate how parameter mismatches affect the network “synchronizability”33, i.e., the range of the parameter σ over which the synchronous solution is stable. When we say that mismatches improve (hinder) synchronization, we mean that for that particular transition this range is extended (narrowed.) In particular we study separately, each one of the transitions that may arise, either (A → S) or (S → A) and see how the critical σ that characterizes those transitions is affected by parameter heterogeneity. We remark that this analysis needs to be repeated for each individual transition and in fact, in what follows we report the example of a particular system that has two transitions, A → S and S → A, and for which parameter heterogeneity increases the synchronizability in the case of the A → S transition and reduces it in the case of the S → A transition.

We proceed under the assumption that the particular choice of the local dynamics F() and of the coupling function H() results in a weak dependence of the Jacobians on the average solution, see ref. 29. This assumption has been previously validated for saddle-focus oscillators (e.g., the Rössler system) in ref. 29 and is validated here for the Chua circuit and Bernoulli maps, see Supplementary Note 2 for a discussion on the validity of this assumption. We can then write \(D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t),{r}_{i})\approx D{{{{{{{\boldsymbol{F}}}}}}}}({r}_{i})\), where DF(ri) = F + ϵδiB, where \(F=D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{r})\) and \(B\in {{\mathbb{R}}}^{m\times m}\) are constant matrices. Analogously, we can also write \(D{{{{{{{\boldsymbol{H}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t))\approx H\), where \(H\in {{\mathbb{R}}}^{m\times m}\) is a constant matrix. We comment further  on this assumption. While the assumption only applies to certain choices of the functions F and H, we will show successful application of the theory to a variety of continuous time and discrete systems, such as Rössler systems, Chua circuits, Bernoulli maps, and opto-electronic maps, as we show in the rest of this paper. More importantly, we will be able to address the case of large parameter mismatches and to analyze whether parameter mismatches either enhance or hinder synchronization.

We now define \({{{{{{{\boldsymbol{W}}}}}}}}={[{{{{{{{{\boldsymbol{w}}}}}}}}}_{1}^{\top }{{{{{{{{\boldsymbol{w}}}}}}}}}_{2}^{\top }\ldots {{{{{{{{\boldsymbol{w}}}}}}}}}_{N}^{\top }]}^{\top }\), and rewrite the homogeneous part of Eq. (2b) in compact form,

$$\dot{{{{{{{{\boldsymbol{W}}}}}}}}}(t)=M{{{{{{{\boldsymbol{W}}}}}}}}(t),$$
(3)

where M = M0 + ϵM1, M0 = INF − σ(LH) with IN indicating the identity matrix of size N, and M1 = Δ B, Δ = diag(δ1, …, δN).

It is important to emphasize that while Eq. (2b) has both a homogeneous part and a non-homogeneous part, we are mostly concerned with the homogeneous part of the equation. The homogeneous part of Eq. (2b) describes stability; in case the homogeneous part is stable, the non-homogeneous part quantifies the deviation from the synchronous state. The rest of this paper is devoted to analyzing how parametric mismatches affect the homogeneous part of the equation. This is in contrast with refs. 23,24,25 that focused on the non-homogeneous part of the equation and did not study how parametric mismatches affect the synchronizability but only the level of synchronization achieved in the network in case the synchronous solution is stable.

In order to capture the dynamics of the transverse perturbation about the average solution, we introduce the N × m-dimensional matrix \(\tilde{V}\), with m = (N − 1), that has for columns all the eigenvectors of the matrix L except for the eigenvector [1, 1, …, 1], \({\tilde{V}}^{\top }\tilde{V}={I}_{m}\). We have that \({\tilde{V}}^{\top }L\tilde{V}\) is equal to the m dimensional matrix \(\tilde{\Gamma }\), with entries on the main diagonal, − γm≤ − γm−1≤  ≤ − γ1 < 0. By multiplying Eq. (3) on the left by \(({\tilde{V}}^{\top }\otimes I)\) and on the right by \((\tilde{V}\otimes I)\) we obtain \(\tilde{M}={\tilde{M}}_{0}+\epsilon {\tilde{M}}_{1}\), \(\tilde{M},{\tilde{M}}_{0},{\tilde{M}}_{1}\in {{\mathbb{R}}}^{nm\times nm}\), where

$${\tilde{M}}_{0}=({\tilde{V}}^{\top }\otimes \tilde{V}){M}_{0}(V\otimes I)={I}_{m}\otimes F-\sigma \tilde{\Gamma }\otimes H,$$
(4a)
$${\tilde{M}}_{1}=({\tilde{V}}^{\top }\otimes I){M}_{1}(\tilde{V}\otimes I)=\tilde{\Delta }\otimes B,$$
(4b)

and we have used the property that VΔ2V = VDV = 0. The transformed matrix \(\tilde{\Delta }={V}^{\top }{\Delta }_{1}V\in {{\mathbb{R}}}^{m\times m}\) is symmetric and has a zero trace.

Next, we analyze stability of the transverse perturbations about the average solution by studying the sign of the eigenvalues of \(\tilde{M}\) as a function of the magnitude of the mismatches, ϵ. We use matrix perturbation theory to estimate the variation of the eigenvalues of \(\tilde{M}\) as a function of ϵ. This will result in a parametric approach, similar to that of the master stability function8, to analyze the effect of mismatches on the synchronizability of networks of oscillators with mismatches.

We call Λ the matrix that has the eigenvalues of \(\tilde{M}\) on its diagonal, and by using second-order matrix perturbation theory34, we approximate Λ(ϵ) = Λ0 + ϵΛ1 + ϵ2Λ2, where Λ0 is a diagonal matrix with the eigenvalues of \({\tilde{M}}_{0}\) on the main diagonal, and Λ1 and Λ2 are diagonal matrices to be calculated as a function of \({\tilde{M}}_{0}\) and \({\tilde{M}}_{1}\).

Given the block diagonal structure of \({\tilde{M}}_{0}\), its left (W0) and right (V0) eigenvectors are written in the form \({W}_{0}={\oplus }_{i = 1}^{m}{W}_{0}^{i}\) and \({V}_{0}={\oplus }_{i = 1}^{m}{V}_{0}^{i}\) where \({{W}_{0}^{i}}^{* }{V}_{0}^{i}=I\), and the superscript * indicates the conjugate transpose. We define:

$$\begin{array}{c}\Lambda ={\oplus }_{i = 1}^{m}{\Lambda }_{i},\quad {\Lambda }_{i}={{{{{{{\rm{diag}}}}}}}}({\lambda }_{i}^{1},\ldots ,{\lambda }_{i}^{m})\in {{\mathbb{C}}}^{m\times m}\\ {\Lambda }_{{{{\dagger}}} }={\oplus }_{i = 1}^{m}{\Lambda }_{{{{\dagger}}} ,i},\quad {\Lambda }_{{{{\dagger}}} ,i}={{{{{{{\rm{diag}}}}}}}}({\lambda }_{{{{\dagger}}} ,i}^{1},\ldots ,{\lambda }_{{{{\dagger}}} ,i}^{m})\in {{\mathbb{C}}}^{m\times m}\end{array}$$

where Λ refers to any of the Λ0, Λ1, or Λ2 matrices. The left (\({{{{{{{{\boldsymbol{w}}}}}}}}}_{0,i}^{j}\)) and the right (\({{{{{{{{\boldsymbol{v}}}}}}}}}_{0,i}^{j}\)) eigenvectors corresponding to the eigenvalue \({\lambda }_{0,i}^{j}\) are the column j of \({W}_{0}^{i}\) and \({V}_{0}^{i}\), respectively. We obtain,

$${\Lambda }_{1}={{{{{{{\rm{diag}}}}}}}}({W}_{0}^{* }{\tilde{M}}_{1}{V}_{0})={{{{{{{\rm{diag}}}}}}}}\left({W}_{0}^{* }(\tilde{\Delta }\otimes B){V}_{0}\right)$$
(5a)
$${\Lambda }_{2}=-{{{{{{{\rm{diag}}}}}}}}\left(Q(Q\circ \Pi )\right)$$
(5b)

where indicates the Hadamard product, \(Q={W}_{0}^{* }(\tilde{\Delta }\otimes B){V}_{0}\). The matrix Q has block structure Q = [[Qik]] where each block \([{Q}_{ik}]={\tilde{\Delta }}_{ik}[{R}_{ik}]\) and the block \([{R}_{ik}]={{W}_{0}^{i}}^{* }B{V}_{0}^{k}\in {{\mathbb{C}}}^{n\times n}\). The matrix Π has block structure in the blocks \([{\Pi }_{ik}]\in {{\mathbb{C}}}^{n\times n}\), with entries

$${[{\Pi }_{ik}]}_{pq}=\left\{\begin{array}{ll}0\quad \hfill&p=q\;\& \;i=k\\ \frac{1}{{\lambda }_{0,i}^{p}-{\lambda }_{0,k}^{q}}\quad &{{{{{{{\rm{otherwise}}}}}}}}\end{array}\right.$$
(6)

Equation (5b) is rewritten as in Eq. (7).

$${\Lambda }_{2}=\; {{{{{{{\rm{diag}}}}}}}}\\ \left(-\left[\begin{array}{ccc}{\tilde{\Delta }}_{11}[{R}_{11}]&\cdots \,&{\tilde{\Delta }}_{1n}[{R}_{1n}]\\ \vdots &\ddots &\vdots \\ {\tilde{\Delta }}_{n1}[{R}_{n1}]&\cdots \,&{\tilde{\Delta }}_{nn}[{R}_{nn}]\end{array}\right]\left[\begin{array}{ccc}{\tilde{\Delta }}_{11}[{R}_{11}]\circ [{\Pi }_{11}]&\cdots \,&{\tilde{\Delta }}_{1n}[{R}_{1n}]\circ [{\Pi }_{1n}]\\ \vdots &\ddots &\vdots \\ {\tilde{\Delta }}_{n1}[{R}_{n1}]\circ [{\Pi }_{n1}]&\cdots \,&{\tilde{\Delta }}_{nn}[{R}_{nn}]\circ [{\Pi }_{nn}]\end{array}\right]\right)$$
(7)

The real part of the blocks on the main diagonal of Λ2 are

$${\bar{\Lambda }}_{2,i}={{{{{{{\rm{diag}}}}}}}}\left(\mathop{\sum }\limits_{k=1}^{m}{\tilde{\Delta }}_{ik}^{2}[{U}_{ik}]\right),$$
(8)

where the bar notation indicates the real part, and

$$[{U}_{ik}]=-{{{{{{{\rm{real}}}}}}}}\left(\left({{W}_{0}^{i}}^{* }B{V}_{0}^{k}\right)\left(({{W}_{0}^{k}}^{* }B{V}_{0}^{i})\circ [{\Pi }_{ki}]\right)\right).$$
(9)

The entries \({\tilde{\Delta }}_{ik}\) reflect information about the mismatches (and the eigenvectors of the Laplacian); the blocks [Uik] reflect information about the matrices F, H, the eigencouplings ζi = σγi and ζk = σγk, and the matrix B that determines which of the parameters inside the local dynamics is the mismatched parameter.

From Eq. (8), we are interested in the sign of the entries on the main diagonal of the block [Uik], i.e., \({[{U}_{ik}]}_{ss}\). We note that each block [Uik] can be parametrized in the blocks F − σγiH, F − σγkH and B; and with knowledge of F, H, and B, it can be parametrized in the pair (ζi, ζk). This approach can be applied to study variations of all the eigenvalues of the matrix \({\tilde{M}}_{0}\). However, in what follows, we focus on the eigenvalue(s) of \({\tilde{M}}_{0}\) with the largest real part (either a single eigenvalue or a pair of complex conjugate eigenvalues), which we call critical. We first consider a transition A → S and label i = 1 the block to which the critical eigenvalue(s) belongs. We call the real part of the critical eigenvalue(s) c0, i.e., \({c}_{0}={\max }_{j}\,{\bar{\lambda }}_{0,1}^{j}\), and \(s={{{\mbox{argmax}}}}_{j}\,{\bar{\lambda }}_{0,1}^{j}\). Then Eq. (8) needs to be evaluated for i = 1 and for a fixed value of ζ1 = a, where a is the lower MSF bound for the synchronization in the case of the identical oscillators. We approximate,

$$c(\epsilon )={c}_{0}+\epsilon {c}_{1}+{\epsilon }^{2}{c}_{2}.$$
(10)

where c(ϵ) is the real part of the critical eigenvalue of \(\widetilde{M}\) and the expansion coefficients c1 and c2 are characterized by F, H, B, and the eigencouplings σγi. Both c1 and c2 are relevant to describe how c varies with ϵ, however in what follows we focus on the sign of c2, which determines the curvature of c(ϵ). If c2 > 0 (c2 < 0), we expect c(ϵ) to increase (decrease) with ϵ, which results in a decrease (increase) of the synchronizability with parameter heterogeneity. If we find that \({[{U}_{ik}]}_{ss} < 0\) (\({[{U}_{ik}]}_{ss} > 0\)) for all ζk ≥ a, then it follows that c2 < 0 (c2 > 0.) We remark that our main result is that we can characterize the improvement (hindrance) of the synchronizability in terms of a parametric function that maps the \({[{U}_{ik}]}_{ss}\) to the variable ζk = σγk, which we call the Curvature Contribution Function. A general conclusion is that the larger (the smaller) the Curvature Contribution Function, the more one can expect synchronizability to improve (worsen) as parameter heterogeneity increases.

We now consider the case that the functions F and H provide stability of the synchronous solution for σ in a bounded interval \({\sigma }_{\min }\le \sigma \le {\sigma }_{\max }\), resulting in two transitions: an A → S transition for σ ≥ σmin and an S → A transition for σ ≥ σmax. Then, the same approach outlined above can be used to determine the effects of mismatches on \({\sigma }_{\max }\) in correspondence of the S → A transition. In this case, we set i = n and ζn = b, where b is the upper MSF bound for synchronization in the case of identical oscillators. Then \(s={{{\mbox{argmax}}}}_{j}\,{\bar{\lambda }}_{0,n}^{j}\). Equation (10) still holds with \({c}_{1}={\lambda }_{1,n}^{s}\) and \({c}_{2}={\lambda }_{2,n}^{s}\). If for all a ≤ ζk≤ b, \({[{U}_{nk}]}_{ss}\) is positive (negative), then c2 > 0 (c2 < 0), indicating that mismatches enhance (reduce) the synchronizability independent of the topology and of the particular values of the mismatches.

As an example, we choose the individual oscillators to be Chua systems,

$$\begin{array}{rcl}{{{{{{{\boldsymbol{F}}}}}}}}({{{{{{{\boldsymbol{x}}}}}}}})=\left[\begin{array}{c}\beta (y-x-g(x))\\ x-\alpha y+z\\ \kappa y\end{array}\right],&&\left\{\begin{array}{l}\beta =10\quad \\ \kappa =-17.85\quad \\ \alpha =1\quad \end{array}\right.\\ g(x)=bx+\frac{b-a}{2}(| x-1| -| x+1| ),&&\left\{\begin{array}{l}a=-1.44\quad \\ b=-0.72\quad \end{array}\right.\end{array}$$
(11)

where x = [xyz] and we set the coupling function H(x) = x. We study the effect of mismatches in the parameter κ with the nominal value shown in Eq. (11). Hence, the constant matrices F, B and H that define this mismatched problem are:

$$\begin{array}{c}F=\left[\begin{array}{ccc}\beta (-1-b)&\beta &0\\ 1&-\alpha &1\\ 0&\kappa &0\end{array}\right],\\ H=\left[\begin{array}{ccc}1&0&0\\ 0&0&0\\ 0&0&0\end{array}\right],\,B=\left[\begin{array}{ccc}0&0&0\\ 0&0&0\\ 0&1&0\end{array}\right].\end{array}$$
(12)

We study the sign of c2 from Eq. (10). Since in the case of identical oscillators, the MSF predicts that there is only one transition A → S for ζ1 ≥ 6.00, we set i = 1. In Fig. 1 we plot \({[{U}_{1k}]}_{ss}\) as we vary the eigencoupling ζk≥ 6.00, from which we see that for all choices of ζk, \({[{U}_{1k}]}_{ss} < 0\); therefore, c2 < 0 and the synchronizability increases with the magnitude of ϵ independent of the particular choices of the mismatches (δi) and of the network topology (Laplacian L.).

Fig. 1: Curvature Contribution Function for Chua oscillators with parameter heterogeneity.
figure 1

The plot shows the real part of the first, and the second entry on the main diagonal of [U1k] versus ζk. See Eq. (12) for our choice of the matrices F, H, and B. Since \({[{U}_{1k}]}_{ss} < 0\)ζk≥ 6.00, then c2 < 0 in Eq. (10).

The result from Fig. 1 is confirmed in Fig. 2 where we plot the synchronization error (Fig. 2(a)) for a network of N = 3 coupled Chua’s oscillators (Fig. 2(b)) with randomly generated mismatches equal to δ1 = −0.6534, δ2 = 0.7507 and δ3 = − 0.0973. The synchronization error is defined as \(E= \left\langle \sqrt{\frac{1}{N}\mathop{\sum }\nolimits_{i = 1}^{N}{\left({x}_{i}(t)-\bar{x}(t)\right)}^{2}} \right\rangle ,\) where \(\bar{x}=1/N\mathop{\sum }\nolimits_{i = 1}^{N}{x}_{i}\) is the average of the x components of all oscillators, and <  > denotes the average over the time period t. Whenever nodes are approximately synchronized, E attains a small value close to zero (the dark blue region.) The solid black curve delimits the region of stability predicted from the eigenvalues of \(\tilde{M}\) from Eq. (4). The dashed red curve is the approximation of the solid black curve obtained from second-order matrix perturbation theory. We note that the solid black contour from Fig. 2 well predicts the transition to synchronization. Moreover, the solid black curve and its approximation given by the dashed red curve (the latter for small ϵ) correctly replicate the curvature of the critical σ versus the magnitude of the mismatches.

Fig. 2: Heterogeneity favors synchronization in networks of Chua oscillators.
figure 2

a This shows the synchronization error E in the (σ, ϵ)-plane for coupled Chua oscillators with mismatches in the parameter κ, see Eq. (11). The parameter σ measures the coupling strength and the parameter ϵ measures the parameter heterogeneity. The solid black curve encloses the region of stability predicted from the eigenvalues of \(\tilde{M}\) from Eq. (4). The dashed red curve is the approximation of the solid black curve derived from matrix perturbation theory. b This shows the topology of the network, with mismatches randomly set equal to δ = [−0.6534, 0.7507, −0.0973].

Parametric mismatches in the frequencies of the individual oscillators

In this section, we consider a problem studied in ref. 28 in which mismatches affect the frequencies of the individual oscillators and show how our general theory presented above in the “Parametric Mismatches in the Local Dynamics” subsection in the Results Section can be specialized to this particular problem. We consider an equation for the time evolution of N coupled dynamical systems, with frequency mismatches,

$${\dot{{{{{{{{\boldsymbol{x}}}}}}}}}}_{i}=(1+\epsilon {\delta }_{i})\left[{{{{{{{\boldsymbol{F}}}}}}}}({{{{{{{{\boldsymbol{x}}}}}}}}}_{i})-\sigma \mathop{\sum}\limits_{j}{L}_{ij}{{{{{{{\boldsymbol{H}}}}}}}}({{{{{{{{\boldsymbol{x}}}}}}}}}_{j})\right],$$
(13)

i = 1, …, N, \({{{{{{{{\boldsymbol{x}}}}}}}}}_{i}\in {{\mathbb{R}}}^{m}\) is the dynamical state of the node i, \({{{{{{{\boldsymbol{F}}}}}}}}:{{\mathbb{R}}}^{m}\mapsto {{\mathbb{R}}}^{m}\) and \({{{{{{{\boldsymbol{H}}}}}}}}:{{\mathbb{R}}}^{m}\mapsto {{\mathbb{R}}}^{m}\) are the local dynamics of each node and the coupling functions between the nodes, and σ is a positive scalar measuring the strength of the coupling. Similar to the previous section, the symmetric Laplacian matrix L = [Lij] encodes the network connectivity. The term 1 + ϵδi is the particular frequency of node i, with 1 being the nominal frequency and ϵδi representing the possibly large frequency mismatch. As before, ϵ represents the tunable magnitude of the mismatches, and ∑iδi = 0, and \({\sum }_{i}{\delta }_{i}^{2}=1\). In Supplementary Note 3, we take arbitrary δi’s and show how the equations can be rewritten in the form of Eq. (13).

The average solution \(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t)\) and the perturbations about the average solution wi(t) are defined as \(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t)=1/N{\sum }_{i}{{{{{{{{\boldsymbol{x}}}}}}}}}_{i}(t)\) and \({{{{{{{{\boldsymbol{w}}}}}}}}}_{i}(t)={{{{{{{{\boldsymbol{x}}}}}}}}}_{i}(t)-\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t)\), i = 1, …, N. Next, we rewrite Eq. (13) in \(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}(t)\) and wi(t) by expanding to the first order about the average solution,

$$\dot{\bar{{{{{{{{\boldsymbol{x}}}}}}}}}}={{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})+\frac{\epsilon }{N}\mathop{\sum}\limits_{j}\left[{\delta }_{j}D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}-\sigma {d}_{j}D{{{{{{{\boldsymbol{H}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}\right]$$
(14a)
$${\dot{{{{{{{{\boldsymbol{w}}}}}}}}}}_{i}=\; (1+\epsilon {\delta }_{i})D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}){{{{{{{{\boldsymbol{w}}}}}}}}}_{i}-\frac{1}{N}\mathop{\sum}\limits_{j}\epsilon {\delta }_{j}D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}\\ -\sigma \mathop{\sum}\limits_{j}\left({L}_{ij}+\epsilon {\delta }_{i}{L}_{ij}+\frac{1}{N}\epsilon {d}_{j}\right)D{{{{{{{\boldsymbol{H}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}}){{{{{{{{\boldsymbol{w}}}}}}}}}_{j}+\epsilon {\delta }_{i}{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})$$
(14b)

where \(D{{{{{{{\boldsymbol{F}}}}}}}},D{{{{{{{\boldsymbol{H}}}}}}}}\in {{\mathbb{R}}}^{m\times m}\) are the time-varying Jacobian matrices of F and H, and dj = ∑iδiLij. Local stability about the average solution is described the first order expansion (14) under the assumption that the deviations wi are small. By defining \({{{{{{{\boldsymbol{W}}}}}}}}={[{{{{{{{{\boldsymbol{w}}}}}}}}}_{1}^{\top },\ldots ,{{{{{{{{\boldsymbol{w}}}}}}}}}_{N}^{\top }]}^{\top }\in {{\mathbb{R}}}^{Nm}\), we rewrite Eq. (14),

$$\dot{\bar{{{{{{{{\boldsymbol{x}}}}}}}}}}={{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})+\frac{1}{N}\left[\epsilon {{{{{{{{\boldsymbol{\delta }}}}}}}}}^{\top }\otimes D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})-\sigma \epsilon {{{{{{{{\boldsymbol{d}}}}}}}}}^{\top }\otimes D{{{{{{{\boldsymbol{H}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})\right]{{{{{{{\boldsymbol{W}}}}}}}}$$
(15a)
$$\dot{{{{{{{{\boldsymbol{W}}}}}}}}}= \left[({I}_{N}+\epsilon {\Delta }_{1}+\epsilon {\Delta }_{2})\otimes D{{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})\right]{{{{{{{\boldsymbol{W}}}}}}}}\\ -\sigma \left[(L+\epsilon {\Delta }_{1}L+\epsilon D)\otimes D{{{{{{{\boldsymbol{H}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})\right]{{{{{{{\boldsymbol{W}}}}}}}}+\epsilon \left({{{{{{{\boldsymbol{\delta }}}}}}}}\otimes {{{{{{{\boldsymbol{F}}}}}}}}(\bar{{{{{{{{\boldsymbol{x}}}}}}}}})\right)$$
(15b)

where \({{{{{{{\boldsymbol{\delta }}}}}}}}={[{\delta }_{1},\ldots ,{\delta }_{N}]}^{\top }\) and \({{{{{{{\boldsymbol{d}}}}}}}}={[{d}_{1},\ldots ,{d}_{N}]}^{\top }\), and the matrices Δ1 = diag(δ1, …, δN),

$${\Delta }_{2}=\frac{-1}{N}\left[\begin{array}{cccc}{\delta }_{1}&{\delta }_{2}&\cdots \,&{\delta }_{N}\\ {\delta }_{1}&{\delta }_{2}&\cdots \,&{\delta }_{N}\\ \vdots &\vdots &\ddots &\vdots \\ {\delta }_{1}&{\delta }_{2}&\cdots \,&{\delta }_{N}\end{array}\right],D=\frac{-1}{N}\left[\begin{array}{cccc}{d}_{1}&{d}_{2}&\cdots \,&{d}_{N}\\ {d}_{1}&{d}_{2}&\cdots \,&{d}_{N}\\ \vdots &\vdots &\ddots &\vdots \\ {d}_{1}&{d}_{2}&\cdots \,&{d}_{N}\end{array}\right].$$
(16)

As already noted before, Eq. (15b) is non-homogeneous, with the homogeneous part determining stability about the average solution and the non-homogeneous part determining the deviations of the individual trajectories from this solution, see also23,24,25,26,27. We proceed similarly to what already done in the “Parametric Mismatches in the Local Dynamics” subsection in the Results and write the homogeneous part of Eq. (15b) in the form \(\dot{{{{{{{{\boldsymbol{W}}}}}}}}}=M{{{{{{{\boldsymbol{W}}}}}}}}\), where M = M0 + ϵM1 and

$${M}_{0}={I}_{N}\otimes F-\sigma L\otimes H$$
(17a)
$${M}_{1}=({\Delta }_{1}+{\Delta }_{2})\otimes F-\sigma ({\Delta }_{1}L+D)\otimes H$$
(17b)

We multiply Eq. (17) on the left by \(({\tilde{V}}^{\top }\otimes I)\) and on the right by \((\tilde{V}\otimes I)\) and obtain \(\tilde{M}={\tilde{M}}_{0}+\epsilon {\tilde{M}}_{1}\), where

$${\tilde{M}}_{0}=({\tilde{V}}^{\top }\otimes \tilde{V}){M}_{0}(\tilde{V}\otimes I)={I}_{n}\otimes F-\sigma \tilde{\Gamma }\otimes H,$$
(18a)
$${\tilde{M}}_{1}= \, ({\tilde{V}}^{\top }\otimes I){M}_{1}(\tilde{V}\otimes I)\\ = \, \tilde{\Delta }\otimes F-\sigma \tilde{\Delta }\tilde{\Gamma }\otimes H=(\tilde{\Delta }\otimes I){\tilde{M}}_{0},$$
(18b)

and we have used the property that VΔ2V = VDV = 0, with \(\tilde{M},{\tilde{M}}_{0},{\tilde{M}}_{1}\in {{\mathbb{R}}}^{nm\times nm}\). The rest of the analysis is done similarly to the “Parametric Mismatches in the Local Dynamics” subsection in the Results. Next, we provide our final result analogous to Eq. (9) for the case of mismatches in the frequencies. Similar to Eq. (8), the real part of the blocks on the main diagonal of Λ2 are obtained,

$${\bar{\Lambda }}_{2,i}={{{{{{{\rm{diag}}}}}}}}\left(\mathop{\sum }\limits_{k=1}^{n}{\tilde{\Delta }}_{ik}^{2}[{U}_{ik}]\right),$$
(19)

where each block

$$[{U}_{ik}]=-{{{{{{{\rm{real}}}}}}}}\left(\left({{W}_{0}^{i}}^{* }{V}_{0}^{k}{\Lambda }_{0}^{k}\right)\left(({{W}_{0}^{k}}^{* }{V}_{0}^{i}{\Lambda }_{0}^{i})\circ [{\Pi }_{ki}]\right)\right).$$
(20)

Here, \({W}_{0}^{i}\), \({V}_{0}^{i}\) and \({\Lambda }_{0}^{i}\) denote the left and right eigenvector matrices and a diagonal matrix with the eigenvalues of the ith block of \({\tilde{M}}_{0}\), respectively. The block [Πki] is defined the same as in Eq. (6). The entries \({\tilde{\Delta }}_{ik}\) reflect information about the mismatches (and the eigenvectors of the Laplacian), while the blocks [Uik] reflect information about the functions F, H, and the eigencouplings ζi = σγi and ζk = σγk.

From Eq. (19), we are interested in the sign of the entries on the main diagonal of the block [Uik], i.e., \({[{U}_{ik}]}_{ss}\). We note that each block [Uik] can be parametrized in the blocks F − σγiH and F − σγkH; and with knowledge of F and H, it can be parametrized in the pair (ζi, ζk). Next, we focus on the eigenvalue(s) of \({\tilde{M}}_{0}\) with the largest real part (either a single eigenvalue or a pair of complex conjugate eigenvalues), which we call critical. We label i = 1 the block to which the critical eigenvalue(s) belongs and expand the real part of the critical eigenvalue(s) to second order in ϵ, see Eq. (10). For not too large ϵ, c (ϵ) determines the crossing value of \({\sigma }_{\min }\) from asynchrony to synchrony. In particular, we focus on characterizing the curvature coefficient c2.

With the choice of F and H and having set ζ1 = a, we sweep over ζk and evaluate \({[{U}_{1k}]}_{ss}\). If for all ζka, \({[{U}_{1k}]}_{ss}\) is positive (negative) then c2 > 0 (c2 < 0), so the presence of mismatches reduces (increases) the synchronizability for any topology and any value of the mismatches.

Next, we consider two examples, one for which the range of stability increases with ϵ and one for which it decreases. The first example is that of Chua systems coupled in the “x“ variable, considered in28,

$$\begin{array}{c}{{{{{{{\boldsymbol{F}}}}}}}}({{{{{{{\boldsymbol{x}}}}}}}})=\left[\begin{array}{c}\eta (y-x-g(x))\\ x-y+z\\ -y/k\end{array}\right],\left\{\begin{array}{l}\eta =10\hfill \\ k=0.056\quad \end{array}\right.\\ g(x)=bx+\frac{1}{2}(b-a)(| x-1| -| x+1| ),\left\{\begin{array}{l}a=-1.44\quad \\ b=-0.72.\quad \end{array}\right.\end{array}$$
(21)

The matrices in Eq. (17) are,

$$F=\left[\begin{array}{ccc}\eta (-1-b)&\eta &0\\ 1&-1&1\\ 0&-1/k&0\end{array}\right],\quad H=\left[\begin{array}{ccc}1&0&0\\ 0&0&0\\ 0&0&0\end{array}\right]$$
(22)

with the same parameters as in Eq. (21). With no parameter mismatches, the MSF8,35 predicts the stability of the synchronous solution for ζ1 = σγ1 ≥ a = 6. We thus fix ζ1 = a = 6 and study the contribution of ζk≥ ζ1 on [U1k]. Figure 3 shows \({[{U}_{1k}]}_{ss}\) as a function of ζk≥ ζ1 = 6. For any real positive ζk, F − ζkH has one real and two complex and conjugate eigenvalues. We order these eigenvalues such that the first and the second eigenvalues are complex and conjugate and the third one is real. The complex eigenvalues are critical as these have real part larger than the real eigenvalue, so s = 1, 2. We characterize the second order coefficient of the expansion c2 relative to these critical eigenvalues. Figure 3 shows that for all ζk≥ ζ1 = 6, \({[{U}_{1k}]}_{ss}\) is negative. Thus, based on Eq. (19) we conclude that c2 < 0. From Fig. 3 we see that c2 < 0 holds for any network topology, and so the enhancement of synchronization with the mismatches is a network-independent effect. Based on the results from Fig. 3, we expect to see that increasing mismatches will improve the synchronizability for the case of Chua oscillators presented above. This is confirmed in Fig. 4a where we plot the synchronization error E as the coupling strength σ and the magnitude of the mismatches ϵ are varied for coupled Chua circuits with the undirected network shown in Fig. 4b. Whenever nodes are approximately synchronized, E attains a small value close to zero (the blue region.) The black contour delimits the region of stability predicted from the eigenvalues of \(\tilde{M}\). We see that the linear approximation well describes the emergence of synchronization in the nonlinear system, Eq. (13), even for relatively large mismatches, ϵ 0.2. The linear approximation correctly predicts that the stability range increases for increasing ϵ, as previously reported in ref. 28. The white curve in Fig. 4a is obtained by plotting c(ϵ) from Eq. (10), which provides a good approximation of the black curve, even for relatively large values of ϵ.

Fig. 3: Curvature Contribution Function for Chua oscillators with heterogeneous frequencies.
figure 3

We plot the Curvature Contribution Function, \({[{U}_{1k}]}_{ss}\), vs ζk, s = 1, 2. In particular, the plot shows the real part of the first, and the second entry on the main diagonal of [U1k], respectively. See Eq. (22) for the matrices F and H. For the case of coupled identical oscillators, synchronization is achieved for ζk≥ 6.00.

Fig. 4: Analytical approximation of the region of stable synchronization for Chua oscillators with heterogeneous frequencies.
figure 4

a Synchronization error E for a network of coupled Chua circuits, Eqs. (13) and (21), as a function of the coupling strength σ and the magnitude of the mismatches ϵ. The black contour encloses the region of stability predicted from the eigenvalues of \(\tilde{M}\) from Eq. (18). The white contour is an approximation of the black contour based on matrix perturbation theory, Eq. (10). b Topology of the network, with mismatches randomly set equal to δ = [−0.067, −0.518, −0.358, 0.712, 0.294, −0.062].

The second example is that of Bernoulli maps with  heterogeneous frequencies, described by discrete-time dynamics,

$${x}_{i}^{k+1}=\left[(1+\epsilon {\delta }_{i})\Big[f({x}_{i}^{k})-\sigma \mathop{\sum}\limits_{j}{L}_{ij}h({x}_{j}^{k})\Big]\right] \ {{\mbox{mod}}} \ 1,$$
(23)

i = 1, …, N, where f(xk) = 2xk, and h(xk) = xk. Figure 5a is a plot of the synchronization error versus ϵ and σ for a system of coupled maps with the undirected network in Fig. 5b. From Fig. 5a, we see that as ϵ grows the range of σ that supports synchronization (blue area) shrinks. For this case, F = 2 and H = 1. In Supplementary Note 4, we apply the same analysis presented before to approximate the eigenvalues of the matrix \(\tilde{M}\) and obtain a more subtle result that most of the time c2 > 0, but not always. The region inside the black contour is where all the absolute values of the matrix \(\tilde{M}\) are between −1 and 1, which corresponds to the stability of the synchronous solution. The white contour is the approximation of the black curve based on the matrix perturbation theory. We see that the lower (upper) bound for σ increases (decreases) with ϵ, causing an overall reduction of the synchronizability with mismatches, which we find to be independent of the particular choice of the network topology (panel b).

Fig. 5: Heterogeneity hinders synchronization in networks of Bernoulli maps.
figure 5

a Synchronization error for a network of coupled Bernoulli maps, Eq. (23), as a function of the coupling strength σ and the magnitude of the mismatches ϵ. The region inside the black contours (eigenvalues) is where all the absolute values of the eigenvalues of \(\tilde{M}\), Eq. (18), are between −1 and 1. The white contour is an approximation of the black contour based on matrix perturbation theory. b Topology of the network. Here, the mismatches δ = [0.1568, −0.0869, −0.6469, −0.4689, 0.0152, 0.1642, 0.3971, 0.1033, 0.3661] were chosen randomly.

We note that our analysis presented here for Chua oscillators and Bernoulli maps can be similarly applied to different classes of oscillators and couplings. The case of Rössler systems coupled in the x or y variables29 is studied in Supplementary Note 5. The cases where DF = DH, including opto-electronic maps  is presented in the next section.

Discrete time opto-electronic systems

We now consider a case for which the dynamics is in the general form of Eq. (13) and the functions F and H are taken in the particular form of discrete time opto-electronic systems36,37,38,

$${x}_{i}^{k+1}=\left[(1+\epsilon {\delta }_{i})\left(\beta F({x}_{i}^{k})-\sigma \mathop{\sum}\limits_{j}{L}_{ij}F({x}_{j}^{k})+\alpha \right)\right]\,{{{{{{{\rm{mod}}}}}}}}\,2\pi ,$$
(24)

where \(F(x)=(1-\cos (x))/2\), β is the self-feedback strength, and the offset α is introduced to suppress the trivial solution xi = 0. The case of opto-electronic systems is of particular interest because our approach can be applied without introducing the assumption that the Jacobians are weakly dependent on the synchronous solution.

We assume possibly large mismatches and small perturbations about the average solution, \(\bar{x}\). Then, by following steps similar to the previous sections, we obtain the following equation that describes the time evolution of small transverse perturbations about the average solution,

$${\tilde{{{{{{{{\boldsymbol{Y}}}}}}}}}}^{k+1}=DF({\bar{x}}^{k})\left[({I}_{N-1}+\tilde{\Delta })(\beta {I}_{N-1}-\sigma \tilde{\Gamma })\right]{\tilde{{{{{{{{\boldsymbol{Y}}}}}}}}}}^{k}.$$
(25)

where \({\tilde{{{{{{{{\boldsymbol{Y}}}}}}}}}}^{k}\in {{\mathbb{R}}}^{N-1}\), and the matrices \(\tilde{\Gamma }\) and \(\tilde{\Delta }\) are exactly the same as they were defined in the previous sections. We define \(\tilde{M}=({I}_{N-1}+\tilde{\Delta })(\beta {I}_{N-1}-\sigma \tilde{\Gamma })\). By diagonalizing \(\tilde{M}\), Eq. (25) can be rewritten,

$${{{{{{{{\boldsymbol{Z}}}}}}}}}^{k+1}=\Phi DF({\bar{x}}^{k}){{{{{{{{\boldsymbol{Z}}}}}}}}}^{k}$$
(26)

where Φ is a diagonal matrix that has the eigenvalues of \(\tilde{M}\) on its main diagonal. Equation (26) can be decoupled into N independent equations,

$${z}_{i}^{k+1}={\phi }_{i}DF({\bar{x}}^{k}){z}_{i}^{k},\quad i=1,\ldots ,N.$$
(27)

By defining the free parameter s, we can then study the stability of the parametric equation

$${z}^{k+1}=sDF({\bar{x}}^{k}){z}^{k},$$
(28)

as a function of the variable s = ϕi. For practical purposes, following24,25,39, the average solution \({\bar{x}}^{k}\) can be approximated by the dynamics of a single uncoupled map. We have calculated the Maximum Lyapunov Exponent (MLE) Ψ(s) of Eq. (28) as a function of the real variable s for the optoelectric map37, from which we have found that for β = 2π and α = 0.525, Ψ(s) < 0 is negative in the range [s = −3.47, s+ = 3.47].

In Fig. 6 we plot the MLE Ψ(s) of Eq. (28) as a function of the real variable s for the optoelectric map37. We see that Ψ(s) < 0 is negative in the range [s, s+], and stability is achieved for ϕ > s and ϕ+ < s+, where \({\phi }^{-}={\min }_{i}{\phi }_{i}\) and \({\phi }^{+}={\max }_{i}{\phi }_{i}\). Mismatches affect both ϕ and ϕ+, and we say that they enhance synchronization when they either increase ϕ or decrease ϕ+.

Fig. 6: Discrete time opto-electronic systems. Maximum Lyapunov Exponent for stable synchronization.
figure 6

The Maximum Lyapunov Exponent associated with Eq. (28) as the parameter s is varied. \({\lim }_{s\to 0}\Psi (s)=-\infty\). The zero-crossing points are s+ = 3.47, and s = − 3.47. Here, the self-feedback strength β = 2π and the offset α = 0.525.

Next, we investigate how mismatches affect the eigenvalues of \(\tilde{M}\). Once again, we use matrix perturbation theory to study variations of the eigenvalues of \(\tilde{M}\) as the magnitude of the mismatches ϵ is varied. We write \(\tilde{M}={\tilde{M}}_{0}+\epsilon {\tilde{M}}_{1}\), where

$${\tilde{M}}_{0}={I}_{N}-\sigma \Gamma ,\quad {\tilde{M}}_{1}=\tilde{\Delta }{\tilde{M}}_{0},$$
(29)

and Γ is the diagonal matrix with diagonal entries equal to the eigenvalues of the Laplacian L. The matrix \(\tilde{\Delta }={V}^{-1}\Delta V\) where V is a matrix whose columns are the eigenvectors of L. We have that the eigenvalues Λϵ of the matrix \(\tilde{M}\) can be approximated to second order, Λϵ = Λ0 + ϵΛ1 + ϵ2Λ2, where the matrix Λ0 is a diagonal matrix that has the eigenvalues of A0 on its main diagonal (since \({\tilde{M}}_{0}\) is also diagonal, \({\Lambda }_{0}={\tilde{M}}_{0}\) and the matrices for the right and the left eigenvectors of \({\tilde{M}}_{0}\) are the identity) and,

$${\Lambda }_{1}={{{{{{{\rm{diag}}}}}}}}({\tilde{M}}_{1})={{{{{{{\rm{diag}}}}}}}}\left(\tilde{\Delta }{\Lambda }_{0}\right)$$
(30a)
$${\Lambda }_{2}=-{{{{{{{\rm{diag}}}}}}}}\left(Q(Q\circ \Pi )\right).$$
(30b)

Here, \(Q=[{Q}_{ij}]=[{\tilde{\Delta }}_{ij}{\Lambda }_{0,j}]\) and

$${\Pi }_{ij}=\left\{\begin{array}{ll}0\quad &i=j\\ \frac{1}{{\Lambda }_{0,i}-{\Lambda }_{0,j}}\quad &{{{{{{{\rm{otherwise}}}}}}}}.\end{array}\right.$$
(31)

Each Λ2,i is equal to,

$${\Lambda }_{2,i}=\mathop{\sum }\limits_{j=1}^{N}-{\tilde{\Delta }}_{ij}{\Lambda }_{0,j}({\tilde{\Delta }}_{ji}{\Lambda }_{0,i}\circ {\Pi }_{ji})=-\mathop{\sum }\limits_{j=1}^{N}{\tilde{\Delta }}_{ij}^{2}{\tilde{\Pi }}_{ji}.$$
(32)

where

$$\tilde{\Pi }={\tilde{M}}_{0}\Pi {\tilde{M}}_{0}=\left\{\begin{array}{ll}\frac{(1-\sigma {\gamma }_{i})(1-\sigma {\gamma }_{j})}{\sigma {\gamma }_{j}-\sigma {\gamma }_{i}}\quad &i\ne j\\ 0\quad &i=j\end{array}\right..$$
(33)

We see that the sign of Λ2,i from Eq. (32) is fully defined for a given pair of eigencouplings ζi = σγi and ζj = σγj. As discussed earlier, the network of coupled optoelectric maps with mismatches can synchronize if the eigenvalues of \(\tilde{M}\) are in the range [−3.47, 3.47]. Hence, the condition for synchronization is that,

$$-3.47\le {\Lambda }_{0,i}+\epsilon {\Lambda }_{1,i}+{\epsilon }^{2}{\Lambda }_{2,i}\le 3.47$$
(34)

which is equivalent to

$$-3.47\le (1-{\zeta }_{i})+\epsilon {\tilde{\Delta }}_{ii}(1-{\zeta }_{i})+{\epsilon }^{2}\mathop{\sum }\limits_{j=1}^{N}-{\tilde{\Delta }}_{ij}^{2}{\tilde{\Pi }}_{ji}\le 3.47$$
(35)

Figure 7 presents an example of application of our method. Panel (a) shows the synchronization error as a function of both σ and ϵ for the N = 5 network of coupled optoelectric maps shown in (b). For ϵ = 0 we see that as σ increases, there are two transitions: one around σ = 0.94, for which the identical systems switch from asynchrony to synchrony, and another one around σ = 1.94 where the transition is from synchrony to asynchrony. Panels (c–f) of Fig. 7 show the application of our theory to predict whether or not mismatches enhance the network synchronizability. In this case, we see that both σ and σ+ decrease with ϵ. In particular, panel (c) shows how Λ+, the largest eigenvalue of \(\tilde{M}\), varies with ϵ for σ = 0.936, which is slightly less than σ = 0.94. We see that for either large enough ϵ or small enough ϵ, Λ+ decreases below 3.47, which causes synchronization. Instead, panel (f) shows how Λ, the smallest eigenvalue of \(\tilde{M}\), varies with ϵ for σ = 1.95, which is slightly more than σ+ = 1.945. In this case, we see that as ϵ increases, Λ decreases further away from −3.47, which is the threshold for synchronization. Hence, we conclude that the presence of mismatches in the frequencies of the coupled opto-electronic maps enhances  synchronization in the transition from asynchrony to synchrony (critical lower bound of σ) and hinders synchronization in the transition from synchrony to asynchrony (critical upper bound of σ.).

Fig. 7: The case of coupled “opto-electronic maps”.
figure 7

a Synchronization error for a network of N = 5 coupled optoelectric maps as a function of the magnitude of the mismatches ϵ and of the coupling strength σ. Here, the mismatches δ = [−0.5323, −0.5265, 0.1526, 0.5058, 0.4003] were randomly chosen. When the maps are identical (ϵ = 0), synchronization is achieved for σ = 0.94 ≤ σ ≤ 1.945 = σ+. We see that for σ slightly lower than σ (σ slightly greater than σ+), the network of mismatched oscillators synchronizes (does not synchronize). b Topology of the network. c This shows Λ+, the maximum eigenvalue of \(\tilde{M}\) as a function of ϵ for σ = 0.936. When ϵ = 0, the network is not synchronized since Λ+ is greater than the critical bound s+ = 3.47 shown as a black line. As ϵ is either increased or decreased, Λ+ eventually shifts below s+ = 3.47 and the network synchronizes. d It shows Λ, the minimum eigenvalue of \(\tilde{M}\) remaining inside the critical bounds as ϵ varies for σ = 0.936. e It shows Λ+ remaining inside the critical bounds as ϵ varies for σ = 1.95. f It shows Λ as a function of ϵ for σ = 1.95. When ϵ = 0, Λ is slightly less than the critical bound s. As ϵ is varied, Λ shifts farther away from s; hence synchronization is not achieved.

Conclusions

This paper studies the emergence of synchronization in networks of coupled oscillators with possibly large parameter mismatches. We propose a parametric approach to analyze how the magnitude  of the mismatches affects the synchronizability, i.e., the range of the coupling strength σ for which the synchronous solution is stable. We identify a critical eigenvalue c that is responsible for stability of the synchronous solution and expand c to second order in the scalar ϵ which measures the magnitude  of the mismatches; we focus on the second order coefficient of the expansion, i.e., the curvature coefficient c2: if this coefficient is positive (negative), we expect the synchronizability to decrease (increase) with the size of the mismatches. We derive an expression for how each pair of eigencouplings (ζi, ζj) (the eigenvalues of the Laplacian matrix) contributes to the curvature coefficient c2.

Similar to the parametric approach of the master stability function8, it becomes possible, given knowledge of the functions F and H, to pre-compute the effects of any pair of eigencouplings (ζi, ζj), seen as parameters, which is described by the Curvature Contribution Function. With this knowledge, one can then find for any network realization (any set of eigenvalues) the total curvature attained. For example, given knowledge of F and H, our numerical approach consists of numerically computing the Curvature Contribution Function  shown in Fig. 1 and then from this, computing the overall effect on the curvature through Eq. (8). In cases in which the Curvature Contribution Function is always positive (always negative), we can conclude that the curvature is positive (negative) independent of the network topology. Our main result  is exactly that we provide an explanation for when parameter heterogeneity either increases or decreases the synchronizability.

Is the enhancement of synchronizability with parameter mismatches a general phenomenon as reported in ref. 28? We conclude that the answer is no, as our theory indicates that this is dependent on a number of factors and we find several examples of systems that become less synchronizable as we increase ϵ. Our work applies to both continuous-time and discrete-time networks. The examples involving Chua oscillators showed that the presence of parametric mismatches improves synchronizability while the example of Bernoulli maps showed the opposite. In the case of opto-electronic maps, it was shown that parameter heterogeneity had different effects on the synchronizability about different transitions: in the transition from asynchrony to synchrony (synchrony to asynchrony), the synchronizability was improved (hindered) by parameter heteorogeneity.

Our work differs substantially from refs. 23,24,25 since these papers are in the framework of small parameter mismatches ↔ small state deviations. It also differs from ref. 28 as we provide conditions, based on matrix perturbation theory, that allow us to explain why parameter mismatches sometimes favor synchronization and sometimes hinder it. We depart from the “mode mixing” hypothesis28 and the implication that this should always result in an improvement in synchronizability. Such mode mixing (due to the presence of two non-commuting matrices40,41,42) had already been observed in refs. 26,27 but no conclusions were drawn on its usefulness towards synchronization. Furthermore, our approach allows us to investigate the general case in which synchronization is possible in a bounded range of a given parameter and to consider the effects of parameter heterogeneity on both the lower and upper end of the range, which was not considered before.