1 Introduction

General Relativity (GR) has been validated by decades of experimentation, and these experiments range from millimeter scale to solar system tests. These experiments are consistent with the emission of binary pulsars in terms of gravitational waves. It is assumed that in the standard model of cosmology, GR describes gravity at all scales. From type Ia supernovae observations [1, 2], one can find that Universe is expanding faster than it used to be, which has been further supported by cosmic microwave background [3] and the large-scale structure [4]. Though there are several candidates have been proposed, dark energy (DE) and dark matter provide some strong reasons. Hence, the effect of repulsive gravity has been introduced to explain the DE phenomena. It has less theoretical background and contrasts with the usual attractive nature of gravity. Therefore, in GR, the cosmological constant [5] has been introduced as an additional component. But when the cosmological terms are interpreted as a vacuum desired value, then it is encountered with the problems like fine-tuning and coincidence [6]. So, to address this, the geometrical modification to GR has been proposed, which may explain the unknown nature of DE.

One of the possible geometrical modifications to GR is Teleparallel Gravity (TG), which was initially proposed by Einstein as an alternative to GR [7]. The Lagrangian in TG consists of the torsion scalar T term obtained through the contractions of the torsion tensor. The variation of this Lagrangian with respect to the tetrad gives rise to the evolution equations, which is the same as that of GR [8, 9]. So, TG is also known as the Teleparallel Equivalent of General Relativity (TEGR). One of the key factors that distinguish between GR and TEGR is the existence of tetrad fields. The tetrad fields can be useful to establish a linear Weitzenböck connection [9, 10], which is a kind of connection related to torsion in the absence of curvature. Whereas, the curvature is used to geometrize space-time and represent gravitational interaction in GR. To be specific, in TEGR the gravitational interaction is defined by torsion [9, 11, 12]. In recent times, TG and its extension have gained significant attention because of its ability to address some of the issues of the present Universe.

The TEGR Lagrangian contains the torsion scalar T, which can further be generalized to f(T) theory [13,14,15,16]. In f(T) gravity, the field equations are of second order whereas f(R) gravity is of fourth order [17,18,19]. In Ref. [20] it has been demonstrated that f(T) gravity theory and its field equations are not invariant under local Lorentz transformations. So, f(T) gravity can be generalised to f(TB) gravity [21], where B is the boundary term. The f(TB) gravity has been studied in bouncing cosmology [22], in thermodynamical aspects [23, 24], and in the cosmological evolution [25]. We discuss some of the recent work pertaining to cosmological models in f(TB) gravity. In Noether symmetry, the cosmological model of f(TB) gravity has been analyzed in Ref. [26]. The accelerating behaviour of the cosmological model has been shown in Refs. [27, 28]. Using cosmological observations, the cosmic expansion phenomena have been shown in Refs. [29, 30]. Apart from this modification, the addition of Gauss–Bonnet invariant [31,32,33,34], the trace of energy-momentum tensor [35, 36] and scalar field [37,38,39] in f(T) gravity have shown promising results on the accelerated expansion of the Universe.

The objective of this study is to find out the stable critical points through dynamical system analysis and their corresponding cosmological behaviour in some well-defined form of f(TB). The dynamical system analysis has been effective to study the asymptotic behavior and overall cosmic dynamics of the cosmological models. To note from the phase space and stability analysis, one can bypass the non-linearities of the cosmological equations [40,41,42]. Also, by connecting the critical points to relevant evolutionary epochs, the description of global dynamics can be obtained. The phase of accelerated expansion at the late time generally corresponds to late time attractor, whereas the phase of radiation and matter dominance corresponds to saddle points [38, 43]. Some of the relevant studies in f(TB) gravity can be seen in Refs. [29, 44, 45]. Though several dynamical analysis studies are made in f(T) gravity [46, 47], we are motivated to analyse the study with the addition of boundary term B i.e. in f(T) to f(TB) gravity formalism. The paper is organised as: the background of f(TB) gravity and its field equations are presented in Sect. 2. In Sect. 3 the dynamical system analysis in f(TB) gravity has been presented with two forms of f(TB) leading to two models. The results and conclusions are given in Sect. 4.

2 f(TB) gravity field equations

The teleparallel theories of gravity can be formed through the tetrad \(e^{a}_{\mu }\) and its inverse, \( e_{a}^{\mu }\). It replaces the metric as the fundamental variable through the expressions,

$$\begin{aligned} g_{\mu \nu }=e^{a}_{\ \ \mu } e^{b}_{\ \ \nu }\eta _{ab}, \quad \eta _{ab} = e_{a}^{\ \ \mu } e_{b}^{\ \ \nu }g_{\mu \nu }. \end{aligned}$$
(1)

The Latin indices indicate the coordinates on the tangent space and the Greek indices represent the indices on the general manifold, which connect both the spaces and play a vital role in raising and lowering indices between the different spaces [14]. The tetrads with the metric adhere to the orthogonality conditions as,

$$\begin{aligned} e^{a}_{\ \ \mu } e_{b}^{\ \ \mu }=\delta ^a_b,\quad e^{a}_{\ \ \mu } e_{a}^{\ \ \nu }=\delta ^{\nu }_{\mu }. \end{aligned}$$
(2)

