1 Introduction

Einstein’s General Relativity (GR) cannot be the ultimate theory of gravity for several reasons. Any attempt to reconcile it with quantum mechanics introduces deviations from GR. Moreover, the need to explain the current acceleration of the universe without a completely ad hoc dark energy has led to modifications of GR on cosmological scales. The most popular class of theories for this purpose is probably f(R) gravity [1], a subclass of scalar-tensor gravity [2]. In the last decade, scalar-tensor gravity has been generalized by rediscovering Horndeski theory [3] (see Ref.  [4] for a recent review), leading to a flurry of activity. Horndeski gravity is one of the most general scalar-tensor theories with second order field equations, which avoids the notorious Ostrogradsky instability [5, 6]. The action is commonly written as  [4]

$$\begin{aligned} S\left[ g_{ab}, \phi \right] = \int d^4 x \sqrt{-g} \, \left( \mathcal{L}_2 + \mathcal{L}_3+ \mathcal{L}_4+ \mathcal{L}_5 \right) + S^\mathrm {(m)} , \end{aligned}$$
(1)

where \(g_{ab}\) is the spacetime metric with determinant g, \(\phi \) is the scalar degree of freedom, \(S^\mathrm {(m)}\) is the matter action,Footnote 1

$$\begin{aligned} \mathcal{L}_2&=\, G_2\left( \phi , X \right) \,,\qquad \mathcal{L}_3 =\,- G_3\left( \phi , X \right) \Box \phi \,,\nonumber \\ \mathcal{L}_4&=\, G_4\left( \phi , X \right) R +G_{4X} \left( \phi , X \right) \left[ \left( \Box \phi \right) ^2 -\left( \nabla _a \nabla _b \phi \right) ^2 \right] \,, \nonumber \\ \mathcal{L}_5&=\, G_5\left( \phi , X \right) G_{ab}\nabla ^a \nabla ^b \phi \nonumber \\&\quad -\frac{ G_{5X} }{6} \left[ \left( \Box \phi \right) ^3 -3\Box \phi \left( \nabla _a\nabla _b \phi \right) ^2 +2\left( \nabla _a \nabla _b \phi \right) ^3 \right] \,. \end{aligned}$$
(2)

\( X \equiv -\tfrac{1}{2}\,\nabla ^c\phi \nabla _c\phi \), the \(G_i\) (\(i=2,3,4,5\)) are regular functions of \(\phi \) and X, while \( G_{i\phi } \equiv \partial G_i/\partial \phi \) and \( G_{iX} \equiv \partial G_i/\partial X\), \( \left( \nabla _a\nabla _b \phi \right) ^2 \equiv \nabla _a\nabla _b\phi \nabla ^a \nabla ^b \phi \) and \( \left( \nabla _a\nabla _b \phi \right) ^3 \equiv \nabla _a\nabla _c\phi \nabla ^c\nabla ^d \phi \nabla _d \nabla ^a \phi \).

The multi-messenger event GW170817/GRB170817A from a neutron star binary merger [8, 9] restricts Horndeski gravity to the so-called “viable” class characterized by \( G_5= G_{4X}=0 \), in which the speed of gravitational waves equals c. This class also avoids instabilities and admits an Einstein frame description [4, 10,11,12,13].

The field equations of viable Horndeski gravity are

$$\begin{aligned}{} & {} G_4 \, G_{ab} -\nabla _{a}\nabla _{b}G_4 + \left[ \Box G_4 -\dfrac{G_2 }{2} -\dfrac{1}{2} \, \nabla _{c} \phi \nabla ^{c}G_{3} \right] g_{ab} \nonumber \\{} & {} \quad + \frac{1}{2}\left[ G_{3X} \, \Box \phi -G_{2X} \right] \nabla _{a}\phi \nabla _{b}\phi + \nabla _{(a}\phi \nabla _{b)}G_{3} =T^\mathrm {(m)}_{ab} , \end{aligned}$$
(3)
$$\begin{aligned}{} & {} G_{4,\phi } R + G_{2,\phi } +G_{2X} \Box \phi +\nabla _{c}\phi \nabla ^{c}G_{2X} \nonumber \\{} & {} \quad -G_{3X} (\Box \phi )^2-\nabla _{c}\phi \nabla ^c G_{3X} \Box \phi -G_{3X} \nabla ^{c} \phi \Box \nabla _c\phi \nonumber \\{} & {} \quad +G_{3X} R_{ab}\nabla ^{a} \phi \nabla ^{b}\phi -\Box G_{3} -G_{3,\phi } \Box \phi =0 , \end{aligned}$$
(4)

where \(G_{ab}\) is the Einstein tensor and \(T^\mathrm {(m)}_{ab}\equiv -\tfrac{1}{\sqrt{-g}}\,\tfrac{\delta S^\mathrm {(m)}}{\delta g^{ab}}\). Equation (3) can always be written as the effective Einstein equation \(G_{ab}=T_{ab}+T^\mathrm {(m)}_{ab}/G_{4} ,\) where \(T_{ab}=T^{(2)}_{ab}+T^{(3)}_{ab}+T^{(4)}_{ab}\) is the effective stress-energy tensor containing all the deviations from GR,

$$\begin{aligned} T^{(2)}_{ab}&=\,\frac{1}{2G_4} \left( G_{2X}\nabla _{a}\phi \nabla _{b}\phi +G_{2}\,g_{ab} \right) \,, \end{aligned}$$
(5)
$$\begin{aligned} T^{(3)}_{ab}&=\frac{1}{2G_4} \left( G_{3X} \nabla _{c} X \nabla ^{c} \phi - 2 X G_{3\phi } \right) g_{ab} \nonumber \\&\quad - \frac{1}{2G_4}\left( 2 G_{3\phi } + G_{3X} \Box \phi \right) \nabla _a \phi \nabla _b \phi - \frac{G_{3X}}{G_4} \nabla _{(a} X \nabla _{b)} \phi \,, \end{aligned}$$
(6)
$$\begin{aligned} T^{(4)}_{ab}=\,&\frac{G_{4\phi }}{G_4}(\nabla _{a}\nabla _{b}\phi -g_{ab}\Box \phi )+\frac{G_{4\phi \phi }}{G_4}(\nabla _{a}\phi \nabla _{b}\phi +2X\,g_{ab})\,. \end{aligned}$$
(7)

For clarity of illustration, we temporarily restrict ourselves to this subclass of Horndeski gravity in vacuo, but will later extend our results to the most general Horndeski theory with matter.

Because of the many free functions and terms appearing in the Horndeski action, it is difficult to grasp the physical meaning of Horndeski gravity and many works remain formal. One would like to understand better Horndeski gravity from the physical point of view. How can one understand, and classify, the physical deviations from Einstein gravity appearing in these theories? Here we propose a new approach to this class of theories: by regarding its field equations as effective Einstein equations, the gravitational terms other than the Einstein tensor, when moved to the right-hand side, assume the form of a dissipative effective fluid [14] (a result familiar in less general scalar-tensor theories  [15]). This effective fluid approach provides a way to classify Horndeski gravity based on the nature of this fluid: the requirement that it is a Newtonian fluid (i.e., with the viscous stresses depending only on the first derivatives of the fluid’s 4-velocity) restricts the scope to two subclasses of viable Horndeski gravity, while more general theories correspond to exotic non-Newtonian effective fluids. Here “(non-)Newtonian” refers to standard fluid-dynamical terminology: we always consider relativistic (effective) fluids. This classification grasps one of the most basic characteristics of a fluid in the usual, non-relativistic and three-dimensional fluid mechanics. Ordinary fluid behaviour is Newtonian, while more exotic (although still common in nature) non-Newtonian fluids are definitely more complicated. In the absence of other physical ways to classify the nature of Horndeski theories (apart from the well-known distinction between theories in which gravitational waves propagate at light speed and those in which they do not), the behaviour of the effective equivalent fluid serves this purpose. Alternative characterizations of Horndeski theories of gravity from the physical point of view are not contemplated in the (now vast) relevant literature.

We show below that the general Horndeski theory contains only two (“linear Horndeski”) classes with an effective fluid stress-energy tensor linear in the four-velocity gradient. They are subclasses of the viable Horndeski class identified by \(G_3=G_{4\phi }\,\ln {X}\) and \(G_3=0\), respectively. This result is applied in the context of Eckart’s (or first-order) thermodynamics of relativistic viscous fluids. Out-of-equilibrium contributions to the effective \(T_{ab}\) are linear in the gradients of the temperature, chemical potential, and four-velocity. It is possible to constrain the functional form of \(G_2\), which is directly related to the equilibrium pressure of the effective fluid.

