Introduction

The Liénard equations have been extensively studied in many contexts of science and engineering, mainly due to the existence of oscillatory phenomena involving a perturbation model with high non-linearities in many applications in mechanical and electrical systems. The Liénard equation is closely connected with the Rayleigh equation, for example, the Van der Pol equation is an special case of it.

In the field of physics, it has been used for example related to the solitary traveling wave solution of the non-linear Schrödinger equation [1], or with the development of the Van der Pol equation in the consolidation of oscillators that reproduce irregular heart rate, asystole, certain types of heart block, in an electrical model of the heart considered as a relaxed oscillator [2, 3]. The Duffing equation which is a spatial case of this type of Lienard equations is also widely used and representative in mechanical systems describing the motion of a body subjected to a nonlinear spring power, linear sticky damping and periodic powering [4]. Oscillations of mechanical systems under the action of a periodic external force can be revealed given by using Duffing equation. For example in [5, 6] and therein references, Duffing oscillator application studies are presented to extract the characteristics of the early mechanical failure signal.

The exact solution of this type of nonlinear equations is important in determining the properties and behavior of physical systems. For example, in the case of the Duffing oscillator with softening non-linearity have been reported solutions using perturbation theory for predict instability regions of a damped Duffing oscillator with an external sinusoidal excitation in a parameter space composed of the frequency and amplitude of the excitation, assuming that the system parameters are small [7,8,9,10]. Also, chaotic dynamics of a particular non-linear oscillator having Dulling type stiffness, van der Pol damping and dry friction have been examined using averaging technique to obtain informations regarding the bifurcation behavior of the vibrating system [11, 12]. Andrianov and Awrejcewicz [13, 14] developed an asymptotic approach for the analysis of strongly nonlinear dynamic systems and compared the approximated results with those obtained by the fourth-order Runge–Kutta method. However, due to its high non-linearity the possibility of finding exact solutions is quite limited. Apart from the analytic methods that have been developed so far, approximate methods can also be used to find a solution quite close to the numerical or exact value. The general idea is to provide results that are as close as possible to real solutions to be able to study the behavior of the systems with accurate approximations. Some of the methods that are available in the literature include the perturbation method [15, 16], the asymmetric homotopy method [17,18,19,20], iterative method [21,22,23], optimal homotopy asypmtotic methods [24,25,26,27,28,29], the harmonic balance [30,31,32], the iterative homotopic harmonic method [33], the energy balance method [34,35,36,37] and the frequency-Amplitude method (FAM) [38].

In recent years Molla et. al. [39] have presented an modified method to find approximate solutions using the original Energy Balance Method [34] as a basis for constructing a methodology that ensures very accurate approximate solutions that converge with a minimum cost of calculations. This proposed methodology is applicable to resolve highly non-linear antisymmetric oscillators like \(\ddot{x}+f(x)=0\) with \(f(-x)=-f(x)\). The results obtained by this method prove to be much better than those obtained using other similar methods. Also, the solutions by the method proposed are in agreement with the numerical solution, the general classical EBM and other existing methods explained here.

In the following sections, we turn to the issue of finding very accurate approximate solutions using a generalization of the EBM for antisymmetric systems for a generalized type of Liénard equations. In Sect. 2, we present the method that has been used, detailing its application on the general field of differential equations. In Sect. 3, we present the general system to be solved and some results of the application of the method for some particular cases comparing our results with others used in the literature and also with the corresponding numerical solutions of the system. In Sect. 4, the discussion focuses on the measurement of errors compared with the errors of other methods and determining a great improvement in the solutions. Finally in Sect. 5, some final conclusions are presented.

Energy Balance Method and Modified Version

Considering a general non-linear oscillator in the form:

$$\begin{aligned} \ddot{x}+f(x)=0, \end{aligned}$$
(1)

with initial conditions \(x(0)=A\) and \(\dot{x}(0)=0\), where a dot denotes derivative over the independent variable (time for example) and f(x) is a general non-linear term, it’s possible (in major of cases) to find a Hamiltonian conservative equation that describes the solution of the differential Eq. (1)

