1 Introduction

The occurrence of chaos and chaos in nonlinear circuits depends on the involvement of electric components, and one nonlinear component with nonlinear relation between voltage and channel current is required at least. When these circuits are activated, capacitive energy is shunted to inductive channels and memristive channels based on memristors [1,2,3,4,5]. A simple nonlinear circuit requires the combination and connection to capacitor, inductor, negative resistor and even external signal source, and appropriate setting in parameters will develop chaos in these nonlinear circuits [6,7,8,9,10]. In particular, some nonlinear circuits can be tamed and improved to present bursting, spiking patterns, and neural circuits are obtained to propose equivalent neuron models. Indeed, piezoelectric ceramic [11], Josephson junction [12, 13], photocell [14, 15], thermistor [16, 17], memristor can be connected to some neural circuits for building reliable neural circuits for further considering the physical effect during activating neural activities in biophysical neurons[18,19,20,21,22].

From physical aspect, energy is exchanged and propagated when biological neurons present different firing modes and patterns. For nonlinear circuits, continuous oscillation needs stable energy supply and shunting between different electric components. The physical energy in nonlinear circuits can be obtained by considering the energy in the capacitive, inductive and memristive channels, and then the physical field energy can be converted into equivalent dimensionless energy function [23,24,25] by applying scale transformation on the variables and parameters in the field energy function. On the other hand, suitable Hamilton energy function can be confirmed in a nonlinear oscillator by using Helmholtz theorem [26,27,28]. However, it keeps open for discrete systems and maps to get energy function, and the involvement of discrete memristor makes the question become more interesting and worthy of investigation.

In this review, based on a memristive map [29, 30], a scheme is used to estimate the energy function in theoretical way. A scale parameter is introduced to build a equivalent continuous dynamical system for getting the Hamilton energy function and then the value for the scale parameter is confirmed by bifurcation analysis, which the memristive map has the same maximal value or phase space with the memristive oscillator. This scheme can be further used to calculate energy for more maps and energy level will be switched to control the chaos in maps.

2 Energy in nonlinear circuit and continuous oscillator

Quiescent biological neurons develop static distribution of electric field, and the membrane potential keeps certain constants for keeping propagation balance of intracellular and extracellular ions. In presence of external stimulus beyond the threshold, certain firing mode is triggered to present continuous firing patterns accompanying with jumping between energy levels. That is, distinct physical effect becomes distinct and it can be reproduced in some equivalent neural circuits by considering the main physical properties. The capacitive energy can be described by the capacitors and charge-controlled memristor [31,32,33,34], the inductive energy can be mimicked by inductors and magnetic-flux dependent memristor [35,36,37,38], nonlinear resistor in parallel with the inductive channel can be used to bridge connection to the magnetic field and electric field. In addition, involvement of constant voltage sources into the inductive channel or memristive channel is suitable to represent the resting potentials of ion channels. Biological neurons can induce electrical field and magnetic field, and ion channels are important for exchange and propagation of ions including calcium, potassium and sodium. Therefore, a capacitor and its output voltage are used to mimic the electric field and membrane potential, inductor and its channel current can describe the magnetic field and the transmembrane current. Additive memristors are used to estimate the physical field effect and special property of ion channels, such as detecting external field and self-adaption and controllability. In Fig. 1, a simple neural circuit is built by connecting one capacitor, two different kinds of memristors, one nonlinear resistor with cubic relation between channel current and across voltage, and external stimulus can be time-varying or sampled from specific signal source within specific frequency band.

Fig. 1
figure 1

Memristive neural circuit coupled by memristors. C, L, M1, M2, and NR describe capacitor, inductor, magnetic flux-dependent memristor, charge-controlled memristor, nonlinear resistor, respectively. Constant E denotes reverse potential, is represents external forcing current, the output voltage for capacitor is v

In Fig. 1, three different constant voltage sources are introduced to mimic the effect of reverse voltage in these ion channels. The involvement of NR is used to describe the nonlinear relation of energy flow between capacitive and inductive field. The channel current across the two memristors and nonlinear resistor is respectively estimated,