The idea behind the thermodynamical analogy with a first-order viscous fluid loosely originates in Jacobson’s idea of modified gravity as a non-equilibrium state in a “thermodynamics of gravitational theories” based on a thermal derivation of the Einstein equations  [16, 17], in which classical gravity appears as an emergent phenomenon instead of being fundamental. Thus, GR is associated with an equilibrium state of gravity while any dynamical modified theory (in this case, Horndeski’s) is interpreted as an excited, or non-equilibrium, state.Footnote 2 The alternative gravity-viscous fluid analogy was developed in previous works [18,19,20,21]. Here we derive the heat current density, the “temperature of modified gravity” associated with the effective fluid (i.e., the effective temperature of the excited state), and its viscosity coefficients by studying a first-order effective viscous fluid with vanishing chemical potential in the Eckart frame. While the first linear Horndeski class is characterized by a unique expression of the temperature, the temperature associated with the second linear Horndeski class depends on the function \(G_2\left( \phi , X \right) \), or, alternatively, on how the shear viscosity depends on the effective equilibrium pressure. Tables 1 and 2 summarize our results.

2 Horndeski effective fluids

The stress-energy tensor of an imperfect fluid has the well-known form

$$\begin{aligned} T^{ab}&=\rho u^{a}u^{b}+q^{a}u^{b} + q^{b} u^{a} +\Pi ^{ab}\nonumber \\&=\rho u^{a}u^{b}+Ph^{ab}+q^{a}u^{b} + q^{b} u^{a} +\pi ^{ab}\,, \end{aligned}$$
(8)

where \(u^{a}\) is the fluid 4-velocity (\(u_{a}u^{a}=-1\)), \(h_{ab} \equiv g_{ab}+u_{a} u_{b}\) (\({h_a}^b\) is the projector onto the 3-space orthogonal to \(u^c\)), \(\rho = T^{ab}u_{a}u_{b}\) is the energy density, \(P=\tfrac{1}{3}\,T^{ab}h_{ab}\) is the isotropic pressure, \(q^{a}=-T^{cd}u_{c}h_{d}{}^{a}\) is the heat flux density, \(\Pi ^{ab}= h^{a}{}_{c}h^{b}{}_{d}T^{cd}=Ph^{ab}+\pi ^{ab}\) is the stress tensor, and its traceless part \(\pi ^{ab}\) describes the anisotropic stresses. Viscous pressure and anisotropic stresses are assumed to obey constitutive laws relating them with the expansion scalar \(\Theta \equiv \nabla _c u^c\) and the traceless shear tensor \(\sigma ^{ab} \equiv \tfrac{1}{2} \left( h^{ac}\nabla _{c}u^{b} +h^{bc}\nabla _{c}u^{a} \right) -\tfrac{1}{3}\Theta \, h^{ab}\). In particular, using the decomposition \(\nabla _{a}=h_{a}{}^{c}\nabla _{c}-u_{a}u^{c}\nabla _{c}\), one has \(\nabla _{b}u_{a}=\sigma _{ab}+\frac{\Theta }{3} \,h_{ab}+\omega _{ab}-{\dot{u}}_{a}u_{b}\), where \(\omega _{ab}\equiv \nabla _{[b}u_{a]}\) is the vorticity tensor, and \({\dot{u}}^a \equiv u^c \nabla _c u^a\) is the 4-acceleration of the fluid.

For both non-relativistic and relativistic Newtonian fluids, these constitutive relations are linear in the 4-velocity gradient [22],

$$\begin{aligned} \pi ^{ab}=-2\eta \, \sigma ^{ab}\,, \quad \quad P={\bar{P}}-\zeta \, \Theta \,, \end{aligned}$$
(9)

where \({\bar{P}}\) is the inviscid pressure while \(\eta \) and \(\zeta \) are the shear and bulk viscosity coefficients, respectively. Therefore, the imperfect fluid stress-energy tensor has the form

$$\begin{aligned} T^{ab}&=\rho u^{a}u^{b}+ \left( {\bar{P}}- \zeta \Theta \right) h^{ab} + q^{a}u^{b}+ q^{b} u^{a} -2\eta \sigma ^{ab}\,. \end{aligned}$$
(10)

In general, the request of linearity in the first derivatives of the fluid four-velocity endows also the energy density with a viscous contribution. Thus, one could contemplate the additional “constitutive relation”

$$\begin{aligned} \rho= & {} {\bar{\rho }}-\xi \, \Theta , \end{aligned}$$
(11)

where \({\bar{\rho }}\) is the inviscid density and \(\xi \) is a new viscosity (transport) coefficient. The physical interpretation of this new term should be sought for in a resistance to compression and expansion. In principle, this extra viscosity coefficient could be related with the bulk viscosity coefficient.

Our goal consists of characterizing Horndeski theories based on the physical nature (Newtonian or non-Newtonian) of their effective fluid equivalent and on their thermodynamics.

The Horndeski effective fluid 4-velocity is  [20]

$$\begin{aligned} u^{a} \equiv \frac{\nabla ^{a}\phi }{\sqrt{2X}}, \end{aligned}$$
(12)

where we assume that the scalar field gradient is timelike, \(\nabla _{a}\phi \nabla ^{a}\phi <0\). This identification allows us to rewrite the derivatives of \(\phi \) and X in terms of the kinematic quantities associated with the effective fluid:

$$\begin{aligned} \nabla _{a}\phi&=\,\sqrt{2X}\,u_{a}\,,\qquad \nabla _{a}X=\,-{\dot{X}}\,u_{a}-2X\,{\dot{u}}_{a}\,, \end{aligned}$$
(13)
$$\begin{aligned} \nabla _{a}\nabla _{b}\phi&=\,\sqrt{2X } \, \nabla _{a}u _{b}-\frac{{\dot{X}} }{\sqrt{2X }} \, u _{a}u _{b}-\sqrt{2X}{\dot{u}}_{a}u_{b}\,, \end{aligned}$$
(14)

where \({\dot{X}} \equiv u^c \nabla _c X\). Then, the effective stress-energy tensor associated with viable Horndeski gravity is

$$\begin{aligned} T_{ab}&=\, \Bigg [ \frac{2XG_{2X}-G_{2} -2XG_{3\phi }}{2G_4}+\frac{\sqrt{2X} \left( G_{4\phi } - X G_{3X} \right) }{ G_{4}}\,\Theta \Bigg ]u_{a} u_{b}\nonumber \\&\quad + \Bigg [\frac{ G_{2} + 4 X G_{4\phi \phi } -2 X G_{3\phi }}{2 G_4 } - \frac{ \left( G_{4\phi } - X G_{3X} \right) }{\sqrt{2X}\, G_{4} }\,{\dot{X}} \,-\frac{2 \sqrt{2X} \, G_{4\phi } \Theta }{3 G_4 }\, \Bigg ] h_{ab}\nonumber \\&\quad -\frac{2\sqrt{2X} \left( G_{4\phi } - X G_{3X} \right) }{ G_{4}}{\dot{u}}_{(a} u_{b)}+\frac{\sqrt{2X} \, G_{4\phi } }{ G_{4}} \, \sigma _{ab}\,, \end{aligned}$$
(15)

and the associated effective fluid quantities are

$$\begin{aligned} \rho&=\, \frac{1}{2G_4}\left( 2XG_{2X}-G_{2} -2XG_{3\phi } \right) +\frac{\sqrt{2X}}{G_4} \left( G_{4\phi }-XG_{3X} \right) \Theta \,, \end{aligned}$$
(16)
$$\begin{aligned} P&=\,\frac{1}{2G_4} \left( G_2-2XG_{3\phi }+4XG_{4\phi \phi } \right) -\frac{\left( G_{4\phi }-XG_{3X}\right) }{G_4\sqrt{2X}}{\dot{X}}-\frac{2G_{4\phi }}{3G_4}\sqrt{2X}\,\Theta \,, \end{aligned}$$
(17)
$$\begin{aligned} \eta&=\, -\frac{G_{4\phi }}{2G_4}\, \sqrt{2X}\,, \qquad q^{a} = -\frac{\sqrt{2X}}{G_4} \, \left( G_{4\phi }-XG_{3X} \right) \, {\dot{u}}^{a}\,. \end{aligned}$$
(18)