$$\begin{aligned} H(x)=\frac{1}{2}\dot{x}^2+F(x)=F(A), \end{aligned}$$
(2)

where primitive \(F(x)=\int f(x){\text {d}}x\). The correspondent residual equation for this Hamiltonian is written correspondingly as

$$\begin{aligned} R(t)=\frac{1}{2}\dot{x}^2+F(x)-F(A)=0. \end{aligned}$$
(3)

In accordance with the original idea of the Energy Balance Method (EBM) [34], so called He’s method, a trial solution is possible to be defined as

$$\begin{aligned} x_1(t)=A\cos wt, \end{aligned}$$
(4)

in such a way that when this solution is used in the residual (3), we can conveniently and carefully evaluate this equation by fixing \(wt=\pi /4\) to determine a solution for angular frequency. In the general case substituting (4) into (3)

$$\begin{aligned} R(t)=-\frac{1}{2}A^2w^2\sin ^2wt+F(A\cos wt)-F(A)=0, \end{aligned}$$
(5)

and

$$\begin{aligned} R(t) \big |_{wt=\pi /4} \rightarrow w=\frac{2}{A}\sqrt{F(A)-F\left( \frac{\sqrt{2}A}{2}\right) }. \end{aligned}$$
(6)

In Refs. [39, 40], the authors propose a new method based on the EBM idea. In this case it is possible to define a better solution approximation, which means the generalization

$$\begin{aligned} x_2(t)=A\left( (1-\alpha )\cos wt+\alpha \cos 3wt\right) . \end{aligned}$$
(7)

Thus, residual (3) can be written as

$$\begin{aligned} R(t)= & {} -\frac{1}{2}\left[ A^2w^2(1-\alpha )\sin wt+3\alpha \sin 3wt\right] ^2\nonumber \\&+\,F\left( A\left( (1-\alpha )\cos wt+\alpha \cos 3wt\right) \right) \nonumber \\&-\,F(A)=0. \end{aligned}$$
(8)

Note that if we put \(wt=\pi /4\), the previous equation reduces to (6). In the general case, residual (8) contains two unknown parameters: angular frequency (w) and \(\alpha\); and another one A fixed by the initial condition for solution x. In order to determine these unknown parameters, two algebraic equations are required. Both can be obtained from the constraint equation:

$$\begin{aligned} \int _0^{T/4}\frac{R(t)\cos (2k-2)wt}{\sin ^2wt}{\text {d}}t=0, \end{aligned}$$
(9)

where \(k=1,2\) and the period is \(T=2\pi /w\). By solving these two equations simultaneously, we obtain w and \(\alpha\).

In a similar way, it is possible to consider the third approximate solution as in the following form

$$\begin{aligned} x_3(t)=A\left( (1-\alpha -\beta )\cos wt+\alpha \cos 3wt+\beta \cos 5wt\right) . \end{aligned}$$
(10)

In this case, the residual function contains three unknown parameters w, \(\alpha\) and \(\beta\). To determine these constants, we need three algebraic equations which are obtained from Eq. (3) for \(n=1\), 2 and 3 respectively. Solving these equations simultaneously, we obtain w, \(\alpha\) and \(\beta\). All these relations are valid for \(x\ge 0\).

Application on Strongly Non-linear Oscillators

Inspired by the success of the Liénard and Duffing equations [41],

$$\begin{aligned} \ddot{x}+f_1(y)\dot{x}+f_2(x)=g(t), \end{aligned}$$
(11)

the following generalized Liénard equations with nonlinear terms of any order were investigated. By considering that the above nonlinear oscillator which is governed by the following differential equation with initial conditions