$$ \left\{ {\begin{array}{*{20}l} {i_{{NR}} = - \frac{1}{\rho }\left( {v - \frac{1}{2}\frac{{v^{2} }}{{V_{0} }} - \frac{1}{3}\frac{{v^{3} }}{{V_{0}^{2} }}} \right);} \hfill \\ {i_{{M1}} = M(\varphi )(v - E_{1} ) = (a + 3b\varphi ^{2} )(v - E_{1} );} \hfill \\ {i_{{M2}} = \frac{{(v - E_{2} )}}{{W(q)}} = (c + dq^{2} )(v - E_{2} );} \hfill \\ \end{array} } \right. $$
(1)

where the physical parameters (ρ, V0), (a, b), (c, d) are relative to the material properties of the NR, M1 and M2, respectively. The parameters (ρ, V0) can be discerned from the i-v (current and voltage across the nonlinear resistor) curve when the nonlinear resistor is connected to a simple circuit. φ and q describe the magnetic flux and charges across the two kinds of memristors. v and iL measure the voltage across the capacitor and channel current across the inductor. Furthermore, the field energy in each electric component, and the total energy function are respectively calculated by

$$ \left\{ \begin{gathered} W_{C} = \frac{1}{2}Cv^{2} ;\;W_{L} = \frac{1}{2}Li_{L}^{2} ; \hfill \\ W_{M1} = \frac{1}{2}L_{M} i_{M1}^{2} = \frac{1}{2}\varphi i_{M1} = \frac{1}{2}(a + 3b\varphi^{2} )(v - E_{1} )\varphi ; \hfill \\ W_{M2} = \frac{1}{2}C_{M} v_{M2}^{2} = \frac{1}{2}qv_{m2} = \frac{1}{2}(v - E_{2} )q; \hfill \\ W = \frac{1}{2}Cv^{2} + \frac{1}{2}Li_{L}^{2} + \frac{1}{2}(a + 3b\varphi^{2} )(v - E_{1} )\varphi + \frac{1}{2}(v - E_{2} )q; \hfill \\ \end{gathered} \right. $$
(2)

An equivalent Hamilton energy function H in dimensionless form can be obtained by

$$ \begin{aligned} H = & \frac{W}{{CV_{0}^{2} }} = \frac{1}{{CV_{0}^{2} }}\left[ {\frac{1}{2}Cv^{2} + \frac{1}{2}Li_{L}^{2} + \frac{1}{2}(a + 3b\varphi^{2} )(v - E_{1} )\varphi + \frac{1}{2}(v - E_{2} )q} \right] \\ = & \frac{W}{{W_{0} }} = \frac{1}{2}x^{2} + \frac{1}{2\alpha }y^{2} + \frac{1}{2}(a^{\prime } + b^{\prime } z^{2} )(x - e_{1} )z + \frac{1}{2}(x - e_{2} )w;{\kern 1pt} \\ \end{aligned} $$
(3)

As a result, any changes of the variables and memristive parameters will trigger shift of energy level, and energy is shunted between capacitive, inductive and memristive types. The normalized parameters and dimensionless variables for physical variables and intrinsic parameters are defined by

$$ \left\{ \begin{gathered} x = \frac{v}{{V_{0} }},y = \frac{{\rho i_{L} }}{{V_{0} }},\;z = \frac{\varphi }{{\rho CV_{0} }},\;w = \frac{q}{{CV_{0} }},\;\tau = \frac{t}{\rho C},\alpha = \frac{{\rho^{2} C}}{L},\;\xi = \frac{R}{\rho }, \hfill \\ a^{\prime} = \rho a,b^{\prime} = 3b\rho^{3} C^{2} V_{0}^{2} ,W_{0} = CV_{0}^{2} ,\;e = \frac{E}{{V_{0} }},e_{1} = \frac{{E_{1} }}{{V_{0} }},e_{2} = \frac{{E_{2} }}{{V_{0} }}; \hfill \\ \end{gathered} \right. $$
(4)

According to Eq. (3), the neuron shows jump between energy levels when the electric activities are switched from periodical, spiking, bursting to chaotic patterns. The memristive oscillator regulates its energy value close to certain energy level in presenting sole firing mode. In presence of multiple firing modes, energy level is switched with time. External stimulus can inject energy flux and external electromagnetic field can change the energy shunting between the capacitive and inductive channels, and it explains the mode transition in excitable media under continuous polarization and magnetization.

The circuit equation for Fig. 1 can be obtained as follows

$$ \left\{ \begin{gathered} C\frac{dv}{{dt}} = i_{s} - i_{L} - i_{M1} - i_{M2} - i_{NR} ; \hfill \\ L\frac{{di_{L} }}{dt} = v + E - Ri_{L} ; \hfill \\ \frac{d\varphi }{{dt}} = v - E_{1} ; \hfill \\ \frac{dq}{{dt}} = i_{M2} = (c + dq^{2} )(v - E_{2} ); \hfill \\ \end{gathered} \right. $$
(5)

Indeed, the dynamics of the neuron with double memristive channels can be described by equivalent and dimensionless form as follows

$$ \left\{ \begin{gathered} \frac{dx}{{d\tau }} = i_{s}^{\prime } - y - (a^{\prime } + b^{\prime } z^{2} )(x - e_{1} ) - (c^{\prime } + d^{\prime } w^{2} )(x - e_{2} ) + x - \frac{1}{2}x^{2} - \frac{1}{3}x^{3} ; \hfill \\ \frac{dy}{{d\tau}} = \alpha (x - \xi y + e); \hfill \\ \frac{dz}{{d\tau}} = x - e_{1} ; \hfill \\ \frac{dw}{{d\tau}} = (c^{\prime } + d^{\prime } w^{2} )(x - e_{2} ); \hfill \\ \end{gathered} \right. $$
(6)

By applying and taming the normalized parameters and external forcing current, the firing mode and patterns in the memristive oscillator in Eq. (6) can be controlled effectively. From Eq. (5) to Eq. (6), scale transformation Eq. (4) is required, and additive scale transformation is used as follows

$$ i_{s}^{\prime } = \frac{{\rho i_{s} }}{{V_{0} }},\;\;\xi = \frac{\rho }{R},\;e = \frac{E}{{V_{0} }},\;c^{\prime } = \rho c,\;d^{\prime } = \rho dC^{2} V_{0}^{2} ; $$
(7)

The neural circuit contains magnetic field and electric field energy, and its dynamics can be replaced by equivalent vector form. According to the Helmholtz theorem [39, 40], the solution for the Hamilton energy H of generic nonlinear oscillator in vector form and its derivative of time meets the criterion as follows

$$ \left\{ {\begin{array}{*{20}l} {\frac{{dX}}{{d\tau }} = F_{c} (X) + F_{d} (X),\;X \subset R^{n} ;} \hfill \\ {\nabla H^{T} F_{c} (X) = 0;} \hfill \\ {\nabla H^{T} F_{d} (X) = \frac{{dH}}{{d\tau }};} \hfill \\ \end{array} } \right. $$
(8)

The physical field is composed of gradient term Fd(X) and curl field term Fc(X), which corresponds to the electric field in the capacitor and magnetic field in inductor of nonlinear circuit, respectively. By the way, the memristive system in Eq. (6) is updated for getting suitable Hamilton energy function, see appendix. An identical energy function as the form in Eq. (3) can be obtained to confirm the reliability of this scheme. The memristive oscillator in Eq. (6) can be approached by discrete form with suitable time step, which is considered as scale parameter ε, and it is defined by

$$ \left\{ \begin{gathered} x_{n + 1} = x_{n} + \varepsilon \left[ {i_{s}^{\prime n} - y_{n} - (a^{\prime } + b^{\prime } z_{n}^{2} )(x_{n} - e_{1} ) - (c^{\prime } + d^{\prime } w_{n}^{2} )(x_{n} - e_{2} ) + x_{n} - \frac{1}{2}x_{n}^{2} - \frac{1}{3}x_{n}^{2} } \right]; \hfill \\ y_{n + 1} = y_{n} + \varepsilon \alpha (x_{n} - \xi y_{n} + e); \hfill \\ z_{n + 1} = z_{n} + \varepsilon (x_n - e_{1} ); \hfill \\ w_{n + 1} = w_{n} + \varepsilon (c^{\prime } + d^{\prime } w_{n}^{2} )(x_{n} - e_{2} ); \hfill \\ \end{gathered} \right. $$
(9)

In addition, the energy function in discrete form is updated as follows

$$ H_{n} = \varepsilon \left[ {\frac{1}{2}x_{n}^{2} + \frac{1}{2\alpha }y_{n}^{2} + \frac{1}{2}(a^{\prime } + b^{\prime } z_{n}^{2} )(x_{n} - e_{1} )z_{n} + \frac{1}{2}(x_{n} - e_{2} )w_{n} } \right]; $$
(10)

The scale parameter ε has similar role as the time step to discretize memristive oscillator presenting in differential equations into a simple map, and its value can be detected by matching the maximal value for variable x in Eq. (6) and xn in Eq. (9). That is, all the corresponding parameters are selected the same value, and the scale parameter ε is changed carefully until the two systems cover the same region and maximal value in the phase space. That is, introducing suitable value for the scale parameter ε, the memristive oscillator in Eq. (6) and memristive map in Eq. (9) should have the same dynamical properties including attractors, attraction domain, maximal Lyapunov exponent and same size of phase portrait. When it is considered as a memristive neuron, both of them can present complete spiking, bursting and even chaotic patterns. In this way, the energy function in Eq. (10) with suitable value for ε can measure the energy level for memristive neuron in the form of map. In particular, the memristive map will keep low energy level than the memristive oscillator because the scale parameter ε is often selected with low value (ε < 1). In practical way, memristive map requires low energy than memristive oscillator in signal processing and showing the same dynamical properties. It is important to clarify the approach of energy for some maps by developing equivalent oscillator model so that Helmholtz theorem can be applied for theoretical analysis and prediction for the energy function under periodic stimulus is = I0 + Acos(ωτ).

It is interesting to discuss the scheme for energy approach for Eqs. (6) and (9) by setting the same group of parameters as a = 0.01, b = 0.01, c = 0.01, d = 0.01, e = 0.05, e1 = 0.05, e2 = 0.06, α = 1.21; ξ = 0.15, A = 1.0, I0 = 0.9, and same initials setting are selected for the variables (x, y, z, w) = (xn, yn, zn, wn) = (0.2, 0.1, 0.01, 0.01). The bifurcation analysis and average energy are plotted in Fig. 2.

Fig. 2
figure 2

Bifurcation of ISI (interspike interval) from membrane potential, xmax = x(max) for maximal value of membrane potential, and average Hamilton energy < H > with changing frequency ω in Eq. (6)

The firing mode, profile of attractors and average energy of the memristive neuron will be controlled by external stimulus with changing the angular frequency. To confirm the consistence and similarity of attractors and firing patterns between the memristive neuron and map, scale parameter is adjusted to track the maximal value for membrane potential and average energy in Fig. 3.

Fig. 3
figure 3

Different attractors for the memristive neuron/map in Eqs. (6) and (9) under suitable scale parameter ε, and the average energy < Hn > and xn(max) in memristive discrete neuron via scale parameter ε. For a bursting ω = 0.035, ε = 0.104; b spiking ω = 0.53, ε = 0.29; c periodic ω = 1.0, ε = 0.0013; d chaotic ω = 2.9, ε = 0.5

From Fig. 3, the memristive neuron in Eq. (6) can be reproduced the same firing patterns and attractors in the memristive map in Eq. (9) by setting suitable value for scale parameter ε. The energy level and firing mode in the neuron in Eq. (6) are dependent on the angular frequency of external stimulus. From Eqs. (3)–(10), the discrete neuron is endowed with scale parameter ε, as a result, its average energy < Hn > becomes less than < H > because ε < 1. Therefore, it is suitable to reproduce similar firing patterns and attractors of nonlinear oscillators in some equivalent maps by setting appropriate value for the scale parameter when they are selected with the same parameters. Particularly, the energy level in the equivalent map is decreased greatly than the memristive oscillator. In a word, scale parameter can be introduced into the discrete energy function for the equivalent map reduced from the memristive oscillator with the same parameters setting. It is important to calculate the energy function for a memristive map by developing similar memristive oscillator, and then the energy function will be discretized by removing the scale parameter directly.

3 Energy descriptions in memristive map

From dynamical viewpoint, discrete systems and maps can be considered as discretized forms for continuous dynamical systems by applying Euler algorithm approach with suitable time step. For a generic dynamical system expressed by differential equations,

$$ \left\{ \begin{gathered} \frac{dx}{{d\tau }} = f(x,y,z)\;; \hfill \\ \frac{dy}{{d\tau }} = g(x,y,z)\;; \hfill \\ \frac{dz}{{d\tau }} = h(x,y,z)\;; \hfill \\ \end{gathered} \right. $$
(11)

Its equivalent discrete form is obtained by

$$ \left\{ \begin{gathered} x_{n + 1} = x_{n} + \varepsilon f(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ y_{n + 1} = y_{n} + \varepsilon g(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ z_{n + 1} = z_{n} + \varepsilon h(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ \end{gathered} \right. $$
(12)

where the parameter ε denotes the time scale, Eq. (12) will match with Eq. (11) in dynamical characteristic by setting suitable values for ε. Based on Helmholtz theorem, the Hamilton energy function for dynamical systems similar to Eq. (11) can be obtained theoretically. From Eq. (3), the continuous energy function is dependent on some intrinsic parameters and all the variables in the memristive system, and any changes in the firing patterns will induce fluctuations in the energy levels. For discrete systems, energy function becomes discrete as well. Indeed, appropriate scale parameter with time can be applied to convert discrete systems into equivalent continuous system for obtaining energy function.

$$ \begin{gathered} \left\{ \begin{gathered} x_{n + 1} = F(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ y_{n + 1} = G(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ z_{n + 1} = W(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ \end{gathered} \right. \Rightarrow \left\{ \begin{gathered} \frac{1}{\varepsilon }[x_{n + 1} - x_{n} ] = \frac{1}{\varepsilon }[F(x_{n} ,y_{n} ,z_{n} ) - x_{n} ]\;; \hfill \\ \frac{1}{\varepsilon }[y_{n + 1} - y_{n} ] = \frac{1}{\varepsilon }[G(x_{n} ,y_{n} ,z_{n} ) - y_{n} ]\;; \hfill \\ \frac{1}{\varepsilon }[z_{n + 1} - z_{n} ] = \frac{1}{\varepsilon }[W(x_{n} ,y_{n} ,z_{n} ) - z_{n} ]\;; \hfill \\ \end{gathered} \right.\quad \hfill \\ \Rightarrow \left\{ \begin{gathered} \frac{dx}{{d\tau }} = \frac{1}{\varepsilon }[F(x,y,z) - x]\;; \hfill \\ \frac{dy}{{d\tau }} = \frac{1}{\varepsilon }[G(x,y,z) - y]\;; \hfill \\ \frac{dz}{{d\tau }} = \frac{1}{\varepsilon }[W(x,y,z) - z]\;; \hfill \\ \end{gathered} \right. \hfill \\ \end{gathered} $$
(13)

According to the criterion in Eq. (8), the Hamilton energy for the discrete system in Eq. (13) can be expressed in generic form

$$ \left\{ \begin{gathered} H = H(\varepsilon ,\;x,y,z)\;; \hfill \\ H_{n} = H(x_{n} ,y_{n} ,z_{n} )\;; \hfill \\ \end{gathered} \right. $$
(14)

For a memristive map developed from Hénon map,

$$ \left\{ {\begin{array}{*{20}l} {x_{{n + 1}} = 1 + by_{n} - ax_{n}^{2} - (\alpha + 3\beta \varphi _{n}^{2} )x_{n} ;} \hfill \\ {y_{{n + 1}} = x_{n} ;} \hfill \\ {\varphi _{{n + 1}} = \varphi _{n} + cx_{n} ;} \hfill \\ \end{array} } \right. $$
(15)

By introducing appropriate scale parameter, it obtains equivalent memristive oscillator as follows

$$ \left\{ {\begin{array}{*{20}l} {\frac{{dx}}{{d\tau }} = \frac{1}{\varepsilon }\left[ {1 + by - ax^{2} - (\alpha + 1 + 3\beta \varphi ^{2} )x} \right];} \hfill \\ {\frac{{dy}}{{d\tau }} = \frac{1}{\varepsilon }(x - y);} \hfill \\ {\frac{{d\varphi }}{{d\tau }} = \frac{c}{\varepsilon }x;} \hfill \\ \end{array} } \right. $$
(16)

From dynamical viewpoint, appropriate setting for the scale parameter in Eq. (16) will reproduce similar dynamical characteristic as in Eq. (15) under setting the same parameters. In practical way, appropriate electric components can be combined to reproduce similar signals in the analog circuit by applying suitable physical parameters for these potential electric components. Based on the Helmholtz theorem, the energy function for Eq. (16) can be defined and obtained in theoretical way. It can be expressed in the vector form containing two kinds of physical fields as follows

$$ \begin{aligned} \left( \begin{gathered} {\dot{x}} \hfill \\ {\dot{y}} \hfill \\ {\dot{\varphi }} \hfill \\ \end{gathered} \right) = & F_{c} + F_{d} = \left( \begin{gathered} - \frac{by}{\varepsilon } - \frac{bc}{{2\varepsilon }}(\alpha + 3\beta \varphi^{2} )x \hfill \\ \frac{x}{\varepsilon } - \frac{1}{\varepsilon }b\beta \varphi^{3} \hfill \\ \frac{cx}{\varepsilon } + \frac{b\varphi y}{{\varepsilon x}} + \frac{bc}{{2\varepsilon }}(\alpha \varphi + \beta \varphi^{3} ) \hfill \\ \end{gathered} \right) + \left( \begin{gathered} \frac{1}{\varepsilon }[1 + 2by - ax^{2} - (\alpha + 1 + 3\beta \varphi^{2} )x + \frac{bc}{2}(\alpha + 3\beta \varphi^{2} )x] \hfill \\ - \frac{y}{\varepsilon } + \frac{1}{\varepsilon }b\beta \varphi^{3} \hfill \\ - \frac{b\varphi y}{{\varepsilon x}} - \frac{bc}{{2\varepsilon }}(\alpha \varphi + \beta \varphi^{3} ) \hfill \\ \end{gathered} \right) \\ = & \left( \begin{gathered} 0\quad - b\quad \quad - bc \hfill \\ b\;\quad 0\quad \quad - \frac{b\varphi }{x} \hfill \\ bc\quad \frac{b\varphi }{x}\quad \quad 0 \hfill \\ \end{gathered} \right)\left( \begin{gathered} \frac{x}{\varepsilon b} + \frac{1}{2\varepsilon }(\alpha \varphi + \beta \varphi^{3} ) \hfill \\ \frac{y}{\varepsilon } \hfill \\ \frac{x}{2\varepsilon }(\alpha + 3\beta \varphi^{2} ) \hfill \\ \end{gathered} \right) + \left( \begin{gathered} A_{11} \quad 0\quad \quad 0\quad \hfill \\ 0\quad \quad A_{22} \quad 0 \hfill \\ 0\quad \quad 0\quad \quad A_{33} \hfill \\ \end{gathered} \right)\left( \begin{gathered} \frac{x}{\varepsilon b} + \frac{1}{2\varepsilon }(\alpha \varphi + \beta \varphi^{3} ) \hfill \\ \frac{y}{\varepsilon } \hfill \\ \frac{x}{2\varepsilon }(\alpha + 3\beta \varphi^{2} ) \hfill \\ \end{gathered} \right)\quad ; \\ \end{aligned} $$
(17)

The coefficient for the matrix in Eq. (17) is defined by

$$ \left\{ \begin{gathered} A_{11} = \frac{{1 - ax^{2} - (\alpha + 1 + 3\beta \varphi^{2} )x + \frac{bc}{2}(\alpha + 3\beta \varphi^{2} )x}}{{\frac{1}{b}x + \frac{1}{2}(\alpha \varphi + \beta \varphi^{3} )}}; \hfill \\ A_{22} = \frac{{ - y + \beta \varphi^{3} }}{y};\quad A_{33} = \frac{{ - \frac{2b\varphi y}{x} - bc(\alpha \varphi + \beta \varphi^{3} )}}{{(\alpha + 3\beta \varphi^{2} )x}}; \hfill \\ \end{gathered} \right.\; $$
(18)

The solution for Hamilton energy function can be suggested as follows

$$ H = \frac{1}{\varepsilon }[\frac{1}{2b}x^{2} + \frac{1}{2}y^{2} + \frac{1}{2}(\alpha \varphi + \beta \varphi^{3} )x]; $$
(19)

As a result, the discrete energy function for Eq. (15) is updated by

$$ H_{n} = H_{1} + H_{2} + H_{M} = \frac{1}{2b}x_{n}^{2} + \frac{1}{2}y_{n}^{2} + \frac{1}{2}(\alpha \varphi_{n} + \beta \varphi_{n}^{3} )x_{n} ; $$
(20)

Compared to Eq. (15), and additive scale parameter ε is introduced into Eq. (16), bifurcation analysis can be applied to detect the region for ε when other parameters are fixed the same setting for the memristive map in Eq. (15). Three terms including H1, H2 and HM mark the capacitive, inductive energy and memristive energy, respectively. To cover the same phase space, the parameter ε is changed from 0.001 to a finite threshold, and the maximal value (xmax) for the variable x is selected to match the maximal value xmax(n) and then the suitable value for parameter ε will be confirmed. By taming the value for the scale parameter ε, the dynamics of the memristive map in Eq. (15) will be reproduced by memristive oscillator in Eq. (16) completely by showing the same attractor, sampled time series, maximal Lyapunov exponent, size of phase portrait in the phase space. In simple way, both the continuous and discrete systems have the same maximal value for the first variables, and it can be confirmed via bifurcation analysis with changing the parameter ε carefully. As a result, the energy function in Eq. (19) with exact parameter ε will address the energy property for the memristive map in Eq. (15) well.

In fact, there are three terms for energy sources kept in certain channels or components, and the oscillatory state is dependent on the energy shunting between these channels. Any changes of parameters in Eq. (15) will modify the oscillatory mode and the energy level in Eq. (20) will be adjusted synchronously. As a result, energy ration between the three terms will be adjusted when oscillation is changed. The energy ratio is defined in

$$ \left\{ {\begin{array}{*{20}l} {p_{1} = \frac{{H_{1} }}{{H_{n} }} = \frac{{\frac{1}{{2b}}x_{n}^{2} }}{{\frac{1}{{2b}}x_{n}^{2} + \frac{1}{2}y_{n}^{2} + \frac{1}{2}(\alpha \varphi _{n} + \beta \varphi _{n}^{3} )x_{n} }};{\text{ }}} \hfill \\ {p_{2} = \frac{{H_{2} }}{{H_{n} }} = \frac{{\frac{1}{2}y_{n}^{2} }}{{\frac{1}{{2b}}x_{n}^{2} + \frac{1}{2}y_{n}^{2} + \frac{1}{2}(\alpha \varphi _{n} + \beta \varphi _{n}^{3} )x_{n} }};} \hfill \\ {p_{3} = \frac{{H_{M} }}{{H_{n} }} = \frac{{\frac{1}{2}(\alpha \varphi _{n} + \beta \varphi _{n}^{3} )x_{n} }}{{\frac{1}{{2b}}x_{n}^{2} + \frac{1}{2}y_{n}^{2} + \frac{1}{2}(\alpha \varphi _{n} + \beta \varphi _{n}^{3} )x_{n} }};} \hfill \\ \end{array} } \right. $$
(21)

In fact, H1 and H2 can present capacitive and inductive energy, and the ratio H1:H2 is also effective to predict mode transition in the oscillatory states. Similar energy proportion P1=H1/H, P2 = (H2+HM)//H can be defined to estimate the regulation on dynamics from capacitive and inductive energy, respectively. From the memristive map in Eq. (15) and memristive oscillator in Eq. (16), parameters can be adjusted to trigger periodic or chaotic behaviors. The involvement of scale parameter into energy function in Eq. (19) can increase the energy level directly during the conversion from memristive map to nonlinear oscillator. In Fig. 4, parameters are selected to develop chaotic attractors in the memristive map, and the same parameters and suitable scale parameter are endowed to mimic the oscillatory characteristic in the memristive map. The scale parameter is also adjusted to track the evolution of the average energy and maximal value for the variable x in the memristive oscillator in Eq. (16) as well.

Fig. 4
figure 4

a Attractor in memristive map in Eq. (15); b average energy < H > and xmax versus with scale parameter ε; c chaotic attractor in Eq. (16) at ε = 0.0073. Equations (15) and (16) select the same parameters as b = 1.0, a = 0.05, α = 0, β = 0, c = 0.1; initials (x, y, φ) = (xn, yn, φn) = (0.02, 0.01, 0.01)

Two chaotic rings are formed in the phase space for the memristive map, while chaotic attractors are induced in the memristive oscillator in Eq. (16) by taming the scale parameter ε=0.0073. The maximal value for the memristive map and memristive oscillator has similar oscillation, while their average energy has distinct diversity because of the involvement of scale parameter. Indeed, the scale parameter is adjusted carefully but the maximal values still show some difference even they can present similar oscillatory characteristic with time. It indicates that the memristive oscillator has no bridge to potential equivalent nonlinear circuits.

On the other hand, the same parameters setting for memristive map in Eq. (15) and memristive oscillator in Eq. (16) can be applied, the scale parameter ε can be adjusted to keep them in same energy level as H=Hn synchronously even they can present different attractors and firing patterns. In fact, the weight for each energy term is crucial for selecting the firing patterns and mode, and the introduction of scale parameter ε seldom changes the energy proportion among the capacitive, inductive and memristive energy terms. In this way, most of the maps can be updated with equivalent oscillators, which the corresponding Hamilton energy functions are obtained by using Helmholtz theorem, the suitable energy function for the maps can be obtained by removing the scale parameters for the Hamilton energy function for the nonlinear oscillators. In Fig. 5, the scale parameter is adjusted to keep the memristive map and memristive oscillator with the same energy level by changing the scale parameter carefully and parameters for the two memristive systems are different.

Fig. 5
figure 5

Attractors in Eqs. (15) and (16) with the same energy level, average energy < H > and xmax versus under different value for ε. For a chaotic map, β = 0.002, ε = 0.0204, β' = 0.154; b periodic map, β = 0.08, ε = 0.02109, β' = 0.154. Setting b = 0.1, a = 0.62, α = 0.1, β = 0.01, c = 0.2 in Eq. (15); b' = 0.102, a' = 1.725, α' = 2.05, β' = 0.154, c' = 0.0009 in Eq. (16); same initials (x, y, φ) = (xn, yn, φn) = (0.02, 0.01, 0.01). In the figures, xmax = x(max), xn(max) denote the maximal value in the sampled time series for two memristive systems

When the memristive map and memristive oscillator are endowed with different parameters setting, appropriate selection of scale parameter can ensure two memristive systems keep the same energy level and same oscillatory state. In fact, the Hamilton energy function is a kind of Lyapunov function and restricts the cooperation between different variables of the system. For physical oscillators converted from nonlinear circuits, the sole Hamilton energy is derived from the field energy including inductive, capacitive and memristive components. The weight for each term of the energy function is decided by the normalized parameters after scale transformation for all physical variables and parameters. As a result, these weights are more important in the energy function than the scale parameter. From a nonlinear oscillator to a map, continuous energy function is replaced by discrete energy function with suitable scale parameter. From a map to a continuous oscillator, the weight for each energy term can be confirmed and energy function for the map has no scale parameter, but the discrete energy function is helpful to predict the mode transition accompanying with shift in energy level.

From physical viewpoint, most of the nonlinear oscillators in mathematical form can be derived from equivalent circuit equations and mechanical systems. The activation and exchange of energy flow are dominated by the physical properties of physical elements, which also govern the nonlinear terms in the dynamical equations and mathematical models. For most of the nonlinear circuits, the field energy can be obtained by summing the energy in each electric component, and they can be converted into dimensionless energy function after scale transformation. For generic nonlinear oscillators, the application of Helmholtz theorem provides help to get the Hamilton energy function, which is considered as a kind of Lyapunov function, and specific terms for energy terms means special electric components should be used in this circuit. Memristor is a functional electric competent, and its memristive properties throw lights for activating self-adaptive property of nonlinear terms in the physical systems and network, and energy flow can be controlled in adaptive way in presence of external field. As a result, the involvement of memristive term into dynamical systems can explain the self-controllability and adaption greatly [41,42,43]. Energy characteristic of nervous and neural circuits is very important [44], and physical energy in neural circuits can be obtained in theoretical way, which Helmholtz theorem can confirm its correctness when the physical energy is converted into dimensionless Hamilton energy. In experimental way, the transient performances of the circuit should be considered [45] in the realization of analog circuits, and so the reliability of the neural circuits can be verified and evaluated.

For discrete systems and maps, scale parameter is introduced to build an equivalent nonlinear oscillator in the form of ODEs (Ordinary differential equations) and its energy function also contains the same scale parameter. Based on the Helmholtz theorem, energy function for the nonlinear oscillator is obtained and then it is discretized to denote the energy function without scale parameter for the map. In the phase space, the nonlinear oscillator will cover the same phase size and maximal value as the map when the scale parameter is adjusted carefully. For some specific maps defined in mathematical form, there are some differences in the maximal value for variables in the map and nonlinear oscillator. Referring to the energy characteristic of the known electric components, the generic form of the Hamilton energy function can be suggested, and scale parameter is introduced to confirm its exact value when the nonlinear oscillator model matches with the map in phase space completely. The scheme can be further used to explore the formation of defects and heterogeneity [46, 47] in discrete networks when energy function for each node is estimated exactly.

For obtaining exact energy function for generic maps, equivalent nonlinear oscillators can be designed by defining appropriate transformation for the parameters and discrete variables as follows.

$$ \left\{ {\begin{array}{*{20}l} {x_{{n + 1}} = f(x_{n} ,\lambda ) \Rightarrow \frac{{dy}}{{d\tau }} = f(y,p),\;y = \{ y_{1} ,y_{2} , \cdots ,y_{n} , \cdots \} ;} \hfill \\ {\lambda = \lambda (p,\;h),\;x_{n} = x_{n} (y_{n} ,h,p);or} \hfill \\ {p = p(\lambda ,\;h),\;y_{n} = y_{n} (x_{n} ,h,\lambda );h\;is\;time\;step{\text{ }}} \hfill \\ \end{array} } \right. $$
(22)

where the map and continuous oscillator has the same local kinetics but the parameters and variables have certain relevance, that is, the parameter p differs from λ for presenting the same dyanmics. For example, the Logistic map can be described by a Logistic oscillator by using the transformation in Eq. (22) [48].

4 Conclusions

In this work, field energy for a memristor-coupled circuit is defined and its equivalent dimensionless Hamilton energy for the memristive oscillator is obtained by applying scale transformation. The approach of energy function is also confirmed by using Helmholtz theorem. The memristive oscillator is reduced into discrete map and its equivalent energy form is obtained by setting suitable scale parameter. Keeping the same dynamical characteristics, memristive map shows lower energy level than the memristive oscillator. In addition, a memristive map developed from Hénon map added with memristive term is integrated into equivalent continuous oscillator by introducing suitable scale parameter, and its energy function is approached in theoretical way. Furthermore, discrete energy function is confirmed to describe the energy characteristic of the memristive Hénon map. This scheme can be further used to estimate the energy function for other discrete systems even discrete memristor is coupled. That is, maps are updated with equivalent nonlinear oscillators for getting theoretical energy function with scale parameter, and the generic energy function for the map can be obtained by removing the scale parameter for the energy function of its equivalent nonlinear oscillator.