1 Introduction

Matsuyama et al. (2016) offer an endogenous explanation of business cycles within a representative agent framework. In their model agents can invest either in ‘good’ projects whose output can either be consumed or invested, thus contributing to future capital formation, or in ‘bad’ projects that can only be consumed. Good projects are produced with a Neoclassical production function that is subject to diminishing returns while the return of bad projects is constant. Thus, as the economy grows and the return of good projects drops below that of bad projects entrepreneurs have incentives to invest in the latter. However, investment in bad projects is financially constrained. Provision of funds for such investment depends on the entrepreneur’s net worth. Thus, even if the stage of development of the economy is such that the return of bad projects is higher than that of good projects, financial constraints might limit the investment in bad projects. Under these conditions the economy can exhibit complex dynamics that include both periodic and aperiodic fluctuations. Along a typical two-period cycle when the level of capital/labor ratio, and thus net worth, is too low for any funds to be allocated to bad projects, some of the output of good projects will be devoted to capital formation and thus the following period there will be a higher capital/labor ratio. But now the financial constraints are relaxed and as entrepreneurs invest in bad projects capital formation declines and the following period the capital/labor ratio drops and a new cycle begins.

In this paper, we extend the basic framework and allow for heterogeneous agents, which differ in their initial endowment. In this framework, interesting new questions can be studied. For example, in financial economics there are two types of credit rationing. There are some agents that cannot obtain funds at all and therefore cannot become entrepreneurs, while others might be able to get some funds but below the optimal level and therefore will underinvest. These two margins of adjustment for investements (who is going to invest and how much) will be in the focus of our analysis. In addition, this framework can be used to help us understand how financial constraints affect occupational choice (entrepreneurship) along the different phases of the business cycle. The model can also be applied to the study of the effects of business cycles on income inequality. However, the introduction of heterogeneous agents involving two margins of adjustment complicates significantly the analytics of dynamic solutions. In this paper we provide extensive analytical results for a linearized version of the model that can complement other numerical approaches (reviewed below). We focus our analysis on the nature of the business cycles, its severeity and duration, and on the regime switches that are involved. We show how the introduction of heterogeneity affects the impact of financial constraints on the characteristics of the business cycle.

The mathematical form of the model is a one-dimensional piecewise smooth and continuous system in discrete time, with two kink points at which the map changes its definition. These kink points have a clear economic motivation and reflect the fact that investment in bad projects is financially constrained. They play an important role for the resulting dynamics. We describe, in five propositions, which kind of attracting sets can occur and the related bifurcations. The analysis is performed by using much of the theory of piecewise smooth systems and in particular piecewise linear systems, that is nowadays enough developed (see Avrutin et al., 2019), and the references therein), and uses the border collision bifurcations to explain many of the changes that may occur. In fact, in piecewise smooth systems, the bifurcations are often not the usual ones occurring in smooth systems, and the classification of the possible dynamics may be quite different, involving the kink points of the system.

Our paper is related to a number of papers that extend Matsuyama (2013). Matsuyama et al. (2016) is a simpler version of Matsuyama (2013) that allows for a richer menu of technologies. The slightly simpler version in Matsuyama et al. (2016) allows for a more detailed study of the stability properties of the model. Other studies that use this framework to examine issues related to business cycles are Bougheas et al. (2022), Kubin and Zörner (2021) and Kubin et al. (2019). Bougheas et al. (2022), motivated by events in financial markets around the Global Financial Crisis of 2008, introduces a banking sector that has a choice between financing productive projects and investing funds in high yield investments that do not contribute in capital formation. As in the present paper agents are heterogeneous which allows the authors to study income inequality dynamics along the business cycle. In contrast to the present paper, the whole analysis is performed on the non-linearized version and, thus, some of the results are obtained numerically. Kubin and Zörner (2021) augment Matsuyama et al. (2016) by introducing human capital and study the effects of learning-by-producing on the evolution and stability of income distribution, while Kubin et al. (2019) take aspects from behavioral finance on board.

The rest of the paper is organized as follows. In Sect. 2, we motivate and describe the model which extends Matsuyama et al. (2016) by allowing for borrowing and lending among heterogeneous agents. As we mentioned above, heterogeneity of agents introduces a second margin of adjustment for investment. Under a representative agent, like in Matsuyama et al. (2016), only the level of investment matters which simplifies the model and allows for the derivation of closed form solutions. The reason is that after the second kink the map is a straight line with zero slope. However, when heterogeneity is introduced, as in the banking model of Bougheas et al. (2022) both margins adjust which complicates considerably the analysis of the model. Now after the second kink the map is non-linear and upward sloping implying that only computational solutions are feasible. In Sect. 3 we present a linearized version of the model that can be analytically solved. We focus our analysis on the interaction between financial constraints and the nature of business cycles (how strong are the fluctuations of capital and output per capita? how long are business cycles? and which regime switches do they involve?) and leave other applications to further research. Finally, Sect. 4 summarizes some results evidencing their role in the economic context and pointing to possible future extensions.

2 The Model

Time is discrete and the horizon infinite \((t=0,1,2,...)\). At each date a generation of unit mass is born and lives for two periods. Young agents born at t are not homogeneous. They are endowed with z units of (effective) labor that they supply inelastically for the production of the final good. The distribution of labor endowments is continuous, time invariant with support on \(\left[ {{\underline{z}}},\bar{z}\right] \) and density function g(z). Let \(\hat{z}\) denote the level of aggregate (average) endowments. We normalize the aggregate supply of labor to 1. Young agents do not consume.

The single final good can be produced by two distinct technologies. One is a constant returns-to-scale technology, \(y_{t}=f(k_{t})\) where \(y_{t}\) denotes per capita output and \(k_{t}\) denotes the capital/labor ratio at t. For all t, \(f^{^{\prime }}(k_{t})>0>f^{\prime \prime }(k_{t})\), \(f(0)=0\) and \(f^{\prime }(0)=\infty \). The final good can either be consumed or invested (good projects). Capital fully depreciates in one period. Factor markets are competitive with the reward to physical capital equal to \(\rho _{t}=\) \(f^{^{\prime }}(k_{t})\), and the reward to labor equal to \(w_{t}=f(k_{t} )-k_{t}f^{^{\prime }}(k_{t})\equiv W(k_{t})>0\). Thus, the labor income of a young agent with endowment z is equal to \(zW(k_{t})\). The second technology uses only capital with each unit of capital yielding B units of the final good. The output of this technology cannot be invested (bad projects).

At the end of the first period (the beginning of the second period), young agents have received their wage income and turn old. They have the following two options. One option is to become lenders by investing their endowments in frictionless competitive financial markets and enjoy a utility benefit u (home production or leisure). The other option is to become entrepreneurs by using their endowments together with borrowed funds to invest in the good projects technology. The amount of the final good that agents can borrow from the financial system depends on their endowments. at t, an agent with endowment z will be able to borrow a maximum amount of \((m-1)zw_{t-1}\) units of the final good from financial markets (total investment in good projects will be equal to \(mzw_{t-1}\), where \(m>1\)).Footnote 1

Financial markets can use the funds invested by lenders either to offer funds to entrepreneurs or to invest in bad projects. However, the latter type of investment is constrained. To ensure consistency with Matsuyama et al. (2016), we assume that bad projects become gradually available after the economy reaches a certain level of development.Footnote 2 Let \(\hat{V}\left( k_{t}\right) \) denote the level of bad projects available and \(V\left( k_{t+1}\right) \) denote the funds invested in bad projects. Let \(r_{t}\) denote the market clearing interest rate.

An agent with endowment z, if he chooses to produce good projects will earn income \(f^{^{\prime }}(k_{t+1})zmw_{t}\), repay \(r_{t+1}(m-1)zw_{t}\) to the financial market and consume the difference. The same agent, if he chooses to invest in the financial market, will consume \(r_{t+1}zw_{t}\). Thus, as long as,

$$\begin{aligned} f^{^{\prime }}(k_{t+1})zmw_{t}-r_{t+1}\left( m-1\right) zw_{t}\geqslant r_{t+1}zw_{t}+u \end{aligned}$$
(1)

