1 Introduction

Oscillations and waves are ubiquitous phenomena that are encountered in many different areas of physics. An oscillation is a disturbance in a physical system that is repetitive in time. A wave is a disturbance in an extended physical system that is both repetitive in time and periodic in space. In general, an oscillation involves a continuous back and forth flow of energy between two different energy types: e.g., kinetic and potential energy, in the case of a pendulum. A wave involves similar repetitive energy flows to an oscillation, but, in addition, is capable of transmitting energy and information from place to place. Now, although sound waves and electromagnetic waves, for example, rely on quite distinct physical mechanisms, they, nevertheless, share many common properties. The same is true of different types of oscillation. It turns out that the common factor linking various types of wave is that they are all described by the same mathematical equations. Again, the same is true of various types of oscillation. In some circumstances the system can be chaotic. Chaotic motions are behavior of some nonlinear systems (at least third order or higher) with “floating” frequency, amplitude, and unregular (non periodic) energy variations. For example, in physics, jerk is the third derivative of position. It has been shown that a jerk equation, which is equivalent to a system of three first orders, ordinary, nonlinear differential equation is in a certain sense the minimal setting for solutions showing chaotic behavior. This motivates mathematical interest in jerk systems. Systems involving a fourth or higher derivative are called accordingly hyperjerk systems.

Chaos theory studies the behavior of dynamical systems which are nonlinear, highly initial condition sensitive, having deterministic (rather than probabilistic) underlying rules which every future state of the system must follow. Such systems exhibit aperiodic oscillations in the time series of state variables. It has a large or infinite number of unstable periodic patterns which is commonly termed as order in disorder. Long-term prediction is almost impossible due to the sensitive dependence on initial conditions. Though such effect may seem quite unusual, it is however observed in very simple systems, for example, a ball placed at the crest of a hill might roll into different valleys depending on slight difference in the initial position. Most common chaotic phenomenon is observed in case of regular weather prediction. Other application of chaos theory is pervaded in many fields like geology, mathematics, biology, microbiology, computer science, economics, philosophy, politics, population dynamics, psychology, and robotics. Some real-world applications of chaotic time series are computer networks, data encryption, information processing, pattern recognition, economic forecasting, market prediction, etc. [13].

In this paper it will shown that system controlled by a linear controller (PI controller, P—proportional, I—integrative) with energy feedback (nonlinear) can generate required types of signals. Depending on parameters of the controller the generated output signal can be sinusoidal, quasi-periodic, or even chaotic.

2 The state energy approach

Let us consider a class of finite dimensional nonlinear systems described in the following form

$$\begin{aligned} \begin{array}{l} \dot{x}=A(x)x+Bu \\ y=C(x)x \\ \end{array} \end{aligned}$$
(1)

where the matrix C(x), defining the output measurement, is not a’priori specified, and the structure of matrices A(x) (tridiagonal)

$$\begin{aligned} A=\left[ {{\begin{array}{llllll} {-\alpha _{11} }&{}\quad {\alpha _2 }&{}\quad 0&{}\quad 0&{} \quad 0&{}\quad 0 \\ {-\alpha _2 }&{}\quad {-\alpha _{22} }&{}\quad {\alpha _3 }&{}\quad 0&{}\quad 0&{}\quad 0 \\ 0&{}\quad {-\alpha _3 }&{}\quad {-\alpha _{33} }&{}\quad \ddots &{}\quad 0&{}\quad 0 \\ 0&{}\quad 0&{}\quad \ddots &{}\quad \ddots &{}\quad {\alpha _{n-1} }&{}\quad 0 \\ 0&{}\quad 0&{}\quad 0&{}\quad {-\alpha _{n-1} }&{}\quad {-\alpha _{n-1,n-1} }&{}\quad {\alpha _n } \\ 0&{}\quad 0&{}\quad 0&{}\quad 0&{}\quad {-\alpha _n }&{} \quad {-\alpha _{n,n} } \\ \end{array} }} \right] \nonumber \\ \end{aligned}$$
(2)

We start with presentation of some basic ideas of the state space energy-based approach [46]. Let \(P_{0}(t)\) denotes the output dissipation power of a zero input causal system with an informational output y(t) defined by

