1 Introduction

One of the most famous cosmological solutions of General Relativity in vacuum is that of the anisotropic Kasner universe [1]. The latter solution describes the anisotropic evolution of the spacetime in a Bianchi background spacetime which is invariant under a three-dimensional Abelian translation group, the spacetime is known as Bianchi I space [2]. Kasner spacetimes are described by three parameters \(p_{1},~p_{2},~p_{3}\), the indices of the three power-law scale factors, which satisfy the so-called Kasner algebraic relations. Specifically, the Kasner indices take the values of the common points of a three-dimensional unitary sphere, \(p_{1}^{2}+p_{2}^{2}+p_{3} ^{2}=1\), and of a plane with the sum of the Kasner parameters to be one; that is, \(p_{1}+p_{2}+p_{3}=1~\) [1]. Because of the two Kasner algebraic relations, the Kasner universes are one-parameter family of exact solutions. In the case of the Mixmaster universe, the Kasner solution describes the dynamics and the evolution of the field equations when the effects of the Ricci scalar of the three-dimensional spatial hypersurface are negligible, as we reach the initial singularity. Indeed, the Kasner power-law solutions can approximate the general Bianchi models at intermediate stages of their evolutions and at early and late-time asymptotes [3].

Furthermore, there are also many cosmological applications in the literature of the Kasner universes, these applications cover various areas of cosmological studies such is the particle creation, baryosynthesis and many others [4,5,6,7,8,9,10,11,12,13,14]. Because of the importance of the Kasner solution, there are various studies on the generalization. Kasner-like exact solutions have been investigated in details in literature for higher dimensional theories of gravity and for alternative modified theories of gravity. Kasner-like solutions have the property to admit additional Kasner parameters, with Kasner-like relations similar to that of General Relativity [15,16,17,18,19,20,21,22].

A family of modified theories of gravity which have drawn the attention of cosmologists are these which are based on the modification of the teleparallel theory of gravity. Although General Relativity is based on the use of the torsion-less Levi-Civita connection, in teleparallel gravitational theory the curvature-less Weitzenböck connection is used, while the invariant which is used for the definition of the gravitational Action Integral is that of the torsion scalar T. A natural extension of teleparallel theories of gravity is to define as gravitational Lagrangian a function f of the torsion scalar T, or of other invariants defined by T, see for instance [23,24,25,26,27,28,29,30]. In this work we are interested in the higher-order teleparallel theory of gravity known as \(f\left( T,B\right)\) theory where B is the boundary term related to the Ricciscalar as \(T=R-B~\) [30]. \(f\left( T\right)\) theory of gravity is a second-order theory because T includes only first-order derivatives for the vierbein fields [23]. However, because B includes second-order derivatives of the vierbein fields, \(f\left( T,B\right)\) theory is a fourth-order theory of gravity. A special case for the function \(f\left( T,B\right)\) is the \(f\left( T,B\right) =T+F\left( B\right)\). In this case it was found that in cosmological studies the field equations can be derived by a point-like Lagrangian with the same dynamical degrees of freedom as the scalar tensor theories. Indeed, by using a Lagrange multiplier the higher-order derivatives can be attributed to a scalar field [31,32,33]. Recently, by using this property for the \(f\left( T,B\right)\) theory the quantization of the field equations and the exact solutions of the Wheeler-DeWitt equations were investigated in [34].

In this study we investigate the existence of Kasner and Kasner-like solutions if \(f\left( T,B\right)\) theory. It is preferable in alternative theories of gravity the limit of General Relativity to be recovered. In the case of \(f\left( T\right)\) gravity, Kasner and Kasner-like solutions were found for the first time in [35] while the stability of these solutions was the subject of study in [36, 37]. We extend the previous results in the modified teleparallel theory and we study the limit of General Relativity in \(f\left( T,B\right) =T+F\left( B\right)\) theory in a vacuum Bianchi I background space while we investigate the stability of the Kasner and Kasner-like solutions. In addition we study the existence of anisotropic exponential solutions. The plan of the paper is as follows.

In Sect. 2, we define the cosmological model of our study which is that of \(f\left( T,B\right)\) theory. We focus on the special case of \(f\left( T,B\right) =T+F\left( B\right)\) theory and we present the gravitational field equations in the case of Bianchi I background space. In Sect. 3 we investigate the limit of General Relativity, and specifically we search for the conditions where Kasner and Kasner-like solutions exist. Moreover, the limit of anisotropic Bianchi I solution with cosmological constant term is also studied. The stability properties of the Kasner solutions are investigated in Sect. 4. Finally, in Sect. 5, we summarize our results and present the algebraic constraint in which for general \(f\left( T,B\right)\) theory the Kasner solution is recovered.

2 \(f\left( T,B\right)\) theory

The fundamental geometric objects of teleparallelism are the vierbein fields \(e_{\mu }(x^{\sigma })\) [?]. The vierbein fields form an orthonormal basis for the tangent space at each point P such that \(g(e_{\mu },e_{\nu })=e_{\mu }\cdot e_{\nu }=\eta _{\mu \nu }\), where \(\eta _{\mu \nu }~\) is the line element of the Minkowski spacetime, \(\eta _{\mu \nu }=\text {diag}\left( -,+,+,+\right)\). The commutator relations for the vierbein fields are \(\ [e_{\mu },e_{\nu }]=c_{\nu \mu }^{\beta }e_{\beta }~\) where \(c_{\left( \nu \mu \right) }^{\beta }=0.\)