an agent endowed with z units of labor will invest in good projects. Let \(z_{t}^{*}\) denote the level of endowment such that the agent is indifferent between the two options.

Market clearing in financial markets requires that

$$\begin{aligned} {\int \nolimits _{z_{t+1}^{*}}^{\bar{z}}} \left( m-1\right) zw_{t}g(z)dz+V\left( k_{t+1}\right) = {\int \nolimits _{{{\underline{z}}}}^{z_{t+1}^{*}}} zw_{t}g(z)dz \end{aligned}$$
(2)

The evolution of the capital/labor ratio will depend on whether or not there is investment in bad projects and if there is such investment whether or not is constrained. The exact form will be given below.

Bad Projects Are Not Available

For sufficient low levels of the capital/labor ratio bad projects will not be available. In this case, \(V_{t+1}=0\), and the capital/labor ratio at \(t+1\) is given by wages at t:

$$\begin{aligned} k_{t+1}=mW\left( k_{t}\right) \equiv F(k_{t}). \end{aligned}$$
(3)

Investment In Bad Projects Is Unconstrained

Arbitrage will force the interest rate to be equal to the return of bad projects, \(r_{t+1}=B\). Then, from (1) holding with equality we have

$$\begin{aligned} z_{t+1}^{*}=\frac{u}{W(k_{t})\left( f^{^{\prime }}(k_{t+1})-B\right) m}. \end{aligned}$$
(4)

The evolution of capital is

$$\begin{aligned} k_{t+1}= {\textstyle \int \nolimits _{z_{t+1}^{*}}^{\bar{z}}} mzW(k_{t})g(z)dz \end{aligned}$$
(5)

(4) and (5) together solve for \(k_{t+1}\) and \(z_{t+1}^{*}\). We write the solution for the evolution of the capital/labor ratio as

$$\begin{aligned} k_{t+1}\equiv H(k_{t}). \end{aligned}$$
(6)

with \(H^{\prime }(k_{t})>0\).

To prove this, rearranging (4) we have

$$\begin{aligned} f^{^{\prime }}(k_{t+1})=B+\frac{u}{z_{t+1}^{*}\cdot W\left( k_{t}\right) \cdot m} \end{aligned}$$
(7)

and from (5) we can write

$$\begin{aligned} k_{t+1}= {\textstyle \int \nolimits _{z_{t+1}^{*}}^{\bar{z}}} mzw_{t}g(z)dz=W\left( k_{t}\right) \cdot m\cdot {\textstyle \int \nolimits _{z_{t+1}^{*}}^{\bar{z}}} zg(z)dz \end{aligned}$$
(8)

The two equations in (7) and (8) form a system with \(z_{t+1}^{*}\) and \(k_{t+1}\) as variables, given \(k_{t}\) and the parameter B, u and m. Taking the total derivative with respect to \(k_{t+1}\), \(z_{t+1}^{*}\) and \(k_{t}\) of (7) results in

$$\begin{aligned} dk_{t+1}=Z1\cdot dz_{t+1}^{*}+W1\cdot dk_{t} \end{aligned}$$
(9)

where \(Z1=\frac{-u}{mW\left( k_{t}\right) \left( z_{t+1}^{*}\right) ^{2}}\frac{1}{\frac{d^{2}f\left( k_{t+1}\right) }{dk_{t+1}^{2}} }>0\) and \(W1=\frac{-u}{m\left( W\left( k_{t}\right) \right) ^{2} z_{t+1}^{*}}\frac{\frac{dW\left( k_{t}\right) }{dk_{t}}}{\frac{d^{2}f\left( k_{t+1}\right) }{dk_{t+1}^{2}}}>0\).

The total derivative of (8) is

$$\begin{aligned} dk_{t+1}=Z2\cdot dz_{t+1}^{*}+W2\cdot dk_{t} \end{aligned}$$
(10)

where \(Z2=-mW\left( k_{t}\right) z_{t+1}^{*}g(z_{t+1}^{*})<0\) and \(W2=\frac{dW\left( k_{t}\right) }{dk_{t}}\cdot m\cdot {\textstyle \int \nolimits _{z_{t+1}^{*}}^{\bar{z}}} zg(z)dz>0\).

Solving (9) and (10) results in

$$\begin{aligned} \frac{dk_{t+1}}{dk_{t}}=\frac{W2Z1-W1Z2}{Z1-Z2}=SlopeH>0 \end{aligned}$$
(11)

Investment In Bad Projects Is Constrained

From (2) we have

$$\begin{aligned} \hat{z}=m {\textstyle \int \nolimits _{\hat{z}_{t+1}}^{\bar{z}}} zg(z)dz+\frac{V\left( k_{t}\right) }{W\left( k_{t}\right) } \end{aligned}$$
(12)

Further, due to the constraint, the evolution of the capital/labor ratio is given by

$$\begin{aligned} k_{t+1}=\left( W\left( k_{t}\right) -\hat{V}\left( k_{t+1}\right) \right) \equiv G(k_{t}). \end{aligned}$$
(13)

3 The Dynamics of the Model

3.1 Functional Forms

The resulting map (see Fig. 1) has three branches and involves two thresholds that are the points of intersection between the functions F and G and between G and H, also called kink points, where the map changes its definition with continuity, \(k^{FG}\) and \(k^{GH}\):