$$\begin{aligned} \varXi (x,t) \, = \, & {} \ddot{x}+a_0x+a_1x^{p+1}+a_2x^{2p+1}+a_3x^{3p+1}+\cdot \cdot \cdot \nonumber \\ \,= \, & {} \ddot{x}+\sum _{n=0}^{N}a_nx^{np+1}=0, \end{aligned}$$
(12)

with initial conditions \(x(0)=A\), \(\dot{x}(0)=0\) and where \(a_n\), for \(n=0,1,2,\ldots\), are constant coefficients and \(p=1,2,3,\ldots\). A Duffing equation, for example, corresponds to the \(N=1\) and \(p=2\) case of the generalized Liénard equation. For some particular cases, exact solutions of the generalized Liénard equation (12) and their applications have been reported (see, for example refs [42,43,44,45]).

By considering the first integral, the multiplication of the previous equation by \(\dot{x}\) and making by-part integration allow the following conservative Hamiltonian of this equation

$$\begin{aligned} H(x)=\frac{1}{2}\dot{x}^2+\sum _{n=0}^N\frac{a_n}{np+2}x^{np+2}=\sum _{n=0}^N\frac{a_n}{np+2}A^{np+2}, \end{aligned}$$
(13)

and the residual can be written as

$$\begin{aligned} R(t)=\frac{1}{2}\dot{x}^2+\sum _{n=0}^N\frac{a_n}{np+2}x^{np+2}-\sum _{n=0}^N\frac{a_n}{np+2}A^{np+2}=0. \end{aligned}$$
(14)

In this section, we present two examples to illustrate the usefulness and effectiveness of the technique proposed.

Case: \(N=2\) and \(p=2\)

In this case the Eq. (12) takes the form

$$\begin{aligned} \ddot{x}+a_0x+a_1x^3+a_2x^5, \ \ x(0)=A, \ \ \dot{x}(0)=0, \end{aligned}$$
(15)

and the residual is

$$\begin{aligned} R(t)=\frac{1}{2}\dot{x}^2+\frac{a_0x^2}{2}+\frac{a_1x^4}{4}+\frac{a_2x^6}{6}-\frac{a_0A^2}{2} -\frac{a_1A^4}{4}-\frac{a_2A^6}{6}. \end{aligned}$$
(16)

Actually this case is a more general nonlinear system with quintic restoring force [46,47,48,49].

The next step is to use the ansatz solution (7) and (10) into the residual (16) and solving the integral in (9) for \(n=1,2,3\) respectively, to obtain a system of algebraic equations that can be solved simultaneously by analytic methods to find the values of \(\alpha\), \(\beta\) and w for different values of the initial condition A, despite the strong non-linearities of the equation.

The results of this application are illustrated in the Fig. 1. The values for this solutions are shown in Table 1. The equations for generating these solutions can be seen in A.

Fig. 1
figure 1

Comparison of the MEBM solution with the numerical solution for Eq. (15) for some values of the initial conditions and parameters

Table 1 Values for \(\alpha\), \(\beta\) and w for case \(N=2\) and \(p=2\) for some values of parameters and initial conditions

Case: \(N=3\) and \(p=2\)

In this case the Eq. (12) takes the form

$$\begin{aligned} \ddot{x}+a_0x+a_1x^3+a_2x^5+a_3x^7, \ \ x(0)=A, \ \ \dot{x}(0)=0, \end{aligned}$$
(17)

and the residual is

$$\begin{aligned} R(t)= & {} \frac{1}{2}\dot{x}^2+\frac{a_0x^2}{2}+\frac{a_1x^4}{4}+\frac{a_2x^6}{6} +\frac{a_3x^8}{8}-\frac{a_0A^2}{2}\nonumber \\&-\frac{a_1A^4}{4}-\frac{a_2A^6}{6}-\frac{a_3A^8}{8}. \end{aligned}$$
(18)

Following a similar procedure, as in the previous case, we calculate the integral (9) using the ansatz solution (7) and (10) to solve the system of corresponding algebraic equations. The results are shown in Fig. 2, and the values for these solutions are presented in Table 2. The equations for generating these solutions can be seen in B.