Consider now the in the nonholonomic coordinates the covariant derivative \(\nabla _{\mu }\) which is defined by the connection

$$\begin{aligned} \mathring{\Gamma }_{\nu \beta }^{\mu }= \left\{ {_{{\nu \beta }}^{\mu } } \right\} + \hat{\Gamma }_{{\nu \beta }}^{\mu } \end{aligned}$$
(1)

where \(\{_{\nu \beta }^{\mu }\}\) is the symmetric Levi-Civita connection of Riemannian geometry which is used in General Relativity and

$$\begin{aligned} {\hat{\Gamma }}_{\nu \beta }^{\mu }=\frac{1}{2}g^{\mu \sigma }(c_{\nu \sigma ,\beta }+c_{\sigma \beta ,\nu }-c_{\mu \beta ,\sigma }). \end{aligned}$$
(2)

is the antisymmetric component with the properties \({\hat{\Gamma }}_{\mu \nu \beta }=-{\hat{\Gamma }}_{\nu \mu \beta },~{\hat{\Gamma }}_{\mu \nu \beta }=g_{\mu \sigma } {\hat{\Gamma }}_{\nu \beta }^{\mu }.\)

When \({\textbf{e}}_{\mu }\cdot {\textbf{e}}_{\nu }=\eta _{\mu \nu }\) is the flat space, \({\hat{\Gamma }}_{\nu \beta }^{\mu }\) correspond to the Weitzenböck connection [?] from where the nonnull torsion tensor can be defined

$$\begin{aligned} T_{\mu \nu }^{\beta }=\mathring{\Gamma }_{\nu \mu }^{\beta }-\mathring{\Gamma } _{\mu \nu }^{\beta }. \end{aligned}$$
(3)

The modified higher order teleparallel \(f\left( T,B\right)\) gravitational theory is a fourth-order of theory of gravity in which the gravitational Action Integral is defined as follows [30]

$$\begin{aligned} S\equiv \frac{1}{16\pi G}\int d^{4}xe\left( f(T,B)\right) +S_{m}, \end{aligned}$$
(4)

in which \(e=\det (e_{\mu }^{i}),~{{\textbf{e}}_{i}(x^{\mu })}\) are the vierbein fields defining the dynamical variables of teleparallel gravity. T is the scalar of the torsion tensor, \(\ T={S_{\beta }}^{\mu \nu }{T^{\beta }}_{\mu \nu },\)  and \({S_{\beta }}^{\mu \nu }~\)is defined as

$$\begin{aligned} {S_{\beta }}^{\mu \nu }=\frac{1}{2}(\delta _{\beta }^{\mu }{T^{\theta \nu }}_{\theta }-\delta _{\beta }^{\nu }{T^{\theta \mu }}_{\theta }-\frac{1}{2}({T^{\mu \nu }} _{\beta }-{T^{\nu \mu }}_{\beta }-{T_{\beta }}^{\mu \nu })). \end{aligned}$$
(5)

Finally, \(B=\frac{2}{e}\partial _{\mu }\left( eT_{\rho }^{~\rho \mu }\right)\) is the boundary term which is related with the Ricciscalar as \(T=R-B\).

In the case of vacuum the gravitational field equations are [30]

$$\begin{aligned} 4\pi Ge{\mathcal {T}}_{a}^{\left( m\right) }{}^{\lambda }&=\frac{1}{2} eh_{a}^{\lambda }\left( f_{,B}\right) ^{;\mu \nu }g_{\mu \nu }-\frac{1}{2} eh_{a}^{\sigma }\left( f_{,B}\right) _{;\sigma }^{~~~;\lambda }+\frac{1}{4}e\left( Bf_{,B}-\frac{1}{4}f\right) h_{a}^{\lambda }\,+(eS_{a}{} ^{\mu \lambda })_{,\mu }f_{,T}\nonumber \\&\quad +e\left( (f_{,B})_{,\mu }+(f_{,T})_{,\mu }\right) S_{a}{}^{\mu \lambda }~-ef_{,T}T^{\sigma }{}_{\mu a}S_{\sigma }{}^{\lambda \mu }, \end{aligned}$$
(6)

where \({\mathcal {T}}_{a}^{\left( m\right) }{}^{\lambda }\) is the energy-momentum tensor of the matter source. In the following we shall consider that the spacetime is vacuum.

We observe that when \(f\left( T,B\right) =f\left( T\right) +f_{1}B\) the second-order \(f\left( T\right)\) teleparallel gravity is recovered, while when \(f\left( T,B\right) =f\left( -T+B\right)\), the fourth-order \(f\left( R\right)\)-theory is recovered. Finally, when \(f\left( T,B\right) =\alpha T+\beta B\) Eq. (6) reduce to that of Einstein’s field equations of General Relativity.

In our consideration we should define the invariant function \({\hat{B}}\), that is,

$$\begin{aligned} {\hat{B}}=B-2T, \end{aligned}$$
(7)

thus in the following we consider the Action Integral