$$\begin{aligned} k_{t+1}=\left\{ \begin{array}{lll} F(k_{t}) &{} \text {if} &{} 0\le k_{t}\le k^{FG}\\ G(k_{t}) &{} \text {if} &{} k^{FG}<k_{t}<k^{GH}\\ H(k_{t}) &{} \text {if} &{} k^{GH}\le k_{t} \end{array} \right. \end{aligned}$$
(14)

For the dynamic analysis, we specify the following functional forms:

  1. 1.

    We use \(F(k_{t})=C\sqrt{k_{t}}\), where C is a parameter.

  2. 2.

    Without strong alternatives, we assume a linear specification for \(G(k_{t})\)

    $$\begin{aligned} G(k_{t})=\delta (k_{t}-k^{FG})+F(k^{FG}) \end{aligned}$$

    with \(k^{FG}\) and \(\delta \) as parameters.

    There are a couple of alternative economic interpretations of these two parameters. In Matsuyama et al. (2016) investment in bad projects is financially constrained. The representative agent’s wealth (measured by per capita capital) must reach a certain threshold value, captured by \(k^{FG}\), before agent’s can borrow funds to invest in bad projects. Then, the value of \(\delta \) captures how fast these constraints are relaxed. In Bougheas et al. (2022) banks invest in bad projects and their availability depends on the level of financial innovation. In turn, it takes a certain level of economic development, captured by the threshold value \(k^{FG}\), before financial innovation takes off. Then, the value of \(\delta \) captures the speed of financial innovation. Below we assume that \(\delta <0\) reflecting a relatively fast availability of bad projects, implying a substitution of bad for good projects for \(k_{t}>k^{FG}\).

  3. 3.

    We also linearize \(H(k_{t})\) based on the following two observations:

    First, there exists a threshold for the capital stock \(k^{FH}\), beyond which bad projects are more profitable than good projects.

    Second, the adjustment along the two margins implies that capital invested in good projects increases even if investment in bad projects is unconstrained, we introduce the parameter \(\varepsilon >0\) to capture this effect. At the same time, investment in bad projects imply that \(\varepsilon <1\). Assuming that the first effect exists, but is not very strong, leads to \(0<\varepsilon<<1\). Thus, we use:

    $$\begin{aligned} H_{l}(k_{t})=\varepsilon (k_{t}-k^{FH})+F(k^{FH}) \end{aligned}$$
    (15)

    with \(k^{FH}\) and \(\varepsilon \) as parameters.

Fig. 1
figure 1

Map \(k_{t+1}=T(k_{t})\)

The analysis proceeds with this system \(k_{t+1}=T(k_{t})\):

$$\begin{aligned} T(k_{t}):=\left\{ \begin{array}{cccc} F(k_{t})= &{} C\sqrt{k_{t}}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ &{} \text {if} &{} 0\le k_{t}\le k^{FG}\\ G(k_{t})= &{} \delta (k_{t}-k^{FG})+F(k^{FG}) &{} \text {if} &{} k^{FG}<k_{t}<k_{GH}\\ H_{l}(k_{t})= &{} \varepsilon (k_{t}-k^{FH})+F(k^{FH}) &{} \text {if} &{} k^{GH}\le k_{t} \end{array} \right. \end{aligned}$$
(16)

where \(k^{GH}\) denotes the intersection point of the two straight lines \(G(k_{t})\) and \(H_{l}(k_{t}).\) We summarize the conditions on the five parameters:

$$\begin{aligned} C>0,\ k^{FG}>0,\ k^{FH}\in (0,k^{FG}),\ \delta<0,\ 0<\varepsilon<<1 \end{aligned}$$
(17)

For the sake of notational convenience, we define

$$\begin{aligned} N_{G}=[C\sqrt{k^{FG}}-\delta k^{FG}]\ \ ,\ \ N_{H}=[C\sqrt{k^{FH}}-\varepsilon k^{FH}]\ \ ,\ \ k^{GH}=\frac{1}{\varepsilon -\delta }[N_{G}-N_{H}] \end{aligned}$$
(18)

so that we have the one-dimensional map

$$\begin{aligned} k_{t+1}=T(k_{t}),\ \ T(k_{t})=\left\{ \begin{array}{cccc} F(k_{t})= &{} C\sqrt{k_{t}}\ \ \ \ \ &{} \text {if} &{} k_{t}\le k^{FG}\\ G(k_{t})= &{} \delta k_{t}+N_{G} &{} \text {if} &{} k^{FG}<k_{t}<k^{GH}\\ H_{l}(k_{t})= &{} \varepsilon k_{t}+N_{H} &{} \text {if} &{} k^{GH}\le k_{t} \end{array} \right. \end{aligned}$$
(19)

that is continuous and piecewise smooth with two kink points (\(k^{FG}\) and \(k^{GH})\) at which the map changes its definition. Map T has a maximum in the point \(k^{FG},\) given by \(F(k^{FG})=C\sqrt{k^{FG}},\) and the iteration on the positive axis \(k_{t}\ge 0\) are mapped into the interval \([0,C\sqrt{k^{FG} }]\), so that the map is bounded. We mention here that the fixed point \(k^{*}=0\) always exists and is repelling, and we do not consider it further, since the trajectory of points on the right side of \(k^{*}=0\) are mapped into an absorbing interval.

Note that the model - although similar in spirit to Matsuyama et al. (2016) - is different from an analytical perspective: Matsuyama et al. (2016) use a more general specification of the F function; in their model, linearity of the G function is a special case; and their H function is always horizontal, whereas in our case by introducing heterogeneity, it has a positive slope. Finally, our analysis focuses on the role of different parameters. We study how the availability of bad projects affects the dynamics. In the map, this is reflected by the properties of the G function, namely by \(k^{FG}\) and \(\delta \). We are interested in the symbolic sequences on the cycles. In addition, we are interested in the implications of the heterogeneity and the two margins of adjustment. In the map, this is reflected by the (positive) slope of the \(H_{l}\) function, i.e. by the parameter \(\varepsilon \).

3.2 Dynamic Properties

In this section we focus on how the availability of investments in bad projects affects the asymptotic dynamics; the related parameters are \(k^{FG}\) and \(\delta \). In a first, more technical step we determine the possible equilibria of the model, the related bifurcations, and the conditions under which the map can be ultimately delimited in some absorbing interval involving only two branches of the map or all the three branches.

For \(T(k^{FG})<k^{FG}\) the map has the only fixed point related to the function F,  given by \(k_{F}^{*}=C^{2}\).

For \(T(k^{FG})>k^{FG}\) and \(T(k^{GH})<k^{GH}\) the map has the only fixed point \(k_{G}^{*}=\frac{N_{G}}{1-\delta }\) related to the function G, while for \(T(k^{GH})>k^{GH}\) the map has the only fixed point, \(k_{H}^{*}=\frac{N_{H} }{1-\varepsilon }\) related to the function \(H_{l}.\) When the condition \(T(k^{FG})=k^{FG}\) holds, it is the border collision of the two fixed points with the first kink point, \(k_{F}^{*}=k_{G}^{*}=k^{FG},\) while when \(T(k^{GH})=k^{GH}\) holds, it is the border collision of the two fixed points with the second kink point, \(k_{G}^{*}=k_{H}^{*}=k^{GH}.\)

Since \(\varepsilon <1\) the last branch of the map, related to the function \(H_{l}\) either is below the diagonal (for \(T(k^{GH})<k^{GH}\)), or it leads to the globally attracting fixed point \(k_{H}^{*}\) (for \(T(k^{GH})>k^{GH}\)) where globally means for any \(k_{t}>0.\)

For \(T(k^{GH})>k^{GH}\), that is, for \(\varepsilon k^{GH}+N_{H}>k^{GH}\) leading to

$$\begin{aligned} (1-\varepsilon )N_{G}<(1-\delta )N_{H} \end{aligned}$$
(20)

we have the range

$$\begin{aligned} k^{FG}<\widetilde{k}^{FG}:=\frac{1}{4\delta ^{2}}\left( C-\sqrt{C^{2} -4\delta \frac{1-\delta }{1-\varepsilon }N_{H}}\right) ^{2} \end{aligned}$$
(21)

or also

$$\begin{aligned} \delta <\frac{C(1-\varepsilon )\sqrt{k^{FG}}-N_{H}}{(1-\varepsilon )k^{FG}-N_{H}} \end{aligned}$$
(22)

in which the fixed point \(k_{H}^{*}\) exists and is globally attracting. We can so define the curve of border collision (at which \(k_{G}^{*} =k_{H}^{*}=k^{GH}):\)

$$\begin{aligned} \phi _{H}:\ \ k^{FG}=\widetilde{k}^{FG}\ \text {or }\delta =\frac{C(1-\varepsilon )\sqrt{k^{FG}}-N_{H}}{(1-\varepsilon )k^{FG}-N_{H}} \end{aligned}$$
(23)

For \(T(k^{FG})<k^{FG},\) that is, for \(k^{FG}>C^{2},\) the fixed point \(k_{F}^{*}=C^{2}\) exists and is globally attracting, since the slope of F in the fixed point is 1/2,  and we can define the curve of border collision (at which \(k_{F}^{*}=k_{G}^{*}=k^{FG}):\)

$$\begin{aligned} \phi _{F}:\ \ k^{FG}=C^{2} \end{aligned}$$
(24)

For parameters such that \(k^{FG}<k_{G}^{*}=\frac{N_{G}}{1-\delta }<k^{GH} \) (or equivalently for parameters between the two curves \(\phi _{H}\) and \(\phi _{F})\) the fixed point \(k_{G}^{*}=\frac{N_{G}}{1-\delta }\) exists, and for \(-1<\delta <0\) it is globally attracting (since it attracts all the points between the two kink points, \(k^{FG}\) and \(k^{GH},\) and from outside a trajectory must enter that interval). At \(\delta =-1\) it undergoes a degenerate flip bifurcation (for the degenerate bifurcations see Sushko and Gardini, 2010), the result of which depends on the parameters of the other two functions of the map. If the fixed point \(k_{G}^{*}\) is closer to \(k^{FG}\) (than to \(k^{GH}\)) then at the bifurcation value the segment \([F^{2} (k^{FG}),F(k^{FG})]\) is filled with cycles of period 2, the last of which \(\left\{ F^{2}(k^{FG}),F(k^{FG})\right\} \) also undergoes a border collision bifurcation, and since the slope of the function F at the kink point \(k^{FG}\) is smaller than 1, the result of the bifurcation for \(\delta <-1\) is an attracting 2-cycle with periodic points in the F and G branches. Similarly, if the fixed point \(k_{G}^{*}\) is closer to \(k^{GH}\) (than to \(k^{FG}\)) then at the bifurcation value the segment \([H_{l}(k^{GH}),H_{l} ^{2}(k^{GH})]\) is filled with cycles of period 2, the last of which \(\left\{ H_{l}(k^{GH}),H_{l}^{2}(k^{GH})\right\} \) also undergoes a border collision bifurcation, and since the slope of the function \(H_{l}\) at the kink point \(k^{GH}\) is smaller than 1, the result of the bifurcation, for \(\delta <-1\) is an attracting 2-cycle with periodic points in the G and \(H_{l}\) branches. We have so proved the following

Proposition 1

Existence and stability properties of the fixed points. (i) For \(k^{FG}>C^{2}\) the fixed point \(k_{F}^{*}=C^{2} \) is globally attracting. A border collision occurs at the curve \(\phi _{F}\) ( given in (24)).

(ii) For \(\delta <\frac{C(1-\varepsilon )\sqrt{k^{FG}}-N_{H} }{(1-\varepsilon )k^{FG}-N_{H}}\) (or equivalently \(k^{FG}<\frac{1}{4\delta ^{2}}\left( C-\sqrt{C^{2}-4\delta \frac{1-\delta }{1-\varepsilon }N_{H}}\right) ^{2}\)) the fixed point \(k_{H}^{*}=\frac{N_{H} }{1-\varepsilon }\) is globally attracting. A border collision occurs at the curve \(\phi _{H}\) ( given in (23), (21)).

(iii) For \(\frac{1}{4\delta ^{2}}\left( C-\sqrt{C^{2}-4\delta \frac{1-\delta }{1-\varepsilon }N_{H}}\right) ^{2}<k^{FG}<C^{2}\) the only fixed point is \(k_{G}^{*}=\frac{N_{G}}{1-\delta },\) globally attracting for \(-1<\delta <0\). A degenerate flip bifurcation occurs at \(\delta =-1\), leading to an attracting 2-cycle.

These regions in the parameter plane \((\delta ,k^{FG})\) lead to areas that are illustrated in different colors in Fig. 2a. The global stability of the fixed points is shown in different yellow tonalities (bounded by the curves \(\phi _{H},\) \(\phi _{F}\) and \(\delta =-1)\).

Fig. 2
figure 2

Two dimensional bifurcation diagram in the parameter plane \((\delta ,k^{FG})\) for \(C=3\), \(k^{FH}=1\) and \(\varepsilon =0.2.\) In a the fixed points and the 2-cycles have regions in yellow and pink, respectively, with different tonalities, depending on the symbolic sequence. Red color corresponds to a 3-cycle, azure color to a 4-cycle, green color to a 5-cycle, while white regions correspond to chaotic intervals. b The bifurcation curves are shown, and in the gray (resp. light blue) region the interval \(I_{FG}\) (resp. \(I_{GH}\)) is absorbing, in the white region the interval J is related to three branches of map T

For \(k^{FG}>C^{2}\) the fixed point \(k_{F}^{*}\) is globally attracting. The border collision bifurcation occurring at \(k^{FG}=C^{2}\) will be commented below. So we consider the case \(k^{FG}<C^{2}\) to determine the existing absorbing interval. This will also clarify the kind of 2-cycle appearing at the bifurcation \(\delta =-1.\) As remarked above, the degenerate flip bifurcation of the fixed point \(k_{G}^{*}\) leads to an attracting 2-cycle, and which one depends on the value of the other parameters. Before commenting the point (say P) on the line \(\delta =-1\) leading to the two different dynamic results, we look for the regions of the parameters related to the absorbing intervals that the map can have. In fact, the asymptotic trajectories can belong to an absorbing interval with two branches only (F and G or G and \(H_{l}\)), reducing to a unimodal map, or including all the three functions, so being characterized by a bimodal map. We have the following

Proposition 2

Absorbing intervals. Let \(k^{FG}<C^{2}.\)

(i) For \(\delta >\frac{\varepsilon [k^{FG}-C\sqrt{k^{FG}} ]}{(1-\varepsilon )k^{FG}-N_{H}}\) the interval \(I_{GH}=[T(k^{GH} ),T^{2}(k^{GH})]\) is invariant and absorbing, only the two branches with functions G and \(H_{l}\) are involved (azure region in Fig.2b).

(ii) For \(\frac{(1-\varepsilon )C\sqrt{k^{FG}}-N_{H}}{k^{FG} -C\sqrt{k^{FG}}}<\delta <\frac{\varepsilon [k^{FG}-C\sqrt{k^{FG}} ]}{(1-\varepsilon )k^{FG}-N_{H}}\) the interval \(I_{FG}=[T^{2} (k^{FG}),T(k^{FG})]\) is invariant and absorbing, only the two branches with functions F and G are involved (gray region in Fig.2b).

(iii) For the remaining parameter points the interval \(J=[T(k^{GH} ),T(k^{FG})]\) is invariant and absorbing, all the three branches, with functions FG and \(H_{l},\) are involved (white region in Fig.2b).

Proof

As long as it is \(T(k^{GH})\ge k^{FG}\) then only the two branches with functions G and \(H_{l}\) are involved in the absorbing interval, so that the interval \(I_{GH}=[T(k^{GH}),T^{2}(k^{GH})]\) is invariant and absorbing. While for \(T(k^{GH})<k^{FG}\) the absorbing interval of the map is \(J=[T(k^{GH} ),T(k^{FG})]\) and a smaller invariant interval \(I_{FG}=[T^{2}(k^{FG} ),T(k^{FG})]\subset J\) exists when it holds \(T(k^{FG})\le k^{GH}\), inside which the map involves only the two functions F and G. While for \(T(k^{FG})>k^{GH}\) the smallest absorbing interval is J, involving all the three branches of the map. Notice that the interval \(J=[T(k^{GH}),T(k^{FG})]\) is absorbing because the map is increasing below it (for \(x_{t}<T(k^{GH})\)) and decreasing above it (for \(x_{t}>T(k^{FG})\)), so that the trajectory of any point is mapped in J in a finite number of iterations (and the trajectory cannot escape from J). Similarly, when a smaller invariant absorbing interval exists \((I_{FG}\) or \(\ I_{GH})\) then the trajectory of any point is mapped in it in a finite number of iterations. The dynamics of the map in the smaller absorbing interval \(\ I_{GH}\) is topologically conjugate to that of the skew tent map (since it is piecewise linear, we refer to Sushko et al., 2016, and Avrutin et al., 2019) for the related dynamics and bifurcations), while the map in the smaller absorbing interval \(I_{FG}\) is unimodal and piecewise smooth, however, the border collision bifurcations related to the kink point \(k^{FG}\) may be studied by using the skew tent map as a border collision normal form.

The transition of the dynamics from the invariant interval \(I_{GH}\) to a different one occurs when the interval has a contact with the kink point \(k^{FG}.\) Considering the equality \(T(k^{GH})=k^{FG}\) we have

$$\begin{aligned} \frac{\delta }{\varepsilon -\delta }[N_{G}-N_{H}]+N_{G}-k^{FG}=0 \end{aligned}$$

from which

$$\begin{aligned} T_{GH}:\ \ \delta =\frac{\varepsilon [k^{FG}-C\sqrt{k^{FG}} ]}{(1-\varepsilon )k^{FG}-N_{H}} \end{aligned}$$
(25)

The set \(T_{GH}\) so obtained is shown in Fig. 2, below it the absorbing interval of the map is \(I_{GH}\) and involves only two branches, G and \(H_{l}\). This proves point (i).

For \(T(k^{GH})<k^{FG}\), as long as it is \(T(k^{FG})\le k^{GH}\) the absorbing interval is \(I_{FG}\), so let us define the condition at which it holds \(T(k^{FG})=k^{GH}.\) This condition leads to

$$\begin{aligned} C\sqrt{k_{FG}}=\frac{1}{\varepsilon -\delta }[N_{G}-N_{H}] \end{aligned}$$

that is

$$\begin{aligned} T_{FG}:\ \ \delta =\frac{(1-\varepsilon )C\sqrt{k^{FG}}-N_{H}}{k^{FG} -C\sqrt{k^{FG}}} \end{aligned}$$
(26)

The set \(T_{FG}\) so obtained is shown in Fig. 2, above it the absorbing interval of the map is \(I_{FG}.\) This proves point (ii), and point (iii) is a consequence of (i) and (ii) \(\square \)

We end now the comments related to the bifurcations of the fixed points, in the following

Proposition 3

Bifurcations of the fixed points.

(i) Let \(P=(-1,k_{P}^{*})\), where

$$\begin{aligned} k_{P}^{*}=\frac{1}{4}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2} +4N_{H}}\right) ^{2} \end{aligned}$$
(27)

