1 introduction

The universe is in a constant state of expansion ever since its beginning with the big bang, but this expansion never slowed down as it was expected; instead, it has been inexplicably accelerated over the past 5 billion years [1,2,3]. This mind boggling scenario introduced two arguments for its justification: The cosmic acceleration could be caused by the mysterious energy component in the universe named as dark energy (DE) and consequently a requisition for modification of gravity described as general relativity (GR) by Einstein. A more pragmatic approach rather than rectifying well-established fundamentals is that the vacuum of space is saturated with dark energy or a repulsive force counteracting the mutual gravitational pull of the galaxies and celestial bodies in the universe. One of the most startling discoveries made from the first hand evidence provided by the cosmological observations from Supernovae Ia (SNe Ia), cosmic microwave background radiation (CMB), large scale structure (LSS), BAO and weak lensing was the fact that our universe consists of almost 5% ordinary matter (atoms, observable matter), 25% dark matter (DM) (a gravitationally interacting form of pressure less and cold non-baryonic matter) and 70% dark energy [4,5,6,7,8]. Cosmologists believe that the cosmic network of DM is responsible for providing the scaffolding upon which the observable universe is formulated. In the absence of DM, the distribution of galaxies in clumps and strands as observed by the astronomers would not be possible. Hence, the quest to unravel the mysteries pertaining DE and DM is considered as one of the most crucial fields of research in cosmology nowadays.

Although much of the observational data endorses the standard model of cosmology, the \(\Lambda \)CDM model, it is challenged owing to its shortcomings (i.e., the fine-tuning problem and the coincidence problem) and numerous dubious assumptions [9,10,11]. The coincidence problem of late cosmic acceleration illustrates the predicament that precisely in this era, the density of DM and DE denoted by \(\rho _\mathrm{{DM}}\) and \(\rho _\mathrm{{DE}}\), respectively, is of the same order of magnitude even though they have contradistinctive time evolution. All these discrepancies in data have set off a search to understand the cosmic forces at play. Several alternative routes have been proposed so far to overcome the theoretical glitches in the \(\Lambda \)CDM model. One convenient approach to alleviate the aforementioned problem is to replace the constant \(\Lambda \) with the one that is time dependent. Another interesting proposition is to deviate from GR toward modified theories. Over the past two decades, numerous such theories have been devised and studied in literature. The most well-known models of modified gravity include the teleparallel equivalent of GR (TEGR) and its generalized version of f(T) gravity (here T is the torsion scalar), the f(R) theory with R as Ricci scalar, \(f(R,{\mathcal {T}})\) gravity with \({\mathcal {T}}\) as the trace of the energy momentum tensor, braneworld model, Dvali–Gabadadze–Porrati model, Gauss–Bonnet gravity model, Dirac–Born–Infeld gravity, Brans–Dicke gravity and scalar tensor theories [12,13,14,15,16,17,18,19,20,21,22,23,24].

Teleparallel gravity is an interesting version of modified gravity which involves a curvature less spacetime structure with Lagrangian density in terms of the torsion scalar T. Considering the field equations, this theory is equivalent to GR, but in terms of its geometric perspectives, there is a drastic difference. The f(T) gravity which is a natural extension of TEGR has been widely studied in the literature to explain the current cosmic scenario and reconstruction of cosmological models [25,26,27,28]. In this respect, Harko et al. introduced an interesting modification by inducing a non-minimal coupling of torsion scalar with the matter field in the standard f(T) action [29,30,31]. Further, the f(TB) gravity is another significant contribution made by Bahamonde et al. [32] which is a unique locally Lorentz invariant theory with B (\(R=-T+B\)) as the torsion boundary term. One interesting aspect of this framework is that it establishes a relation with second-order f(T) gravity and the fourth-order f(R) gravity in certain limits. For example, if the boundary term is neglected, then it transforms into f(T) model, while one can recover f(R) theory if the function uses the profile \(f(-T+B)\). The f(TB) theory has been explored within various cosmic scenarios and proved to be quite successful and interesting [33,34,35,36,37,38,39,40,41,42,43]. In the context of teleparallel theory, the topic of gravitational waves has been explored by Abedi and Capozziello [37] by taking a general framework involving the torsion scalar, the boundary term as well as a scalar field. They concluded that the minimal interaction of boundary term with torsion scalar and the scalar field results in the gravitational waves having the same polarization modes as those of GR. The topic of gravitational waves and its polarization modes has been further explored by Capozziello et al. [38] in f(TB) gravity, and significant results have been achieved. In another recent work, authors [39] claimed that late time oscillatory behavior of EoS can be explained appropriately in f(TB) framework, and hence, it can be an interesting candidate to modify \(\Lambda \)CDM model using observational data set. Pourbagher and Amani [40] investigated f(TB) framework by using new agegraphic DE model and viscous fluid and discussed different cosmic measures and thermodynamics using observational constraints. Another significant work in teleparallel theory is by Bahamonde and Camci [41]. They used Noether symmetry technique to find exact solutions for spherically symmetric and static spacetime where different forms of f(TB) have been considered. Some other interesting and viable contributions in this gravitational framework can be found in the literature [42,43,44,45,46].

Amid the DE proposals, holographic dark energy (HDE) model [47] is the one that has been explored extensively in a variety of DE schemes since the last few decades. Basically, its energy density \(\rho _\mathrm{{DE}}=3C^2 {M}_{pl}^2 {L}^{-2}\) (where C is a an arbitrary constant, \(M_{pl}=\frac{1}{\sqrt{8\pi G}}\) is the reduced Planck mass with G as the gravitational constant, and L is the IR cutoff) is derived using the holographic principle given by Gerard’t Hooft [48]. Altering the entropy–area relation or infrared (IR) cutoff, various HDE models have been constructed and analyzed till date. Tavayef et al. [49, 50] introduced another dynamical HDE model, namely Tsallis holographic dark energy (THDE) using holographic principal along with the entropy expression proposed by Tsallis and Cirto which is given by \({\mathcal {S}}_{\delta }={\gamma }{A}^{\delta }\), where S denotes entropy, A represents area, \(\gamma \) is arbitrary, and \(\delta \) is a non-additivity parameter. THDE is found to be stable under specified conditions and also very successful in explaining the late time cosmic expansion. Thereafter in the last few years, THDE has been investigated vigorously applying a variety of IR cutoffs, involving interactions and under the influence of several modified gravities [51,52,53,54,55].

Cosmological reconstruction is one of the most vital schemes utilized in modified gravity to deliver accurate cosmological dispositions. Usually, the reconstruction scheme involves the unification of modified theory and the chosen DE model by comparing their respective energy densities. In [56,57,58,59,60,61,62,63], authors executed the reconstruction of f(R) and f(RT) gravity theories under different scenarios that can produce realistic cosmology and effectively demonstrate the current DE dominating phases. Sharif and Nazir [64] explored the cosmic evolutionary scenario of generalized ghost pilgrim DE in \(f(T,T_G)\) gravity by applying various scale factors. Sharif and Zubair [65] reconstructed the f(R) gravity model by considering the pilgrim DE model as the DE candidate. They studied its behavior under the effect of different IR cutoffs and obtained interesting results. Houndjo and Piattella [66] numerically generated a cosmic regime consistent with the accelerated cosmic expansion by considering the HDE along with two special cases of \(f(R,{\mathcal {T}})\) gravity models. Sharif and Saba [67] analyzed the THDE with IR cutoff as Hubble horizon in \(f(G,{\mathcal {T}})\) gravity by exploring some cosmic diagnostic parameters and phase planes. Also, Waheed [68] recently studied the reconstruction process in f(T) gravity and its different extensions, namely f(TG), non-minimal interaction of torsion and matter along with \(f(T,{\mathcal {T}})\) theory by taking THDE model into account.