The flat spin connection \( \omega ^{a}_{\ \ b\mu }\) plays a role in including the local Lorentz transformation invariance in the equations of motion, which results from the appearance of the tangent space indices. Through the tetrad and spin connection, the teleparallel connection can be defined as [10, 48]

$$\begin{aligned} \Gamma ^{\sigma }_{\ \ \nu \mu }:= e_{a}^{\ \ \sigma }\left( \partial _{\mu } e^{a}_{\ \ \nu } + \omega ^{a}_{\ \ b\mu } e^{b}_{\ \ \nu }\right) , \end{aligned}$$
(3)

Together, the tetrad as well as spin connection correspond to the gravitational and local degrees of freedom of the system and preserve the equations of motion’s diffeomorphism and Lorentz invariance. Now, the torsion tensor can be derived from the teleparallel connection as [49]

$$\begin{aligned} T^{\sigma }_{\ \ \mu \nu }:=2 \Gamma ^{\sigma }_{\ \ [\nu \mu ]}, \end{aligned}$$
(4)

where the square bracket represents an antisymmetric operator. A torsion scalar can be defined using certain contractions of the torsion tensor [9, 11, 14, 50],

$$\begin{aligned} T:=\frac{1}{4}T^{\alpha }_{\ \ \mu \nu }T_{\alpha }^{\ \ \mu \nu } + \frac{1}{2}T^{\alpha }_{\ \ \mu \nu }T^{\nu \mu }_{\ \ \ \ \alpha } - T^{\alpha }_{\ \ \mu \alpha }T^{\beta \mu }_{\ \ \ \ \beta }, \end{aligned}$$
(5)

Torsion scalars are fundamentally dependent only on the teleparallel connection, as curvature scalars are dependent only on Levi–Civita connections. The Ricci scalar vanishes when calculated using the teleparallel connection, i.e., \(R \equiv 0\). From this background one can write an expression that connects the regular Ricci scalar, \(\mathring{R}=\mathring{R}(\mathring{\Gamma }^{\sigma }_{\ \ \mu \nu })\) (over-circles are used throughout to denote quantities determined using the Levi–Civita connection) and torsion scalars T as [21, 51]

$$\begin{aligned} R=\mathring{R} + T - B = 0. \end{aligned}$$
(6)

where B represents a total divergence term and is defined as

$$\begin{aligned} B = \frac{2}{e}\partial _{\rho }\left( e T^{\mu \ \ \rho }_{\ \ \mu }\right) . \end{aligned}$$
(7)

The determinant of the tetrad, \(e=\det \left( e^{a}_{\ \ \mu }\right) =\sqrt{-g}\). Another extension of TEGR action can be written by incorporating an arbitrary function of both the torsion scalar T and the boundary term B [9, 21, 29],

$$\begin{aligned} S_{f(T,B)}=\int d^4x e{\mathcal {L}}_m+\frac{1}{2\kappa ^2}\int d^4x e f(T,B), \end{aligned}$$
(8)

\(\kappa ^2= 8\pi G\). Varying action [ Eq. (8)] with respect to the tetrad fields, the f(TB) gravity field equations can be obtained as,

$$\begin{aligned}{} & {} e_a{}^{\mu } \square f_B - e_a {}^{\nu } \nabla ^{\mu } \nabla _{\nu } f_B + \frac{1}{2} B f_B e_a{}^{\mu } - \left( \partial _{\nu }f_B + \partial _{\nu }f_{T} \right) S_a{}^{\mu \nu } \nonumber \\{} & {} \qquad -\frac{1}{e} f_{T}\partial _{\nu } (eS_a{}^{\mu \nu }) + f_{T} T^{B}{}_{\nu a}S_{b}{}^{\nu \mu }\nonumber \\{} & {} \qquad - f_T \omega ^b{}_{a\nu } S_b{}^{\nu \mu } -\frac{1}{2} f E_{a}{}^{\mu } = \kappa ^2 \Theta _a{}^{\mu } \, \end{aligned}$$
(9)

The partial derivative of f(TB) with respect to T and B respectively denoted as \(f_T\) and \(f_B\); whereas the energy-momentum tensor and the Levi–Civita covariant derivative with respect to the Levi–Civita connection respectively denoted as, \(\Theta _{a}^{~~\mu }\) and \(\nabla _{\nu }\). We consider the tetrad for the flat FLRW metric as,

$$\begin{aligned} e_{\ \ \mu }^{a}=(1,a(t),a(t),a(t)). \end{aligned}$$
(10)

This choice of tetrad allows for vanishing spin connection components, \(\omega ^{a}_{\ \ b\mu }=0\), the above expression also satisfies the Weitzenböck gauge for f(TB) gravity. Here we shall study the cosmological aspects of f(TB) gravity and hence consider the flat FLRW space-time as,

$$\begin{aligned} ds^2=-dt^2+a^2(t)(dx^2+dy^2+dz^2). \end{aligned}$$
(11)