then the degenerate flip bifurcation of the fixed point \(k_{G}^{*}\) occurring at \(\delta =-1\) for \(k^{FG}<k_{P}^{*} \) (resp. \(k^{FG}>k_{P}^{*}\)) leads to an attracting 2-cycle with periodic points in the two branches G and \(H_{l} \) (resp. F and G).

(ii) Crossing the border collision curve \(\phi _{F}\) ( given in (24)) from above (\(k^{FG}>C^{2}\)) to below (\(k^{FG} <C^{2}\)) the result of the border collision of the fixed point \(k_{F}^{*}\) depends on the value of the parameter \(\delta .\) For \(-1<\delta <0\) a persistence border collision occurs, leading to the globally attracting fixed point \(k_{G}^{*}\); for \(-2<\delta <-1\) it leads to an attracting 2-cycle with periodic points in the two branches F and G for \(\delta <-2\) we can have transition to chaotic intervals or to attracting cycles of period 3, 4, 5.

(iii) Crossing the border collision curve \(\phi _{H}\) (given in (23), (21)), from below (\(k^{FG}<\widetilde{k}^{FG} \)) to above (\(k^{FG}>\widetilde{k}^{FG}\)) the result of the border collision of the fixed point \(k_{H}^{*}\) depends on the value of the parameter \(\delta .\) For \(-1<\delta <0\) a persistence border collision occurs, leading to the globally attracting fixed point \(k_{G}^{*}\); for \(-1/\varepsilon<\delta <-1\) it leads to an attracting 2-cycle with periodic points in the two branches G and \(H_{l};\) for \(\delta <-1/\varepsilon \) we can have a transition to chaotic intervals or to attracting cycles of higher period, depending on the values of the two parameters \(\varepsilon \) and \(\delta \).