Fig. 2
figure 2

Comparison of the MEBM solution with the numerical solution for Eq. (17) for some values of the initial conditions and parameters

Table 2 Values for \(\alpha\), \(\beta\) and w for case \(N=3\) and \(p=2\) for some values of parameters and initial conditions

Discussion

In order to compare and measure the effectiveness of our solution, we compare our results with those obtained in previous references and with the corresponding numerical solutions. We compare with the values obtained by the EBM and the FAM [50] in Figs. 3 and 4 which for this particular case, using the ansatz function (4) results (for \(N=3\) and \(p=2\))

$$\begin{aligned} w_\mathrm{EBM}= & {} \sqrt{a_0+\frac{3a_1A^2}{4}+\frac{7a_2A^4}{12}+\frac{15a_3A^6}{32}},\nonumber \\ w_\mathrm{FAM}= & {} \sqrt{a_0+\frac{3a_1A^2}{4}+\frac{5a_2A^4}{8}+\frac{35a_3A^6}{64}}, \end{aligned}$$
(19)

and the estimation for \(N=3\) and \(p=2\) is the same putting \(a_3=0\).

Fig. 3
figure 3

Comparison of relative error (%) respect to the numerical solution for the MEBM solution, EBM and the FAM [50] for Eq. (15). Vertical axis is in logarithmic scale

Fig. 4
figure 4

Comparison of relative error (%) respect to the numerical solution for the MEBM solution, EBM and the FAM [50] for Eq. (17). Vertical axis is in logarithmic scale

The vertical axis in Figs. 3 and 4 is in logarithmic scale to show that the relative errors between all solution considered are at least of three orders of magnitude. This demonstrates that our result improve the performance of the methodology used above. In all the cases studied, it is demonstrated that the solutions found with the MEBM show, in several orders of magnitude, a better behavior than the other referred methods.

For example, for the case of Fig. 1a, we found average values of the relative errors of 0.4102%, compared which result from the EBM and FAM of 18.9376% and 41.134%, respectively (see Fig. 3a); for the case of Fig. 1b, we found average values of the relative errors of 0.4766%, compared with the errors by the EBM and FAM of 27.021% and 57.286%, respectively (see Fig. 3b). As for the case of \(N=3\), the relative errors are higher for \(x_2(t)\). This implies that a better approximation could required the incorporation of a \(\cos 5wt\) term to the expansion in the solution \(x_3(t)\). However, we note that despite observation, the solutions proved the effectiveness of the approach used here. For example, for the case of Fig. 2a, we find average values of the relative errors of 5.3801%, compared with the errors by the EBM and FAM of 59.2711% and 324.1187%, respectively (see Fig. 4a); while for the case of Fig. 2b, we found average values of the relative errors of 2.1643%, compared with the errors by the EBM and FAM of 26.1651% and 124.8371%, respectively (see Fig. 4b).

Concluding Remarks

In this paper we have achieved, for the first time, an efficient implementation of the modified technique of Energy Balance Method to find very accurate solutions, in this case for highly nonlinear oscillators based on the Liénard equation. We have shown that, by using this methodology, the solutions are better than others reported in the literature reviewed, including an improvement in several orders of magnitude for the estimation of relative errors compared with the numerical solution of the system. It has also been shown that the solutions using the MEBM can be understood as a generalization, in the strict sense of the term, respect to the Frequency-Amplitude method. This appreciation is justified because, under the same conditions for the values of the parameters in the Liénard equations, our solution matches the relative frequency for the case of Frequency-Amplitude method. In order to reproduce our solutions, we have written the explicit form of the result in the appendix.

The solutions we have achieved here have been obtained using completely analytic methods without the need to make reductions or impositions to the conditions of the system. However, because of the characteristics of the highly non-linear nature of the terms involved in differential equations, some truncation have been made to preserve the smallest possible polynomial order to obtain exact solutions, without significantly affecting the accuracy of the solutions.