where a(t) be the expansion along spatial directions. We can also find the Hubble parameter, \(H\equiv \frac{\dot{a}}{a}\), with an over dot being the derivative of the variable in cosmic time t. In flat space-time, the torsion scalar T and the boundary term B respectively reduce to,

$$\begin{aligned} T=6H^{2}, \quad B=6(3H^{2}+\dot{H}). \end{aligned}$$
(12)

Now, the field equations of f(TB) gravity (9) for the metric (11) and tetrad (10) can be derived as,

$$\begin{aligned}{} & {} -3H^2(3f_B+2f_T)+3H \dot{f_B}-3\dot{H}f_B+\frac{1}{2}f(T,B)=\kappa ^2\rho \nonumber \\{} & {} \quad -3H^2(3f_B+2f_T)-\dot{H}(3f_B+2f_T)-2H\dot{f_T} +\ddot{f_B}\nonumber \\{} & {} \quad +\frac{1}{2}f(T,B)=-\kappa ^2 p. \end{aligned}$$
(13)

One of the most important properties of this theory is, that it satisfies the continuity equation \((\dot{\rho }_i +3H(\rho _i +p_i)=0)\) for \(i=m, r, DE\), that is matter, radiation, and the DE respectively. To better understand the contributions of the modified Lagrangian, we consider the f(TB) gravity Lagrangian mapping, \(f(T, B) \rightarrow - T + \tilde{f}(T, B)\), then the Friedmann equations can be obtained as,

$$\begin{aligned} 3H^{2}= & {} \kappa ^{2}\left( \rho +\rho _{DE}\right) , \end{aligned}$$
(14)
$$\begin{aligned} 3H^{2}+2\dot{H}= & {} -\kappa ^{2}\left( p+p_{DE}\right) . \end{aligned}$$
(15)

Where the expression for energy density and pressure for the DE phase can be obtained as,

$$\begin{aligned}{} & {} 3H^2(3\tilde{f}_B+2\tilde{f}_T)-3H \dot{\tilde{f}}_B+3\dot{H}\tilde{f}_B\nonumber \\{} & {} \quad -\frac{1}{2}\tilde{f} (T,B)=\kappa ^2\rho _{DE} , \end{aligned}$$
(16)
$$\begin{aligned}{} & {} \quad -3H^2(3\tilde{f}_B+2\tilde{f}_T)-\dot{H}(3\tilde{f}_B+2\tilde{f}_T)-2H\dot{\tilde{f}}_T+\ddot{\tilde{f}}_B\nonumber \\{} & {} \quad +\frac{1}{2}\tilde{f}(T,B)=\kappa ^2 p_{DE}. \end{aligned}$$
(17)

The expression of the equation of state (EoS) parameter for the DE phase can be written as,

$$\begin{aligned} \omega _{DE}=-1+\frac{\ddot{\tilde{f}}_{B}-3H\dot{\tilde{f}}_{B}-2\dot{H}\tilde{f}_{T} -2H\dot{\tilde{f}}_{T}}{3H^{2}(3\tilde{f}_{B}+2\tilde{f}_{T})-3H\dot{\tilde{f}}_{B} +3\dot{H}\tilde{f}_{B}-\frac{1}{2}\tilde{f}(T,B)}.\nonumber \\ \end{aligned}$$
(18)

Next, we shall define the dynamical variables and express the cosmological parameters in terms of dynamical variables. The cosmological behaviour of the models will be studied through some functional forms of \(\tilde{f}(T, B)\).

3 Dynamical system analysis

From the theoretical point of view, any proposed cosmological model should contain at least part that explians “Inflation \(\rightarrow \) Radiation \(\rightarrow \) Matter \(\rightarrow \) DE” [52]. To attain the aforementioned suggested cosmological model, inflation must be an unstable point in order for the Universe to have an inflation exit, whereas radiation and matter points must be saddle points in order for these eras to be long enough. The final phase of the DE era should be a stable period of accelerated expansion. In order to analyse this, we consider the Universe filled with two fluids such that, \(\rho =\rho _{m}+\rho _{r}\), where \(\rho _m\) and \(\rho _{r}\) respectively be the energy density for matter and radiation. In the matter dominated phase \(p_{m}=0\) and hence \(\omega _m\) vanishes, whereas in the radiation phase, \(\omega _{r}=\frac{1}{3}\). With these, we define the dynamical variables as,

$$\begin{aligned}{} & {} X=\tilde{f}_{B} ,\quad Y=\tilde{f}_{B} \frac{\dot{H}}{H^2},\quad Z=\frac{\dot{\tilde{f}}_B}{H} ,\quad V=\frac{\kappa ^2 \rho _r}{3H^2},\quad \nonumber \\{} & {} W=-\frac{\tilde{f}}{6H^2}. \end{aligned}$$
(19)

The standard density parameters expressions for matter \((\Omega _m)\), radiation \((\Omega _r)\) and DE \((\Omega _{DE})\) phase are respectively,

$$\begin{aligned} \Omega _{m}=\frac{\kappa ^2 \rho _{m}}{3H^2}, \quad \Omega _{r}=\frac{\kappa ^2 \rho _{r}}{3H^2}, \quad \Omega _{DE}=\frac{\kappa ^2 \rho _{DE}}{3H^2}. \end{aligned}$$
(20)