Motivated by the above literature, in the present paper, we are interested to investigate the reconstruction paradigm for THDE using two interesting models of f(TB) gravity. The paper is organized in this pattern. In Sect. 2, we shall provide a brief review of f(TB) theory along with the modified Einstein field equations and the THDE model. Section 3 is devoted to study the reconstruction paradigm for f(TB) models analytically based on THDE model. In each case, we shall apply the power law cosmology and hybrid expansion law (de-Sitter universe) to determine the evolution of cosmological parameters and validity of the null energy condition (NEC). Section 4 provides the stability analysis of all the reconstructed models using the perturbation technique. The last section discusses the conclusion and main findings of this study.

2 Reconstruction of THDE f(TB) models

In this section, we shall briefly describe the basic ingredients required for this study and also formulate the basic field equations of f(TB) theory for a flat, homogeneous and isotropic FLRW universe. The locally Lorentz invariant f(TB) gravity provides an interesting modified framework dependent on the torsion scalar T and divergence of the torsion vector (the vector defined by contracting the first two indices of torsion tensor) which is known as boundary term [39]. The vierbeins \({e^a}_\mu \) in this theory are the orthonormal vectors at each point of the spacetime manifold. They obey the orthogonality relation and are hence related to the metric by \(g_{\mu \nu }={e^a}_{\mu }{e^b}_\nu \eta _{ab}\), where \(\eta _{ab}\) is the Minkowski metric. It should be noted here that the Latin and Greek letters refer to the tangent space and spacetime indices, respectively. Also, the term \({e^a}_{\mu }\) is different from the term \({e_\mu }^a\) and they primarily represent inverses of each other. For a spacetime with vanishing curvature and nonzero torsion, we require the Weitzenb\(\ddot{o}\)ck connection in place of the standard Levi–Civita connection which is defined as \(W^a_{\mu \nu }=\partial _{\nu }{e^a}_\mu +{\omega ^a}_{b\nu }{e^b}_{\mu }.\) The torsion tensor can be formulated as

$$\begin{aligned} {T^a}_{\mu \nu }=W^a_{\nu \mu }-W^a_{\mu \nu }=\partial _\mu {e^a}_\nu -\partial _\nu {e^a}_\mu +{\omega ^a}_{b\mu }{e^b}_{\nu } -{\omega ^a}_{b\nu }{e^b}_{\mu }. \end{aligned}$$

Also, the contortion tensor and superpotential are defined in terms of torsion tensor as

$$\begin{aligned} {K^{\mu \nu }}_a= & {} \frac{1}{2}({T_a}^{\mu \nu }+{T^{\nu \mu }}_a -{T^{\mu \nu }}_a),\\ {S_a}^{\mu \nu }= & {} {K^{\mu \nu }}_a-{e_a}^\nu {T^{\alpha \mu }}_{\alpha } +{e_a}^\mu {T^{\alpha \nu }}_{\alpha }. \end{aligned}$$

Contracting the torsion tensor with the superpotential provides us with the torsion scalar given by \(T={T^a}_{\mu \nu }{S_a}^{\mu \nu }\), which is calculated on \(W^a_{\mu \nu }\) in a similar fashion as the Ricci scalar R’s dependency on the Levi–Civita connection. Using the contortion tensor, we can obtain a connection between the R and torsion scalar as

$$\begin{aligned} R=-T+B, \quad B=\frac{2}{\sqrt{-g}}\partial _\mu \left( \sqrt{-g}{{T^{\sigma }}_{\sigma }}^\mu \right) . \end{aligned}$$
(1)

Here, g is the determinant of the metric tensor. Therefore, with the purpose of combining both f(R) and f(T) gravity, the action for f(TB) theory of gravity as proposed by Bahamonde et al. [32] is given by

$$\begin{aligned} {{\mathcal {S}}_{f(T,B)}}=\frac{1}{2\kappa ^2} \int {\sqrt{-g}f(T,B)\mathrm{d}^{4}x+{\mathcal {S}}_{m}}, \end{aligned}$$
(2)

where \(\kappa =\sqrt{8\pi G}\) and \(S_m\) represents the part of action corresponding to the ordinary matter source. If we remove the boundary term, the above action represents the well-known f(T) gravitational framework, while if we choose the specific case \(f(-T+B)\), the natural extension of GR, the action of f(R) gravity can be recovered.

The flat FRW spacetime with expansion factor a(t) is described by the following line element

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

Considering this metric the tetrad field can be written as

$$\begin{aligned} e^\nu _\mu =\mathrm{{diag}}(1,a(t), a(t), a(t)). \end{aligned}$$
(4)

It is imperative to mention here that for the above choice of diagonal tetrad, the spin connection \({\omega ^a}_{b\nu }\) will be zero [69]. Let us consider the source of ordinary matter as perfect fluid which is defined by the energy–momentum tensor

$$\begin{aligned} \Theta _{\mu \nu }=(\rho _m +p_m)u_{\mu }u_{\nu }-p_m g_{\mu \nu }, \end{aligned}$$
(5)

where the terms \(\rho _m\), \(p_m\) and \(u_{\nu }\) stand for the ordinary matter density, pressure and fluid four-velocity, respectively, and satisfy the relation: \(u_{\mu }u^{\nu }=-1\). In co-moving coordinates, one can pick \(u^{\mu }=\delta ^{\mu }_{0}\). In the presence of perfect fluid contents, the f(TB) field equations for FRW geometry can be written as

$$\begin{aligned}&-3 H^2 (3 f_B+2 f_T)+3H \dot{f}_{B}-3 \dot{H} f_B +\frac{1}{2}f(T,B)=\kappa ^2 \rho _m, \end{aligned}$$
(6)
$$\begin{aligned}&-3 H^2 (3 f_B+2 f_T)-\dot{H} (3 f_B+2 f_T)-2 H \dot{f}_{T}+\ddot{f}_{B}+\frac{1}{2}f(T,B)=-\kappa ^2 p_m. \end{aligned}$$
(7)

Here, dot represents the time derivative of the respective function. One can recover the TEGR field equations by replacing the term f(TB) with \(-T\). For FRW geometry, the torsion scalar and boundary term are defined in terms of Hubble parameter using \(R=-T+B=6(2H^2+\dot{H})\), since \(T= 6H^2\) and \(B=6(\dot{H}+3H^2)\), respectively. These field equations can also be rewritten as