One immediately notices that the stress-energy tensor is characterized by anisotropic stresses proportional to the shear tensor \(\sigma _{ab}\) and by heat flux density proportional to the fluid’s four-acceleration. From the above expressions we cannot obtain all the constitutive relations of the effective fluid associated with viable Horndeski. In Eq. (17), \({\dot{X}}\) is not a kinematic quantity, however the scalar field equation of motion allows us to express it in terms of kinematic quantities.

There are only two possibilities to satisfy the requirement that the total pressure depend linearly on \(\nabla _b u_a\) (i.e., that the effective fluid is Newtonian):

  1. 1.

    The total pressure does not depend on \({\dot{X}}\), equivalent to

    $$\begin{aligned} G_{4\phi } - X G_{3X}=0\quad \Rightarrow \quad G_{3}=G_{4\phi }\ln {X}. \end{aligned}$$
    (19)
  2. 2.

    The scalar \({\dot{X}}\) depends only on the scalar field and its kinetic term and is linear in the expansion scalar,

    $$\begin{aligned} {\dot{X}}=F_1 \left( \phi ,X \right) + F_2 \left( \phi ,X \right) \, \Theta , \end{aligned}$$
    (20)

    where the functions \(F_1\) and \(F_2\) contribute to the isotropic perfect pressure and to the viscous pressure, respectively. \(F_{1,2}\) can be determined using the scalar field equation of motion. Equivalently, one can work with \(\Box \phi \) and assume \(\Box \phi ={\tilde{F}}_1(\phi ,X)+{\tilde{F}}_2(\phi ,X) \, \Theta \). In either case, \(\Box \phi \) or \({\dot{X}}\) is a function of \(\left( \phi , X\right) \) linear in \(\Theta \). We work with \({\dot{X}}\) without loss of generality.

While the first case directly prescribes the form of \(G_3\), in the second case one has to write \({\dot{X}}\) in terms of the kinematic quantities to enforce the linearity in \(\nabla _{a}u_{b}\). To do this, we use the field equations

$$\begin{aligned} R_{ab}=\, T_{ab}-\frac{T}{2} \, g_{ab}\,,\qquad R=-\,T\,, \end{aligned}$$
(21)

where \(T=g_{ab}T^{ab}\) is the trace of the effective stress-energy tensor. The scalar field equation of motion written in terms of the kinematics quantities is

$$\begin{aligned}&- \frac{4}{3} X \Theta ^2 G_{3X} + 4 X \sigma ^{2}{} G_{3X} -4 {\dot{u}}^{2}{} X \left( G_{3X} + X G_{3XX}\right) -2 {\dot{X}} \Theta \left( G_{3 X} + X G_{3 XX} \right) \nonumber \\&\quad + \frac{\Theta \sqrt{2X}}{G_{4}} \left[ 3 G_{4\phi }^2 -2 X G_{4\phi } G_{3X} - X^2 G_{3X}^2 + G_{4} \left( G_{2X} -2 G_{3\phi } + 2 X G_{3\phi X}\right) \right] \nonumber \\&\quad + \frac{{\dot{X}}}{\sqrt{2X} G_4} \left\{ 3 G_{4 \phi }^2 -6 X G_{4 \phi } G_{3 X} + 3 X^2 G_{3 X}^2\right. \nonumber \\&\quad \left. + G_4 \left[ G_{2 X} + 2 X G_{2 XX} -2 \left( G_{3 \phi } + X G_{3 \phi X} \right) \right] \right\} \nonumber \\&\quad + \frac{1}{G_4}\left[ G_2 \left( -2 G_{4 \phi } + X G_{3 X} \right) + G_4 G_{2 \phi } +X^2 G_{3 X} \left( 6 G_{4 \phi \phi } + G_{2 X} -4 G_{3 \phi } \right) \right] \nonumber \\&\quad +\frac{ X}{G_4} \left[ G_{4 \phi } \left( -6 G_{4 \phi \phi } + G_{2 X} + 2 G_{3 \phi }\right) + 2 G_4 \left( - G_{2 \phi X} + G_{3 \phi \phi } \right) \right] =0\,, \end{aligned}$$
(22)

which can be seen as a linear equation for \({\dot{X}}\) admitting the algebraic solution

$$\begin{aligned} {\dot{X}}=\dfrac{A(\phi ,X)+B(\phi ,X)\,\Theta +C(\phi ,X)\,\Theta ^2+D(\phi ,X)\,\sigma ^2+E(\phi ,X)\,{\dot{u}}^2}{H(\phi ,X)+I(\phi ,X)\,\Theta }\,, \end{aligned}$$
(23)

where

$$\begin{aligned} A(\phi ,X)&=\,\sqrt{2X}\left[ G_2 \left( 2 G_{4 \phi } - X G_{3 X} \right) -G_4 G_{2 \phi }\right. \nonumber \\&\quad \left. -X^2 G_{3X} \left( 6 G_{4 \phi \phi } + G_{2 X} -4 G_{3 \phi } \right) \right] \nonumber \\&\quad - \sqrt{2X}\,X \left[ G_{4 \phi } \left( -6 G_{4 \phi \phi } + G_{2 X} + 2 G_{3 \phi }\right) \right. \nonumber \\&\quad \left. + 2 G_4 \left( - G_{2 \phi X} + G_{3 \phi \phi } \right) \right] \,, \end{aligned}$$
(24)
$$\begin{aligned} B(\phi ,X)&=\,2X \left[ 3 G_{4\phi }^2 -2 X G_{4\phi } G_{3X} - X^2 G_{3X}^2\right. \nonumber \\&\quad \left. + G_{4} \left( G_{2X} -2 G_{3\phi } + 2 X G_{3\phi X}\right) \right] \,, \end{aligned}$$
(25)
$$\begin{aligned} C(\phi ,X)&=\,\frac{4}{3} \sqrt{2X}\,X G_{4} G_{3X}\,, \end{aligned}$$
(26)
$$\begin{aligned} D(\phi ,X)&=\,-4 \sqrt{2X}\,X G_{4} G_{3X}\,, \end{aligned}$$
(27)
$$\begin{aligned} E(\phi ,X)&=\,4 \sqrt{2X}\,X G_{4} (G_{3X} + X G_{3XX})\,, \end{aligned}$$
(28)
$$\begin{aligned} H(\phi ,X)&=\, 3G_{4\phi }^2 -6 X G_{4\phi } G_{3X} + 3 X^2 G_{3X}^2+ G_{4} [G_{2X} + 2 X G_{2XX} \nonumber \\&\quad -2 (G_{3\phi } + X G_{3\phi X})]\,, \end{aligned}$$
(29)
$$\begin{aligned} I(\phi ,X)&=\,-2 \sqrt{2X} G_{4} (G_{3X} + X G_{3XX})\,, \end{aligned}$$
(30)

and with \(\sigma ^2 \equiv \tfrac{1}{2}\, \sigma _{ab}\sigma ^{ab}\), \({\dot{u}}^2 \equiv {\dot{u}}_{a}{\dot{u}}^{a}\). Equation (23) shows how the exotic non-Newtonian nature of the effective Horndeski fluid is encoded in \({\dot{X}}\) and, therefore, in the fluid total pressure. The first constitutive relation (9) is automatically satisfied.

Substituting Eq. (20) into Eq. (23) yields the system

$$\begin{aligned} F_{1}\,H&=A\,, \end{aligned}$$
(31)
$$\begin{aligned} F_{1}\,I + F_{2}\,H&=B\,, \end{aligned}$$
(32)
$$\begin{aligned} (F_{2}\,I-C)\,\Theta ^2 - D\,\sigma ^2 - E\,{\dot{u}}^2&=\,0\,. \end{aligned}$$
(33)

The first two equations give unenlightening expressions of \(F_{1}=A/H\) and \(F_{2}=(BH-AI)/H^2\), while the third one is a non-linear second order differential equation for \(\phi \). In general, the latter (which is not derived from an action principle) is incompatible with the field equation for \(\phi \) (which is also of second order) and cannot be imposed. For the same reason we do not take into account the case \({\dot{X}}=0\), which corresponds to requiring \(\nabla _{a}\phi \nabla _{b}\phi \nabla ^{a}\nabla ^{b}\phi =0\). The only way to implement self-consistently the requirement of a Newtonian effective fluid is to restrict the theory to \(G_{3X}=0\). Then, \( G_{3}=G_{3}(\phi )\) and \(\mathcal{L}_{3}=-G_{3}(\phi ) \, \Box \phi \) can be absorbed into \(G_{2}\) integrating by parts, effectively leading to \(-G_{3}(\phi ) \, \Box \phi =2 X\,G_{3\phi }\) plus a total divergence in the action. Then, the \(\phi \)-equation of motion in terms of kinematic quantities yields