with

$$\begin{aligned} \Omega _{m}+\Omega _{r}+\Omega _{DE}=1 \end{aligned}$$
(21)

So, the constrained equation in terms of a dynamical variable can be written as,

$$\begin{aligned} \Omega _{m}+\Omega _{r}+W+2\tilde{f}_{T}+Y+3X-Z=1 \end{aligned}$$
(22)

where

$$\begin{aligned} \Omega _{DE}=W+2\tilde{f}_{T}+Y+3X-Z \end{aligned}$$
(23)

The total EoS parameter and DE EoS parameter are respectively obtained in dynamical variables as,

$$\begin{aligned} \omega _{tot}&=-1-\frac{2 Y}{3 X}\,,\nonumber \\ \omega _{DE}&=-\frac{(V+3) X+2 Y}{3 X (2 \tilde{f}_{T} +W+3 X+Y-Z)}\,. \end{aligned}$$
(24)

Subsequently, we have obtained the autonomous dynamical system as follows,

$$\begin{aligned} X^{'}= & {} Z,\nonumber \\ Y^{'}= & {} \lambda X+\frac{Y (Z-2 Y)}{X},\nonumber \\ Z^{'}= & {} 6 \tilde{f}_{T} -V+3 W+\frac{2 \tilde{f}_{T} Y}{X}-\frac{Y Z}{X}-\frac{2 Y}{X}\nonumber \\{} & {} + 9 X+3 Y+2\tilde{f}^{\,'}_{T}-3,\nonumber \\ V^{'}= & {} -\frac{2 V (2 X+Y)}{X},\nonumber \\ W^{'}= & {} -\frac{2 W Y}{X}-\lambda X-\frac{2 \tilde{f}_{T} Y}{X}-6 Y. \end{aligned}$$
(25)