$$\begin{aligned} 3H^2= & {} -\kappa ^2\left( \frac{\rho _m}{2f_T}+\rho _{TB}\right) , \end{aligned}$$
(8)
$$\begin{aligned} 2\dot{H}= & {} \kappa ^2\left( \frac{\rho _m}{2f_T}+\frac{p_m}{2f_T} +\rho _{TB}+p_{TB}\right) , \end{aligned}$$
(9)

where the terms \(\rho _{TB}\) and \(p_{TB}\) are defined as:

$$\begin{aligned} \rho _{TB}= & {} \frac{1}{2 f_T \kappa ^2}\left[ -3H \dot{f}_{B} +(3\dot{H}+9 H^2)f_B-\frac{1}{2}f(T,B)\right] , \end{aligned}$$
(10)
$$\begin{aligned} p_{TB}= & {} \frac{1}{2 f_T \kappa ^2}\left[ \frac{1}{2}f(T,B) +\dot{H} (2 f_T-3 f_B)-2H\dot{f}_{T}-9H^2f_B+\ddot{f}_{B}\right] . \end{aligned}$$
(11)

Also, the corresponding energy conservation equations are given by

$$\begin{aligned} \dot{\rho }_{m}+3H(1+\omega _m)\rho _{m}=0, \end{aligned}$$
(12)
$$\begin{aligned} \dot{\rho }_{TB}+3H(1+\omega _{TB})\rho _{TB}=0. \end{aligned}$$
(13)

Here, \(\omega _m\) denotes the ordinary matter equation of state parameter (EoS) and it is simply defined as \(p_m=\omega _m\rho _m\), where \(0\le \omega _m\le 1\) and \(\omega _{TB}\) is the EoS parameter of dark energy. The integration of Eq. (12) yields the following expression:

$$\begin{aligned} \rho _{m}(t)=\rho _0 a(t)^{-3(1+\omega _m)}. \end{aligned}$$
(14)

Further, we consider the Tsallis HDE energy density given by [49]:

$$\begin{aligned} \rho _\mathrm{{DE}}=\xi L^{2\delta -4}, \end{aligned}$$
(15)

where both \(\xi \) and \(\delta \) are arbitrary parameters, while L represents the IR cutoff. It is interesting to mention here that in the limit \(\delta =1\), the Tsallis HDE will be reduced to simple HDE model of DE. In the present case, we undertake the most simple choice for IR cutoff as the Hubble radius (\(H^{-1}\)), and consequently, the energy density for THDE takes the form

$$\begin{aligned} \rho _\mathrm{{DE}}=\xi H^{4-2\delta }. \end{aligned}$$
(16)

There is a bulk of the literature that has discussed cosmic acceleration undertaking different HDE models with Hubble IR cutoff into account. Zadeh et al. [70] explored the Tsallis HDE model by using three IR cutoffs: Ricci horizon, particle horizon and Granda–Oliveros (GO). It has been concluded that contrary to the simple HDE case, when particle horizon is used as an IR cutoff for Tsallis HDE, it can produce cosmic expansion. Moreover, this horizon also exhibits stability of the model in the presence of an interaction term for some values of the redshift parameter. Tavayef et al. [71] have established that the use of Hubble radius as IR cutoff for Tsallis HDE model can also produce the late time cosmic acceleration even without including interaction of dark cosmic sectors. This result opposes the simple HDE model which is unable to endorse an accelerating cosmos in the absence of interaction term where the Hubble cutoff is taken into account. Also, in another investigation by Jawad et al. [72] of the cosmic expansion using Renyi, Tsallis and Sharma–Mittal HDE models with Hubble IR cutoff in loop quantum cosmology, it is found that models based on Renyi and Sharma–Mittal HDE remained stable in the later epochs, while Tsallis HDE showed unstable behavior. In a research article by Zadeh et al. [73], the authors have considered two choices for the system’s IR cutoffs: the age of the universe and the conformal time. From the analysis of different cosmic measures, it is concluded that in non-interacting case, the discussed models are classically unstable (using speed of sound). In this context, Sadri [74] has studied Tsallis HDE model by opting the Hubble as well as the future event horizon as the IR cutoff and concluded that in comparison with the Hubble horizon, the future event horizon leads to a stable model generating cosmic acceleration in the final epochs. Likewise, Maity and Debnath [75] introduced a nonlinear coupling of same HDE models with the cold DM in the framework of flat fractal universe of D-dimensions where IR cutoffs as Hubble radius and GO have been considered. It was concluded that due to the considered interaction term, these models can successfully explain the cosmic expansion.

In a recent study [76], authors examined the features of Tsallis HDE model in the framework of Brans–Dicke gravity by taking Hubble IR cutoff. They have concluded that the obtained results of different cosmic measures like deceleration and EoS are in good agreement with the recent observational data. Similarly, in [77], the researchers showed that by taking Tsallis HDE model with Hubble IR cutoff along with interaction term, the model can exhibit the usual thermal history and DM and DE epochs before resulting in the DE-dominated future eras. It is also observed that different cosmic measures like deceleration parameter, speed of sound and EoS behave more appropriately when the condition of \(\delta >2\) is imposed. Shekh et al. [78] have explored the f(TB) framework by using Hubble radius as IR cutoff for Renyi, Tsallis and Sharma–Mittal HDE models. It can be concluded that a majority of the above-mentioned literature confirms that this choice of HDE model as well as IR cutoff can successfully lead to cosmic acceleration but remain unstable (using speed of sound). Therefore, our prime target is to explore the behavior of the reconstructed solutions using Hubble radius as IR cutoff and to examine whether the obtained solutions are stable and favor the cosmic acceleration. Also, the second reason for choosing Hubble as the IR cutoff is its simplicity since we are interested in finding the exact solutions and not the numerical interpretations, which will be difficult to obtain in case of a complicated IR cutoff.

3 f(TB) models

In the present section, we will reconstruct the form of generic function f(TB) by using power and hybrid expansion laws of scale factor. Here, we shall consider two particular forms of f(TB) function given by

  • \(f(T,B)= f_1(T)+f_2(B)\),

  • \(f(T,B)=-T+g(B)\).

For the reconstruction of generic function, correspondence of two densities \(\rho _{TB}\) and \(\rho _{DE}\) yields a complicated differential equation, so it is necessary to assume some simple form of f(TB) function. The most simplest choice will be the separable form which can be as sum or product of two functions. The former will provide the minimal interaction of T and B, while the later leads to the direct interaction and of course again can yield a complex equation. Just for the sake of simplicity in calculations, we have assumed the addition form which has been considered already in numerous researches; for instance, one can see the references [33,34,35, 67]. The second case: \(f(T,B)=-T+g(B)\) is similar to the models \(f(R)=R+F(R)\) and \(f(T)=-T+f(T)\) considered in the respective f(R) and f(T) theories [79, 80]. It is interesting to mention here that although the first separable case is more general than the second choice, one might get a different model as mentioned in [33].

3.1 \(f(T,B)= f_1(T)+f_2(B)\)

Firstly, we consider the function f(TB) as the sum of two independent functions of T and B, i.e., separable in the sum form.

3.1.1 Power law Cosmology