$$\begin{aligned} S=\frac{1}{16\pi G}\int d^{4}xe\left( f(T,{\hat{B}})\right) , \end{aligned}$$
(8)

with \(f(T,{\hat{B}})=f(T,B-2T)\), while we work with the \(f(T,{\hat{B}})=T+F\left( {\hat{B}}\right)\) theory. From (6) with the change of variable to the field equations correspond to the Action Integral (8)

$$\begin{aligned} 4\pi Ge{\mathcal {T}}_{a}^{\left( m\right) }{}^{\lambda }&=\frac{1}{2} eh_{a}^{\lambda }\left( f_{,{\hat{B}}}\right) ^{;\mu \nu }g_{\mu \nu }-\frac{1}{2}eh_{a}^{\sigma }\left( f_{,{\hat{B}}}\right) _{;\sigma }^{~~~;\lambda } +\frac{1}{4}e\left( \left( {\hat{B}}+2T\right) f_{,{\hat{B}}}-\frac{1}{4}f\right) h_{a}^{\lambda }\,+(eS_{a}{}^{\mu \lambda })_{,\mu }f_{,T}\nonumber \\&\quad +e\left( (f_{,{\hat{B}}})_{,\mu }+(f_{,T})_{,\mu }\right) S_{a}{} ^{\mu \lambda }~-ef_{,T}T^{\sigma }{}_{\mu a}S_{\sigma }{}^{\lambda \mu }. \end{aligned}$$
(9)

Thus, for the \(f(T,{\hat{B}})=T+F\left( {\hat{B}}\right)\) theory the field equations read

$$\begin{aligned} 4\pi Ge{\mathcal {T}}_{a}^{\left( m\right) }{}^{\lambda }&=\frac{1}{2} eh_{a}^{\lambda }\left( F_{,{\hat{B}}}\right) ^{;\mu \nu }g_{\mu \nu }-\frac{1}{2}eh_{a}^{\sigma }\left( F_{,{\hat{B}}}\right) _{;\sigma }^{~~~;\lambda } +\frac{1}{4}e\left( \left( {\hat{B}}+2T\right) F_{,{\hat{B}}}-\frac{1}{4}\left( T+F\right) \right) h_{a}^{\lambda }\,+(eS_{a}{}^{\mu \lambda })_{,\mu }\nonumber \\&\quad +e\left( (f_{,{\hat{B}}})_{,\mu }\right) S_{a}{}^{\mu \lambda }~-eT^{\sigma }{}_{\mu a}S_{\sigma }{}^{\lambda \mu }. \end{aligned}$$
(10)

or equivalent

$$\begin{aligned} G_{a}^{\lambda }=4\pi Ge{\mathcal {T}}_{a}^{\left( m\right) }{}^{\lambda }+{\mathcal {T}}_{a}^{\left( {\hat{B}}\right) }{}^{\lambda } \end{aligned}$$

where \(G_{a}^{\lambda }\) is the Einstein tensor and

$$\begin{aligned} {\mathcal {T}}_{a}^{\left( {\hat{B}}\right) }{}^{\lambda }=\frac{1}{2} eh_{a}^{\lambda }\left( F_{,{\hat{B}}}\right) ^{;\mu \nu }g_{\mu \nu }-\frac{1}{2}eh_{a}^{\sigma }\left( F_{,{\hat{B}}}\right) _{;\sigma }^{~~~;\lambda } +\frac{1}{4}e\left( \left( {\hat{B}}+2T\right) F_{,{\hat{B}}}-\frac{1}{4}F\right) h_{a}^{\lambda }\,~+e\left( (F_{,{\hat{B}}})_{,\mu }\right) S_{a} {}^{\mu \lambda }~. \end{aligned}$$

2.1 Bianchi I spacetime

We consider the Bianchi I line element

$$\begin{aligned} ds^{2}=-dt^{2}+a^{2}\left( t\right) dx^{2}+b^{2}\left( t\right) dy^{2}+c^{2}\left( t\right) dz^{2}, \end{aligned}$$
(11)

where without loss of generality we have selected the lapse function to be a constant.

For the vierbein fields we consider the following diagonal frame \(h_{\mu } ^{i}(t)=\textrm{diag}\left( 1,a\left( t\right) ,a\left( t\right) ,a\left( t\right) \right)\), thus we calculate [33]

$$\begin{aligned} T=2\left( \frac{{\dot{a}}}{a}\frac{{\dot{b}}}{b}+\frac{{\dot{a}}}{a}\frac{{\dot{c}} }{c}+\frac{{\dot{b}}\,}{b}\frac{{\dot{c}}}{c}\right) ,~{\hat{B}}=2\left( \frac{\ddot{a}}{a}+\frac{\ddot{b}}{b}+\frac{\ddot{c}}{c}\right) \, \end{aligned}$$
(12)

where a dot mark total derivative with respect to the variable t, that is \({\dot{a}}=\frac{da}{dt}\), \({\dot{b}}=\frac{db}{dt}\) and \({\dot{c}}=\frac{dc}{dt}.\)

In \(f\left( T,{\hat{B}}\right) =T+F\left( {\hat{B}}\right)\) the Action Integral (8) reads

$$\begin{aligned} S=\frac{1}{16\pi G}\int d^{4}xe\left( T+F\left( {\hat{B}}\right) \right) . \end{aligned}$$
(13)