Proof

(i) Considering the flip bifurcation of the fixed point \(k_{G}^{*} \) for \(\delta =-1\) both the conditions in (25) and in (26) lead to the same equation for \(k^{FG}\), that is:

$$\begin{aligned} k^{FG}-\varepsilon C\sqrt{k^{FG}}-N_{H}=0 \end{aligned}$$
(28)

from which we get the value \(k_{P}^{*}\) in (27), and the conditions \(T(k^{GH})=k^{FG}\) and \(T(k^{FG})=k^{GH}\) correspond to the existence of a 2-cycle with the two kink points \(\left\{ k^{FG},k^{GH}\right\} \). That is, the two curves labelled \(T_{FG}\) and \(T_{GH}\) are intersecting in the point \(P=(-1,k_{P}^{*})\) on the bifurcation line \(\delta =-1.\) It follows that below (resp. above) the point P, the flip bifurcation of \(k_{G}^{*}\) leads to an attracting 2-cycle with periodic points in the two branches G and \(H_{l}\) (resp. F and G).

For (ii) the result of the border collision (for \(k_{F}^{*}=k_{G}^{*}=k^{FG}\)) only depends on the two slopes of the functions at the two sides of the fixed point. The slope of the function F at the border collision for \(k_{F}^{*}=k^{FG}\) is fixed at 1/2, while the slope of the function G is \(\delta ,\) so that for \(-1<\delta <0\) it leads to persistence of attracting fixed point (\(k_{G}^{*}\) in the middle branch), when the product of the two slopes satisfies \(-2<\delta <-1\) the bifurcation leads to an attracting cycle of period 2, and so on, the value of \(\delta \) completely determine the result of the bifurcation (see Sushko et al., 2016, and Avrutin et al., 2019).

For (iii) the reasoning is similar, it occurs as for the border collision of the fixed point in the skew tent map, The slopes of the functions \(H_{l}\) and G at the border collision (for \(k_{G}^{*}=k_{H}^{*}=k^{GH}\)) are \(\varepsilon \) (\(<1\)) and \(\delta ,\) so that for \(-1<\delta <0\) it leads to persistence of attracting fixed point \(k_{G}^{*}\), for \(-1/\varepsilon<\delta <-1\) the bifurcation leads to one attracting 2-cycle with symbolic sequence GH, while for \(\delta <-1/\varepsilon \) we can have chaotic intervals or other attracting cycles. \(\square \)

In Fig. 2a we can see the result of the flip and border collision bifurcations commented above in the parameter plane \((\delta ,k^{FG})\). Note that the figure illustrates the analytic result for specific parameter values. However, the equations of the bifurcation curves are analytically derived, and can be drawn for different constellations of the remaining parameters.

Each point \((\delta ,k^{FG})\) denotes the result of the asymptotic behavior of the map at the specific values for the parameters. Recall that in the blue region of Fig. 2b related to a piecewise linear unimodal map in the absorbing interval \(I_{GH}\) then the attracting set is necessarily unique. In the gray region of Fig. 2b related to a piecewise smooth unimodal map in the absorbing interval \(I_{FG}\) in general the attracting set may be also not unique (two may coexist, one attracting the critical point and another attracting the kink point, see Sushko et al., 2005; 2006). However, in our case the local maximum is exactly at the kink point, so that we cannot have bistability, also in \(I_{FG}\) the attracting set is necessarily unique. Differently, in the region (white region in Fig. 2b) in which the absorbing interval J includes the three branches of map T, with a local maximum and a local minimum, it is possible to have bistability, that is, the existence of two different attracting sets (examples are given below).

In Fig. 2a we highlight the result of the asymptotic behavior of the map with different colors, each color denotes a cycle of different period, while white regions correspond to the existence of chaotic intervals as attractors. The yellow regions in different tonalities show the regions in which one of the fixed points is globally attracting. Crossing the stability region of the fixed point \(k_{F}^{*}\), as it follows from Proposition 3, the result can be an attracting cycle or a chaotic attractor, depending on the slope \(\delta \) and similarly crossing the stability region of the fixed point \(k_{H}^{*}\) the result can be an attracting cycle or a chaotic attractor, depending on the two slopes \(\delta \) and \(\varepsilon .\) In both cases the transition occurs inside an absorbing interval with two functions (colored regions in Fig. 2b), so that, as commented above, the transition leads to a unique attractor.

As remarked in Proposition 3, we can have attracting cycles of period 2 with periodic points in different branches of the map. In Fig. 2a different pink tonalities denote the existence of attracting period-2 cycles with different symbolic sequence (i.e. periodic points in different branches of the map). It is evident the region of the attracting 2-cycle marked FG, related to the flip bifurcation of \(k_{G}^{*}\), that is the same region related to the border collision of the fixed point \(k_{F}^{*},\) and also the region of the attracting 2-cycle marked GH, related to the flip bifurcation of \(k_{G}^{*}\), that is the same region related to the border collision of the fixed point \(k_{H}^{*}\). Moreover, we have a third region related to an attracting 2-cycle marked FH, that appears as persistence border collision of the attracting 2-cycle marked GH,  but also as result of the degenerate flip bifurcation of the fixed point \(k_{G}^{*}\) at the particular point \(P=(-1,k_{P}^{*}).\) In fact, in Proposition 3i we have commented the result of the flip bifurcation for \(k^{FG}<k_{P}^{*}\) and \(k^{FG} >k_{P}^{*}\), but not at \(k^{FG}=k_{P}^{*}.\) That point is particular, since it is a point of multiple bifurcations as in it three bifurcations are merging (the flip bifurcation of the fixed point \(k_{G}^{*}\) and two border collision curves commented below). As already mentioned, when the parameters are in point P, then the fixed point \(k_{G}^{*}\) is exactly in the middle of the related branch of definition of the function G, at the same distance from the two kink points, and that branch is filled with 2-cycles. In particular, the extrema belong to the 2-cycle with the kink points \(\left\{ k^{FG},k^{GH}\right\} \), which attracts the points from outside the interval. It follows that this 2-cycle can be considered as a 2-cycle at its border collision, and it can be considered the merging with the kink points of a 2-cycle with periodic points in any two of the three different branches of map T. Stated differently, from the point P, decreasing \(\delta ,\) at a value \(\delta <-1 \) and close to \(-1\), the result of the bifurcation, depending on the value of the other parameters (in Fig. 2a depending on \(k^{FG}\)), may be an attracting 2-cycle with periodic points in the branches F and H, or those marked FG or GH. It is possible to completely characterize also this bifurcation, that is, we can say exactly the result of the bifurcation, which depends on the other parameters. To this goal let us determine the existence region of the cycle FH.