$$\begin{aligned} F_1(\phi ,X)&=\frac{\sqrt{2X} \left[ 2 G_2 G_{4\phi } + X G_{4\phi } \left( 6 G_{4\phi \phi } - G_{2X} \right) \right] }{3 G_{4\phi }^2 + G_{4} \left( G_{2X } + 2 X G_{2XX } \right) }\nonumber \\&\quad -\frac{\sqrt{2X} \, G_{4} \left( G_{2\phi } -2 X G_{2\phi X} \right) }{3 G_{4\phi }^2 + G_{4} \left( G_{2X } + 2 X G_{2XX } \right) }\,, \end{aligned}$$
(34)
$$\begin{aligned} F_2(\phi ,X)&=- \frac{2 X \left( 3 G_{4\phi }^2 + G_{4} G_{2X} \right) }{3 G_{4\phi }^2 + G_{4} \left( G_{2X} + 2 X G_{2XX } \right) }\,. \end{aligned}$$
(35)

Only in this case Eq. (20) is not an extra equation but coincides with the equation of motion of \(\phi \).

To recap, requiring that the effective fluid be linear in the gradient of its 4-velocity selects only two possible classes of Horndeski gravity. Either

$$\begin{aligned} \mathcal{L}=G_{4}(\phi )R+G_{2}(\phi ,X)-G_{4\phi }\ln {X}\,\Box \phi \,, \end{aligned}$$
(36)

which corresponds to an effective fluid with

$$\begin{aligned} \rho&=\frac{1}{2G_4}(2XG_{2X}-G_{2}-2XG_{4\phi \phi }\ln {X})\,, \end{aligned}$$
(37)
$$\begin{aligned} {\bar{P}}&=\frac{1}{2G_4}\left[ G_2+2XG_{4\phi \phi }\left( 2-\ln {X} \right) \right] \,, \end{aligned}$$
(38)
$$\begin{aligned} \eta&=-\frac{1}{2}\sqrt{2X}\,\frac{G_{4\phi }}{G_4}\,,\qquad \zeta =\frac{2}{3}\sqrt{2X}\,\frac{G_{4\phi }}{G_4}\,, \end{aligned}$$
(39)
$$\begin{aligned} \xi&=\,0\,,\qquad q^{a}=0\,, \end{aligned}$$
(40)

or else

$$\begin{aligned} \mathcal{L}=G_{4}(\phi )R+G_{2}(\phi ,X)\,, \end{aligned}$$
(41)

which is instead characterized by

$$\begin{aligned} \rho&=\frac{1}{2G_4}\left( 2XG_{2X}-G_{2} \right) , \end{aligned}$$
(42)
$$\begin{aligned} {\bar{P}}&=- \frac{G_{4\phi }^2 \left( G_{2} -2 X G_{2X} \right) }{2 G_{4} \left[ 3 G_{4\phi }^2 + G_{4} \left( G_{2X} + 2 X G_{2XX} \right) \right] }\nonumber \\&\quad + \frac{\left( G_{2} + 4 X G_{4\phi \phi } \right) \left( G_{2X} + 2 X G_{2XX} \right) }{2 \left[ 3 G_{4\phi }^2 + G_{4} \left( G_{2X} + 2 X G_{2XX} \right) \right] }\nonumber \\&\quad + \frac{G_{4\phi } \left( G_{2\phi } -2 X G_{2\phi X} \right) }{3 G_{4\phi }^2 + G_{4} \left( G_{2X} + 2 X G_{2XX} \right) }\,, \end{aligned}$$
(43)
$$\begin{aligned} \eta&=-\frac{1}{2}\sqrt{2X}\,\frac{G_{4\phi }}{G_4}\,,\qquad \xi =-\sqrt{2X} \, \, \frac{G_{4\phi }}{G_4}\,, \end{aligned}$$
(44)
$$\begin{aligned} \zeta&=-\frac{\sqrt{2X} \, G_{4\phi } \left[ 3 G_{4\phi }^2 + G_{4} \left( G_{2X} -4 X G_{2XX} \right) \right] }{3 G_{4} \left[ 3 G_{4\phi }^2 + G_{4} \left( G_{2X} + 2 X G_{2XX} \right) \right] }\,, \end{aligned}$$
(45)
$$\begin{aligned} q^{a}&=-\sqrt{2X} \, \frac{G_{4\phi }}{G_4} \, {\dot{u}}^{a}\,. \end{aligned}$$
(46)

Both models reduce to GR if \(G_{4}= 1\). They are two disconnected classes of Horndeski gravity in the sense that they are closed, and cannot change into each other, under disformal transformations.

In any situation different from these two cases, Horndeski gravity can be recast as an effective fluid characterized by the linear constitutive equations

$$\begin{aligned} \rho =&\,{\bar{\rho }}-\xi \Theta \,,\qquad \pi _{\mu \nu }=-2\eta \,\sigma _{\mu \nu }\,,\qquad q^{\mu }=\xi \,{\dot{u}}^{\mu } \end{aligned}$$
(47)

and by the non-Newtonian constitutive equation for the pressure which, using Eqs. (23)–(30) in Eq. (17), can be parametrized as

$$\begin{aligned} P= & {} \dfrac{{\bar{P}}_{1}-\zeta _{1}\,\Theta -\zeta _{2}\,\Theta ^2-\zeta _{3}\,\sigma ^2-\zeta _{4}\,{\dot{u}}^2}{{\bar{P}}_{2}-\zeta _{5}\,\Theta }. \end{aligned}$$
(48)

For small velocity gradients \(\nabla _{a}u_{b} \) the above constitutive equation reduces, to first order, the effective viable Horndeski fluid to one with Newtonian behavior.

Some additional comments are useful to conclude this part.

Only the first Horndeski class can admit a non-dynamical scalar field, i.e., an extended cuscuton model  [23] (corresponding to the subclass \(G_3=G_{4\phi }\ln {X}\) which implies \( f_{3}=0\) in Ref.  [24]).

In the second Horndeski class, the denominators of Eqs. (43) and (45) vanish for theories with Lagrangian density

$$\begin{aligned} \mathcal{L}=G_{4} R+f_1(\phi )+f_2(\phi )\sqrt{2X}-\frac{3G_{4\phi }^2}{G_{4}} \, X\,, \end{aligned}$$
(49)

which automatically excludes a non-dynamical scalar field, i.e., the extended cuscuton model (corresponding to the subclass \(G_3=0\), which implies \( f_{3}=-2f_{4\phi }\) in Ref.  [24]) and, in particular, pathological \(\omega =-3/2\) Brans–Dicke gravity which corresponds to \(f_1=f_2=0\) and \(G_4=\phi \), as well as cuscuton gravity  [25]. In this case we cannot use the scalar field equation of motion to rewrite \({\dot{X}}\) (or \(\Box {\phi }\)) in terms of kinematic quantities because the corresponding multiplicative factor in Eq. (22) vanishes identically. Therefore, one cannot write Eq. (20).

The full action of the extended cuscuton model can be obtained by requiring the coefficients (29) and (30) to vanish. Moreover, the condition \(G_{3X}+X\,G_{3XX}=0\) corresponds to the special case in which the viscous contribution to the pressure is a finite sum of terms at most quadratic in the 4-velocity gradient.

For the second linear Horndeski class it is possible to find the relation between the bulk viscosity and the energy density transport coefficient \(\xi \)

$$\begin{aligned} \zeta =\,\frac{\xi }{3}\left[ \frac{3 G_{4\phi }^2 + G_{4} \left( G_{2X} -4 X G_{2XX} \right) }{ 3 G_{4\phi }^2 + G_{4}\left( G_{2X} + 2 X G_{2XX} \right) }\right] \,. \end{aligned}$$
(50)

“First generation” scalar-tensor gravity corresponds to \(\zeta =\xi /3\) and \(G_{4}=\phi \).

2.1 General Horndeski gravity in vacuo

We now briefly extend the previous analysis to general Horndeski gravity, including \(G_{4}(\phi ,X)\) and \(G_{5}(\phi , X)\). The classes of theories selected by imposing the Newtonian nature of the effective fluid are again given by Eqs. (36) and (41). The linearity in \(\nabla _a u_b\) implies \(G_5=G_{4X}=0\) and then the above discussion holds. All we have to do is considering the energy density and total pressure for general Horndeski gravity and impose that all the non-linear terms vanish. The energy density is given by