Moreover, we introduce the Lagrange multiplier \(\lambda\) such that

$$\begin{aligned} S=\frac{1}{16\pi G}\int d^{4}xe\left( T+F\left( {\hat{B}}\right) -\lambda \left( {\hat{B}}-2\left( \frac{\ddot{a}}{a}+\frac{\ddot{b}}{b} +\frac{\ddot{c}}{c}\right) \right) \right) . \end{aligned}$$
(14)

Variation with respect to \({\hat{B}}\) gives that \(\lambda =F_{,{\hat{B}}}\). Thus integration by parts provides the point-like Lagrangian

$$\begin{aligned} {\mathcal {L}}\left( a,{\dot{a}},b,{\dot{b}},c,{\dot{c}},\phi ,{\dot{\phi }}\right) =-2\left( a{\dot{b}}{\dot{c}}+b{\dot{a}}{\dot{c}}+c{\dot{a}}{\dot{b}}\right) +2\left( bc{\dot{a}}{\dot{\phi }}+ac{\dot{b}}{\dot{\phi }}+ab{\dot{c}}{\dot{\phi }}\right) -abcV\left( \phi \right) , \end{aligned}$$
(15)

where now the scalar field \(\phi =f_{{\hat{B}}}\left( {\hat{B}}\right)\) and \(V\left( \phi \right) ={\hat{B}}F\left( {\hat{B}}\right) _{,{\hat{B}}}-F\left( {\hat{B}}\right)\). The scalar field has been defined in a similar way with that of fourth-order \(f\left( R\right)\) gravity [38]. We observe that this theory belongs to the family of Hordenski theories [39].

The gravitational field equations are calculated

$$\begin{aligned}{} & {} 2\left( H_{1}H_{2}+H_{1}H_{3}+H_{2}H_{3}\right) +2\left( H_{1}+H_{3} +H_{3}\right) {\dot{\phi }}+V\left( \phi \right) =0~, \end{aligned}$$
(16)
$$\begin{aligned}{} & {} 2\left( {\dot{H}}_{2}+{\dot{H}}_{3}+H_{2}^{2}+H_{2}H_{3}+H_{3}^{2}\right) +2\ddot{\phi }+V\left( \phi \right) =0~, \end{aligned}$$
(17)
$$\begin{aligned}{} & {} 2\left( {\dot{H}}_{1}+{\dot{H}}_{3}+H_{1}^{2}+H_{1}H_{3}+H_{3}^{2}\right) +2\ddot{\phi }+V\left( \phi \right) =0~, \end{aligned}$$
(18)
$$\begin{aligned}{} & {} 2\left( {\dot{H}}_{1}+{\dot{H}}_{2}+H_{1}^{2}+H_{1}H_{2}+H_{2}^{2}\right) +2\ddot{\phi }+V\left( \phi \right) =0~, \end{aligned}$$
(19)

while for the field \(\phi\) the constraint equation follows

$$\begin{aligned} 2\left( {\dot{H}}_{1}+{\dot{H}}_{2}+{\dot{H}}_{3}+\left( H_{1}+H_{2}+H_{3}\right) ^{2}\right) +V\left( \phi \right) _{\phi }=0. \end{aligned}$$
(20)

where \(H_{1}=\frac{{\dot{a}}}{a},~H_{2}=\frac{{\dot{b}}}{b}\) and \(H_{3}=\frac{{\dot{c}}}{c}\).

In the following, we are interested on the investigation of the existence of anisotropic solutions for Bianchi I spacetimes of Kasner and Kasner-like solutions and that of General Relativity solution with the cosmological constant term.

3 Limit of General Relativity

In the case of vacuum from the (6), it follows that the limit of General Relativity is recovered when \(F\left( {\hat{B}}\right) =F_{1}\hat{B}+F_{0}\) ,  where \(F_{0}\) plays the role of the cosmological constant. However, this is not the unique case. Indeed, any solution of General Relativity with or without a cosmological constant is a solution of \(T+F\left( {\hat{B}}\right)\) theory for every \({\hat{B}}={\hat{B}}_{0}\). Therefore, the contribution of the \(F\left( {\hat{B}}\right)\) in the field equations is summarized by the energy-momentum tensor

$$\begin{aligned} {\mathcal {T}}_{a}^{\left( {\hat{B}}\right) }{}^{\lambda }=-\frac{{\tilde{\Lambda }} }{16\pi G}h_{a}^{\lambda }~,~{\tilde{\Lambda }}={\hat{B}}_{0}F_{,{\hat{B}}}|_{\hat{B}\rightarrow {\hat{B}}_{0}}. \end{aligned}$$
(21)

This indeed is a similar result with that found before by Barrow and Ottewill condition of \(f\left( R\right)\)-gravity [40].

Consider now the field Eqs. (16)–(20) for the Bianchi I background space. They can be written equivalently as \(G_{a}^{\lambda }={\mathcal {T}}_{a}^{\left( {\hat{B}}\right) }{}^{\lambda }~,\)where 