$$\begin{aligned} y(t)=\pm \sqrt{P_0 (t)},\quad P_0 (t)\ge 0 \end{aligned}$$
(3)

Let E(t) denotes the instantaneous value of the state space energy (stored in a state vector x(t)):

$$\begin{aligned} E(t)=\int \limits _{t_0 }^\infty {P_0 (\tau )d\tau ,\quad \hbox { }\forall t:\hbox {}t=t_0 } \end{aligned}$$
(4)

The state space energy conservation principle holds

$$\begin{aligned} \frac{\mathrm{d}E}{\mathrm{d}t}=\left\langle {\psi (x),f(x)} \right\rangle =-P_0 (t) \end{aligned}$$
(5)

where \({\psi }\) is the gradient vector of the state space energy potential field Ef is the state space velocity vector, and \(\langle .,. \rangle \) denotes the operation of dual product.

Because the choice of origin and that of the state space coordinate system is free, we can define the gradient \({\psi }(x)\) of the energy E in its most simple form:

$$\begin{aligned} \psi (x)=x^{T}\rightarrow E=\frac{1}{2}\sum _{i=1}^n {x_i^2 } \end{aligned}$$
(6)

where n is the order of the system representation. In some situations it may be useful to consider the integral of E(x) as an additional concept of the state space hyper-energy J, which, divided by the length of interval \(T=[t_{0},t_{1}]\), defines a mean value of the E(x).

3 Dissipative system structures

Recall that according to Liouville’s theorem of vector analysis, dissipative systems have the important property that any volume of the state space strictly decreases under the action of the system flow. For linear as well as nonlinear systems with state velocity vector given by a vector field f, the property of dissipativity is defined:

$$\begin{aligned} \hbox {div} \mathbf{f}(\mathbf{x}) = \sum _{i=1}^n {\frac{\partial f_i (\mathbf{x})}{\partial x_i }} <0 \end{aligned}$$
(7)

Thus a system defined by a matrix A(x) is dissipative if the matrix A(x) has negative trace.

It follows from the state space energy conservation principle that a special form of a structurally dissipative state equivalent system representation called generalized dissipation normal form can easily be derived. Its internal structure is determined by the tridiagonal matrix (2).

The structure of this representation is shown in Fig. 1. It is completely characterized by minimal number of independent (internal) state energy storage elements, represented by minimal number of state variables.

Fig. 1
figure 1

Structure of the dissipation normal form

In some cases not only the state minimality, but also a property of parametric minimality is required. In the important special case of parametrically minimal system representation the internal structure reduces to:

$$\begin{aligned} A=\left[ {{\begin{array}{llllll} {-\alpha _{11} }&{}\quad {\alpha _2 }&{}\quad 0&{}\quad 0&{}\quad 0&{}\quad 0 \\ {-\alpha _2 }&{}\quad 0&{}\quad {\alpha _3 }&{}\quad 0&{}\quad 0&{}\quad 0 \\ 0&{}\quad {-\alpha _3 }&{}\quad 0&{}\quad \ddots &{}\quad 0&{}\quad 0 \\ 0&{}\quad 0&{}\quad \ddots &{}\quad \ddots &{}\quad {\alpha _{n-1} }&{}\quad 0 \\ 0&{}\quad 0&{}\quad 0&{}\quad {-\alpha _{n-1} }&{}\quad 0&{}\quad {\alpha _n } \\ 0&{}\quad 0&{}\quad 0&{}\quad 0&{}\quad {-\alpha _n }&{} \quad 0 \\ \end{array} }} \right] \nonumber \\ \end{aligned}$$
(8)

Because the derived system structure satisfies the abstract form of state energy conservation principle, we call it physically correct. It is worthwhile to notice that any of internal or external power-informational interactions, as depicted in Fig. 1, may be nonlinear with respect to state and input variables.

System representations with zero divergence

$$\begin{aligned} \hbox {div} \mathbf{f}(\mathbf{x}) = 0 \Rightarrow \alpha _1 = 0 \end{aligned}$$
(9)

preserve volume along state trajectories and are referred to as conservative. Locally linearized dissipative systems in a vicinity of an equilibrium state need not be globally dissipative. If a representation is neither dissipative nor conservative, instability appears.