Proposition 4

Existence and bifurcations of the 2-cycle FH.

The 2-cycle with points belonging to the branches F and \(H_{l}\) has periodic points given by \(\left\{ k_{1},k_{2}\right\} \) with \(k_{1}=k_{P}^{*}\) given in (27) and \(k_{2}=C\sqrt{k_{P}^{*}}\), and it exists for \(k_{1}<k^{FG} \) and \(k_{2}>k^{GH}.\)

The bifurcation occurring at \(k_{1}=k^{FG}\) corresponds to the border collision bifurcation curve

$$\begin{aligned} \psi _{FH}:\ \ k^{FG}=k_{P}^{*} \end{aligned}$$
(29)

leading, for \(k^{FG}<k_{P}^{*}\) , to attracting cycles or attracting chaotic intervals.

The bifurcation occurring at \(k_{2}=k^{GH}\) corresponds to the border collision bifurcation curve

$$\begin{aligned} \phi _{FH}:\ \ k^{FG}=\left( \frac{1}{2\delta }\left( C-\sqrt{C^{2} -4\delta \overline{N_{G}}}\right) \right) ^{2} \end{aligned}$$
(30)

where

$$\begin{aligned} \overline{N_{G}}=N_{H}+\frac{C(\varepsilon -\delta )}{2}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H}}\right) \end{aligned}$$
(31)

leading, for \(k^{FG}>C\sqrt{k_{P}^{*}},\) to a different attracting set (a 4-cycle in the case shown in Fig.2a).

Proof

We can determine the periodic points \((k_{1},k_{2})\) of the 2-cycle FH considering \(k_{2}=F(k_{1})=C\sqrt{k_{1}}\), then \(k_{1}=H_{l} (k_{2})=\varepsilon k_{2}+N_{H}\) leads to

$$\begin{aligned} k_{1}-\varepsilon C\sqrt{k_{1}}-N_{H}=0 \end{aligned}$$
(32)

and thus to

$$\begin{aligned} k_{1}=\frac{1}{4}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H} }\right) ^{2}\text {\ (}=k_{P}^{*}\ \text {)\ \ and\ \ }k_{2}=\frac{C}{2}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H}}\right) \ \text {(}=C\sqrt{k_{P}^{*}}\text { )} \end{aligned}$$
(33)

that exists for \(k_{1}<k^{FG}\) and \(k_{2}>k^{GH},\) and its stability follows from its eigenvalue \(\lambda \), given by the product of the two derivatives \(\lambda =F^{\prime }(k_{1})H_{l}^{\prime }=F^{\prime }(k_{P}^{*})H_{l} ^{\prime }\) that is positive and \(\lambda <1\) since

$$\begin{aligned} \lambda =\frac{C\varepsilon }{2\sqrt{k_{P}^{*}}}=\frac{C\varepsilon }{\varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H}}}=\frac{\varepsilon }{\varepsilon +\sqrt{\varepsilon ^{2}+4N_{H}/C^{2}}}<1 \end{aligned}$$
(34)

this region is colored in dark pink in Fig. 2a.

Then, one bifurcation of this 2-cycle occurs when there is the merging of \(k_{1}\) with the kink point \(k^{FG}\) and a second bifurcation occurs when there is the merging of \(k_{2}\) with the kink point \(k^{GH}.\) So, the border collision bifurcation occurring at \(k_{1}=k^{FG}\) gives the bifurcation curve

$$\begin{aligned} \psi _{FH}:\ \ k^{FG}=k_{P}^{*} \end{aligned}$$
(35)

(In Fig. 2a it corresponds to an horizontal straight line) and depending on the value of \(\delta <-1\) this border collision can have different results. At the collision the periodic point \(k_{1}=k^{FG}\) is a fixed point of the second iterate of the map, so that the result of this border collision depends on the two slopes of map \(T^{2}\) at the kink point \(k^{FG}.\) One slope (on the left side) is \(\lambda =F^{\prime }(k_{P}^{*})H_{l}^{\prime }<1\) as given above in (34), and the other slope (on the right side) is \(\mu =G^{\prime }H^{\prime }=\delta \varepsilon <0\) (see an example in Fig.3a). For \(\mu >-1,\) (that is, \(-\frac{1}{\varepsilon }<\delta <-1\)) we have persistence of attracting fixed point for \(T^{2}\), that corresponds to persistence of an attracting 2-cycle GH for T (see the border of the bifurcation curve \(\psi _{FH}\) related to this 2-cycle in Fig. 2a). For \(\mu <-1\) we certainly have an interval leading to an attracting 2-cycle for map \(T^{2},\) that corresponds to an attracting 4-cycle of map T with symbolic sequence FHGH (clearly visible in the azure region in Fig. 2a), and so on, the values of the two slopes \(\lambda \) and \(\mu \) determine the result of the bifurcation (by using the skew tent map as the border collision normal form).

The second border collision bifurcation of the 2-cycle FH occurs for \(k_{2}=k^{GH},\) that is

$$\begin{aligned} \frac{C}{2}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H}}\right) =\frac{1}{\varepsilon -\delta }[N_{G}-N_{H}] \end{aligned}$$

(where \(N_{G}=C\sqrt{k^{FG}}-\delta k^{FG}\) ) so that we have

$$\begin{aligned} C\sqrt{k^{FG}}-\delta k^{FG}=N_{H}+\frac{C(\varepsilon -\delta )}{2}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H}}\right) \end{aligned}$$
(36)

Let \(\overline{N_{G}}=N_{H}+\frac{C(\varepsilon -\delta )}{2}\left( \varepsilon C+\sqrt{(\varepsilon C)^{2}+4N_{H}}\right) ,\) from \(\delta k^{FG} -C\sqrt{k^{FG}}+\overline{N_{G}}=0\) we get the border collision bifurcation curve:

$$\begin{aligned} \phi _{FH}:\ \ k^{FG}=\left( \frac{1}{2\delta }\left( C-\sqrt{C^{2} -4\delta \overline{N_{G}}}\right) \right) ^{2} \end{aligned}$$
(37)

The result of this border collision of the 2-cycle FH depends on the two slopes at the colliding point \(k_{2}=k^{GH}\). On the left side of the kink point it is given by \(F^{\prime }(k_{1})G^{\prime }\) and on the right side by \(F^{\prime }(k_{1})H_{l}^{\prime }.\) Since \(F^{\prime }(k_{1})=F^{\prime } (k_{P}^{*}),\) this second one is positive, \(\lambda =F^{\prime }(k_{P}^{*})H_{l}^{\prime }<1\) as given in (34), and for the other one we have

$$\begin{aligned} F^{\prime }(k_{1})G^{\prime }=F^{\prime }(k_{P}^{*})\delta =\frac{\delta }{\varepsilon +\sqrt{\varepsilon ^{2}+4N_{H}/C^{2}}}<-1 \end{aligned}$$
(38)