$$\begin{aligned} G_4\,\rho&= \frac{2}{3} \, X \sqrt{2X} \, \Theta \, \sigma ^{2}{} \left( G_{5X} + X G_{5XX} \right) - \frac{2}{27} \, X \sqrt{2X} \, \Theta ^3 \left( G_{5X} + X G_{5XX} \right) \nonumber \\&\quad - \frac{2}{3} \, X \sqrt{2X} \, \sigma _{a}{}^{c} \sigma ^{ab} \sigma _{bc} \left( G_{5X} + X G_{5XX} \right) \nonumber \\&\quad + X \sqrt{2X} \, R_{acbd} u^{a} u^{b} \sigma ^{cd} G_{5X}+ \frac{2}{3} \, X \Theta ^2 \left( G_{4X} + 2 X G_{4XX} - G_{5\phi } - X G_{5\phi X} \right) \nonumber \\&\quad + 2 X \sigma ^{2}{} \left( G_{5\phi } + X G_{5\phi X}- G_{4X} -2 \sqrt{2X} \, \eta \, G_{5X} -2 X G_{4XX} \right) \nonumber \\&\quad - \frac{1}{2} \, \left( G_{2} -2 X G_{2X} + 2 X G_{3\phi } \right) + \rho \left[ X \left( 2 G_{4X} - G_{5\phi } \right) - \frac{X}{3} \, \sqrt{2X} \, G_{5X}\,\Theta \right] \nonumber \\&\quad +\sqrt{2X} \, \Theta \left( G_{4\phi } + 2 X G_{4\phi X}- X G_{3X} \right) \,. \end{aligned}$$
(51)

The first term in the second line of the above equation is multiplied by \(R_{acbd} u^{a} u^{b}\sigma ^{cd}={\dot{u}}^{a} {\dot{u}}^{b} \, \sigma _{ab} - \tfrac{2}{3}\, \Theta \sigma ^{2}{} - u^{a} \sigma ^{bc} \nabla _{a}\sigma _{bc} + \sigma _{ab} \nabla ^{b}{\dot{u}}^{a} + u^{a} \sigma ^{bc} \nabla _{c}\sigma _{ab}\). Since the latter represents a non-linear contribution in \(\nabla _a u_b\) that cannot be cancelled by any other term, it is immediate to see that \(G_{5X}\) must vanish. Then, one can set \(G_5=0\) because \(G_5(\phi )\) can be absorbed, upon integration by parts, in the other functions \(G_2, G_3\), and \(G_4\) according to

$$\begin{aligned} G_{2} \rightarrow G_{2}-2X^2G_{5\phi \phi \phi } ,\,\quad G_{3} \rightarrow G_{3} -3XG_{5\phi \phi } ,\,\quad G_4 \rightarrow G_{4}-XG_{5\phi } . \end{aligned}$$
(52)

The result is the Lagrangian density

$$\begin{aligned} \mathcal{L}_{5}= & {} G_5G_{ab}\nabla ^{a}\nabla ^{b}\phi \simeq -G_{5\phi }G_{ab}\nabla ^{a}\phi \nabla ^{b}\phi -G_{5\phi }R_{ab}\nabla ^{a}\phi \nabla ^{b}\phi -XG_{5\phi }R \nonumber \\= & {} G_{5\phi }(\nabla _{a} \Box \phi -\nabla _{b}\nabla _{a}\nabla ^{b}\phi ) \nabla ^{a}\phi -XG_{5\phi }R \nonumber \\\simeq & {} - G_{5\phi \phi }(-2X\Box \phi -\nabla _{a}\nabla _{b}\phi \nabla ^{a}\phi \nabla ^{b}\phi ) -G_{5\phi } \left[ \Box \phi ^2-(\nabla _{a} \nabla _{b}\phi )^2\right] -XG_{5\phi }R \nonumber \\\simeq & {} 3X\,G_{5\phi \phi }\,\Box \phi -2X^2G_{5\phi \phi \phi } -G_{5\phi } \left[ \Box \phi ^2-(\nabla _{a} \nabla _{b}\phi )^2\right] -XG_{5\phi }R, \end{aligned}$$
(53)

where \(\simeq \) denotes equality up to a total divergence. The effective energy density then becomes

$$\begin{aligned} \rho&= \frac{2 X \Theta ^2 \left( G_{4X} + 2 X G_{4XX} \right) }{3 \left( G_{4} -2 X G_{4X} \right) } - \frac{2 X \sigma ^{2}{} \left( G_{4X} + 2 X G_{4XX} \right) }{G_{4} -2 X G_{4X} }\nonumber \\&\quad + \frac{\sqrt{2X} \, \Theta \left( - X G_{3X} + G_{4\phi } + 2 X G_{4\phi X} \right) }{G_{4} -2 X G_{4X}}- \frac{G_{2} -2 X G_{2X} + 2 X G_{3\phi }}{2 G_{4} -4 X G_{4X}} \end{aligned}$$
(54)

where, in order to suppress the quadratic terms in \(\nabla _{a}u_b\) in the first line, it is necessary that

$$\begin{aligned} G_{4X}+2X G_{4XX}=0 , \end{aligned}$$
(55)

which implies that

$$\begin{aligned} G_4 \left( \phi , X \right) =G_{0} \left( \phi \right) + G_{1} \left( \phi \right) \sqrt{2X}. \end{aligned}$$
(56)

Using now Eq. (21), the perfect fluid contribution to the effective isotropic pressure becomes

$$\begin{aligned} {\bar{P}}&= - \frac{2 X \Theta ^2 G_{4X}}{9 \left( G_{4} -2 X G_{4X} \right) } + \frac{2 X \sigma ^{2}{} G_{4X}}{3 \left( G_{4} -2 X G_{4X} \right) } - \frac{4 {\dot{u}}^{2}{} X \left( G_{4X} + 2 X G_{4XX} \right) }{3 \left( G_{4} -2 X G_{4X} \right) }\nonumber \\&\quad + \frac{{\dot{X}} \left( - X G_{3X} + G_{4\phi } + 2 X G_{4\phi X} \right) }{ \sqrt{2X} \left( - G_{4} + 2 X G_{4X}\right) }\nonumber \\&\quad + \Theta \left[ \zeta - \frac{2 {\dot{X}} \left( G_{4X} + 2 X G_{4XX} \right) }{3 \left( G_{4} -2 X G_{4X} \right) } + \frac{2 \sqrt{2X} \left( - G_{4\phi } + 2 X G_{4\phi X} \right) }{3 \left( G_{4} -2 X G_{4X} \right) }\right] \nonumber \\&\quad + \rho \, \frac{2 X G_{4X}}{3 \left( G_{4} -2 X G_{4X} \right) }+ \frac{G_{2} -2 X G_{3\phi } + 4 X G_{4\phi \phi }}{2 G_{4} -4 X G_{4X}} \end{aligned}$$
(57)

that, together with Eq. (55), requires \(G_{4X}\left( \phi , X \right) =0\) to eliminate the quadratic terms in the first line. This is necessary because, even if we assume \({\dot{X}}\) quadratic in \(\nabla _{a}u_{b}\) to cancel the quadratic terms, \(\Theta {\dot{X}}\) in the second line reintroduces a cubic term. The theory then reduces to viable Horndeski, and the previous discussion remains valid.

2.2 Horndeski gravity with matter

Finally, let us include matter in this picture. The Newtonian behavior of the effective fluid requires again Eqs. (36) and (41), with the only difference that the inviscid pressure (43) acquires the additional contribution

$$\begin{aligned} {\bar{P}}\rightarrow {\bar{P}} - \frac{G_{4\phi }^2 \, T^\mathrm {(m)} }{G_{4} \left[ 3 G_{4\phi }^2 + G_{4} \left( G_{2X} + 2 X G_{2XX} \right) \right] }\,, \end{aligned}$$
(58)

proportional to the trace of the matter energy-momentum tensor \(T^\mathrm {(m)}=g^{ab}T^\mathrm {(m)}_{ab}\). The reason is that the presence of matter changes the field equations for \(g_{ab}\) to