Following elementary consequences of the state space energy conservation principle for parametrically minimal dissipation structure are in order [7, 8]:

  1. 1.

    \(\alpha _{11} > 0\) is necessary and sufficient for dissipativity

  2. 2.

    \(\alpha _{11} < 0 \) is sufficient for structural instability

  3. 3.

    \(\alpha _{11} = 0 \) is necessary and sufficient for conservativity

  4. 4.

    \(\alpha _{11}> 0\) is necessary for asymptotic stability

  5. 5.

    \(\forall _i,j \in \left\{ 2,3,\ldots ,n\right\} :\alpha _i \ne o, \alpha _{11}\ne 0\) is equivalent to parametric and state minimality

  6. 6.

    \(\forall _i,j \in \left\{ 2,3,\ldots ,n\right\} :\alpha _i \ne o, \beta _{1}\ne 0\) is equivalent to structural controlability

  7. 7.

    \(\forall _i,j \in \left\{ 2,3,\ldots ,n\right\} :\alpha _i \ne o, \gamma _{1}\ne 0\) is equivalent to structural observability

  8. 8.

    \(\forall _i,j \in \left\{ 2,3,\ldots ,n\right\} :\alpha _i \ne o, \alpha _{11}\ne 0\) is equivalent to structural asymptotic stability

where matrices BC are

$$\begin{aligned} \begin{array}{l} B=\left[ {{\begin{array}{llll} {\beta _1 }&{}\quad 0&{}\quad \cdots &{}\quad 0 \\ \end{array} }} \right] ^{T} \\ C=\left[ {{\begin{array}{llll} {\gamma _1 }&{}\quad 0&{}\quad \cdots &{} \quad 0 \\ \end{array} }} \right] \\ \end{array} \end{aligned}$$
(10)

4 The state energy feedback

In this part we try to attack the “problem of oscillations” not from the standard “observation of reality point of view,” but from the opposite direction, i.e., we intend to develop a consistent approach to the real-world situations from a “generation of controlled oscillations point of view.” The objective is to stabilize the state space energy E(t) on any prescribed value \(E^{*}\) by means of a linear controller, but under the assumption that instead of the measured output signal y(t), the information about the actual value of the state space energy E[x(t)] is assumed to be available to the controller [9, 10].

At least the following three interpretations are natural:

  • either the state space energy is continuously measured, and a standard linear “output error” controller is used, where not the informational output \(y(t\}\), but the integrated output dissipation power is used in the feedback informational channel,

  • or the actual state vector x(t) is continuously measured and used in the feedback informational channel; then, the corresponding actual value of the state space energy is computed and a standard linear “output error“ controller is used,

  • or the actual values of the input u(t) and that of the output y(t) are continuously measured and used in the feedback informational channel, including a state reconstructor and a state energy error controller.

The structure for single-input single-output system with nonlinear part of controller is shown in Fig. 2.

The proportional-integral (PI) controller based on state space energy is shown in Fig. 3, where E is prescribed value of energy and \(x_{i}^{2 }\) is state space variable (the total state space energy is given by Eq. 6).

Let us start with analysis of the state representation Eq. (1) where the information about the system structure is contained in the triple of matrices (A, B, C), where the diagonal elements of the matrix A represent the dissipation parameters, the off-diagonal elements represent the internal interaction parameters between both the first-order subsystems, and the elements of the matrices B and C represent the parameters of external interactions. Typical solutions of the state energy error control problem are illustrated by simulation results: harmonic oscillations and generation of chaotic oscillations (by the same systems, only control parameters will change).

Fig. 2
figure 2

Linear system with nonlinear part of controller and the state vector measurement

Fig. 3
figure 3

Block diagram of PI controller based on state space energy control

The block diagram of linear quadrature oscillator with 2 dissipations is shown in Fig. 4 (dissipations are \(\alpha _{1}, \alpha _{3})\).

Fig. 4
figure 4

Linear quadrature oscillator with dissipation parameters \(\alpha _{1}, \alpha _{3}\). The frequency is controlled by parameter \(\alpha _{2}\)

This system can be described by second-order system with the dissipation \(\alpha _{1} \alpha _{3}\) and frequency proportional of \(\alpha _{2}\).