Here, we reconstruct the form of generic function by taking power law form of scale factor into account. It is considered as one of the most interesting and widely used choices of scale factor for the description of accelerated expansion of our cosmos in modified gravity theories. The power law form of scale factor is defined by [81, 82]:

$$\begin{aligned} a(t)=a_0{(t_p-t)}^{-\mu }; \;\;\;\;\;\; \mu>0,\;\; t_p>t, \end{aligned}$$
(17)

where \(a_0\) is the current value of the scale factor, \(t_p\) represents the possible time when a finite singularity in future might occur, and \(\mu \) is a constant. By using Eq. (15), the Hubble parameter, its time rate, the torsion scalar and boundary term take the form

$$\begin{aligned} H=\frac{\mu }{t_p-t},\;\;\;\;\;\;\dot{H}=\frac{\mu }{{(t_p-t)}^2}, \;\;\;\;\;\; T=\frac{6{\mu }^2}{{(t_p-t)}^2},\;\;\;\;\;\; B=\frac{6\mu (3\mu +1)}{{(t_p-t)}^2}. \end{aligned}$$

Also, the deceleration parameter given by \(q=-1-\frac{\dot{H}}{H^2}\) leads to the expression \(-1+\frac{1}{\mu }\) which further enables us to set a constraint on the value of parameter \(\mu \). It is easy to check that \(\mu >1\) favors the accelerating phases of our cosmos, while a decelerating epoch can be discussed for \(\mu \le 1\).

In order to find the form of generic function f(TB) that can generate the same cosmology as produced by THDE model, we use the correspondence scheme of energy densities by assuming \(\rho _{DE}=\rho _{TB}\). Consequently, we obtain

$$\begin{aligned} \frac{1}{2 f_T \kappa ^2}\left[ -3H \dot{f_B}+(3\dot{H}+9 H^2)f_B -\frac{1}{2}f(T,B)\right] =\xi H^{4-2\delta }. \end{aligned}$$
(18)

For the specified separable form given by \(f(T,B)=f_1(T)+f_2(B)\), Eq. (18) can be rewritten as

$$\begin{aligned}&-2 B^2 f_{2BB}(B)+(3\mu +1)B f_{2B}(B)-(3\mu +1)f_{2}(B)=2(3\mu +1)K, \end{aligned}$$
(19)
$$\begin{aligned}&4\xi \kappa ^2{\left( \frac{T}{6}\right) }^{(2-\delta )}f_{1T}(T)+f_{1}(T)=2K, \end{aligned}$$
(20)

where we have applied the methodology of separation of variables with K as a constant of separation. Here, we have introduced the notations: \(f_{1T}=\frac{\partial f_1(T)}{\partial T}\), \(f_{1TT}=\frac{\partial ^2 f_1(T)}{\partial T^2}\), \(f_{2B}=\frac{\partial f_2(B)}{\partial B}\) and \(f_{2BB}=\frac{\partial ^2 f_2(B)}{\partial B^2}\). The analytical solution for these equations can be found as:

$$\begin{aligned}&f_2(B)=c_1 B^{\frac{3\mu +1}{2}}+c_2B -2 K, \end{aligned}$$
(21)
$$\begin{aligned}&f_1(T)=c_3 e^{-\frac{2^{-\delta } 3^{2-\delta } T^{\delta -1}}{\xi (\delta -1) {\kappa ^2}}}+2 K. \end{aligned}$$
(22)

Thus, in power law cosmology, the function takes the form

$$\begin{aligned} f(T,B) = c_1 B^{\frac{3\mu +1}{2}}+c_2B + c_3 e^{-\frac{2^{-\delta } 3^{2-\delta } T^{\delta -1}}{\xi (\delta -1) {\kappa ^2}}}; \quad \delta \ne 1. \end{aligned}$$
(23)

Here, the constants of integration \(c_1, c_2\) and \(c_3\) can be found by taking the following boundary conditions [83,84,85] into account

$$\begin{aligned} f_B|_{t=t_0}=1, \;\;\;\;\; f_T|_{t=t_0}=1,\;\;\;\;\; f(T_0, B_0)=B_0+\epsilon , \end{aligned}$$
(24)

where \(\epsilon = 6H_0^2(3-\Omega _{DE0})\), while \(\Omega _{DE0}\) is taken as \(1-\Omega _{M0}\) and \(H_0\) represents the present day value of the Hubble parameter. Therefore, after some algebraic manipulations, we get

$$\begin{aligned} c_1= & {} \frac{2 B_0 ^{-\frac{1+3 \mu }{2}} T_0 ^{-\delta } \left( 54 H_0 ^2 T_0 ^{\delta }\Omega _{\mathrm{DE0}}-162 H_0 ^2 T_0 ^{\delta }-6^{\delta }\xi \kappa ^2 T_0 ^2\right) }{9 (3 \mu -1)},\\ c_2= & {} \frac{T_0 ^{-\delta } \left( 27 \mu B_0 T_0 ^{\delta } {-}9 B_0 T_0 ^{\delta }{-}162 \mu H_0^2 T_0^{\delta } \Omega _{\mathrm{DE0}}{-}54 H_0^2 T_0^{\delta }\Omega _{\mathrm{DE0}} {+}486 \mu H_0^2 T_0^{\delta } {+}162 H_0 ^2 T_0 ^{\delta } {+}2^{\delta } 3^{\delta +1} \mu \kappa ^2 \xi T_0 ^2 {+}6^{\delta } \kappa ^2 \xi T_0 ^2\right) }{9 B_0 (3 \mu {-}1)},\\ c_3= & {} \left( -2^{\delta }\right) 3^{\delta -2} \kappa ^2 \xi T_0 ^{2-\delta } e^{\frac{2^{-\delta } 3^{2-\delta } T_0 ^{\delta -1}}{\xi (\delta -1) \kappa ^2 }}. \end{aligned}$$

Here, if we substitute our reconstructed solution (23) in the Friedmann Eq. (8), we get:

$$\begin{aligned} 3H^2=\kappa ^2\left( \frac{\kappa ^2 \xi \rho _m}{c_3 2^{1-\delta } 3^{2-\delta } T^{\delta -2}}e^{\frac{2^{-\delta } 3^{2-\delta } T^{\delta -1}}{\xi (\delta -1) \kappa ^2 }}-\xi H^{-2\delta +4}\right) \end{aligned}$$
(25)

Considering Eq. (12), we arrive at:

$$\begin{aligned} 3 \mu ^2 t^{-2} \sim 2 e^{\frac{3 \left( \frac{\mu ^2}{t^2} \right) ^{\delta -1}}{2 (\delta -1)}} \left( \frac{\mu ^2}{t^2}\right) ^{2-\delta } \left( (-t)^{-\mu }\right) ^{-3 \left( \omega _m+1\right) } +\left( -\frac{\mu }{t}\right) ^{4-2 \delta } \end{aligned}$$
(26)