$$\begin{aligned} {\mathcal {T}}_{0}^{\left( {\hat{B}}\right) }{}^{0}&=-2\left( H_{1} +H_{3}+H_{3}\right) {\dot{\phi }}-V\left( \phi \right) , \end{aligned}$$
(22)
$$\begin{aligned} {\mathcal {T}}_{1}^{\left( {\hat{B}}\right) 1}&={\mathcal {T}}_{2}^{\left( {\hat{B}}\right) 2}={\mathcal {T}}_{3}^{\left( {\hat{B}}\right) 3}=2\ddot{\phi }+V\left( \phi \right) ~,~ \end{aligned}$$
(23)

3.1 Kasner universes

The Kasner solution is the vacuum solution of Bianchi I spacetime in General Relativity. The solution describes an anisotropic universe where the scale factors are \(a\left( t\right) =a_{0}t^{p_{1}}~,~b\left( t\right) =b_{0}t^{p_{2}}\) and \(c\left( t\right) =c_{0}t^{p_{3}}\). As far as the indices \(p_{i}\) are concerned, they satisfy the Kasner relations

$$\begin{aligned} p_{1}+p_{2}+p_{3}&=1, \end{aligned}$$
(24)
$$\begin{aligned} p_{1}^{2}+p_{2}^{2}+p_{3}^{2}&=1. \end{aligned}$$
(25)

The Kasner relations says that two of the indices \(p_{2},~p_{3}\) are positive (or negative) while \(p_{1}\) is negative (or positive), while the indices take values on the range \(\left| p_{i}\right| \le 1\).

We replace the Kasner solution in the field Eqs. (16 )–(20) and we find

$$\begin{aligned} 2{\dot{\phi }}+tV\left( \phi \right) =0~,~2\ddot{\phi }+V\left( \phi \right) =0 \end{aligned}$$
(26)

which means that \(\phi \left( t\right) =\phi _{0}+\phi _{1}t^{2}\) and \(V\left( \phi \right) =-2\phi _{1}\).

However, a constant potential \(V\left( \phi \right) =V_{0}\) gives that \(F\left( {\hat{B}}\right) =V_{0}+F_{1}{\hat{B}}\) which is not an acceptable solution because that is a second-order theory. However, this is not the unique solution. The problem has another special solution which is \(\phi \left( t\right) =\phi _{0}\) and \(V\left( \phi \right) =0\). The latter reads, \({\hat{B}}F_{,{\hat{B}}}-F\left( {\hat{B}}\right) =0,\) while for the Kasner solution from (12) we calculate \({\hat{B}}=0\). The following proposition follows.

Proposition 1

In \(f\left( T,{\hat{B}}\right) =T+F\left( {\hat{B}}\right)\) theory of gravity the Kasner universe is recovered for every function \(F\left( {\hat{B}}\right)\) which satisfies the condition \(F\left( {\hat{B}}\right) _{|{\hat{B}}\rightarrow 0}=0\)

Let us now investigate if there exist Kasner-like solutions with other relations for the indices. We replace \(a\left( t\right) =a_{0}t^{p_{1} }~,~b\left( t\right) =b_{0}t^{p_{2}}\) and \(c\left( t\right) =c_{0} t^{p_{3}}\) in the field equations and we find

$$\begin{aligned} t^{2}V\left( \phi \right) +2\left( p_{1}p_{2}+\left( p_{1}+p_{2}\right) p_{3}+\left( p_{1}+p_{2}+p_{3}\right) t{\dot{\phi }}\right)&=0, \end{aligned}$$
(27)
$$\begin{aligned} 2\left( p_{2}^{2}+\left( p_{2}+p_{3}\right) \left( p_{3}-1\right) \right) +t^{2}\left( V\left( \phi \right) +2\ddot{\phi }\right)&=0,\end{aligned}$$
(28)
$$\begin{aligned} 2\left( p_{1}^{2}+\left( p_{1}+p_{3}\right) \left( p_{3}-1\right) \right) +t^{2}\left( V\left( \phi \right) +2\ddot{\phi }\right)&=0,\end{aligned}$$
(29)
$$\begin{aligned} 2\left( p_{1}^{2}+\left( p_{1}+p_{2}\right) \left( p_{2}-1\right) \right) +t^{2}\left( V\left( \phi \right) +2\ddot{\phi }\right)&=0, \end{aligned}$$
(30)

Consequently, for \(1+p_{1}+p_{2}+p_{3}\ne 0\) from the first two equations we find

$$\begin{aligned}{} & {} \phi =\phi _{0}+\phi _{1}t^{1+p_{1}+p_{2}+p_{3}}+\frac{\left( p_{2}^{2} +p_{3}^{2}-p_{2}-p_{3}-p_{1}\left( p_{2}+p_{3}\right) \right) }{1+p_{1}+p_{2}+p_{3}}\ln t, \end{aligned}$$
(31)
$$\begin{aligned}{} & {} V\left( \phi \left( t\right) \right) =\frac{2\left( 1-p_{1}-p_{2} -p_{3}\right) \left( p_{2}^{2}+p_{2}p_{3}+p_{3}^{2}\right) }{\left( 1+p_{1}+p_{2}+p_{3}\right) t^{2}}-2\left( p_{1}+p_{2}+p_{3}\right) \phi _{1}t^{-1+p_{1}+p_{2}+p_{3}}. \end{aligned}$$
(32)

However, by replacing in the rest of the equations we end with the conditions