$$\begin{aligned} R_{ab}&=\,T_{ab}-\frac{T}{2} \,g_{ab}+\frac{1}{G_4}\left( T^\mathrm {(m)}_{ab}-\frac{T^\mathrm {(m)}}{2} \,g_{ab}\right) \,, \end{aligned}$$
(59)
$$\begin{aligned} R&=\,-T-\frac{T^\mathrm {(m)}}{G_{4}}\,, \end{aligned}$$
(60)

turning the function \(A(\phi ,X)\) of Eq. (23) into

$$\begin{aligned} A\rightarrow A&+ \sqrt{2X}\,G_{4\phi }\,T^\mathrm {(m)}- \sqrt{2X}\left( T^\mathrm {(m)}+2T^\mathrm {(m)}_{ab}u^{a}u^{b}\right) X\,G_{3X}\,. \end{aligned}$$
(61)

3 Analogy with first-order general-relativistic viscous fluids

Before proceeding, let us recall the basic description of real dissipative fluids that will be applied to the Horndeski effective fluid later in this section. Dissipative fluids are out-of-equilibrium systems. The most general stress-energy tensor describing an out-of-equilibrium system has the form  [26,27,28]

$$\begin{aligned} T^{ab}= \left( \varepsilon +{\mathcal {A}} \right) \,u^{a}u^{b}+ \left( p +{\mathcal {B}} \right) \,h^{ab}+2q^{(a}u^{b)}+\pi ^{ab}\,, \end{aligned}$$
(62)

where \({\mathcal {A}}\) and \({\mathcal {B}}\) represent the out-of-equilibrium corrections to \(\varepsilon \) and p, which are the equilibrium energy density and pressure, respectively. \({\mathcal {A}}\) and \({\mathcal {B}}\) vanish at equilibrium. In the first-order formulation of viscous fluids  [27, 29, 30], all the quantities in Eq. (62) depend on the fluid 4-velocity \(u^{a}\), the temperature \(\mathcal{T}\), and the chemical potential \(\mu \). In particular, the deviations from equilibrium are parametrized by the gradients of \(u^{a}\), \(\mathcal{T}\), and \(\mu \). Here we work in the Eckart (or particle) frame. In the effective fluid description, we decompose the spacetime according to the effective fluid 4-velocity, therefore the fluid motion is described using the fluid’s proper time. If we consider vanishing chemical potential \(\mu =0\), we can parametrize the out-of-equilibrium quantities as

$$\begin{aligned} {\mathcal {A}}&=\chi _1\dfrac{u^{a}\nabla _{a}\mathcal{T}}{\mathcal{T}}+\chi _2\,\Theta \,, \end{aligned}$$
(63)
$$\begin{aligned} {\mathcal {B}}&=\chi _3\dfrac{u^{a}\nabla _{a}\mathcal{T}}{\mathcal{T}}+\chi _4\,\Theta \,, \end{aligned}$$
(64)
$$\begin{aligned} q^{a}&=\lambda \left( \dfrac{h^{ab}\nabla _{b}\mathcal{T}}{\mathcal{T}}+{\dot{u}}^{a}\right) \,, \end{aligned}$$
(65)
$$\begin{aligned} \pi ^{ab}&=-2\eta \,\sigma ^{ab}\,, \end{aligned}$$
(66)

where the transport coefficients \(\chi _i\), \(\lambda \), and \(\eta \) depend on the temperature \(\mathcal{T}\). Since the chemical potential vanishes identically, the equilibrium energy density and pressure depend only on the temperature, \(\varepsilon =\varepsilon (\mathcal{T})\) and \(p=p(\mathcal{T})\). We parametrize \(\lambda \) as \(\lambda =-\mathcal{K}\,\mathcal{T}\), where \(\mathcal{K}=\mathcal{K}(\mathcal{T})\) is the thermal conductivity  [15, 19, 22] of the effective fluid.

The second law of thermodynamics then yields  [31]

$$\begin{aligned} \frac{dp}{d\mathcal{T}}=\dfrac{\varepsilon +p}{\mathcal{T}}\,, \end{aligned}$$
(67)

which can also be written as

$$\begin{aligned} \varepsilon (\mathcal{T})=-p(\mathcal{T})+\mathcal{T}\,p'(\mathcal{T})\,, \end{aligned}$$
(68)

where a prime denotes differentiation with respect to the temperature (see Appendix A).

Let us apply now the thermodynamical fluid description to the Horndeski effective fluids classes (36) and (41) in the framework of first-order general-relativistic viscous fluids. This procedure allows one to discuss the “temperature of gravity” and its transport coefficients. Before discussing the individual Horndeski classes, let us make some considerations valid in both cases.

In general, \(\mathcal{T}=\mathcal{T}(\phi ,X)\) and

$$\begin{aligned} \nabla _{a}\mathcal{T}=\left( \sqrt{2X}\,\mathcal{T}_{\phi }-\mathcal{T}_X\,{\dot{X}}\right) u_{a}-2X\,\mathcal{T}_X \,{\dot{u}} _{a}\,, \end{aligned}$$
(69)

therefore Eqs. (63)–(65) turn into

$$\begin{aligned} {\mathcal {A}}&=\chi _1 \, \dfrac{-\sqrt{2X}\,\mathcal{T}_{\phi }+\mathcal{T}_{X}\,{\dot{X}}}{\mathcal{T}}+\chi _2\,\Theta \,, \end{aligned}$$
(70)
$$\begin{aligned} {\mathcal {B}}&=\chi _3 \, \dfrac{-\sqrt{2X}\,\mathcal{T}_{\phi }+\mathcal{T}_{X}\,{\dot{X}}}{T}+\chi _4\,\Theta \,, \end{aligned}$$
(71)
$$\begin{aligned} q^{a}&=\lambda \left( -2X \, \frac{\mathcal{T}_{X}}{\mathcal{T}} +1\right) {\dot{u}}^{a}\,. \end{aligned}$$
(72)

In both classes we have

$$\begin{aligned} \eta =-\frac{\sqrt{2X}}{2}\frac{G_{4\phi }}{G_4}\,, \end{aligned}$$
(73)

and the shear viscosity \(\eta (\mathcal{T})\) depends on the temperature. Its derivative with respect to X is

$$\begin{aligned} \eta '(\mathcal{T}) \, \mathcal{T}_X=-\frac{1}{2\sqrt{2X}} \, \frac{G_{4\phi }}{G_4} , \end{aligned}$$
(74)

implying that \(T_X\) is always non-vanishing unless \(G_{4\phi } = 0\). We rewrite this equation as