For a dominating THDE, the power law solution will exist only when the constraint \(-2=2\delta -4\) is imposed which further gives \(\delta =1\) and hence corresponds to simple HDE model. Further, if we consider matter-dominated epoch, then constraint \(-2=3\mu (1+\omega _m)\) should be imposed which further leads to \(\mu =-\frac{2}{3(1+\omega _m)}\). It is worthy to note here that for the matter-dominated case, one must consider \(\delta \approx 1\), not the constraint \(\delta =1\), as the exponential term on the right-hand side of Eq. (26) satisfies the condition \(e^{\frac{3 \left( \frac{\mu ^2}{t^2}\right) ^{\delta -1}}{2 (\delta -1)}}\) \(\rightarrow 0\) as \(\delta \rightarrow 1\). Thus, in this case, the effect of matter term in the field equations thoroughly vanishes if \(\delta =1\) is imposed. Therefore, in order to maintain the presence of HDE fluid within a power law cosmology, the evolution must occur during a matter-dominated phase imposing the constraint \(\delta \approx 1\) and \(\mu =-\frac{2}{3(1+\omega _m)}\) which, in our case, will reduce to \(-\frac{2}{3}\) as we are considering a pressureless matter source (\(\omega _m=0\)). This condition ensuring the matter-dominated case \(\mu =-\frac{1}{3}<1\) is also suggested by the deceleration parameter. Consequently, to maintain consistency with the field equations and assuming a DE dominating epoch, we assume \(\mu >1\) and choose \(\delta =1\) in Eq. (20) and obtain a new f(TB) function which can be expressed as follows

$$\begin{aligned} f(T,B) = c_1 B^{\frac{3\mu +1}{2}}+c_2B + c_3 T^{-\frac{3}{2 \xi \kappa ^2 }}. \end{aligned}$$
(27)

Consequently, the constants take the form

$$\begin{aligned} c_1= & {} \frac{B_0^{-\frac{3 \mu }{2}-\frac{1}{2}} \left( 9 H_0^2 \Omega _{\mathrm{DE0}}-27 H_0^2 +\kappa ^2 \xi T_0\right) }{3 (3 \mu -1)},\\ c_2= & {} -\frac{-9 B_0 \mu +3 B_0+54 H_0^2 \mu \Omega _{\mathrm{DE0}}+18 H_0^2 \Omega _{\mathrm{DE0}} -162 H_0^2 \mu -54 H_0^2+6 \kappa ^2 \mu \xi T_0 +2 \kappa ^2 \xi T_0}{3 B_0 (3 \mu -1)},\\ c_3= & {} \frac{1}{3} (-2) \kappa ^2 \xi T_0^{\frac{3}{2 \kappa ^2 \xi }+1}. \end{aligned}$$

The EoS parameter \(\omega _{TB}\) is formulated using Eqs. (13) and (16) as

$$\begin{aligned} \omega _{TB}=-1+\frac{2(\delta -2)}{3\mu }. \end{aligned}$$
(28)

Now, we shall examine the graphical behavior of the reconstructed model using some cosmological quantities. Here, the graphs are plotted against the redshift parameter z by using the relation \(\frac{a(t)}{a_0}=(z+1)^{-1}\). The graph for the function \(f(T,B)_{THDE}\) is plotted using three different values of the parameter \(\mu \): 1.4, 1.7 and 2 along with \(\Omega _{m0}=0.27\) and \(H_0=67.3\) (taken from the recent available Planck data [86]). Figure 1 shows that \(f(T,B)_{THDE}\) takes negative gradually increasing values versus redshift parameter.

Fig. 1
figure 1

The graphs show the behavior of f(TB) function versus redshift parameter for various choices of \(\mu \), \(\delta =1\) and \(\xi =3.5\) under the influence of power law cosmology

Fig. 2
figure 2

The plots indicate the evolution of \(\omega _{TB}\) and NEC for f(TB) model in power law cosmology for different choices of \(\mu =1.4, 1.7\) and 2 with \(\delta =1\) and the matter-dominated case with \(\mu =-\frac{2}{3}\) and \(\delta =0.99\). Here, we have used \(\Omega _{m0}=0.27\) and \(H_0=67.3\)

The plots of \(\omega _{TB}\) for four varied choices of \(\mu \) are provided in Fig. 2 (left panel). It can be seen that for \(\mu >1\), the EoS parameter takes negative values satisfying \(-1.5<\omega _{TB}<-1\) for the entire cosmic evolution and hence corresponds to the phantom cosmic epoch. In this plot, we have also displayed the evolution of \(\omega _{TB}\) by taking \(\mu =-\frac{2}{3}\) with \(\delta =0.99\). The graph displays a positive EoS parameter and hence depicting a matter-dominated era, which is in conformity with the results obtained in Eq. (26). Hence, graphical description of reconstructed model validates the discussion provided earlier in the text.

Next, we have explored the behavior of null energy condition (NEC) for the reconstructed f(TB) model. The validation of NEC ensures that the energy density of the universe remains within its bounds and its violation implies that it escalates without limits causing expansion to accelerate relentlessly leading to the Big Rip of the universe. In FRW cosmology with perfect fluid contents, the NEC implies \(\rho +p \ge 0\), and consequently, we can write

$$\begin{aligned} \mathrm{{NEC}}:~\rho _m +\rho _{TB}+ p_m +p_{TB}\ge 0, \end{aligned}$$
(29)

which, in the present case, can be calculated as

$$\begin{aligned} \mathrm{{NEC}}:~ \xi H^{2-\delta }\frac{2(\delta -2)}{3\mu }\ge 0 \Rightarrow \frac{2\xi (\delta -2)}{3\mu } \left( \mu (1+z)^{-1/\mu }\right) ^{2-\delta }\ge 0 . \end{aligned}$$
(30)

The curves of NEC for three different choices of \(\mu \) are provided in the right panel of Fig. 2. It is seen that this condition is not satisfied for all values of redshift parameter which again endorses the phantom regime.

3.1.2 Hybrid Expansion law

In this section, we shall investigate the reconstructed form of generic function based on THDE model in separable form \(f(T,B) =f_1(T)+f_2(B)\) by taking the hybrid scale factor [87]. The hybrid law of expansion factor is defined as

$$\begin{aligned} a(t)=a_0\left( \frac{t}{t_p}\right) ^\mu e^{\nu (\frac{t}{t_p}-1)}, \end{aligned}$$
(31)

where \(\mu \) and \(\nu \) are arbitrary nonnegative constant values. Furthermore, \(a_0\) is the present value of scale factor and \(t_0\) gives the current age of cosmos. Here, we can proceed by taking two possibilities of these parameters into account. First, by assuming \(\nu =0\), it will give us the simple power law solution, and secondly, the choice \(\mu =0\) will result in the exponential solution. Also, for \(\mu ,\nu \ne 0\), we encounter \(q=-1-\frac{\mu t_p^2}{(\mu t_p+\nu t)^2}\) which shows that \(q\rightarrow -1\) as \(t \rightarrow \infty \). Now, we reconstruct the f(TB) function by considering the above specified cases. The case with \(\nu =0\) holds a striking resemblance, in terms of equations, with the power law cosmology; hence, it has been omitted from the manuscript.

  • De-Sitter Case (\(\mu =0\))