$$\begin{aligned} \left( p_{1}-p_{2}\right) \left( 1-p_{1}-p_{2}-p_{3}\right)&=0, \end{aligned}$$
(33)
$$\begin{aligned} \left( p_{1}-p_{3}\right) \left( 1-p_{1}-p_{2}-p_{3}\right)&=0, \end{aligned}$$
(34)

that is, \(p_{1}=p_{2}\) and \(p_{1}=p_{3}\) which means that the final solution is the scaling solution of an isotropic Friedmann–Lemaître–Robertson–Walker universe, or the anisotropic Kasner-like solution with the constraint \(p_{1}+p_{2}+p_{3}=1\).

However, in the anisotropic solution with \(p_{1}+p_{2}+p_{3}=1\). It follows that \(\phi \left( t\right) =\frac{1}{2}\phi _{1}t^{2}+\phi _{0},~V\left( \phi \left( t\right) \right) =-2\phi _{1}\) which as before provides that \(F\left( {\hat{B}}\right) =V_{0}+F_{1}{\hat{B}}\). The latter solution it is not accepted for this modified theory because we are interested in nonlinear functional forms of \(F\left( {\hat{B}}\right)\).

Moreover, we calculate \({\hat{B}}\left( t\right) =\frac{2\left( p_{1}\left( p_{1}-1\right) +p_{2}\left( p_{2}-1\right) +p_{3}\left( p_{3}-1\right) \right) }{t^{2}}\), which in contrary to the previous does not have the special solution at \({\hat{B}}=0\) as before. Therefore, there can be asymptotic Kasner-like solutions for the field equation for large values of t, such that \(\lim _{t\rightarrow \infty }{\hat{B}}\left( t\right) =0\) and \(\lim _{t\rightarrow \infty }F\left( {\hat{B}}\left( t\right) \right) =0~\)with \(\phi _{1}=0\). In the case of \(\phi _{1}\ne 0\) it follows that \(F_{,{\hat{B}} }=\frac{F_{0}}{{\hat{B}}}\) which gives \(F\left( {\hat{B}}\right) =F_{0}\ln {\hat{B}}\). However, in this case the potential function \(V\left( \phi \right)\) is derived \(V\left( \phi \right) =F_{0}\left( 1+\ln \phi \right) \simeq \ln t\), which does not admit the constant value as an asymptotic. Hence, necessarily it follows \(F_{0}=0\), i.e., \(\phi _{1}=0\).

3.2 Exponential solution

The Bianchi I exact solution with the cosmological constant terms is that in which the scale factors are \(a\left( t\right) =a_{0}e^{p_{1}t}~,~b\left( t\right) =b_{0}e^{p_{2}t}\) and \(c\left( t\right) =c_{0}e^{p_{3}t}\), with the relation for the indices \(p_{1}+p_{2}+p_{3}=0\). Thus, by replacing the latter scale factors in the field Eqs. (16)–(20) we end

$$\begin{aligned}{} & {} \phi \left( t\right) =\phi _{0}+\phi _{1}t-\left( p_{1}^{2}+p_{1}p_{2} +p_{2}^{2}\right) t^{2}, \\{} & {} V\left( \phi \left( t\right) \right) =2\left( p_{1}^{2}+p_{1}p_{2} +p_{2}^{2}\right) . \end{aligned}$$

As far as the boundary term \({\hat{B}}\left( t\right)\) is concerned, we calculate \({\hat{B}}\left( t\right) =2\left( p_{1}^{2}+p_{1}p_{2}+p_{2} ^{2}\right) .\) However, \(\phi \left( t\right) =F\left( {\hat{B}}\right) _{,{\hat{B}}},\) hence \(\phi \left( t\right)\) cannot be a function of t, that is,\(~\left( p_{1}^{2}+p_{1}p_{2}+p_{2}^{2}\right) =0\), or \({\hat{B}}\left( t\right) =0.\) However, the later algebraic equation does not admit any real solution which means that there is not any anisotropic exponential solution with the cosmological constant term.

In the following, we continue our analysis with the study of the stability properties for the Kasner solution.

4 Stability properties of Kasner universes

In order to study the asymptotic behavior of the field equations in the anisotropic Bianchi I background space as also to investigate the stability conditions for the Kasner solutions, we prefer to work with the Misner variables where the line element (11) is written as follows [2],

$$\begin{aligned} ds^{2}=-dt^{2}+\alpha ^{2}\left( t\right) \left( e^{-2\beta _{+}\left( t\right) }dx^{2}+e^{\beta _{+}\left( t\right) +\sqrt{3}\beta _{-}\left( t\right) }dy^{2}+e^{\beta _{+}\left( t\right) -\sqrt{3}\beta _{-}\left( t\right) }dz^{2}\right) , \end{aligned}$$
(35)

where \(\beta _{+}\left( t\right) ,~\beta _{-}\left( t\right)\) are the two anisotropic parameters and \(\alpha \left( t\right)\) is the scale factor of the three-dimensional hypersurface, the point-like Lagrangian (15) takes the following diagonal form

