Abstract

In this paper, we generalize He’s frequency approach for solving the damped Duffing equation by introducing a time varying amplitude. We also solve this equation by means of the homotopy method and the Lindstedt–Poincaré method. High accurate formulas for approximating the Jacobi elliptic function cn are formally derived using Chebyshev and Pade approximation techniques.

1. Introduction

The deep understanding of the mechanism of nonlinear oscillations has an effective role in interpreting the ambiguities of many natural, physical, and engineering phenomena in various fields of science. Accordingly, many researchers have been able to give correct scientific explanations about their scientific experiences based on a deep understanding of the characteristics of these phenomena after the clarity of the ambiguity about the phenomenon under study. In the framework of nonlinear dynamics, there is no doubt that the scenario of dynamic mechanism of the pendulum motion is one of the objects that have deserved more attention in modeling all kind of phenomena related to oscillations, bifurcations, and chaos. The simple pendulum has been used as a physical model to solve problems such as nonlinear plasma oscillations, Duffing oscillators, Helmholtz oscillations, rigid plates that satisfy the Johanessen performance criteria, transverse vibrations nonlinear of a plate carrying a concentrated mass, a beam supported by a double periodic axial oscillating mount, cracks subjected to concentrated forces, surface waves in a plasma column, coupled modes of nonlinear bending vibrations of a circular ring, double spin spacecraft, motion of spacecraft over slowly rotating asteroids, nonlinear vibration of clasped beams, the nonlinear equation of wave, and nonlinear mathematical models of DNA.

It is known that the main objective of the numerical approaches is to find some numerical solutions to various realistic physical, engineering, and natural problems, especially when exact solutions are unavailable or extremely difficult to determine. There are many numerical approaches that were used for analyzing the family of the Duffing oscillator and Duffing–Helmholtz oscillator with constant coefficients. It is known that this family is integrable, i.e., its exact solution is available in the absence of the damping effect. On the other hand, if the damping effect and some other friction forces are taken into account, we get a nonintegral differential equation, i.e., its exact solution is not available.

The nonlinear oscillators have many applications in science and engineering. One of such oscillators is the Duffing equation. George Duffing, a German engineer, wrote a comprehensive book about this in 1918. Since then, there has been a tremendous amount of work done on this equation, including the development of solution methods (both analytical and numerical), and the use of these methods to investigate the dynamic behavior of physical systems that are described by the various forms of the Duffing equation.

Solution methods for nonlinear oscillators include the G/G method, modified mapping method and the extended mapping method, elliptic expansion method, modified (G/G)-expansion method, dynamical systems approach, the modified trigonometric function series method, generalized (G/G)-expansion method, tanh method, and the sn-ns method, among others [110].

In this paper, we consider the damped and unforced Duffing equation. We solve it using an extended version of He’s frequency approach for the damped case. This oscillator was solved in [11] using a generalized elliptic functions. A simplification of the solution in [11] may be obtained by approximating the elliptic functions by means of trigonometric functions [12].

2. The Damped Duffing Oscillator

Let us consider the i.v.p.

The damped oscillator (1) is integrable only when . Equation (1) represents a damped Duffing oscillator. In the case when , we have an undamped Duffing oscillator which has an exact solution for any given arbitrary initial conditions. More precisely, the exact solution to the i.v.p.is given bywhere

The solution is periodic with periodwhere

We may use the following approximation formulas for evaluating the elliptic integral (see Table 1).

See Table 2 for the approximation of .

For example,where

Let us consider the i.v.p.

A very good approximate analytical solution is given bywhere

Now, observe that the function obeys the Duffing equation

Let be a continuous on function. Define

We have the following approximations for

The approximations above may be used to give trigonometric solution to the i.v.p. (9) whose exact solution reads

For example,

The frequency-amplitude formulation for this solution is given by

We obtain several frequency-amplitude formulations using formulas. The He’s frequency-amplitude formulation for the Duffing equation establishes that

3. He’s Approach

Using He’s frequency approach, an approximate analytical solution in the absence of damping may be obtained using

Let

Observe that . He’s idea for the undamped case is based on the following fact:

Following this idea, for the damped case, we will replace with so that

The approximate analytical solution for the damped Duffing equation (1) will then be

From (22) it follows thatwhere

The number is a free parameter that is chosen in order to get as small residual error as possible. The default value is .

4. Homotopy Perturbation Method

We seek a solution in the ansatz form:

The homotopy is defined as follows:

We have

We now equate to zero the coefficients of and then we obtain an ode system. We solve these odes so that the functions do not contain secularity terms. The solutions are

The numbers and are obtained from the initial conditions and .

5. Improved Analytical Solution

5.1. First Approach

Assume the ansatz

Then,

We will choose the function so thatthen,where

Observe that

In other words, when , this corresponds to the He’s frequency formulation for the Duffing equation:

The number is chosen in order to minimize the residual error. A default value for is obtained by eliminating from the system:

This last condition gives the sextic:

A root to this sextic near may be evaluated using the following approximation:

The value of is given by

5.2. Second Approach

The exact solution to the undamped Duffing equation is given bywhere

Then,Let us replace with and with so that

For the damped Duffing equation we will define the solution in the form:

The constants and are determined from the initial conditions. On the other hand,where

The numbers and are free parameters that we choose in order to get as small residual error as possible. The default value is and the default value for is . Observe that this ansatz will give the exact solution for the integrable case, i.e., when and .

6. Lindstedt–Poincaré Method

We seek a solution in the ansatz form:then.

We now equate to zero the coefficients of and then we obtain an ode system. We solve these odes so that the functions do not contain secularity terms. The solutions are

The constants and are obtained from the initial conditions.

7. Numerical Solution

We make use of the following backward finite differences formulas for the first and second derivatives:

The discretized ode reads

The values , , and are obtained from some reasonable analytical or numerical solution. The value is found from the cubic:

We choose the closest to real root to the cubic in equation (53). Suppose we already found the values for . Then, the value of is obtained by choosing the closest to real root to the cubic in equation (52). Thus, we solve the ode recursively using Tartaglia’s formula for the cubic. For small , we may use the following practical formula:where

Remark 1. We also may use the following formulas based on the Runge–Kutta method.The above formulas are used to solve any i.v.p. having the form:The initial values for solving the recurrences (56)–(57) are and .

8. Analysis and Discussion

Let us examine the accuracy of the obtained solutions. Let , , , , and . The problem to be solved reads

The trigonometric solution is

The Jacobi solution iswhere

See Figure 1 for comparison with numerical solution.

Data Availability

No data were used to support this paper.

Conflicts of Interest

The authors declare no conflicts of interest with regard to any individual or organization.

Acknowledgments

This work was supported by the funding from the employer Universidad Nacional de Colombia.