Here, we assume the exponential form of scale factor which refers to the de-Sitter model of our cosmos. The de-Sitter solution holds a substantial place in cosmology and has been widely examined in the literature. In the present study, this choice of scale factor leads to \(a(t)=a_0 e^{\nu (\frac{t}{t_p}-1)}\), which further yields a constant form of f(TB) function and a steady observationally correct value for the EoS parameter \(\omega _{TB}=-1\). For this choice, we obtain

$$\begin{aligned} H=\frac{\nu }{t_p},\;\;\;\;\;\;\dot{H}=0,\;\;\;\;\;\; T=\frac{6{\nu }^2}{{t_p}^2},\;\;\;\;\;\;B=\frac{18\nu ^2}{{t_p}^2}. \end{aligned}$$
(32)

It is worthwhile to mention here that since \(\dot{H}=0\), therefore the deceleration parameter leads to \(q=-1\), which abides by the perfect cosmological principle. Using the correspondence scheme of energy densities, the resulting differential equations are given by

$$\begin{aligned} B f_{2B}(B)-f_{2}(B)=2K, \quad 4\xi \kappa ^2 {\left( \frac{T}{6}\right) }^{(2-\delta )}f_{1T}(T)+f_1(T)=2K. \end{aligned}$$

The solutions of the above equations lead to the following form of generic function

$$\begin{aligned} f(T,B)=c_1B+c_2 e^{-\frac{2^{-\delta }3^{2-\delta } T^{\delta -1}}{\xi (\delta -1){\kappa ^2}}}. \end{aligned}$$
(33)

Further, by using the boundary conditions, the value of \(c_1\) and \(c_2\) can be found as

$$\begin{aligned}&c_1=\frac{T_0^{-\delta }\left( 9 B_0 T_0^{\delta }-54 H^2 T_0^{\delta } \Omega _{\mathrm{DE0}}+162 H_0^2 T_0^{\delta } +\kappa ^2 \xi 6^{\delta } \kappa ^2 T_0^2\right) }{9 B_0}, \\&c_2=-2^{\delta } 3^{\delta -2}\xi \kappa ^2 T_0^{2-\delta } e^{\frac{2^{-\delta } 3^{2-\delta } T_0^{\delta -1}}{\xi (\delta -1)\kappa ^2}}. \end{aligned}$$

The graph in Fig. 3 (left panel) indicates the evolution of a positive constant f(TB) function against redshift parameter. The EoS parameter \(\omega _{TB}\), in this case, is also a constant equal to \(-1\) and hence coinciding with the \(\Lambda \)CDM model for the entire evolution history. The NEC is unconditionally verified and approaches to 0 which is in agreement with EoS parameter recommending the \(\Lambda \)CDM model as shown in Fig. 3 (right panel).

Fig. 3
figure 3

Left curve shows the behavior of f(TB) model for de-Sitter cosmology and the evolution of NEC for different values of \(\nu =0.8, 1\) and 1.2 along with \(\xi =3.5\) and \(\delta =1.4\)

3.2 \(f(T,B)= -T+g(B)\)

Here, we shall discuss the reconstructed form of generic function based on THDE model by taking both power and hybrid expansion laws when function f(TB) is assumed as the difference of torsion scalar and an unknown function of the boundary term B.

3.2.1 Power law Cosmology

Here, we shall reconstruct the form of \(f(T,B)=-T+g(B)\) based on THDE model by using power law form of scale factor. Using the correspondence scheme of energy densities, we get the following differential equation:

$$\begin{aligned} -2 B^2 g_{BB}(B)-(3 \mu +1) g(B)+(3 \mu +1)B g_{B}(B)+\mu B=-4\kappa ^2 \xi (3\mu +1)\left( \frac{\mu B}{6(3\mu +1)}\right) ^{2-\delta }, \end{aligned}$$
(34)

which is a second-order differential equation with B as the sole dependent variable. The corresponding solution can be obtained by integration as follows

$$\begin{aligned} g(B)=C_1 B^{\frac{3 \mu +1}{2}}+C_2 B+\frac{2^{\delta +1}\kappa ^2\xi B^{2-\delta }(9\mu +3)^\delta }{9(\delta -1)(3\mu +1)(2\delta +3\mu -3)} +\frac{\mu B \ln B}{1-3\mu }, \end{aligned}$$

and consequently, our model takes the form:

$$\begin{aligned} f(T,B)=-T + C_1 B^{\frac{3 \mu +1}{2}}+C_2 B +\frac{2^{\delta +1}\kappa ^2\xi B^{2-\delta } (9\mu +3)^\delta }{9(\delta -1)(3\mu +1)(2\delta +3\mu -3)} +\frac{\mu B \ln B}{1-3\mu }.\nonumber \\ \end{aligned}$$
(35)

The constants of integration \(C_1\) and \(C_2\) have been calculated similarly using the initial condition (24), which are as follows

$$\begin{aligned} C_1= & {} \frac{2 B_0^{-\frac{3 \mu +1}{2}} \left( \frac{2^{\delta +1} 3^{\delta } \kappa ^2 (3 \mu -1) \xi B_0^{2-\delta } (3 \mu +1)^{\delta -1}}{2 \delta +3 \mu -3}+9 B_0 \mu -9 (3 \mu -1) \left( T_0-6 H_0^2 \Omega _{\mathrm{DE0}}\right) \right) }{9 (1-3 \mu )^2},\\ C_2= & {} \frac{9 \mu (3 \mu -1) \log \left( B_0\right) +9 \mu (9 \mu -8)+9 +\frac{9 \left( 9 \mu ^2-1\right) \left( T_0-6 H_0^2 \Omega _{\mathrm{DE0}}\right) }{B_0}-\frac{2^{\delta +1} 3^{\delta } \kappa ^2 (3 \mu -1) \xi B_0^{1-\delta } (3 \mu +1)^{\delta -1}}{\delta -1}}{9 (1-3 \mu )^2}. \end{aligned}$$

It is important to mention here that the above solution will be valid only for \(\delta \ne 1,~~\mu \ne \pm \frac{1}{3}\) as well as \(2\delta +3 \mu -3\ne 0\).

Applying the same technique as before, we use Eqs. (35) and (15) in (8) and obtain the following result:

$$\begin{aligned} 3 {H}^2=\frac{1}{2} \kappa ^2 \left( a^{-3 \left( \omega _m+1\right) } +2 \xi H^{4-2 \delta }\right) \end{aligned}$$
(36)

which after further simplification can be written in terms of t as follows

$$\begin{aligned} 3 \mu ^2t^{-2} \sim \frac{1}{2} \left( (-t)^{-\mu } \right) ^{-3 \left( \omega _m+1\right) }+\left( -\frac{\mu }{t} \right) ^{4-2 \delta } \end{aligned}$$
(37)

Similar to the previous case, this model also reduces to the HDE model with \(\delta =1\). Also, for a matter-dominated scenario the choice of \(\mu =-\frac{2}{3}\) must be imposed. In view of these constraints, new f(TB) function obtained from Eq. (34) can be written as