(see an example in Fig. 3b). These two slopes, by using the skew tent map, determine the result of the bifurcation. In the case shown in Fig. 2a this bifurcation leads to an attracting 2-cycle for map \(T^{2},\) that corresponds to an attracting 4-cycle of map T with symbolic sequence FHFG (clearly visible in the azure region in Fig. 2a, above the curve \(\phi _{FH} \)). \(\square \)

An example is given in Fig. 3 at \(\delta =-3\) and the parameters as in Fig. 2. In Fig. 3a the border collision of the 2-cycle FH with the first kink point (point on the bifurcation curve (29)) and in Fig. 3b with the second kink point (point on the bifurcation curve (30)). A peculiarity of this cycle is that at a fixed value of \(\delta \) (varying only \(k^{FG})\) the map changes shape while the periodic points of the 2-cycle are the same (being \(k_{1}=k_{P}^{*}\) and \(k_{2}=C\sqrt{k_{P}^{*}})\).

Fig. 3
figure 3

\(\delta =-3\) and the parameters as in Fig. 2. In a \(k^{FG}=4.\) b \(k^{FG}=5.05\)

An immediate consequence of Proposition 4 is that a complete characterization of the degenerate flip bifurcation of the fixed point \(k_{G}^{*}\) at the particular point \(P=(-1,k_{P}^{*})\) is now possible. Considering a parameter value \(\delta <-1\) and close to \(-1\), then:

  • for \(k^{FG}\) between the two curves \(\psi _{FH}\) and \(\phi _{FH}\) the bifurcation leads to an attracting 2-cycle FH,

  • for \(k^{FG}\) below the curve \(\psi _{FH}\) the bifurcation leads to an attracting 2-cycle GH,

  • while for \(k^{FG}\) above the curve \(\phi _{FH}\) the bifurcation leads to an attracting 2-cycle FG.

While the bifurcations associated with the 2-cycle FH are only the two border collisions, the other two kind of cycles of period 2 (FG and GH) bifurcated from the flip bifurcation of \(k_{G}^{*}\) can on their turn undergo a flip bifurcation, that is, we can also see a loss of stability due to a smooth flip bifurcation or due to a degenerate flip bifurcation, since the map is piecewise smooth, and the result of the bifurcation may be not the standard one (of period doubling). We prove the following

Proposition 5

Bifurcations of the 2-cycles FG and GH.

(i) The 2-cycle FG with points belonging to the branches F and G undergoes a flip bifurcation crossing the curve

$$\begin{aligned} f_{FG}:\ \ \delta =\frac{-2}{3C^{2}}\left( k^{FG}+\sqrt{(k^{FG})^{2} +3C^{3}\sqrt{k^{FG}}}\right) . \end{aligned}$$
(39)

(ii) The 2-cycle GH with points belonging to the branches G and H undergoes a degenerate flip bifurcation crossing the curve

$$\begin{aligned} f_{GH}:\ \ \varepsilon \delta =-1 \end{aligned}$$
(40)

with different dynamic results depending on the parameters. (In the example of Fig.2in the region with absorbing interval \(I_{GH}\) the bifurcation leads to four chaotic intervals, while in the region with absorbing interval J to an attracting 4-cycle)

Proof

The 2-cycle FG bifurcated from the flip bifurcation of \(k_{G}^{*} \) has periodic points \((\xi _{1},\xi _{2})\) obtained considering \(\xi _{2} =F(\xi _{1})=C\sqrt{\xi _{1}}\) and then \(\xi _{1}=G(\xi _{2})\) leading to

$$\begin{aligned} \xi _{1}-\delta C\sqrt{\xi _{1}}-N_{G}=0 \end{aligned}$$
(41)

so that

$$\begin{aligned} 2\sqrt{\xi _{1}}=\delta C+\sqrt{(\delta C)^{2}+4N_{G}} \end{aligned}$$
(42)

and the flip bifurcation occurs when the eigenvalue of the 2-cycle, given by the product of the two derivatives, is \(-1.\) This condition is \(F^{\prime } (\xi _{1})G^{\prime }=\frac{C}{2\sqrt{\xi _{1}}}\delta =-1\) leading to \(2\sqrt{\xi _{1}}+C\delta =0.\) Substituting and computing we get

$$\begin{aligned} 3C^{2}\delta ^{2}+4\delta k^{FG}-4C\sqrt{k^{FG}}=0 \end{aligned}$$

and thus the flip bifurcation curve in (39), or equivalently:

$$\begin{aligned} f_{FG}:\ \ k^{FG}=\frac{C^{2}}{4\delta ^{2}}\left( 1-\sqrt{1-3\delta ^{3} }\right) ^{2} \end{aligned}$$

Since in the present case the map is piecewise smooth, the fixed point of the second iterate of the map belongs to a smooth arc, so that the flip bifurcation may be a standard one, in general in smooth systems it can be subcritical or supercritical, and a degenerate case is also possible. In our case we leave this analysis to future work. However, a few examples suggest that it is a degenerate bifurcation. At the flip bifurcation value the map has four segments filled with cycles of period 4, bounded by the periodic points of the 2-cycle (connecting two segments), the kink point closest to the 2-cycle and its three images, that is, the fourth iterate of the map, \(T^{4},\) has two segments exactly on the diagonal, filled with periodic points and the external kink point belongs to a 4-cycle at its border collision. To determine the result of the border collision we use the skew tent map as border collision normal form, considering the two slopes of the map \(T^{4}\) at this kink point.

In our system this result differs depending on the region to which the parameters belong. That is, the result depends on the kind of existing absorbing interval. For parameters in the region with interval \(I_{FG}\), in which only the branches F and G are involved (gray region in Fig. 2b), the two slopes are both higher than 1 in absolute value (an example is shown in Fig. 4a), and the result is 4 chaotic intervals, bounded by the images of the kink point \(k^{FG}\) (an example is shown in Fig. 4b). The symbolic sequences involved in this chaotic set are the occurrence of FGFG and FGGG in an unpredictable way. Differently, for parameter in the region with absorbing interval J (white region in Fig. 2b), even if only the branches F and G are involved, the kink point on the boundary of the segments filled with 4-cycles is \(k^{GH}\) (an example is shown in Fig. 5a) and one slope of map \(T^{4}\) at this kink point is smaller than 1 and the result is an attracting 4-cycle with periodic points FGFH (an example is shown in Fig. 5b).

The 2-cycle GH bifurcated from the flip bifurcation of \(k_{G}^{*}\) has periodic points \((\eta _{1},\eta _{2})\) obtained considering \(\eta _{2} =G(\eta _{1})=\delta \eta _{1}+N_{G}\) then \(\eta _{1}=H_{l}(\eta _{2})\) leads to

$$\begin{aligned} \eta _{1}=\varepsilon (\delta \eta _{1}+N_{G})+N_{H} \end{aligned}$$
(43)

so that

$$\begin{aligned} \eta _{1}=\frac{\varepsilon N_{G}+N_{H}}{1-\varepsilon \delta }\ \ ,\ \ \eta _{2}=\frac{N_{G}+\delta N_{H}}{1-\varepsilon \delta } \end{aligned}$$
(44)

The flip bifurcation occurs when the product of the two derivatives is \(-1\), that is:

$$\begin{aligned} f_{GH}:\ \ \varepsilon \delta =-1 \end{aligned}$$

In Fig. 2a \(\delta =-1/\varepsilon =-5\) is a vertical segment. Since the two branches with the periodic points of the 2-cycle are linear, this flip bifurcation is necessarily degenerate.

At the bifurcation value the map has two segments including the 2-cycle that are filled with cycles of period 4, and the external one has a point in one kink point, the closest to the 2-cycle, which may be either \(k^{FG}\) or \(k^{GH}.\)

When the parameters belong to the area in which the map is restricted to the absorbing interval \(I_{GH}\) (light blue region in Fig. 2b), then the result of the degenerate flip bifurcation of the 2-cycle involves the kink point \(k^{GH}\) and the bifurcation leads to 4 chaotic intervals (an example is shown in Fig. 6a). Differently, when the parameters belong to the area in which the map is restricted to the absorbing interval J (white region in Fig. 2b), then the kink point \(k^{FG}\) is involved and this bifurcation leads to a period doubling, an attracting 4-cycle with symbolic sequence FHGH exists after the bifurcation (an example is shown in Fig. 6b). \(\square \)