where \('\) denotes differentiation with respect to \(N=ln(a)\), to express the autonomous dynamical system, we define the parameter \(\lambda =\frac{\ddot{H}}{H^3}\) [44, 53] and is treated as a constant throughout the analysis. To note, the value of the parameter \(\lambda =8, \frac{9}{2},\) connects with the radiation, matter dominated phase respectively whereas for DE it depends on the dynamical variables X and Y. Now, to study the stability analysis, we need some form of \(\tilde{f}(T, B)\), and hence we have considered two forms of \(\tilde{f}(T, B)\) that lead to two models.

3.1 Model-I

We consider,

$$\begin{aligned} \tilde{f}(T,B) =\xi T + \alpha B log(B) \end{aligned}$$

This specific form of f(TB) has been successful in addressing the late time cosmic phenomena issue [54, 55], Noether symmetry [56]. Also, the critical points can be analysed in the presence of a non-canonical scalar field and the exponential potential function in f(TB) gravity framework [25]. In the absence of a scalar field, the cosmological aspects through the behavior of critical points analysis may provide some deeper insight into the evolution of the Universe in different evolution phases. The dynamical variable Z from Eq. (19) can be written as, \(Z=\alpha \left[ \frac{6Y+X\lambda }{3X+Y}\right] \) and treated as the dependent variable. The autonomous dynamical system for this setup can be obtained as,

$$\begin{aligned} X^{'}&=\frac{\alpha (\lambda X+6 Y)}{3 X+Y}\,,\nonumber \\ Y^{'}&=X \left( \lambda -\frac{2 Y^2}{X^2}\right) +\frac{\alpha Y (\lambda X+6 Y)}{X (3 X+Y)}\,,\nonumber \\ V^{'}&=-\frac{2 V (2 X+Y)}{X}\,,\nonumber \\ W^{'}&=-\frac{2 W Y+\lambda X^2+6 X Y+2 \xi Y}{X}\,. \end{aligned}$$
(26)

The standard density parameters for DE and matter can be calculated as

$$\begin{aligned} \Omega _{DE}&=2 \xi +W+3 X+Y-\frac{\alpha (\lambda X+6 Y)}{3 X+Y}\nonumber \,,\\ \Omega _{m}&=-2 \xi -V-W-3 X-Y+1+\frac{\alpha (\lambda X+6 Y)}{3 X+Y}\,, \end{aligned}$$
(27)

and the EoS parameter for DE is given as,

$$\begin{aligned} \omega _{DE} =-\frac{(V+3) X+2 Y}{3 X \left( 2 \xi +W-\frac{\alpha (\lambda X+6 Y)}{3 X+Y}+3 X+Y\right) }\,. \end{aligned}$$

We shall find the critical points of the dynamical system by considering \(X^{'}=0, Y^{'}=0, V^{'}=0, W^{'}=0\). The critical points and their existence conditions are given in Table 1.

Table 1 The critical points (Model-I)

The eigenvalues of the Jacobian matrix at each critical point have been obtained to analyse the stability of the critical points. The stability can be categorised as: (i) all the eigenvalues of the Jacobian matrix are negative, stable node; (ii) all the eigenvalues are positive, unstable node; (iii) the eigenvalues are both positive and negative, saddle node. In addition, at the stable spiral node, there is a negative determinant for the Jacobian matrix, and the real component of all of the eigenvalues also has a negative value. We have given the analysis of each of the critical points below:

Table 2 Eigenvalues corresponding to the critical point (Model-I)
Table 3 Stability condition, EoS parameter and deceleration parameter (Model-I)
Table 4 Evolution equations, phase of the Universe, density parameters (Model-I)
  • Critical Point \(C_1\): The critical point \(C_1\) with \(\lambda =8\) describes the radiation-dominated era. The value of the parameter \(\omega _{tot}=\frac{1}{3}\), \(q=1\). This critical point will describe the standard radiation-dominated era for \(V_{1}=1,\xi =0\) at which the contribution of the standard density parameter for DE will vanish. The eigenvalues at this critical point are presented in Table 2, which shows this critical point is unstable in nature and the corresponding value of the deceleration and EoS parameter is that of radiation-dominated (Table 3). The evolution equation, along with the exact solution, is obtained and presented in Table 4. The exact solution obtained at this critical point is in the power law \(a(t)=t_0 (t)^h\) form with \(h=\frac{1}{2}\) which explains the radiation-dominated era. The behavior of phase space trajectories at this critical point shows that this critical point is the saddle point and hence unstable, as can be seen in Fig.  2.

  • Critical Point \(C_2\): The value of the EoS parameter (\(\omega _{tot}\)) vanishes at this critical point, hence, this critical point represents the CDM (Cold Dark Matter) phase of the evolution of Universe. The value of dynamical variable \(\lambda \) is \(\frac{9}{2}.\) This critical point describes a non-standard CDM-dominated era with the small contribution of the DE density parameter (Refer Table 4). The evolution equation with the exact solution at this critical point is presented in Table 4, the power law solution with index \(\frac{2}{3}\) indicates that this will describe the CDM-dominated era. The existence of positive and negative eigenvalues at this critical point, as presented in Table 2 shows that this critical point is unstable. The phase space trajectories at this critical point show that this critical point is a saddle point, which can be analyzed in Fig. 2, which will support the stability condition obtained from the sign of the eigenvalues.

  • Critical Point \(C_3:\) At this critical point, the value of \(q, \omega _{DE}\) and \(\omega _{tot}\) is dependent on the dynamical variables XY hence, this critical point can describe the early as well as the late phases of the Universe evolution. The critical point will describe the de-sitter solution at \(Y_3=0\) and describe accelerating expansion of the universe at parametric range \(\left( X_3<0\wedge Y_3<-X_3\right) \vee \left( X_3>0\wedge Y_3>-X_3\right) \). To get better clarity, the range of parameters where it describes accelerating expansion and stability is plotted in the region plot in Fig. 1. From this, we can analyze that the value of \(Y_3\) is near 0 in stability, existence, and in the parametric range where parameters are capable to describe the accelerated expansion of the Universe at critical point \(C_3\), hence this critical point is capable of describing a DE dominated era of Universe evolution. The phase space trajectories at this critical point are attractors and can be analyzed in Fig. 2. This critical point is describing the standard DE-dominated era with \(\Omega _{DE}=1\) at \(\xi =1, Y_3=0\) (Refer Table 4). The exact solution obtained at this critical point is in the power law \(a(t)=t_0 (t)^h\) form with \(h=\frac{X_3}{Y_3}\) depending upon the value of dynamical variables \(X_3\) and \(Y_3\), the corresponding phase of the Universe evolution can be analysed. The eigenvalues at this critical point are normally hyperbolic [57] and are stable in the parameter range as described in Table 3.

Fig. 1
figure 1

Stability and acceleration region of the critical point \(C_{3}\) representing DE energy dominated era (Model-I)

Fig. 2
figure 2

2D phase portrait for the dynamical system for \(\lambda =0.3, \xi =-2.4, \alpha =1.3\) (Model-I)

Fig. 3
figure 3

2D phase portrait for the dynamical system for \(\lambda =0.3, \xi =-2.4, \alpha =1.3\) (Model-I)

  • Critical Point \(C_4:\) The value of \(q=-1\), \(\omega _{tot}=-1\) at this critical point, hence this critical point explains the de-Sitter solution. The exact cosmological solution at this critical point is described in Table 4 which takes the de-Sitter solution form. From this one can observe that this critical point should explain a standard DE-dominated era at \(\xi =\frac{1}{2}, W_4 =0, X_4 =0\). But due to the presence of zero eigenvalues, this critical point is non-hyperbolic in nature. The linear stability theory fails to provide information regarding the stability of the critical point if the critical point contains zero eigenvalues. Moreover, since the system equations are not satisfying the central manifold condition (after separating from linear and non-linear parts, the non-linear part at zero is not vanishing), therefore it fails to describe the stability of this critical point. The 2-D phase space diagram to analyse the behaviour of the phase space trajectories at this critical point in Fig. 3 has been given, where it is observed that the phase space trajectories are attracted towards this critical point. Hence this critical point is an attractor.

In Fig. 1, the stability and acceleration region of the critical point \(C_3\) has been shown. Though the light blue shaded area in the figure shows the acceleration, the stability could not be established. The evolution plot of standard density parameters in terms of the \(N=log(a)\) has been given in Fig. 4, we can find the value of \(\Omega _{r} \approx 0.019, \Omega _{m} \approx 0.3\) and \(\Omega _{DE} \approx 0.7\). The vertical dashed line represents the present time. The blue curve represents the evolution of the standard density parameter for radiation, and it can be observed that this curve dominates the other two curves at the early evolution and decreases gradually from early to late time and tend to zero at late times. The behavior of q and Eos for \(\omega _{tot}, \omega _{DE}\) can be analyzed in Figs. 5 and 6 respectively. Since the plot of q lies in the negative region, hence it is capable to describe the current accelerated expansion of the Universe. The value of q at the present time is \(-1.387\) which is approximately the same as the current observation study [58]. The plot of \(\omega _{tot}\) at present value takes the value \(-1.233\) which agrees with \(\omega _0=-1.29 ^{+0.15}_{-0.12}\) [59].

Fig. 4
figure 4

Evolution of density parameters. The initial conditions: \(X=-1.2 \times 10^{2.2},\, Y=2.2 \times 10^{-3.4},\, V=1.02 \times 10^{2.6},\, W=4.5\times 10^{-8.1},\, \lambda =0.3,\, \xi =-2.4, \alpha =1.3\) (Model-I)

Fig. 5
figure 5

Deceleration parameter (q) for the initial conditions \(X=-1.2 \times 10^{2.2},\, Y=2.2 \times 10^{-3.4},\, V=1.02 \times 10^{2.6},\, W=4.5\times 10^{-8.1},\, \lambda =0.3,\, \xi =-2.4, \alpha =1.3\) (Model-I)

Fig. 6
figure 6

EoS parameters \(\omega _{DE}\), \(\omega _{tot}\) for the initial conditions \(X=-1.2 \times 10^{2.2},\, Y=2.2 \times 10^{-3.4},\, V=1.02 \times 10^{2.6},\, W=4.5\times 10^{-8.1},\, \lambda =0.3,\, \xi =-2.4, \alpha =1.3\) (Model-I)

3.2 Model-II

We consider,

$$\begin{aligned} \tilde{f}(T,B) = \zeta T + \beta (-B)^p \end{aligned}$$

where \(\tilde{f_2}(B)= \beta (-B)^p\) in specifically, is nonlinear and capable of studying observational tests for the theory by referring to the most recent SN-Ia data [15]. This is a prominent form of \(\tilde{f}(T, B)\) gravity due to its usefulness in explaining the present cosmic expansion and \(H_0\) tension [30]. Similar to the first model, we get a relationship for the dynamical variable \(Z=\left[ \frac{(p-1) X (\lambda X+6 Y)}{3 X+Y}\right] ,\) hence the dynamical variable Z is treated as a dependent and the others are independent. The terms \(\tilde{f}_{T}=\zeta \) and \(\tilde{f}^{\,'}_{T}=0\,\) will convert the general dynamical system in Eq. (25) into an autonomous form as follows,

$$\begin{aligned} X^{'}&=\frac{(p-1) X (\lambda X+6 Y)}{3 X+Y}\,,\nonumber \\ Y^{'}&=\frac{(p-1) Y (\lambda X+6 Y)}{3 X+Y}+X \left( \lambda -\frac{2 Y^2}{X^2}\right) \,,\nonumber \\ V^{'}&=-\frac{2 V (2 X+Y)}{X}\nonumber \\ W^{'}&=-\frac{2 W Y+\lambda X^2+6 X Y+2 \zeta Y}{X}\,. \end{aligned}$$
(28)

The standard density parameter for DE and matter can be given as,

$$\begin{aligned}&\Omega _{DE}=2 \zeta -\frac{(p-1) X (\lambda X+6 Y)}{3 X+Y}+W+3 X+Y\nonumber \,,\\&\Omega _{m}=-2 \zeta +\frac{(p-1) X (\lambda X+6 Y)}{3 X+Y}-V-W\nonumber \\&\qquad \quad -3X-Y+1\,. \end{aligned}$$
(29)

The EoS parameter for DE can be written as.

$$\begin{aligned} \omega _{DE} =-\frac{(V+3) X+2 Y}{3 X \left( 2 \zeta -\frac{(p-1) X (\lambda X+6 Y)}{3 X+Y}+W+3 X+Y\right) }\,. \end{aligned}$$

Next, we have calculated and presented the critical points for this dynamical system in Table 5.

Table 5 The critical points (Model-II)

To study the stability of each critical point, the eigenvalues at each critical point of the Jacobian matrix are calculated and presented in Table 6.

Depending upon the sign of the eigenvalues, the stability of the critical point can be concluded. The stability conditions for each critical point, along with the values of \(q, \,\omega _{tot}\) and \(\omega _{DE}\) are presented in Table 7 along with the detailed descriptions.

To identify the phase of the evolution of the Universe and the exact cosmological solutions at the critical points are calculated and presented in Table 8.

  • Critical Point \({\mathcal {P}}_{1}\): The value of parameter \(\lambda \) is 8 at \({\mathcal {P}}_{1}\), hence this critical point represents radiation-dominated era with \(\omega _{tot}=\frac{1}{3}\). This critical point is in the standard radiation-dominated era at \(V_1=1, \zeta =0\), where \(\Omega _{r}=1\) and \(\Omega _{m}=\Omega _{DE}=0\) can be observed from Table 8. The exact solution retraced at this critical point is in the power law \(a(t)=t_0 (t)^h\) form with \(h=\frac{1}{2}\) which identifies the radiation-dominated era. According to the sign of the eigenvalues presented in Table 6, this critical point remains as a saddle point and hence is unstable. The same behaviour can be confirmed from the phase space trajectories (Fig. 7). The exact cosmological solution at this critical point is shown in Table 8.

Table 6 Eigenvalues corresponding to each critical point (Model-II)
Table 7 Stability condition, EoS and deceleration parameters (Model-II)
Table 8 Phase of the universe, density parameters (Model-II)
  • Critical Point \({\mathcal {P}}_{2}\): This critical point is representing the CDM-dominated era, where \(\omega _{tot}=0\). This can be observed from the exact cosmological solution obtained at this critical point with \(a(t)=t_0 (t)^h\), where \(h=\frac{2}{3}\) as presented in Table 8. The value of \(\Omega _{m}\) at this critical point is 1 for \(\zeta =0\) and hence represents a standard CDM-dominated era. Since there is an eigenvalue at the Jacobian matrix with a positive sign, this critical point is a saddle point, Ref. Table 6. From Fig. 7, the phase space trajectories at this critical point are moving away from it, hence unstable in behaviour. The parameter \(\lambda \) will take the value \(\frac{9}{2}\).

  • Critical Point \({\mathcal {P}}_{3}\): The value of q and \(\omega _{tot}\) at this critical point are \(\lambda \) dependent. Since the value of \(\Omega _{DE}=1\), this critical point will represent a standard DE-dominated era and will describe accelerated expansion within the range \(x_3\in {\mathbb {R}}\wedge \lambda \ge 0\). The stability conditions at this critical point are presented in Table 7. For clear visualisation of the parametric range where critical point \({\mathcal {P}}_3\) is stable and describes accelerating behaviour, we have plotted region plot for parameters \(\lambda \) and \(x_3\) and is presented in Fig. 8. This plot lies in the upper half plane and with the inclusion of \(x_3\)-axis due to the acceleration range of parameter \(\lambda \). We observed that this critical point can describe the de-Sitter solution at \(\lambda =0\) and shows stability at the points near \(\lambda =0\). The eigenvalues at these critical points are normally hyperbolic and show stability as described in Table 7. This critical point is a late time attractor and the same can be visualized from the behavior of phase space trajectories from Fig. 7. The exact solution obtained at this critical point is in the power law \(a(t)=t_0 (t)^h\) form with \(h=\sqrt{\frac{2}{\lambda }}\) which can explains the different epochs of the Universe evolution depending upon value of \(\lambda \).

  • Critical Points \({\mathcal {P}}_{4}\): This critical point is the de-Sitter solution with \(q=\omega _{tot}=-1\). The de-Sitter solution at this critical point is obtained and presented in Table 8. The standard DE-dominated era can be described by this critical point at \(\zeta =\frac{1}{2}, w_4=0, x_4=0\). From the eigenvalues one can see that there are three zeros and one negative eigenvalue, hence linear stability theory will fail to confirm the stability at this point. Therefore, we have moved forward to obtain stability using central manifold theory (CMT). But in this case, while applying CMT we have observed that after co-ordinates shift to the center, this system will not satisfy the CMT condition (after we separated the linear and non-linear parts of the system equations, the nonlinear part is not vanish as same in Model-I critical point \(C_4\)). We have plotted and analysed the \(2-d\) phase portrait at this critical point presented in Fig. 7. The phase space trajectories are attracting towards this critical point, hence this critical point is a late time attractor.

Fig. 7
figure 7

2D phase portrait for the dynamical system for \(\lambda =0.3,\, \zeta =1.0001,\,p=-1\) (Model-II)

Graphically we have presented \(\Omega _{DE}, \Omega _{m}, \Omega _{r}\) in Fig. 9 with the initial condition: \(X=1.2 \times 10^{2.2}, Y=2.2 \times 10^{-3.4}, V=1.02 \times 10^{2.6}, W=4.5 \times 10^{-8.1}\). It has been observed that the value of \(\Omega _{m}\approx 0.3\) and \(\Omega _{DE} \approx 0.7\) at the present time. The plot for \(\Omega _{r}\) vanishes throughout the evolution. The plot for \(\Omega _{DE}\) dominates both \(\Omega _{r},\, \Omega _{m}\) at the late phase of cosmic evolution. The plots for \(q,\, \omega _{DE},\, \omega _{tot}\) is presented in Fig. 10. The value of q at the present time is \(-1.387\) which is approximately the same as the current observation study [58]. The plot of \(\omega _{tot}\) at present takes the value \(-1.255\) which agrees with [60].

Fig. 8
figure 8

Stability and the range of parameter \(\lambda \) and \(x_3\) defining acceleration of the Universe for the critical point \({\mathcal {P}}_{3}\)(Model-II)

Fig. 9
figure 9

Evolution of the density parameters, with the initial conditions \(X=1.2 \times 10^{2.2}, Y=2.2 \times 10^{-3.4}, V=1.02 \times 10^{2.6}, W=4.5 \times 10^{-8.1},\, \lambda =0.3,\, \zeta =1.0001,\, p=-1\) (Model-II)

Fig. 10
figure 10

Deceleration (q) and EoS parameters \(\omega _{DE}\), \(\omega _{tot}\) with the initial conditions \(X=1.2 \times 10^{2.2}, Y=2.2 \times 10^{-3.4}, V=1.02 \times 10^{2.6}, W=4.5 \times 10^{-8.1},\, \lambda =0.3,\, \zeta =1.0001,\, p=-1\) (Model-II)

4 Conclusion

The dynamical system analysis plays an important role in the description of the dynamics of the Universe. The independence of the initial conditions and connecting critical points to the particular evolutionary epochs are important. Hence to analyse the different phases of the Universe’s evolution, we have performed the dynamical system analysis for two prominent models in the f(TB) gravitational theory with the use of the mapping \(f(T, B)\rightarrow -T+\tilde{f}(T, B)\). We present a detailed description of critical points representing all epochs of the evolution of the Universe, the matter-dominated, radiation-dominated, and DE eras. The general dynamical system which is dependent on the form of \(\tilde{f}(T, B)\) is presented in Eq. (25).

In Sect. 3.1, the form of \(\tilde{f}\) is the linear term of the torsion scalar T along with the logarithmic form of the boundary term B. This model is capable of converting a general dynamical system into an autonomous form and is presented in Eq. (26). The critical points along with the existing condition are presented in Table 1. The stability of each critical point is estimated on the basis of the sign of the eigenvalues of the Jacobian matrix at each critical point. The stability conditions for Model-I are presented in Table 3. To identify the evolutionary epoch at each critical point, the values of standard density parameters are also calculated and presented in Table 4. From this, it has been observed that for Model-I, the critical point \(C_{1}\) representing the radiation-dominated era and the critical point \(C_{2}\) representing the matter-dominated era show saddle points and hence are unstable. The same can be verified by analyzing the behavior of phase space trajectories presented in Figs. 2 and 3. At the critical point \(C_{3}\), the value of \(\omega _{DE}\) and \(\omega _{tot}\) which are dependent on the coordinate XY, we can study the DE phase of the Universe evolution. For better visibility, the existence and stability region for a critical point \(C_3\) is plotted and presented in Fig. 1. To analyze the behavior of standard density parameters, the plot for \(\Omega _{DE}, \Omega _{r}\) and \(\Omega _{m}\) in terms of the redshift is presented in Fig. 4. From this plot, we can conclude that the density parameter for radiation and matter goes on decreasing and vanishes at a late time, whereas the plot for DE is increasing from an early to a late time of cosmic expansion. The plot for q and \(\omega _{DE}\), \(\omega _{tot}\) are also presented in Figs. 5 and 6 respectively, which show compatibility with the observation study made in [58, 59]. One of the important findings of the addition of boundary term is that, the logarithmic form of boundary term is capable to describe a critical point in all the evolutionary phases of the Universe., which might not be possible in the context of f(T) gravity formalism..

Further, we have another form of \(\tilde{f}\) with general index p of the negative of the boundary term B. This case enables us to analyse the role of boundary term more clearly in the extended teleparallel gravity and we present the analysis in Sect. 3.2. This form has been widely studied in the literature [15, 30], hence it is interesting to investigate in the higher order gravity. The autonomous dynamical system is presented in Eq. (28) and to analyse the different phases of the Universe’s evolution, we obtained the critical points which are presented in Table 5. The critical point \({\mathcal {P}}_3\), the deceleration parameter, and \(\omega _{tot}\) show dependence on parameter \(\lambda \) whose value contributes to the identification of different phases of the evolution of the Universe. This critical point made a difference in the description of both models to describe the DE-dominated era. The stability conditions are obtained from the eigenvalues and presented in Table 7 along with the values of q, \(\omega _{tot}\), \(\omega _{DE}\). The stability behaviour has been also confirmed with the behaviour of phase space trajectories presented in Fig. 7. In this case, the exact cosmological solutions and the value of \(\Omega _{DE}\), \(\Omega _{r}\), \(\Omega _{m}\) at each critical point have been derived and are presented in Table 8. From this study, we have concluded that this form is capable to represent and describe all three important phases of the evolution of the Universe.

Both the cosmological models show compatibility in explaining the evolutionary behavior from early to late time. The analysis of the models follow the argument regarding the explanation of the unstable critical points explaining early epochs such as the matter- dominated and radiation-dominated era and the stable behaviour in certain parametric ranges in the de-Sitter phase. The detailed mathematical analysis along with the region of stability is presented with the help of region plots for both models. For a deeper understanding of these critical points and freedom on the model parameter, one may link them with cosmological observations. Also, the models may allow us to differentiate between viable parameter ranges while probing the issues of the early Universe.