$$\begin{aligned} f(T,B)=-T + {C_1} B^{\frac{3 \mu +1}{2}}+{C_2}B -\frac{\mu B\left( 2 \kappa ^2 \xi +3\right) \left( (3 \mu -1) \ln (3B (1-3 \mu ))+2\right) }{3 (1-3 \mu )^2}, \end{aligned}$$
(38)

which is valid as long as \(\mu \ne -\frac{1}{3}\). To discuss the graphical behavior of cosmic parameters, we have plotted the graphs using \(\delta =1\) and three different choices of \(\mu = 1.4, 1.7\) and 2 (similar to the previous case of power law cosmology). This case has resulted in an increasing negative-valued function as provided in graph of Fig. 4.

Fig. 4
figure 4

The graph indicates the behavior of f(TB) function against z for three values of \(\mu \), \(\delta = 1\) and \(\xi =3.5\) for power law cosmology

In this case, NEC is violated in this case, i.e., \(\rho +p < 0\), which coincides with our result for EoS parameter \(\omega _{TB} < -1\) in Fig. 2, depicting the phantom-like regime of our cosmos.

Fig. 5
figure 5

The graphs indicate the behavior of f(TB) and NEC against the redshift parameter for three different values of \(\nu \) along with \(\delta = 0.8\) and \(\xi =3.5\) for de-Sitter case

3.2.2 Hybrid Expansion law

Here, we study the reconstruction of specific model \(f(T,B)= -T+g(B)\) based on THDE model by taking the hybrid expansion law in consideration.

  • De-Sitter Case (\(\mu =0\))

    Considering the de-Sitter solution for the second choice of f(TB) model, the correspondence scheme generates the following differential equation

    $$\begin{aligned} \frac{B}{2}\; g_B(B)+\frac{B}{6}-\frac{1}{2}g(B) +2\xi \kappa ^2 {\left( \frac{B}{18}\right) }^{(2-\delta )}=0. \end{aligned}$$
    (39)

    This differential equation has one dependent variable B, and hence, after evaluating the solution, the mathematical expression for the reconstructed function of f(TB) can be expressed as

$$\begin{aligned} f(T,B)=-T+\frac{2^{\delta } 9^{\delta -2} \kappa \xi B^{2-\delta }}{\delta -1}+B C_1-\frac{1}{3} B \ln (B), \end{aligned}$$
(40)

where

$$\begin{aligned} C_1=\frac{-\frac{2^{\delta } 9^{\delta -2} \kappa \xi B_0^{2-\delta }}{\delta -1}+\frac{1}{3} B_0 \left( \ln \left( B_0\right) +3\right) -6 H_0^2 \Omega _{\mathrm{DE0}}+T_0}{B_0}. \end{aligned}$$
(41)

The EoS parameter \(\omega _{TB}\) is also turned as a constant value equals to \(-1\). Next, the graph of the reconstructed function f(TB) assumes all positive values, while the behavior of NEC can be observed from Fig. 5. It is evident that NEC also depicts a \(\Lambda \)CDM approach since it approaches to 0 as \(z\rightarrow -1\). It is interesting to mention here that for this de-Sitter solution, the NEC is violated completely as shown in Fig. 5, thus suggesting the rapid interminable cosmic expansion in this case.

4 Perturbations and stability

In this section, we intend to investigate the stability of the THDE-based reconstructed f(TB) models against the introduced linear, isotropic, homogeneous perturbations. Let us consider a natural solution and its related functions defined by

$$\begin{aligned} H(t)=H_i(t), \quad T_i=6H_i^2(t),\quad B_i=6\dot{H_i}(t)+18H^2_i(t). \end{aligned}$$
(42)

Using Eqs. (6) and (42), it can be written as

$$\begin{aligned}&-3 H_i^2 (3 f_B^i+2 f_T^i)+3H_i \dot{f_B^i}-3 \dot{H_i} f_B^i +\frac{1}{2}f^i=\kappa ^2 \rho _{mi}, \end{aligned}$$
(43)
$$\begin{aligned}&\dot{\rho _{mi}}+3H_i(1+\omega )\rho _{mi}=0. \end{aligned}$$
(44)

The perturbed Hubble parameter and the energy density are defined by

$$\begin{aligned} H(t)=H_i(t)(1+\lambda (t)), \;\;\;\;\;\;\;\;\;\;\; \rho _m(t)=\rho _{mi}(1+\lambda _m(t)), \end{aligned}$$
(45)

where \(\lambda (t)\) and \(\lambda _m(t)\) correspond to the dark energy and matter energy density perturbations, respectively. With the help of above equations, the function f(TB) can be expressed as a power series in terms of T and B as follows

$$\begin{aligned} f(T,B)=f^i+f_T^i(T-T_i)+f_B^i(B-B_i), \end{aligned}$$
(46)

where we have neglected the higher-order terms. Here, the superscript indicates the values of f(TB) function and its derivatives in reference to Eq. (42). Following the technique adopted by Bahamonde et al. [33], we use Eqs. (45) and (46) in the field Eq. (43) and the continuity Eq. (44), and consequently, we obtain the following set of equations:

$$\begin{aligned}&a_0\ddot{\lambda }(t)+a_1\dot{\lambda }(t) +a_2\lambda (t)=a_m\lambda _m(t), \end{aligned}$$
(47)
$$\begin{aligned}&\dot{\lambda _m}(t)+3H_i\lambda (t)=0. \end{aligned}$$
(48)

Here, the coefficients \(a_0,~a_1,~a_2\) and \(a_3\) are defined as a linear combination of f(TB) function and its derivatives. The expression for these coefficients is given as follows

$$\begin{aligned} a_0= & {} -18H_i^2 f_{TB}^i T_i+324H_i^4 f_{BB}^i+54H_i^2 \dot{H_i} f_{BB}^i-36H_i^2 f_{B}^i-12H_i^2 f_{TT}^iT_i\\&+216H_i^4 f_{TB}^i+36H_i^2 \dot{H_i} f_{TB}^i-24H_i^2 f_T^i\\&+6H_i f_{TB}^i T_i+6H_i f_{TB}^i T_i-108H_i^3 f_{BB}^i-18H_i \dot{H_i} f_{TB}^i-216H_j^2 \dot{H_i} f_{BB}^i\\&-18H_i \ddot{H_i}f_{BB}^i+6H_i \dot{f_B^i}-6\dot{H_i}T_i f_{TB}^i\\&+108H_i^2 \dot{H_i} f_{BB}^i+18H_i^2 f_{BB}^i -9\dot{T} f_B^i + f_B^iT_i-18H_i^2 f_B^i-3 \dot{H_i}f_B^i,\\ a_1= & {} 54H_i^3 f_{BB}^i+36H_i^3 f_{TB}^iT_i+6H_i f_{TB}^iT_i -18H_i^2 f_{BB}^i-108H_i^3 f_{BB}^i-6H_i f_{BB}^i,\\ a_2= & {} -18H_i^2 f_{BB}^i,\;\;\;\;\; a_m = \kappa ^2 \rho _{m}. \end{aligned}$$
Fig. 6
figure 6