$$\begin{aligned} {\mathcal {L}}\left( \alpha ,{\dot{\alpha }},\beta _{+},{\dot{\beta }}_{+},\beta _{-},{\dot{\beta }}_{-},\phi ,{\dot{\phi }}\right) =-6\alpha {\dot{\alpha }}^{2} +\frac{3}{2}\alpha ^{3}\left( {\dot{\beta }}_{+}\right) ^{2}+\frac{3}{2} \alpha ^{3}\left( {\dot{\beta }}_{-}\right) ^{2}-6\alpha ^{2}{\dot{\alpha }} {\dot{\phi }}-\alpha ^{3}V\left( \phi \right) . \end{aligned}$$
(36)

Hence, variation with respect to the dependent variables gives that the gravitational field equations

$$\begin{aligned} 6H\left( H+{\dot{\phi }}\right) -\frac{3}{2}\left( \left( {\dot{\beta }} _{+}\right) ^{2}+\left( {\dot{\beta }}_{-}\right) ^{2}\right) -V\left( \phi \right)&=0, \end{aligned}$$
(37)
$$\begin{aligned} 4{\dot{H}}+6H^{2}+\frac{3}{2}\left( \left( {\dot{\beta }}_{+}\right) ^{2}+\left( {\dot{\beta }}_{-}\right) ^{2}\right) +2\ddot{\phi }-V\left( \phi \right)&=0,\end{aligned}$$
(38)
$$\begin{aligned} \ddot{\beta }_{+}+3H{\dot{\beta }}_{+}&=0,\end{aligned}$$
(39)
$$\begin{aligned} \ddot{\beta }_{-}+3H{\dot{\beta }}_{-}&=0,\end{aligned}$$
(40)
$$\begin{aligned} {\dot{H}}+3H^{2}-\frac{1}{6}V_{,\phi }&=0. \end{aligned}$$
(41)

4.1 \(H-\)normalization

Let us define the new variables in the context of the H-normalization,

$$\begin{aligned} \Sigma _{+}=\frac{{\dot{\beta }}_{+}}{2H}~,~\Sigma _{-}=\frac{{\dot{\beta }}_{-}}{2H}~,~x=-\frac{{\dot{\phi }}}{H}~,~y=\frac{V\left( \phi \right) }{6H^{2} }~,~\lambda =\frac{V^{\prime }}{V}~. \end{aligned}$$
(42)

In the new variables and for the new independent variable \(\tau =\ln a\), the gravitational field equations read

$$\begin{aligned} \Sigma _{+}^{\prime }&=\lambda y\Sigma _{+}~,\end{aligned}$$
(43)
$$\begin{aligned} \Sigma _{-}^{^{\prime }}&=\lambda y\Sigma _{-}~,\end{aligned}$$
(44)
$$\begin{aligned} x^{\prime }&=-\left( 3+2\lambda \right) y+x\left( 3+\lambda y\right) +3\left( \Sigma _{+}^{2}+\Sigma _{-}^{2}-1\right) ~,\end{aligned}$$
(45)
$$\begin{aligned} y^{\prime }&=y\left( 6+\lambda \left( x+2y\right) \right) ~, \end{aligned}$$
(46)
$$\begin{aligned} \lambda ^{\prime }&=\frac{1}{6}\lambda ^{2}x\left( \Gamma \left( \lambda \right) -1\right) ~,~\Gamma \left( \lambda \right) =\frac{V_{,\phi \phi }V}{\left( V_{,\phi }\right) ^{2}}. \end{aligned}$$
(47)

where \(\Sigma _{+}^{\prime }=\frac{d\Sigma _{+}}{d\tau }=\frac{1}{H}\dot{\Sigma }_{+}\), while the constraint equation becomes

$$\begin{aligned} 1-x-y-\Sigma _{+}^{2}-\Sigma _{-}^{2}=0. \end{aligned}$$
(48)

We remark that the variables \(\left\{ x,y,\Sigma _{+},\Sigma _{-}\right\}\) are not bounded and can take values in the whole range of the real numbers. However, we are interested in investigating only the stability of the Kasner universes. In order to perform a complete study of the global dynamics, we should work by using other variables than the H-normalization, that is, because from (37) it is clear that the Hubble function can change sign.

Let us proceed with our analysis by considering some special case for the scalar field potential \(V\left( \phi \right)\).

4.1.1 Exponential potential

Assume now that \(V\left( \phi \right) =V_{0}e^{\lambda \phi }\), then from (47) it follows that \(\lambda =cons\not t .\) As far as the function \(F\left( {\hat{B}}\right)\) is concerned that is calculated to be \(F_{A}\left( {\hat{B}}\right) =\left( \frac{{\hat{B}}}{\lambda }\ln \left( \frac{{\hat{B}}}{\lambda }\right) -1\right)\), we observe that for \(\lim _{{\hat{B}}\rightarrow 0}F_{A}\left( {\hat{B}}\right) =0\), which means that the Kasner solution can be recovered according to Proposition 1. Hence, for this scalar field potential the stationary points \(P=\left( x\left( P\right) ,y\left( P\right) ,\Sigma _{+}\left( P\right) ,\Sigma _{-}\left( P\right) \right)\) for the dynamical system (43)–(48) are \(P^{1}=\left( \frac{2}{\lambda }\left( 3+\lambda \right) ,-\frac{6+\lambda }{\lambda },0,0\right)\)  and \(P^{2}=\left( 1-\Sigma _{+}^{2}-\Sigma _{-} ^{2},0,\Sigma _{+},\Sigma _{-}\right)\).

