1 Introduction

Modern cosmological observations indicate that the Universe appears to be in a period of accelerated expansion, first noted in Ref. [1, 2] and confirmed by latest observations [3,4,5]. A plethora of theoretical models have been proposed, in which the present acceleration has been modeled by the so-called dark energy component with a characteristic negative pressure that induces late time acceleration in Friedman–Lemaître–Robertson–Walker models [6]. In addition, it was shown that the cosmological interaction between dark matter and dark energy could address the late time acceleration of the universe and alleviate the coincidence problem presented in the standard cosmological scenario [7,8,9]. In the literature there are several studies on cosmological interacting models [10,11,12,13,14,15,16,17,18,19,20]; for a general review summarizing this work, see [21]. An interesting aspect of some interacting scenarios consists of alleviating the recently observed tension between high- and low-redshift measurements, namely, the Hubble parameter tension [22,23,24], as well as the \(\sigma _8\)-tension in the large scale structure formation data [25, 26].

On the other hand, the authors of Ref. [27] use observational data to analyze a generic type of cosmological interaction and find that its sign changes during the evolution of the universe. Later, motivated by Ref. [27], the authors of Ref. [28] find a sign change in the cosmological interaction which is described by a running coupling in the cosmic interaction between dark energy and dark matter. Reference [29] proposes a model consistent with thermodynamics and observational constraints, where interaction is proportional to the difference between the energy densities of dark components. In the context of this model, there is a natural change in the interaction sign which coincides with the time when dark energy starts to dominate over dark matter during the evolution. This change in sign is explored further in Refs. [30] and [31]. In the former, the authors explore an holographic dark energy scenario, and interactions with sign change are found to be compatible with the generalized second law of thermodynamics; in the latter, the authors analyze a parameterization of the cosmological interaction that changes sign as the scale factor evolves.

In Ref. [32] a dynamical system analysis was performed for a type of cosmological interaction proportional to the deceleration parameter with the dark energy component modeled by a scalar field, a sign change was naturally induced in the interaction term when the sign of the deceleration parameter changes in the transition from a decelerated universe to an accelerated one. Finally the authors find that some scaling attractors could alleviate the cosmological coincidence problem. Other examples of cosmological interaction proportional to the deceleration parameter are found in the literature [33,34,35,36,37,38,39,40].

In the present paper we consider an interacting two-fluid model in which the two dark components are described as perfect fluids with constant barotropic indices and coupled with a nonlinear sign-changeable interaction, depending quadratically on the deceleration parameter. The outline of the paper is as follows. In Sect. 2, we propose an interacting two-fluid model and assume a phenomenological cosmological nonlinear sign-changeable interaction between their components. In Sect. 3 we solve exactly the source equation following the procedure outlined in Ref. [41] for linear and nonlinear interactions and obtain the total energy densities of the dark sector and their dark components as well as the effective equation of state. In Sect. 4 we obtain the late time behavior of models of cosmological interest by using observational data from type Ia supernovae along with measurements of the Hubble expansion rate. Finally, the concluding remarks of this work are presented in Sect. 5 for a large set of factorizable nonlinear sign-changeable interactions.

2 Interacting dark sector with sign-changeable interaction

Cosmological interaction was mainly introduced to address the late accelerated expansion of the universe, as well as the cosmic coincidence problem of the standard cosmological scenario (\(\varLambda \)CDM) [7,8,9]. In this section we investigate interacting scenarios in which the dark components are coupled through sign-changeable interactions Q, which are proportional to a quadratic polynomial on the deceleration parameter q. This combination includes most of the sign-changeable interactions investigated in the literature [32,33,34,35,36,37,38,39].

We consider an interacting dark sector for a spatially flat FLRW universe with the line element

$$\begin{aligned} \mathrm{d}s^2=\mathrm{d}t^2-a^2(t)(\mathrm{d}X^2+\mathrm{d}Y^2+\mathrm{d}Z^2), \end{aligned}$$
(1)

where t is the cosmic time, a(t) is the scale factor, \(H=\dot{a}/a\) is the Hubble expansion rate and a dot denotes a derivative with respect to the cosmic time. Dark matter and dark energy have energy densities \(\rho _m\) and \(\rho _x\), respectively, so that