The left and right graphs provide the evolution of \(\lambda (t)\) (dark energy density perturbation) and \(\lambda _m(t)\) (matter density perturbation) against time for \(\mu =1.4,~\delta = 1\) and \(\xi =3.5\) in case of power law form of scale factor

Fig. 7
figure 7

Left and right plots illustrate the evolution of perturbations \(\lambda (t)\) and \(\lambda _m(t)\) in de-Sitter universe versus time for \(\nu =0.8,~\delta = 1.4\) and \( \xi =3.5\)

Now, we will use the reconstructed models to find the solution of Eqs. (47) and (48) (as discussed in the previous sections) for investigating their stability in each case.

  • Case 1 \(f(T,B)=f_1(T)+f_2(B)\)

    In case of power law cosmology, we find the growth of perturbation parameters for dark energy-dominated era by solving Eqs. (47) and (48). We have used Eq. (27) along with the boundary conditions \(\lambda '(1)=0.2,~\lambda (1)=0.1\) and \(\lambda _m(1)=0.1\) to find plot our solution. The growth of perturbations \(\lambda (t)\) and \(\lambda _m(t)\) with reference to the imposed initial conditions by undertaking \(\delta =1\) and \(\mu =1.4\) is provided in Fig. 6 (right and left panels). It can be easily observed that the oscillating curves of \(\lambda (t)\) and \(\lambda _m(t)\) decay in the future (\(\lambda (t),\lambda _m(t)=0\), for \(t\ge 1\)) and hence yield stability of the obtained solutions in this case. It is worthwhile to mention here that for \(\mu >1.4\), the model does not show stability, while the cosmological parameters show acceptable behavior.

    Further, we investigate the stability of reconstructed f(TB) model for hybrid scale factor’s de-Sitter like f(TB) model given by Eq. (33). The graphical illustration of introduced perturbations \(\lambda (t)\) and \(\lambda _m(t)\) is provided in the left and right panels of Fig. 7. Figure shows that \(\lambda (t)\) and \(\lambda _m(t)\) oscillate in initial cosmic epochs but show a stable behavior in future eras (\(\lambda (t)=0\), for \(t\ge 5\) and \(\lambda _m(t)=0\), for \(t\ge 1\)), hence providing a stable model in this case.

  • Case 2 \(f(T,B)=-T+g(B)\)

Fig. 8
figure 8

The graphs indicate the evolution of \(\lambda (t)\) and \(\lambda _m(t)\) against time for \(\mu =1.4\), \(\delta = 1\) and \(\xi =3.5\) in case of power law solution of scale factor

Fig. 9
figure 9

Graphs show the evolution of \(\lambda (t)\) and \(\lambda _m(t)\) in de-Sitter cosmology against time for \(\nu =3.8,~\delta =0.8\) and \(\xi =3.5\)

Here, we explore the stability of power law solution for the reconstructed form of \(f(T,B)= -T+g(B)\) model which is given in Eq. (36). For this model, we find the solution of Eqs. (47) and (48) by using the model presented in Eq. (38) along with the boundary conditions \(\lambda '(1)=0.2,~\lambda (1)=0.1\) and \(\lambda _m(1)=0.1\). Figure 8 shows the evolution of perturbations \(\lambda (t)\) and \(\lambda _m(t)\) versus time for \(\delta =1\) and \(\mu =1.4\). It can be noticed that the trajectories of both these functions indicate oscillating behavior in the earlier cosmic stages which further reach to a constant value \(\approx 0\) in future time. It is seen that \(\lambda (t) \rightarrow 0\) in far future around \(t>7\) and \(\lambda _m(t)\rightarrow 0\) for \(t>1\) and thus corresponds to a stable model which is in contrast to the findings of Ghaffari [53] where THDE braneworld model was found classically unstable.

Lastly, for the de-Sitter f(TB) model, we analyze the evolution of these perturbation parameters by following a similar approach and the resulting graphs are provided in Fig. 9. It can be easily observed that for \(\lambda (t)\), these perturbations exhibit oscillating behavior in the beginning but remain stable and approach zero in future times \((t>6)\), whereas the graph for \(\lambda _m(t)\) decays very early in time and hence indicating that the model is stable in this case. It is worthwhile to mention here that for \(\delta >1\), the model is found to be unstable against linear isotropic perturbations.

5 Concluding remarks

The investigation for an interesting and successful candidate of DE that can describe the complete evolution of our cosmos and solve this mysterious puzzle effectively is one of the challenging problems in modern cosmology. Among different DE models, modified gravity theories have the disposition to explain the combined early and late time cosmological eras accurately and these candidates can also imitate DE character. Teleparallel theory of gravity and its different extensions are considered as one of the most effective tools in providing ample solutions that can provide interesting results in this regard. The present paper will provide a significant contribution in this respect. In this manuscript, we have considered the well-known f(TB) modified gravitational framework and reconstructed the possible forms of generic function present in its Lagrangian that can generate the same cosmology as produced by the THDE model. This model has been recently proposed in the literature and gained much attention of the researchers. For this purpose, we have considered two models of f(TB) gravity and used the correspondence scheme of reconstruction in each case. For the sake of simplicity, we have considered two specific choices of scale factor , i.e., power law expansion and hybrid law (de-Sitter universe). In order to explore the physical significance of the reconstructed solutions, we have analyzed the behavior of some cosmological measures graphically. The obtained results are summarized in Table 1 and explained as follows.

Table 1 Model behavior comparison
  • The evolution trajectories for the reconstructed f(TB) model under the influence of THDE for power law solutions depict negative behavior for the discussed cases \(f(T,B)= f(T)+f(B)\) and \(f(T,B)= -T+f(B)\), whereas the de-Sitter solutions represent positive-valued functions in both these cases.

  • Equation of state parameter \(\omega _{TB}\) gives a constant value and exhibits phantom-like behavior in power law cosmology. We have also presented a matter dominating scenario by assuming \(\mu =-\frac{2}{3}\) which is in accordance with the constraint derived from the field equations for making the reconstructed solution consistent. As obvious, the de-Sitter scenario for both cases only hence portrayed a \(\Lambda \)CDM like EoS parameter.

  • It is seen that the NEC is invalid for both reconstructed generic functions in power law cosmology case. For de-Sitter cosmology, it is valid for the first case, whereas, for the model \(f(T,B)= -T +g(B)\), the NEC is thoroughly invalid.

  • We have also studied the stability of these models against linear and homogeneous perturbations. The power law cosmology has been proved to be a good fit in \(f(T,B)_{THDE}\) gravity as for both cases, we have found the reconstructed models exhibiting stable behavior. An interesting finding is that if we consider power law cosmology, the Friedmann equations are only satisfied if THDE is reduced to HDE. Furthermore, the de-Sitter cosmology also satisfied the stability criteria for both reconstructed models which is in compliance with the results obtained by Bahamonde et al. [33].

These reconstructed models demonstrate an appropriate behavior which is consistent with the current cosmic observations as shown by the graphical analysis of different cosmological parameters in each case. Thus, it can be concluded that our reconstructed models are cosmologically viable and stable at cosmological level and found to be physically interesting. It would be worthwhile to reconstruct the form of generic function by taking some other forms of f(TB) model or scale factor into account.