$$\begin{aligned} \begin{array}{l} \dot{x}_1 =-\alpha _1 x_1 +\alpha _2 x_2 \\ x_2 =-\alpha _2 x_1 -\alpha _3 x_2 \\ \end{array} \end{aligned}$$
(11)

Because of dissipativity, without control, the oscillation in this system vanishes after short time which depends on initial conditions and values of dissipative coefficient. Using of different controllers is possible for amplitude stabilization of oscillations [11, 12]. In this paper the new principle based on state space energy was selected. The block diagram of linear quadrature oscillator with proportional-integral controller is displayed in Fig. 5

Fig. 5
figure 5

System 1. The linear quadrature oscillator controlled by a state energy error PI controller

The whole system oscillator with PI controller with nonlinear feedback is represented by

$$\begin{aligned}&\dot{x}_1 =-\alpha _1 x_1 +\alpha _2 x_2 +x_1 u(t)\nonumber \\&x_2 =-\alpha _2 x_1 -\alpha _3 x_2 \nonumber \\&\dot{x}_3 =k_I \tilde{E}(t) \nonumber \\&\tilde{E}(t)= {E^{*}-E(t)} \nonumber \\&E(t)=\frac{1}{2}\left( {x_1^2 +x_2^2 } \right) \nonumber \\&u(t)=k_P \left[ {E^{*}-\frac{1}{2}\left( {x_1^2 +x_2^2 } \right) } \right] +x_3 \end{aligned}$$
(12)

The first equation can be rewritten as

$$\begin{aligned} \dot{x}_1 =x_1 (u(t)-\alpha _1 )+\alpha _2 x_2 \end{aligned}$$
(13)
Fig. 6
figure 6

Phase portrait of system 1 for \(k_{i}=0.0015; k_{p}=0.3; \alpha _{1}=0.01; \alpha _{2}=1.4; \alpha _{3}=0.01\)

From this equation it can be seen that system can be dissipative if

$$\begin{aligned} u(t)-\alpha _{1}<0 \end{aligned}$$
(14)

or anti-dissipative if

$$\begin{aligned} u(t)-\alpha _{1}>0 \end{aligned}$$
(15)

therefore with appropriate control this system can hold desired energy. Based on previous results, the dissipativity/anti-dissipativity is controlled by controller which must hold prescribed energy \(E^{*}\) where state space energy of oscillator is given as

$$\begin{aligned} E[x(t)]=\frac{1}{2}\left( x_{1}^{2} +x_{2}^{2} \right) \end{aligned}$$
(16)

Results depend on proportional and integral gains of PI controller. It will show that for some gain values of PI controller the system can be chaotic but holds (in average) the prescribed energy. The system can be therefore simply switched as sinusoidal oscillator or system with chaotic oscillations.

5 Results of computer simulations

The system according to Fig. 5, described by Eq. (12), was simulated (system 1) for different values of gains of PI controller.