$$\begin{aligned} \rho= & {} \rho _m+\rho _x, \end{aligned}$$
(2)
$$\begin{aligned} \rho '= & {} -\gamma _m\rho _m-\gamma _x\rho _x, \end{aligned}$$
(3)

where \(\rho \) is the total energy density and (3) is the conservation equation, the comma indicates derivative with respect to the (time) variable \(\eta =\ln {(a^3/a_0^3)}\) and \(a_0\) is some value of reference for the scale factor. For the two components we assume equations of state \(p_m=(\gamma _m-1)\rho _m\) and \(p_x=(\gamma _x-1)\rho _x\), where both barotropic indices \(\gamma _m\) and \(\gamma _x\) will be considered constants and satisfying the inequality \(\gamma _x<\gamma _m\) throughout this paper. Solving the algebraic system of Eqs. (2) and (3) for \(\rho _m\) and \(\rho _x\) in terms of \(\rho \) and \(\rho '\), we have

$$\begin{aligned} \rho _m=-\frac{\gamma _x\rho +\rho '}{\varDelta },\quad \quad \rho _x=\frac{\gamma _m\rho +\rho '}{\varDelta }, \end{aligned}$$
(4)

where \(\varDelta =\gamma _m-\gamma _x\) is the determinant of the algebraic system of Eqs. (2) and (3). By using the Friedmann equation we can write the deceleration parameter as a function of the energy density and its \(\eta \)-derivative,

$$\begin{aligned} q=-\left( 1+\frac{3}{2}\frac{\rho '}{ \rho }\right) . \end{aligned}$$
(5)

We begin by introducing a factorizable sign-changeable interaction depending quadratically on the deceleration parameter in the form \(Q =\rho [q_1+q_2q+q_3q^2]\), where \(q_1\), \(q_2\), \(q_3\) are constants. Combining (5) with the proposed interaction Q, we find

$$\begin{aligned} Q(\rho ,\rho ')=\rho \left( s_1+s_2\frac{\rho '}{\rho }+s_3\left[ \frac{\rho '}{\rho }\right] ^2\right) , \end{aligned}$$
(6)

where the constants \(s_i\) are redefinitions of \(q_i\). In the first column of Table 1, we show five sign-changeable interactions investigated in the literature that result to depend quadratically on the deceleration parameter. At first sight the interactions in the first column of Table 1 appear to be proportional to the deceleration parameter only; however, when one combines (4) and (5), we find that the functions \(\rho \), \(\rho '\), \(\rho _m\), \(\rho _x\) and q are related among them. Thus, in the second column of Table 1 we have written these interactions in terms of \(\rho \) and \(\rho '\), following the form given in (6). In Table 1 we show a set of interactions \(Q_{1}\)\(Q_{4}\) investigated in the literature which are included in the general interaction Q. In what follows, we will examine the cosmological consequences of the interaction Q in an accelerated scenario for the universe by using the exact dark sector energy density.

Table 1 In the left column we present five sign-changeable interactions investigated in the literature that involve the deceleration parameter q, while in the right column we write these interactions in terms of \(\rho \) and \(\rho '\) according to (6). Here, \(\alpha _i\), \(\alpha \) and \(\beta \) are interaction parameters

From comparing the factorizable interaction (6) with the set of interactions \(Q_{1}\)\(Q_{4}\) and Q, we find that the coefficients \(s_1, s_2\) and \(s_3\) satisfy the following constraint:

$$\begin{aligned} s_3-\frac{3}{2}s_2=-\frac{9}{4}s_1, \end{aligned}$$
(7)

meaning that the interactions in Table 1 include no more than two interaction parameters.

Cosmological scenarios driven by other interactions depending on q, such as the interactions presented in Refs. [39, 42], include higher order derivatives of \(\rho \) such as \(\rho ''\rho '/\rho \), which is equivalent to considering an interaction proportional to a quadratic polynomial in q with additional terms proportional to \(qq'\) and they lead to a source equation which becomes non-integrable by the procedure used in Ref. [41].

3 Solvable sign-changeable interaction scenario

We split the conservation equation (3) into two coupled first order differential equations,

$$\begin{aligned} \rho '_m+\gamma _m\rho _m= & {} -Q, \end{aligned}$$
(8)
$$\begin{aligned} \rho '_x+\gamma _x\rho _x= & {} Q, \end{aligned}$$
(9)

where we have introduced the phenomenological interaction Q that generates the exchange of energy between dark matter and dark energy components. By differentiating any of Eq. (4) and combining with (8) or (9), we obtain the second order differential equation that determines the energy density for a given interaction Q,

$$\begin{aligned} \rho ''+(\gamma _m+\gamma _x)\rho '+\gamma _m\gamma _x \rho = \varDelta Q. \end{aligned}$$
(10)

This “source equation” was solved for linear and nonlinear interactions where the former includes a linear combination of the dark matter and dark energy densities, the total energy density and their first derivative; see Ref. [41]. The nonlinear case consists of the above linear combination and additionally significant nonlinear terms having the form of a rational function of the dark matter and dark energy densities. By inserting the sign-changeable interaction (6) into Eq. (10) and making the change of variable \(X=\rho ^{1+b_2}\), valid for \(b_2 \ne -1\), it transforms into the equation of a forced dissipative \((b_1 > 0)\) or anti-dissipative \((b_1 < 0)\) linear oscillator,

$$\begin{aligned} X''+b_1 X'+b_3(1+b_2)X=0, \end{aligned}$$
(11)

where \(b_1=\gamma _m+\gamma _x-s_2\varDelta \), \(b_2=-s_3\varDelta \), \(b_3=\gamma _m\gamma _x -s_1\varDelta \) are the new parameters of the nonlinear interacting model. Then, the general solution of Eq. (10) is obtained from a “nonlinear superposition” of the two basis solutions of the source equation (11):

$$\begin{aligned} \rho (a)=(c_1 a^{3\lambda _1}+c_2 a^{3\lambda _2})^{1/(1+b_2)}, \end{aligned}$$
(12)

where

$$\begin{aligned} \lambda _{1,2}=\frac{-b_1 \pm \sqrt{b_1^2-4b_3(1+b_2)}}{2} \end{aligned}$$
(13)

are the characteristic roots of the linear differential equation (11). From now on, the \(c_i\) with \(i=1, 2,\ldots , n\) will denote arbitrary integration constants. By inserting the energy density (12) into (4), we find the dark matter and dark energy densities to be given by

$$\begin{aligned} \rho _{m}= & {} -\frac{[\lambda _2+\gamma _x(1+b_2)]\rho +c_1(\lambda _1-\lambda _2)\,\frac{a^{3\lambda _1}}{\rho ^{b_2}}}{(1+b_2)\varDelta }, \end{aligned}$$
(14)
$$\begin{aligned} \rho _{x}= & {} \frac{[\lambda _2+\gamma _m(1+b_2)]\rho +c_1(\lambda _1-\lambda _2)\,\frac{a^{3\lambda _1}}{\rho ^{b_2}}}{(1+b_2)\varDelta }. \end{aligned}$$
(15)

On obtaining \(\rho \), we also have solved the interacting dark sector model for the individual dark matter and dark energy components. However, we can also interpret this interacting dark sector model as a unified cosmological model with effective energy density \(\rho \) and effective equation of state \(p=-\rho -\rho '\) given by

$$\begin{aligned} p= & {} -\left( 1+\frac{\lambda _2}{1+b_2}\right) \rho -\frac{c_1(\lambda _1-\lambda _2)a^{3\lambda _1}}{(1+b_2)\rho ^{b_2}}. \end{aligned}$$
(16)

The equation of state (16) includes various of the modified Chaplygin gas models investigated in Refs. [43,44,45,46,47]. Also, nonlinear interactions that give rise to the equation of state (16) allow for the possibility of producing finite-time future singularities [48,49,50]. In fact, for \(\mathrm{sgn}(c_1)\ne \mathrm{sgn}(c_2)\) the parentheses in the energy density (12) vanish for some finite value \(a_s\) of the scale factor, meaning that both the energy density (12) and the pressure (16) diverge whenever \(b_2<-1\). Hence, in the case that \(\rho _s=\rho (a_s)\) diverges at \(a_s=a(t_s)\) with \(t_s<\infty \), a finite-time future singularity could occur at the cosmic time \(t_s\).

By evaluating the energy densities (14) and (15) at the present time, such that \(a_0=1\), and denoting the density parameters as \(\varOmega _{m0}=\rho _{m0}/3H_0^2\) and \(\varOmega _{x0}=\rho _{x0}/3H_0^2\), where \(H_0=100h\ [\text {km/s/Mpc}]\) is the Hubble parameter, we get

$$\begin{aligned} \rho (a)= & {} 3H_0^2\left[ \frac{\lambda _2+\gamma _0(1+b_2)}{\lambda _2-\lambda _1}\right] ^{1/(1+b_2)} \nonumber \\&\times \left( a^{3\lambda _1} -\frac{\lambda _1+\gamma _0(1+b_2)}{\lambda _2+\gamma _0(1+b_2)}a^{3\lambda _2}\right) ^{1/(1+b_2)}, \end{aligned}$$
(17)

where \(\gamma _0=\gamma _m-\varOmega _{x0}\varDelta \).

From the energy densities (4) we obtain the cosmic coincidence parameter \(r(a)=\rho _m/\rho _x\), which becomes positive for the effective barotropic index \(\gamma =-\rho '/\rho \) ranging between \(\gamma _x\) and \(\gamma _m\). Furthermore, evaluating the coincidence parameter in the limit \(a \rightarrow \infty \), from Eqs. (14) and (15), we get a finite constant value \(r_\infty \),

$$\begin{aligned} r_\infty =-\frac{\lambda _1+\gamma _x(1+b_2)}{\lambda _1+\gamma _m(1+b_2)}, \end{aligned}$$
(18)

showing that the quadratic sign-changeable interactions generate dark sector models that are possible candidates for alleviating the coincidence problem. On the other hand, the deceleration parameter (5) has a finite constant value \(q_\infty \) in the limit \(a\rightarrow \infty \) given by

$$\begin{aligned} q_\infty =-1-\frac{3\lambda _1}{2(1+b_2)}; \end{aligned}$$
(19)

hence, the models with parameters satisfying the condition \(3\lambda _1/2(1+b_2)>-1\) produce a final accelerated stage.

Three particular cases arise when each one of the physical constant parameters \(b_1\), \(b_2\) or \(b_3\) vanishes. For \(b_1=0\) the parameter \(s_2=(\gamma _m+\gamma _x)/\varDelta \) and the linear term proportional to \(\rho '\) in the interaction in (6) cancels with the dissipative/anti-dissipative term in the source equation (10). In this case, the effective dark fluid is described by a linear oscillator with characteristic roots \(\lambda _1=-\lambda _2=\sqrt{-b_3(1+b_2)}\). For \(b_2=0\) the parameter \(s_3=0\) and the characteristic roots are \(\lambda _{1,2}=[-b_1\pm \sqrt{b_1^2-4b_3}]/2\), thus we have an energy density that becomes a linear superposition of two different powers of the scale factor. So, the absence of the term proportional to \(\rho '^2/\rho \) in the source equation (10) has removed the nonlinear superposition effects in the energy density (12). For \(b_3=0\), we have \(s_1=\gamma _m\gamma _x/\varDelta \), \(\lambda _1=0\) and \(\lambda _2=b_1\), so that the effective energy density and pressure describe a modified Chaplygin gas or a modified anti-Chaplygin gas according to \(c_1/c_2>0\) with \(c_1>0\) and \(c_2>0\) or \(c_1/c_2<0\), respectively. In the former case, for a positive \(b_1\), the universe has a final de Sitter stage with an effective cosmological constant given by the limit \(\varLambda \rightarrow \varLambda _e=c_1^{1/(1+b_2)}\), and the model reduces to the modified Chaplygin gas of Ref. [51].

Two different branches of solutions are obtained when the parameters \(b_1=0\) and \(b_3=0\) or \(b_2=-1\). In the former case the linear source equation (11) reduces to \(X''=0\), its general solution is \(X=c_3+c_4\eta \), the barotropic index becomes \(\gamma =-c_4\rho ^{-b_2-1}/(b_2+1)\) and the equation of state (16) reduces to

$$\begin{aligned} p=-\rho -\frac{c_4}{b_2+1}\,\rho ^{-b_2}. \end{aligned}$$
(20)

This equation can be interpreted as a possible generalization of the polytropic equation of state \(p=K\rho ^{\gamma _p}\), where K is a constant and \(\gamma _p=-b_2\) is the polytropic index. In the latter case, \(b_2=-1\), the solution of Eq. (11) leads to two different barotropic indices, depending on the values of \(b_1\); they read

$$\begin{aligned} \gamma= & {} \frac{b_3}{b_1}-c_5\,a^{-3b_1}, \qquad b_1\ne 0, \end{aligned}$$
(21)
$$\begin{aligned} \gamma= & {} c_6-b_3\log (a^3) , \qquad b_1=0. \end{aligned}$$
(22)

These two scenarios could lead to a positive or negative barotropic index regardless of the sign of the constants \(b_3\), \(c_5\) and \(c_6\). In the literature there are other examples of logarithmic equations of state as that seen in Eq. (22); see, e.g., [52, 53].

The initial sign-changeable interaction (6) can be enlarged by including a term proportional to the first \(\eta \)-derivative of the deceleration parameter \(Q_{q'}\propto \rho q'\). This generates an additional term in (6), so that it takes the new form \(Q_{q'}=Q+s_4\rho ''\), with \(s_4\) an arbitrary constant. However, it is easy to see that the new term \(s_4\rho ''\) modifies the coefficient of \(\rho ''\) in the source equation (10), so that \(\rho ''\rightarrow (1-s_4\varDelta )\rho ''\); then we solve for \(\rho ''=[Q\varDelta -\gamma _m\gamma _x\rho -(\gamma _m+\gamma _x)\rho ']/s\), where \(s=1-s_4\varDelta \) and \(Q_{q'}\) becomes

$$\begin{aligned} Q_{q'}=\frac{1}{s}\left\{ Q-s_4\,\rho \left[ \gamma _m\gamma _x+(\gamma _m+\gamma _x)\frac{\rho '}{\rho }\right] \right\} . \end{aligned}$$
(23)

The effect of the new term redefines the coefficients in the sign-changeable interaction Q, thus we obtain a new \(Q_{q'}\) that has the same form of the sign-changeable interaction (6). A particular case of this interaction was studied in Ref. [39].

With the above analysis we have an overview of the various effects produced by the nonlinear sign-changeable interaction (6) on the dark sector components; these results were obtained from the general solution of the source equation (11).

4 Observational analysis

In this section the observational analysis of the sign-changeable interactions \(Q_{1}\)\(Q_{4}\) and Q in Table 1 is performed. We consider as free parameters \(\alpha _i\), \(\alpha \) and \(\beta \), describing the cosmological interaction besides h, \(\varOmega _{m0}\) and \(\gamma _x\). Also, for the sake of simplicity, we consider \(\gamma _m=1\) in all the observational analyses. We use type Ia supernovae (SNe) data from the joint light-curve analysis (JLA) sample [54] with \(N=740\) supernovae over the redshift range \(0.01<z<1.2\). We obtain the apparent magnitude of a supernovae in the B-band to find

$$\begin{aligned} m(z,\mathbf{p})=\mu (z,\mathbf{p})+M_B-\alpha _* X_1+\beta _* {\mathcal {C}}, \end{aligned}$$
(24)

where \(X_1\) is the time stretching of the light curve, \({\mathcal {C}}\) is the supernova color at its maximum brightness, \(M_B\), \(\alpha _*\), \(\beta _*\) are nuisance parameters (see Ref. [19] for more details), p represents the model’s parameters and the distance modulus is given by

$$\begin{aligned} \mu (z,\mathbf{p})= 5\log _{10}\left[ \frac{\ d_L(z,\mathbf{p})}{10\mathrm {pc}}\right] , \end{aligned}$$
(25)

for the luminosity distance defined as \(d_L(z,\mathbf{p})=(1+z)\ r(z,\mathbf{p})\) [55] and

$$\begin{aligned} r(z,\mathbf{p})= \int _0^z\frac{c\ \mathrm{d}z}{H(z,\mathbf{p})}. \end{aligned}$$
(26)

We assumed a multivariate Gaussian likelihood in the Monte Carlo analyses for the JLA sample,

$$\begin{aligned} {\mathcal {L}}_\mathrm{JLA}(\mathbf{p})=\exp (-\chi ^2_{*}(\mathbf{p})/2), \end{aligned}$$
(27)

where

$$\begin{aligned} \chi ^2_{*}(\mathbf{p})=(m_B-m(z,\mathbf{p}))^TC_{*}^{-1}(m_B-m(z,\mathbf{p})), \end{aligned}$$
(28)

and \(C_{*}\) is the covariance matrix of the \(m_B\) measurements, estimated accounting for statistical and systematic uncertainties (see Ref. [19] for more details).

Additionally, we consider 51 measurements of the Hubble expansion rate (see Table 1 of Ref. [56]) where the data come from the differential age method for passively evolving galaxies or indirectly through BAO measurements. The \(\chi ^2\) function for the Hubble expansion rate is defined by

$$\begin{aligned} \chi ^2_{H}=\sum _i\left( \frac{H_{\mathrm{obs},i}-H_\mathrm{th}(z_i;\mathbf{p})}{\sigma _{H}(z_i)}\right) ^2, \end{aligned}$$
(29)

where the subscripts obs and th mean observational values and theoretical predictions, respectively; \(\sigma _H\) denotes the measurement’s error and the likelihood is defined in (27).

From now on we use \(H(z)=\sqrt{\rho /3}\), where \(\rho \) is given by (17) rewritten in terms of the cosmological redshift z. The constants \(\lambda _{1}\), \(\lambda _2\), \(b_2\) and k in Eq. (17) are rewritten in terms of the model’s parameters \(\mathbf{p }=(h\), {\(\alpha _i\), \(\alpha \), \(\beta \)}, \(\varOmega _{m0}\), \(\gamma _x\)).

In order to find the best fit parameters, we use the Python interface for the MultiNest algorithm [57,58,59], where we assume the following uniform priors: \(\alpha _i\in [-1,1]\), \(\beta \in [-1,1]\), \(\varOmega _{m0}\in [0,1]\) and \(\gamma _x\in [-1,1]\). In order to break the degeneracy in the h parameter we consider the joint analyses \(\hbox {JLA}+H_0\) and \(\hbox {JLA}+H_0+H(z)\), where \(H_0\) is the local measurement for the Hubble parameter [60].

The best fit parameters and the 1\(\sigma \) error are shown in Tables 2, 3, 4 and  5 where we have considered interactions defined in Table 1. In order to focus on the interaction parameters we firstly use \(\gamma _x=0\) as prior in Tables 2 and 3, where we also include the fit of the \(\varLambda \)CDM model. In Tables 4 and 5 we enlarge the parameter space by including \(\gamma _x\) as a free parameter. In these tables we include the fit of the \(\omega \)CDM model as comparison instead of \(\varLambda \)CDM, given that the former considers the state parameter of the dark energy \(\omega \) as a free parameter. In Tables 2 and 4 we show the analysis of the interactions in Table 1 considering \(\hbox {JLA}+H_0\) and in Tables 3 and 5 we expand the data set to include H(z).

We notice in Tables 2 and 4 that the values of the interaction parameters, \(\alpha _i\), \(\alpha \) and \(\beta \), are all consistent with zero (within the 1\(\sigma \) region). Nevertheless, only scenarios \(Q_4\) and Q are consistent with no interaction in Table 3 and only scenario Q in Table 5. This means that it is necessary to add the H(z) data in order to get a defined sign of the interaction in most of the scenarios. On the other hand, only interaction \(Q_1\) and Q maintain the same sign of interaction parameters for all the results in Tables 2, 3, 4 and  5.

The results in Tables 4 and 5 show a positive \(\gamma _x\) in any case, nevertheless this value is consistent with zero in some cases. In comparing Table 2 with 3 and Table 4 with 5 for interacting scenarios, we can see that the values of the parameters h and \(\varOmega _{m0}\) become smaller including the H(z) data. This is natural given that we are using a Gaussian prior to set the value of h in obtaining the results of Tables 2 and 4, that is, the SNe data do not restrict the h parameter by themselves. In including the H(z) data in Tables 3 and 5 the h posterior changes, because this set of data is closely related to the h parameter.

In comparing Table 2 with 4 and 3 with 5 we notice that, on including the \(\gamma _x\) parameter, the value of h is approximately the same; nevertheless, the \(\varOmega _{m0}\) parameter always diminishes. On the other hand, in comparing the full analyses in Tables 3 and 5, we observe that the sign of the interaction is maintained in each case. We additionally notice that the fit for interactions \(Q_{2}\) and \(Q_{3}\) are very similar in Tables 2 and 3, and this is consistent with the fact that the two correspond to the same interaction up to a sign in the case \(\gamma _x=0\) and \(\gamma _m=1\), as we can observe from Table 1.

Table 2 Best fit parameters and 1\(\sigma \) error for the analysis using JLA\(+H_0\). We have considered \(\gamma _x=0\) and as a comparison we show the fit for \(\varLambda \)CDM
Table 3 Best fit parameters and 1\(\sigma \) error for the analysis using JLA\(+H_0+H(z)\). We have considered \(\gamma _x=0\) and as a comparison we show the fit for \(\varLambda \)CDM
Table 4 Best fit parameters and 1\(\sigma \) error for the analysis using JLA\(+H_0\). As a comparison we show the fit for \(\omega \mathrm{CDM}\)
Table 5 Best fit parameters and 1\(\sigma \) error for the analysis using JLA\(+H_0+H(z)\). As a comparison we show the fit for \(\omega \mathrm{CDM}\)
Fig. 1
figure 1

Evolution of a dimensionless interaction term. The top panel corresponds to \(\gamma _x=0\) and the bottom panel to a fitted \(\gamma _x\), both figures consider the analysis \(\hbox {JLA}+H_0+\hbox {H(z)}\). The black lines are for interacting models, dashed, dotted, dot-dashed and solid lines represent interactions \(Q_{1},\, Q_3,\, Q_4\) and Q, respectively. On the top panel \(Q_2\) is indistinguishable from \(Q_3\), on the other panel \(Q_2\) corresponds to the gray line

Fig. 2
figure 2

Evolution of the effective barotropic index. The top panel corresponds to \(\gamma _x=0\) and the bottom panel to a fitted \(\gamma _x\), both figures consider the analysis \(\hbox {JLA}+H_0+\hbox {H(z)}\). The blue lines represent \(\varLambda \)CDM (solid) and \(\omega \)CDM (dotted). The black lines are for interacting models, dashed, dotted, dot-dashed and solid lines represent interactions \(Q_{1},\, Q_3,\, Q_4\) and Q, respectively. In both figures \(Q_2\) is indistinguishable from \(Q_3\)

Fig. 3
figure 3

Evolution of the density parameter for dark energy. The top panel corresponds to \(\gamma _x=0\) and the bottom panel to a fitted \(\gamma _x\), both figures consider the analysis \(\hbox {JLA}+H_0+\hbox {H(z)}\). The blue lines represent \(\varLambda \)CDM (solid) and \(\omega \)CDM (dotted). The black lines are for interacting models, dashed, dotted, dot-dashed and solid lines represent interactions \(Q_{1},\, Q_3,\, Q_4\) and Q, respectively. In both figures \(Q_2\) is indistinguishable from \(Q_3\)

In Fig. 1 we show the evolution of the interaction term and we observe that all the studied interactions, \(Q_{1}\)\(Q_{4}\) and Q, correspond to a positive interacting term today, i.e., we have energy transfer from dark matter to dark energy today. Besides, the change of sign of the interaction took place in the past (around \(z\sim 0.7\)), concurrently with the deceleration parameter transition in each case.

Figure 2 shows the effective barotropic index, which as a result appears to be positive today in each case; in Fig. 3 we show the evolution of the energy density parameter for the dark energy and we notice that the dark energy contribution today is always higher for the studied interacting scenarios, compared to the standard scenario \(\varLambda \)CDM. This is consistent with energy transfer from dark matter to dark energy. Furthermore, from Figs. 1, 2 and 3 we realize that the interaction \(Q_4\) (dot-dashed line) corresponds to the sign-changeable scenario closest to the \(\varLambda \)CDM or the \(\omega \)CDM evolution.

Fig. 4
figure 4

The contour plot for interaction \(Q_4\) with the 1\(\sigma \) and 2\(\sigma \) regions. We considered the analysis \(\hbox {JLA}+H_0\) (blue) and \(\hbox {JLA}+H_0+H(z)\) (red)

Fig. 5
figure 5

The contour plot for interaction \(Q_4\) with the 1\(\sigma \) and 2\(\sigma \) regions. We considered the analysis \(\hbox {JLA}+H_0\) (blue) and \(\hbox {JLA}+H_0+H(z)\) (red)

In Figs. 4 and 5 we show as examples the contour plot of interaction \(Q_4\) in Table 1. Figure 4 has the \(\gamma _x\) parameter set to zero and in Fig. 5\(\gamma _x\) is allowed to vary. We can see that all the parameters are better constrained in the analysis \(\hbox {JLA}+H_0+\hbox {H(z)}\) compared to the analysis \(\hbox {JLA}+H_0\).

Finally, we notice from the results in Tables 2, 3, 4 and 5 that the interacting models \(Q_1\)\(Q_4\) and Q fulfill the condition \(b_2>-1\); hence according to Eq. (12), we do not expect scenarios with a future singularity.

5 Final discussion

We have presented an interacting dark sector scenario in a spatially flat FLRW and we introduced a factorizable nonlinear sign-changeable interaction between the dark components depending linearly on the energy density and quadratically on the deceleration parameter, \(Q =\rho [q_0 +q_1 q +q_2 q^2]\), resulting in cosmological scenarios with a natural sign change related to the accelerated expansion of the universe.

We have studied several linear and nonlinear sign-changeable interactions and have written them in terms of \(\rho \) and \(\rho '\) in Table 1, by using the deceleration parameter of Eq. (6). The interactions \(Q_{1}\)\(Q_{4}\) were previously analyzed in a different context in Ref. [32], by using a dynamical system and considering the cosmological evolution of the dark energy component in the form of quintessence and phantom scalar fields. Instead we have considered a general sign-changeable interaction Q that includes \(Q_{1}\)\(Q_{4}\) and we assumed an interacting dark sector composed of dark matter and dark energy with constant barotropic indices. We have focused on a larger set of scenarios which can include an inherent change of sign in the interaction term.

We have shown that different types of sign-changeable interactions are linked by recognizing a convenient form of expanding the interaction terms and therefore integration methods described in [41] can be applied. We have solved the corresponding source equation (10) when it is sourced by Q depending on the deceleration parameter and obtained the effective energy density (12), the dark matter and dark energy densities (14) and (15) as well as the effective equation of state (16). In the particular scenario \(b_3=0\) in Eq. (11), we have found that the effective equations of state describe the Chaplygin gas and its generalizations, so we have an unified model for the interacting dark sector.

We have used SNe type Ia from the JLA compilation [54] along with H(z) [56] data and the Riess’ value for \(H_0\) [60] to constrain the parameters of the five interactions in Table 1, using the effective energy density (12). The best fit parameters for each model are shown in Tables 2, 3, 4 and 5, from which we obtain \(b_2>-1\) in any case, then from Table 1, we could construct an interacting dark model free of finite-time future singularities, consistent with the cosmological data used.

According to the observational data analysis, summarized in Fig. 1 for the evolution of the interaction, an energy transfer occurs from dark matter to dark energy today in all scenarios. Also, as expected a transition is observed in the past where the energy transfer changes direction; this occurs concurrently with the acceleration–deceleration transition. The effective barotropic index as a results appears to be of quintessence-type today in any case; see Fig. 2. Given that the energy transfer is from dark matter to dark energy in all the cases, we see in Fig. 3 that the dark energy density is always larger than the \(\varLambda \)CDM model today.

In a forthcoming work we will perform a full analysis including baryons and photons in order to include more available data such as baryonic acoustic oscillations and cosmic microwave background measurements.