Point \(P^{1}\) describes an isotropic spatially flat FLRW universe, because the anisotropic parameters are zero. The cosmological fluid at this point is found to be that of an ideal gas with constant equation of state parameter \(w\left( P^{1}\right) =-\frac{1}{3}\left( 2\lambda +9\right)\), from where we conclude that the point describes an accelerated universe when \(\lambda <-\frac{9}{2}.\) The eigenvalues of the linearized system which follows from the Eqs. (43), (44) and (45) where y has been replaced by the constraint condition (48), are derived \(e_{1}\left( P^{1}\right) =e_{2}\left( P^{1}\right) =e_{3}\left( P^{1}\right) =-\left( 6+\lambda \right)\). Hence, the point is an attractor when \(\lambda >-6\).

As far as the family of points \(P^{2}\) are concerned, they describe anisotropic solutions where the scalar field potential vanishes. As we found before points \(P^{2}\) describe Kasner universes when \(1-\Sigma _{+}^{2} -\Sigma _{-}^{2}=0\). The eigenvalues of the linearized system around the stationary points are derived to be \(e_{1}\left( P^{2}\right) =0~,~e_{2} \left( P^{2}\right) =0\) and \(e_{3}\left( P^{2}\right) =6+\lambda \left( 1-\Sigma _{+}^{2}-\Sigma _{-}^{2}\right)\), from where we conclude that the Kasner universes are always unstable solutions of the field equations. For other values of the anisotropic parameters in which \(1-\Sigma _{+}^{2} -\Sigma _{-}^{2}\ne 0\), the final result is that of Kasner-like solution derived in the previous section.

4.1.2 Arbitrary potential

It is straightforward to prove that for every arbitrary potential function \(V\left( \phi \right)\) in which the corresponding \(F\left( {\hat{B}}\right)\) function satisfies Proposition 1, it always admits the family of stationary points \(P_{K}^{2}=\left( 0,0,\Sigma _{+},\Sigma _{-},\lambda \right)\), with \(1-\Sigma _{+}^{2}-\Sigma _{-}^{2}=0,\) in which \(\lambda\) is an arbitrary point, and these points describe unstable Kasner solutions. Therefore, we conclude that the limit of General Relativity in this specific theory is an unstable point.

As far as the general evolution for the dynamics of the field Eqs. (43)–(48) is concerned, it can be easily recovered by using results of previous studies. Indeed, from Eqs. (39) and (39) the anisotropic functions can be replaced as \({\dot{\beta }} _{+}=\frac{\beta _{+}^{0}}{a^{3}}~,~{\dot{\beta }}_{-}=\frac{\beta _{-}^{0}}{a^{3} }\) where by replacing in the rest of the field equations we end with the field equations for the spatially flat FLRW universe with stiff fluid source. Therefore, the detailed analysis presented to [33] is valid.

5 Conclusions

In this study we investigated the existence of anisotropic solutions in a higher-order teleparallel theory of gravity known as \(f\left( T,B\right)\) theory and specifically in the \(f\left( T,{\hat{B}}\right) ~\)theory with \({\hat{B}}=B-2T\). In particular, we focused on the \(f\left( T,{\hat{B}}\right) =T+F\left( {\hat{B}}\right)\) theory which is a fourth-order theory defined by the boundary term \({\hat{B}}\). The higher-order derivatives of the theory can be described by a scalar field in the Einstein frame. That scalar field attributes the higher-order derivatives of the theory and does not belong to the scalar-tensor theories. For this particular theory, we found the conditions where the Kasner universe, which is the vacuum solution of General Relativity, is recovered. In addition we found that anisotropic Kasner-like solutions exist for this specific theory as asymptotic solutions for the field equations. On the other hand, we show that anisotropic exponential solutions which describe the cosmological constant term are not provided in the case of \(f\left( T,{\hat{B}}\right) =T+F\left( {\hat{B}}\right)\), however, that is not true for the existence of the isotropic de Sitter solution [32].

Moreover, we investigated the stability properties of the theory and we found that the Kasner universes are always unstable solutions for the theory for the arbitrary functional form of \(F\left( {\hat{B}}\right)\). The general asymptotic dynamics and evolution are similar with that studied before for the spatially flat FLRW universe and the stiff matter fluid.

In the general scenario of \(f\left( T,{\hat{B}}\right)\) theory, for the Bianchi I spacetime, from the field Eq. (6 and the definition for the torsion scalar T and for the boundary \({\hat{B}}\) as given by expressions (12) we find that the Kasner solution of General Relativity is recovered when \(f\left( T,{\hat{B}}\right)\) does not admit as critical point the \(\left( T,{\hat{B}}\right) =\left( 0,0\right)\) and the following algebraic condition holds \(f\left( T,{\hat{B}}\right) _{|\left( T,{\hat{B}}\right) \rightarrow \left( 0,0\right) }=0\).

This analysis contributes to the subject of the determination of the exact solutions of modified theories of gravity. The derivation of solutions of General relativity is of special interest for the validity of modified theories of gravity. In this work we focused on a higher-order teleparallel theory and we found that the anisotropic Kasner universes are provided by the theory; however, the limit of General Relativity is always an unstable point. In a future work we plan to investigate the existence of spherical symmetric solutions for this higher-order theory.