Fig. 4
figure 4

\(k^{FG}=8,\) and the parameters as in Fig. 2. In a \(\delta =-1.860758, \) on the diagonal are evidenced segments filled with 4-cycles;  b \(\delta =-1.9\) there are four chaotic intervals evidenced in red

Fig. 5
figure 5

\(k^{FG}=4.4\), and the parameters as in Fig. 2. a \(\delta =-1.344995\), on the diagonal the circles are evidencing segments filled with 4-cycles; in b \(\delta =-1.4\), a 4-cycle is the attracting set, evidenced by the red points

Fig. 6
figure 6

\(\delta =-5.01,\) and the parameters as in Fig. 2. a \(k^{FG}=3.6,\) there are four chaotic intervals evidenced in red; in b \(k^{FG}=3.7\), a 4-cycle FHGH is the attracting set, evidenced by the red points

As remarked above, in the parameter space there exists a wide region related to a bimodal map, involving all the three functions. We do not present a comprehensive analysis of this region, but highlight two properties that are interesting from an economic point of view:

  1. 1.

    In this region we have attracting cycles as well as attracting chaotic intervals. An example of the possible trajectories is shown in the one-dimensional bifurcation diagram as a function of \(\delta \) in Fig. 7

  2. 2.

    Clearly, in this parameter region, inside the absorbing interval J it is possible to have coexistence of attractors. An example is shown in Fig. 8.

Fig. 7
figure 7

\(k^{FG}=7\) and the parameters as in Fig. 2

Fig. 8
figure 8

\(k^{FG}=5.06,\) \(\delta =-5.85\) and the parameters as in Fig. 2, there are coexisting attracting cycles, evidenced by the red points. a There is an attracting 7-cycle FGGFGFH;  in b a 3-cycle FGH is the attracting set

4 Discussion of Results and Final Remarks

We presented a model in the spirit of Matsuyama’s model of endogenous financial cycles (Matsuyama et al., 2016), which we augmented by agents’s heterogeneity. We showed that in the resulting model old agents have two margins for adjusting their financial decisions: first they decide whether to become entrepreneur or not; second, they decide on the amount to invest in entrepreneurial projects. The corresponding map has three branches that correspond to three different regimes with respect to the investments in bad projects: on a first branch, bad projects are not available (and all investment goes to entrepreneurial, good projects); on a second, middle branch, investment in bad projects becomes increasingly available, and, finally, on a third branch, investment in bad projects is not limited anymore. We showed that - because of heterogeneity - the third branch is upward sloping. We specified the functional forms, linearized two branches, and described analytically important properties of the implied dynamics. We paid particular attention to the nature of business cycles, commenting not only on the movement of capital and output per capita, but also on the length of the business cycles and in particular also on the pattern of regime switches that are involved. In presenting the results, we focused on their dependence upon the availability of bad projects, i.e. on the parameter \(k^{FG}\) (the lower \(k^{FG}\), the sooner bad projects become available) and \(\delta \) (the lower \(\delta \) the quicker the availability of bad projects increases with an increase in \(k_{t}\)).

From an economic point of view, we would like to highlight the following results:

  1. 1.

    The map involves three fixed points (one on each branch characterized by a specific regime) and we analytically describe the parameter space, in which these fixed points are stable. For low (high) values of \(k^{FG}\), the dynamics converges to the fixed point in which investment in bad projects is unlimited (not available). For intermediate values of \(k^{FG}\) and for values of \(\delta \) between 0 and \(-1\), the dynamics converges to the fixed point, in which investment in bad projects are available, but limited.

  2. 2.

    We gave a full description of how the fixed points bifurcate into period-2 cycles. Importantly, we are able to analytically describe the parameter spaces with different symbolic sequences on the cycles (involving economically different regime switches): All two cycles occur for \(\delta <-1 \). If bad projects become available at a low threshold \(k^{FG}\), the cycle fluctuates between constrained and unconstrained investment in bad projects (which corresponds to the symbolic sequence GH). For intermediate values of \(k^{FG}\) the dynamics switches between unconstrained and no investment in bad projects (symbolic sequence FH), whereas for high values of \(k^{FG}\) the cycles are between constrained and no investment in bad projects (symbolic sequence FG). Thus, we are able to describe analytically regime switches over the cycle; as well as how the nature of period-2 cycles changes with varying parameters.

  3. 3.

    We have also fully described how the FH cycle bifurcates (Proposition 4). It does not only bifurcate into period-2 cycles with a different symbolic sequence (commented upon in the previous paragraph); in addition, we gave parameter conditions for which it bifurcates into period-4 cycles. Interestingly enough, these period-4 cycles may exhibit two different symbolic sequences: For a lower value of \(k^{FG}\) a FHGH period-4 cycle appears, on which the cycle starts with no investment in bad projects, goes then into the regime with unconstrained investment in bad projects, enters the regime with constrained investment in bad projects and finally the regime with unconstrained investment in bad projects; then the cycle starts over again. Instead, for a higher value of \(k^{FG}\) a FHFG period-4 cycle appears, on which the cycle starts with no investment in bad projects, goes then into the regime with unconstrained investment in bad projects, returns to the regime with no investment in bad projects and finally enters the regime with constrained investment in bad projects; then the cycle starts over again. Again, our model provides not only conditions for the change in cycle length, but also conditions on the nature of regime switches on cycles with the same cycle length.

  4. 4.

    The model is highly stylized and therefore it is difficult to take it directly to the data. However, it describes a mechanism that might be able to generate cyclical patterns similar to the ones found in data. From an economic perspective, it is interesting to note that the model does not only describe regular cycles of low periodicity that may appear as a not fully convincing description of reality (which always involves irregular fluctuations). As shown, the period-2 cycles may not only bifurcate into regular period-4 cycles, but also into attractors involving four chaotic intervals (see Proposition 5, on the bifurcations of the GH and the FG cycles, and Figs. 4b and 6a for examples of the attractors; and the one-dimensional bifurcation diagram in Fig. 7, in which the attractors involving chaotic intervals are clearly visible). The dynamics on these attractors with four chaotic intervals resembles an irregular period-four cycle, which is a much more plausible pattern in an economic context.

  5. 5.

    Our model also involves coexisting attractors with totally different symbolic sequences. Figure 8 shows coexistence of a period-three cycle FGH with a period-seven cycle, which—notably enough—does NOT involve the sequence FGH. The nature of regime switches and their sequence is sensitive upon initial conditions and may thus change abruptly after a shock.

  6. 6.

    Importantly, we would like to highlight the role of heterogeneity in our model. Without heterogeneity, the branch \(H_{l}(k_{t})\) is horizontal, \(\varepsilon =0\) holds.

    First observe, the dynamics is not affected by heterogeneity, where \(I_{FG}\) is the absorbing interval (i.e. where the map only involves the branches \(F(k_{t})\) and \(G(k_{t})\), see the gray area in Fig. 2b) and the slope of the branch \(H_{l}(k_{t})\) is not involved.

    Second, in the other regions the dynamics involves also the third branch. Without heterogeneity it is flat and all cycles are superstable, which also implies that attractors involving chaotic intervals are not possible. This holds also for the Flip bifurcation of the GH cycle. Introducing heterogeneity thus increases the economic plausibility of the implied dynamic patterns.

  7. 7.

    Finally, note that our analysis also leads into various policy questions. It highlights the importance of financial institutions for the generation of business cycles, for creating volatility, and shows the fragility of economic stability. Small institutional shocks may drastically change the economic development. Our analysis also reveals additional challenges for economic policy. It does not suffice to observe the development of total output and income, since business cycles similar in income development may actually involve quite different pattern of regime switches and thus call for different policy responses. In addition, introducing heterogeneity also allows to study the impact of business cycles on occupational choice and income inequality, thus opening up further policy fields. However, for digging deeper into these questions our analytic approach has to be complemented by numerical analyses.

    We leave this and other applications to further research.