$$\begin{aligned} 2X\,\mathcal{T}_X=\frac{\eta (\mathcal{T})}{\eta '(\mathcal{T})}\,, \end{aligned}$$
(75)

where \(2X\,\mathcal{T}_X\) still depends on the temperature. Equation (67) implies

$$\begin{aligned} p_{\phi }=\frac{\mathcal{T}_{\phi }}{\mathcal{T}}\left( \varepsilon +p \right) \,,\qquad p_{X}=\frac{\mathcal{T}_{X}}{\mathcal{T}}\left( \varepsilon +p \right) \,. \end{aligned}$$
(76)

If \(p=-\varepsilon \) identically, the above relations imply constant equilibrium pressure and energy density, \(p=-\varepsilon =-\Lambda \).

In both cases, we note a further constraint on the linear Horndeski classes: the functional form of \(G_2\) is determined up to an unknown function of \(F=F(\sqrt{2X}\,\tfrac{G_{4\phi }}{G_{4}})\) (see Eqs. (84) and (107)). While in the first class we obtain \(\mathcal{T}=\alpha \,\sqrt{2X}\,\tfrac{G_{4\phi }}{G_{4}}\) and then \(F=F\left( \mathcal{T}\right) \equiv p(\mathcal{T})\) (the equilibrium pressure), in the second one we can parameterize the dependence of F using the shear viscosity in Eq. (73), with the result that \(F(\mathcal{T})=p(\mathcal{T})-4\eta ^2(\mathcal{T})\).

3.1 Class I: \(G_3=G_{4\phi }\ln {X}\)

Comparing Eqs. (66), (70)–(72) with the quantities associated to the class (36), one obtains

$$\begin{aligned} \chi _1&=\chi _2=\chi _3=0\,,\qquad 3\chi _{4}=4\eta \,, \end{aligned}$$
(77)
$$\begin{aligned} \chi _4&=-\frac{2}{3}\,\sqrt{2X}\,\frac{G_{4\phi }}{G_4}\,, \qquad \eta =-\frac{1}{2}\,\sqrt{2X}\,\frac{G_{4\phi }}{G_4}\,, \end{aligned}$$
(78)
$$\begin{aligned} \varepsilon&=\frac{1}{2G_4}, (2XG_{2X}-G_{2}-2X G_{4\phi \phi } \ln {X})\,, \end{aligned}$$
(79)
$$\begin{aligned} p&=\frac{1}{2G_4}\left[ G_2+2XG_{4\phi \phi } \left( 2-\ln {X}\right) \right] \,, \end{aligned}$$
(80)

and

$$\begin{aligned} \lambda \left( -2X \, \frac{\mathcal{T}_{X}}{\mathcal{T}} +1\right) =0\,. \end{aligned}$$
(81)

This equation is satisfied when the bracket is equal to zero or when \(\lambda \equiv \mathcal{K}\mathcal{T} =0\). In the first case, the solution of the differential equation is

$$\begin{aligned} \mathcal{T}(\phi ,X)=\sqrt{2X}\,C(\phi ) \end{aligned}$$
(82)

and, we can find the integrating function \(C(\phi )\) by imposing \(\eta =\eta (\mathcal{T})\),

$$\begin{aligned} \mathcal{T}(\phi ,X)=\alpha \,\sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\,, \end{aligned}$$
(83)

where \(\alpha \) is a constant.Footnote 3 Then the Horndeski function \(G_{2}\) has the form

$$\begin{aligned} G_2 \left( \phi , X \right) = 2G_4 \,F\left( \sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\right) -2X\,G_{4\phi \phi }(2-\ln {X})\,, \end{aligned}$$
(84)

where \(F=F(\mathcal{T})\equiv p(\mathcal{T})\). The equilibrium energy density \(\varepsilon (\mathcal{T})\) is automatically given by Eq. (68).

The situation \(G_{4\phi }=0\) corresponds to \(\mathcal{T}=0\) and \(p(0)=-\varepsilon (0)=-\Lambda \). The Horndeski Lagrangian density collapses into \(R-2\Lambda \), where \(\Lambda \) is the cosmological constant.

In particular, a linear relation between pressure and temperature

$$\begin{aligned} p(\mathcal{T})&=-\gamma +\beta \,\mathcal{T}=-\gamma +\alpha \,\beta \,\sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\,, \end{aligned}$$
(85)

identifies the extended cuscuton model with \(f_1=-2\gamma \,G_{4}\), \(f_2=2\,\alpha \,\beta \,G_{4\phi }\), and \(f_3=0\) (following the notation of Ref.  [24]), where \(\alpha \), \(\beta \), and \(\gamma \) are constants. The energy density turns into

$$\begin{aligned} \varepsilon (\mathcal{T})&=\gamma +\beta \,\mathcal{T}=\gamma +\alpha \,\beta \,\sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\,. \end{aligned}$$
(86)

Assuming a linear barotropic equation of state \(p=w\,\varepsilon \), where w is the constant equation of state parameter, we obtain the energy density

$$\begin{aligned} \varepsilon (\mathcal{T})=\gamma \,\mathcal{T}^{\frac{w+1}{w}} \end{aligned}$$
(87)

and

$$\begin{aligned} G_2 = 2w\,\gamma \,G_4\left( \alpha \sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\right) ^{\frac{w+1}{w}}-2X\,G_{4\phi \phi }(2-\ln {X}). \end{aligned}$$
(88)

If \((\mathcal{T}-2X\,\mathcal{T}_{X})\ne 0\), Eq. (81) is satisfied only for \(\lambda =0\). This is compatible only with constant pressure and energy density, \(p=-\varepsilon =-\Lambda \), which corresponds to the form of \(G_2\)

$$\begin{aligned} G_2 (\phi , X) = -2\Lambda \,G_4-2X\,G_{4\phi \phi }(2-\ln {X})\,. \end{aligned}$$
(89)

The Horndeski Lagrangian coincides with a particular extended cuscuton model given by \(f_1=-2\Lambda \,G_{4}\,\), \(f_2=0\), and \(f_3=0\) (see again the notation of  [24]). Therefore, we have a non-dynamical imperfect fluid that mimics the cosmological constant and whose inviscid/equilibrium contributions satisfy the familiar linear barotropic equation \(p=-\varepsilon \).

3.2 Class II: \(G_3=0\)

For the second class, we obtain the system

$$\begin{aligned} \chi _1&=0\,,\qquad \chi _2\chi _3+\chi _3\lambda +\chi _2\lambda =0\,,\qquad 3\chi _{4}=4\eta \,, \end{aligned}$$
(90)
$$\begin{aligned} \chi _2&=\sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\,,\qquad \chi _4=-\frac{2}{3}\sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\,, \end{aligned}$$
(91)
$$\begin{aligned} \chi _3&=-\frac{1}{\sqrt{2X}}\,\frac{G_{4\phi }}{G_{4}}\,\frac{\mathcal{T}}{\mathcal{T}_{X}}\,, \end{aligned}$$
(92)
$$\begin{aligned} \lambda&=-\sqrt{2X}\,\frac{G_{4\phi }}{G_{4}}\,\frac{\mathcal{T}}{\mathcal{T}-2X\,\mathcal{T}_{X}}\,, \end{aligned}$$
(93)
$$\begin{aligned} \eta&=-\frac{1}{2}\,\sqrt{2X}\,\frac{G_{4\phi }}{G_4}\,, \end{aligned}$$
(94)
$$\begin{aligned} \varepsilon&=\frac{2X\,G_{2X}-G_{2}}{2G_{4}}\,, \end{aligned}$$
(95)
$$\begin{aligned} p&=\frac{G_{2}+4X\,G_{4\phi \phi }}{2G_{4}}-\frac{G_{4\phi }}{G_{4}}\frac{\mathcal{T}_{\phi }}{T_{X}}\,. \end{aligned}$$
(96)

In this case Eq. (83) cannot be a solution for the temperature, i.e., \(\mathcal{T}\) cannot be proportional to \(\eta \), otherwise we would have \(\mathcal{T}-2X\,\mathcal{T}_X=0\) and vanishing heat flux.

Using Eq. (94), we write the partial derivatives of \(\mathcal{T}\) in terms of \(\eta (\mathcal{T})\),

$$\begin{aligned} \mathcal{T}_X&=\frac{1}{2X}\frac{\eta (\mathcal{T})}{\eta '(\mathcal{T})}\,, \end{aligned}$$
(97)
$$\begin{aligned} \mathcal{T}_\phi&=\frac{2}{\sqrt{2X}}\frac{\eta ^2(\mathcal{T})}{\eta '(\mathcal{T})}-\frac{1}{2}\frac{\sqrt{2X}}{\eta '(\mathcal{T})}\frac{G_{4\phi \phi }}{G_4}\,, \end{aligned}$$
(98)

which yields

$$\begin{aligned} \frac{\mathcal{T}_\phi }{\mathcal{T}_X}=-2X\,\frac{G_{4\phi }}{G_4}+2X\,\frac{G_{4\phi \phi }}{G_{4\phi }}\,. \end{aligned}$$
(99)

Then the pressure reads

$$\begin{aligned} p=\frac{G_{2}}{2G_{4}}+2X\,\frac{G_{4\phi }^2}{G_{4}^2}\,, \end{aligned}$$
(100)

or

$$\begin{aligned} G_2&=2G_4\,p(\mathcal{T})-2X\,\frac{G_{4\phi }^2}{G_{4}}=2G_4\left[ \,p(\mathcal{T})-4\eta ^2(\mathcal{T})\right] \,. \end{aligned}$$
(101)

Substituting this expression of \(G_2\) in the equilibrium energy density (95), one finds

$$\begin{aligned} \varepsilon (\mathcal{T})&=-p(\mathcal{T})+2X\,\mathcal{T}_X\,p'(\mathcal{T})-2X\frac{G_{4\phi }^2}{G_{4}^2}\nonumber \\&=-p(\mathcal{T})+2X\,\mathcal{T}_X\,p'(\mathcal{T})-4\eta ^2(\mathcal{T})\,. \end{aligned}$$
(102)

We can rewrite \(\varepsilon +p\) in the above equation using Eq. (67) to obtain

$$\begin{aligned} (\mathcal{T}-2X\,\mathcal{T}_X)\,p'=-4\eta ^2 \end{aligned}$$
(103)

while, substituting \(p'=(\varepsilon +p)/\mathcal{T}\) and Eqs. (95) and (100) in Eq. (102) yields the temperature

$$\begin{aligned} \mathcal{T}=C(\phi )\,\exp {\left[ \int ^{X}_{1}\frac{4G_{4\phi }^2+G_4\,G_{2Z}}{2Z\left( 2G_{4\phi }^2+G_4\,G_{2Z}\right) }\,dZ\right] }\,, \end{aligned}$$
(104)

where \(C(\phi )\) is a generic integration function of the scalar fieldFootnote 4 and the integration is performed with respect to Z, an auxiliary variable of the kinetic scalar. Finally, the correspondence \(\lambda =-\mathcal{K}\mathcal{T}\) gives

$$\begin{aligned} (\mathcal{T}-2X\,\mathcal{T}_X)\,\mathcal{K}=-2\eta \,,\quad \textrm{and}\quad p'=2\eta \,\mathcal{K}\,. \end{aligned}$$
(105)

The relations (76) and (99) yield

$$\begin{aligned} \frac{p_\phi }{p_X}=\frac{\mathcal{T}_\phi }{\mathcal{T}_X} \,, \end{aligned}$$
(106)

providing the system

$$\begin{aligned} G_2&=2G_4\,F(\eta )\,, \end{aligned}$$
(107)
$$\begin{aligned} p(\eta )&=F(\eta )+4\,\eta ^2\,, \end{aligned}$$
(108)
$$\begin{aligned} \varepsilon (\eta )&=-F(\eta )+\eta \,\frac{dF(\eta )}{d\eta }\,, \end{aligned}$$
(109)

where, to avoid non-dynamical scalar fields, one must have \(F(\eta )\ne \alpha +\beta \,\eta -3\eta ^2\) with \(\alpha \) and \(\beta \) constant (see Eq. (49)).

Imposing Eq. (67) on \(\varepsilon (\eta )\) and on \(p(\eta )\) is equivalent to

$$\begin{aligned} 4\eta ^2+\eta \frac{dF}{d\eta }=\mathcal{T}\left( 8\eta +\frac{dF}{d\eta }\right) \eta ' \,, \end{aligned}$$
(110)

which is rewritten as

$$\begin{aligned} 4\eta ^2+\eta \,\frac{d\mathcal{T}}{d\eta }\,Q'=\mathcal{T}\left( 8\eta +\frac{d\mathcal{T}}{d\eta }\,Q'\right) \eta ' \end{aligned}$$
(111)

where \(Q(\mathcal{T})=F(\eta ( \mathcal{T}))\). If \(\eta \) is a monotonic function of the temperature, Eq. (111) turns into

$$\begin{aligned} 4\eta ^2+\frac{\eta }{\eta '} \, Q'=\mathcal{T}\left( 8\eta \,\eta '+Q'\right) . \end{aligned}$$
(112)

If we consider a linear barotropic equation of state \(p=w\,\varepsilon \), Eq. (68) gives

$$\begin{aligned} \varepsilon&=\gamma \,T^{\frac{w+1}{w}}\,, \end{aligned}$$
(113)

where the effective temperature is positive defined and \(\gamma >0\) and w are constant, while Eqs. (108) and (109) yield the differential equation

$$\begin{aligned} F(\eta )+4 \eta ^2=w \left( \eta \,\frac{dF(\eta )}{d\eta }-F(\eta )\right) \,. \end{aligned}$$
(114)

In terrms of the new variable \(x=\eta ^2\), this equation reads

$$\begin{aligned} 2wx\,\frac{dF(x)}{dx}-(1+w)F(x)-4x=0, \end{aligned}$$
(115)

which is recognized as an Euler–Cauchy differential equation with solutions

$$\begin{aligned} F_1(x)&=\frac{4 x}{w-1}+c_1\, x^{\frac{w+1}{2 w}}\,,&w\ne 1\,, \end{aligned}$$
(116)
$$\begin{aligned} F_2(x)&=2 x \log (x)+c_2\, x\,,&w=1\,, \end{aligned}$$
(117)

where \(c_{1,2}\) are integration constants. In correspondence of \(F_{1,2}\) we have the following expressions for the temperature

$$\begin{aligned} T_1&= \gamma ^{-\frac{w}{w+1}}\left( \frac{4 x}{w-1}+c_1\,\frac{x^{\frac{w+1}{2 w}}}{w}\right) ^{\frac{w}{w+1}}\,, \end{aligned}$$
(118)
$$\begin{aligned} T_2&= \left[ \gamma ^{-1}\,x\,(4+c_2+2 \ln {x})\right] ^{1/2}\,, \end{aligned}$$
(119)

respectively. Let us consider now the power-law form

$$\begin{aligned} \mathcal{T}= \left( \alpha \, \eta \right) ^\beta \,, \end{aligned}$$
(120)

where \(\alpha <0\) and \(\beta \ne 0,1,\) are constant.Footnote 5 Equation (110) then yields

$$\begin{aligned} F(x)&=c_1-\frac{2 (\beta -2) x}{\beta -1}\,, \end{aligned}$$
(121)

where \(c_1\) is an integration constant, and \(x=\eta ^2\). The equilibrium energy density and pressure become, respectively,

$$\begin{aligned} \varepsilon&=-c_1-\frac{2 (\beta -2)}{\beta -1}\,x\,, \end{aligned}$$
(122)
$$\begin{aligned} p&=c_1+\frac{2 \beta }{\beta -1}\,x\,. \end{aligned}$$
(123)

From the above expressions, for \(\varepsilon \) to be positive, it must be \(c_1\le 0\) and \(\beta <1 \) or \( \beta \ge 2\).

Our last example consists of the linear relation

$$\begin{aligned} \mathcal{T}=\alpha \,\eta +\beta \,, \end{aligned}$$
(124)

which implies

$$\begin{aligned} F(\eta )&=-\frac{4 \alpha }{3 \beta }\,\eta ^3-4 \eta ^2+c_1\,, \end{aligned}$$
(125)
$$\begin{aligned} p(\eta )&=-\frac{4 \alpha \eta ^3}{3 \beta }+c_1\,, \end{aligned}$$
(126)
$$\begin{aligned} \varepsilon (\eta )&=-\frac{8 \alpha \eta ^3}{3 \beta }-4 \eta ^2-c_1\,, \end{aligned}$$
(127)

where \(c_1\) is constant. In this case, \(\mathcal{T}\) and \(G_{2}\) become constant as \(\eta \rightarrow 0\) and the energy density is positive-definite for \( c_1<0\).

Table 1 Overview of viable Horndeski effective fluids
Table 2 Analogy between linear Horndeski effective fluids and first-order viscous fluids

4 Conclusion

It is hard to overemphasize the importance of Horndeski gravity in the current research on gravitational theory. However, due to their complexity, physical insight in this class of theories still lags behind formal developments, and the effective fluid approach offers a new physical view. We provide a physical interpretation of the Horndeski effective fluid as a relativistic non-Newtonian fluid. The linearity of the effective fluid stress-energy tensor in the 4-velocity gradient selects two disconnected classes of viable Horndeski, which guarantees that gravitational waves propagate at the speed of light (see Table 1). In any other Horndeski theory, it is impossible to recast the energy-momentum tensor in the form (10) with viscosity coefficients linear in \(\nabla _{a}u_{b}\) as in the usual constitutive equations. The interpretation of such theories is that their effective fluid equivalent is an exotic non-Newtonian fluid. This physical characterization of Horndeski theories of gravity based on the associated effective fluid has escaped attention thus far. Moreover, other alternative theories of gravity may admit a similar classification. This correspondence opens up a new research direction, which consists of looking for specific Horndeski theories that implement particular non-Newtonian rheologies of real fluids in their associated effective fluid. In conjunction with observations, such a search could potentially restrict the wide spectrum of Horndeski theories.

In general, the analogy between fluids and gravity can represent a pragmatic tool to understand current theoretical and observational problems. Finally, interest in the classes corresponding to Newtonian fluids is motivated by the possibility of representing the limit of a more complete theory for small 4-velocity gradients, similar to the way that classical theories are low-energy limits of effective field theories. In particular, in the context of late-time cosmology where the scalar field can be thought of as a low-energy field, this interpretation offers an additional tool for discriminating classes of Horndeski gravity. We have applied our result to first-order viscous fluids and discussed their thermodynamics, which provides a further constraint on the linear Horndeski classes (see Table 2). In our analysis, theories in which the extra scalar degree of freedom (in addition to the usual two spin-2 modes of GR) does not propagate still occupy a special place in the classification of Horndeski theories based on the Newtonian versus non-Newtonian character of the effective equivalent fluid. In this light, they perhaps deserve reconsideration.