On the first, the prescribed energy was \(E_{1}^{*}=1.5\, ({\hbox {from time}} \,t\in \langle 0\, {\hbox {to}}\, 150\rangle )\) and \(E_{2}^{*}=3 \,({\hbox {from time}}\, t\in (150\, {\hbox {to}}\, 400\rangle )\) with initial conditions \(x_{1}(0)=0.1; x_{2}(0)=0; x_{3}(0)=0\) and \(k_{i}=0.0015; k_{p}=0.3; \alpha _{1}=0.01; \alpha _{2}=1.4; \alpha _{3}=0.01\). For gain values of PI controller the system works as sinusoidal oscillator. The results are shown in Fig. 6 (phase portrait), Fig. 7 (time evolution of state variables), Fig. 8 (time evolution of state space energy), and Fig. 9 (frequency spectrum).

Fig. 7
figure 7

Time evolution of state variables \(x_{1}\) and \(x_{2}\) for system 1 for \(k_{i}=0.0015; k_{p}=0.3; \alpha _{1}=0.01; \alpha _{2}=1.4; \alpha _{3}=0.01\)

Fig. 8
figure 8

Time evolution of the prescribed energy (dash line) and state space energy (solid line) of system 1 for \(k_{i}=0.0015; k_{p}=0.3; \alpha _{1}=0.01; \alpha _{2}=1.4; \alpha _{3}=0.01\)

Fig. 9
figure 9

The frequency spectrum of the state space variable \(x_{1}\) of system 1 for \(k_{i}=0.0015; k_{p}=0.3; \alpha _{1}=0.01; \alpha _{2}=1.4; \alpha _{3}=0.01\)

On the second, the prescribed energy was \(E_{1}^{*}=1.5\, ({\hbox {from time}}\, t\in \langle 0\, {\hbox {to}}\, 150\rangle )\) and \(E_{2}^{*}=1.4\, ({\hbox {from time}}\, t\in (150\, {\hbox {to}}\, 300\rangle )\) with initial conditions \(x_{1}(0)=0.1; x_{2}(0)=0; x_{3}(0)=0\) and \(k_{i}=0.885; k_{p}=0.099;{\alpha }_{1}=1;{\alpha }_{2}=1.4;{\alpha }_{3}=1.4\). For these gain values of PI controller the system works as chaotic system. The results are shown in Fig. 10 (phase portrait), Fig. 11 (time evolution of state variables), Fig. 12 (time evolution of state space energy), and Fig. 13 (frequency spectrum) [1114].

Fig. 10
figure 10

Phase portrait of system 1 for, \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\); and initial conditions \(x_{1}(0)=0.1; x_{2}(0)=0; x_{3}(0)=0\)

Fig. 11
figure 11

Time evolution of state variables \(x_{1}\) and \(x_{2}\) for system 1 for \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

Fig. 12
figure 12

Time evolution of the prescribed energy (dash line) and state space energy (solid line) of system 1 for \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

Fig. 13
figure 13

The frequency spectrum of the state space variable \(x_{1}\) of system 1 for for \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

On the third the similar system was used, but the sign of 2 state variables \(x_{1}, x_{2}\) is changed in time \(t>150\) (by switching signal SW); therefore, “rotation” of the system was reversed (see Fig. 14), [1518].

The second system (including switching signal) is described by Eq. (17)

$$\begin{aligned}&\dot{x}_1 =-\alpha _1 x_1 +\alpha _2 SWx_2 +x_1 u(t) \nonumber \\&x_2 =-\alpha _2 SWx_1 -\alpha _3 x_2 \nonumber \\&\dot{x}_3 =k_I \tilde{E}(t) \nonumber \\&\tilde{E}(t)= {E^{*}-E(t)} \nonumber \\&E(t)=\frac{1}{2}\left( {x_1^2 +x_2^2 } \right) \nonumber \\&u(t)=k_P \left[ {E^{*}-\frac{1}{2}\left( {x_1^2 +x_2^2 } \right) } \right] +x_3 \nonumber \\&SW=\left\{ {\begin{array}{l} +1 \quad \mathrm{for}\, t\,\le \,t_1 \\ -1 \quad \mathrm{for} \,t>t_1 \\ \end{array}} \right. \end{aligned}$$
(17)

The simulation results lead to 4-wing chaotic system (system 2), see phase portrait in Fig. 15 and the next Figs. 1617, and 18.

Fig. 14
figure 14

System 2. The dissipative oscillator controlled by a state energy error PI controller with switching sign of coupling signals by multipliers and switching signal SW

Fig. 15
figure 15

Phase portrait of system 2 with reversed rotation, \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

Fig. 16
figure 16

Time evolution of system 2 with reversed rotation, \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

Fig. 17
figure 17

The state space energy of system 2 with reversed rotation, \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

Fig. 18
figure 18

The frequency spectrum of system 2 with reversed rotation, \(k_{i}=0.885; k_{p}=0.099; \alpha _{1}=1; \alpha _{2}=1.4; \alpha _{3}=1.4\)

In Table 1 some important characteristic of the both chaotic systems (system1 and 2) is presented (calculated from state variables \(x_{1}\) and \(x_{2})\):

Largest Lyapunov exponent, Hurst exponent, capacity dimension, correlation dimension.

Table 1 Systems properties

6 Conclusion

In this paper the several types of feedback system based on linear controlled system, linear controller but nonlinear state space feedback were presented and simulated. The theory of state space energy approach was used. Depending on parameters of the controller the system can generate sinusoidal, nonsinusoidal, or even chaotic signal.