Abstract
This paper delves into the dynamical, chaotic, and stability aspects of the Duffing oscillator (DO) under sinusoidal external excitation, underscoring its relevance in various scientific and engineering applications. The DO, with its complex behavior, poses a significant challenge to our understanding. A unique perturbation technique, the multiple-scales (MS), is harnessed to tackle this challenge and enrich our knowledge. The analysis entails determining third-order expansions, exploring resonant cases, and factoring in the influence of viscous damping. The accuracy of the analytical solution is cross-validated with numerical results using the Runge–Kutta fourth-order (RK4). The paper also employs effective methods to assess the obtained results qualitatively. As a result, Visual figures, such as bifurcation diagrams and Lyapunov exponents’ spectra (LES), have been presented to illustrate diverse system motions and demonstrate Poincaré diagrams. Moreover, stability analysis has been investigated via resonance curves showing the stable and unstable regions. These aids facilitate our comprehension of the system’s complex behavior and its variations under different conditions. The results are elucidated through displayed curves, offering insights into the dynamics of the DO under sinusoidal excitation and damping effects. The influence of excitation and the quadratic parameter on bifurcation diagrams, LES, and Poincaré maps helps us understand the intricate behavior of nonlinear oscillatory systems, such as DO. The presented oscillator is a compelling example of elucidating the nonlinear behavior observed in numerous engineering and physics phenomena.
Introduction
The DO is a fundamental model in the study of nonlinear dynamics, serving as a key element for understanding and predicting the behavior of complex, oscillatory systems. 1 Furthermore, the DO’s behavior is characterized by its richness and complexity, encompassing periodic, quasi-periodic, and chaotic motion, which is contingent upon the specific values assigned to its parameters. This makes it a crucial model for understanding and predicting the behavior of various real-world systems, such as mechanical systems with nonlinear springs, electrical circuits with nonlinear elements, and even the dynamics of the human brain. The equation featuring a cubic nonlinearity characterizing an oscillator is called the Duffing equation, which describes an oscillator for any equation with a cubic stiffness term. It can be applied in several fields, like mathematics, engineering, physics, and biology. 2 For example, studying large amplitude oscillations, and centrifugal speed control systems, beam nonlinear vibration plates.3,4 The model was introduced by the German electrical engineer Duffing in 1918. Since then, alongside Van der Pol’s equation, it has emerged as one of the most frequently encountered equations for nonlinear oscillations in both research articles and textbooks. In References 5 and 6.5,6 the authors illustrated a variation of the classic Duffing equation featuring a negative linear stiffness term. These equations are employed to model the dynamics of a buckling beam or plate, particularly when considering only a single type of vibration. A systematic methodology for designing high-performance oscillator systems was adopted in Lowenstein (2012) and Cveticanin (2014).7,8 This approach is grounded in a main classification of oscillators, categorized according to their internal timing references. The Duffing equation is a useful model for studying nonlinear processes oscillation and chaotic dynamical systems. 9 Chaos is inherently nonlinear, and it exists in many natural and artificial systems that are sensitive to initial conditions. 10 There is a widespread consensus that mechanical systems, particularly vibration dynamics issues as indicated in Amer et al. (2019)11–15 hold paramount significance in mechanics, primarily owing to their extensive applications, notably in engineering fields.
The DO has been extensively studied in Lo and Chen (1998) 16 to provide in-depth analysis and insights into its behavior. Chaos theory stands out as one of the foremost accomplishments within the realm of nonlinear science. 17 The oscillator is frequently linked with chaotic behavior within mathematical contexts, where such chaotic phenomena are observed in various natural systems, including climate and weather patterns. 18 Chaos theory finds applications across numerous disciplines, spanning meteorology, sociology, environmental science, and more. As outlined in Strogatz, 19 chaos manifests as a periodic long-term behavior within deterministic systems that display sensitivity to initial conditions.
Furthermore, the DO is considered one of the prototypes of nonlinear dynamic systems. 20 In mechanics, the basic form of the Duffing equation can be viewed as a one degree-of-freedom for the motion of a mathematical model, where the damping term may be linear or nonlinear in addition to a nonlinear stiffness. For instance, this equation is applicable to a suspended mass system, where the mass is supported by a parallel arrangement of shock absorbers with constant damping and springs exhibiting nonlinear restoring forces subjected to harmonic excitation. 21 It can also be used to describe one or more degrees of freedom of a complex system. Moreover, it can be used to govern the general form of the ship roll equation. 22 In Song et al. 23 using the fast-slow analysis method, the authors aimed to explore the dynamic behaviors of the entire excitation. A three-dimensional visualization technique is suggested to examine the relaxation oscillations triggered by various modulation modes, offering a comprehensive understanding of the system’s dynamics from different angles. In Barba-Franco et al.(2023), 24 the authors studied the behavior of multiple stable, coexisting rotating waves on a one-way ring consisting of interconnected double-well DO with different numbers of oscillators. Using the analysis of time series, bifurcation diagrams, phase diagrams, and basins of attraction, they demonstrated the existence of multi-stability as the system transitions from a stable equilibrium to hyper-chaos as the coupling strength increases. This transition is characterized by a series of bifurcations, including crisis bifurcations, torus bifurcations, and Hopf bifurcations. In Coccola et al.(2023), 25 the nonlinear DO was examined with fractional damping, a characteristic feature in various physical scenarios. The analysis involved investigating the system under conditions of both smaller (underdamped) and larger (overdamped) damping parameter values. A new method for achieving high-precision periodic movements using an implicit mapping technique, which is validated by the conditions of saddle-node bifurcation domains, was presented in Liu et al (2023). 26 Through an analysis of the cycle development curve movements in a DO with hardening properties, it is discovered that the primary resonance can be utilized to improve the characteristic components in the generated signal.
This paper presents an analytical solution to the governing equation of a DO subjected to sinusoidal external excitation employing the method of MS 27 up to the third approximation. This solution is validated by comparing it with the obtained numerical ones using RK4. The study focuses on the external resonance case, followed by establishing modulation equations (ME) based on the analyzed resonance scenarios. System stability is assessed, and multiple areas near resonance ranges are plotted to examine dynamic frequency response curves across different values of the influencing parameters. The obtained solutions are graphed for consistent parameter values. Furthermore, the behavior is depicted through variations in excitation amplitudes, damping coefficients, and certain parameters. Stability criteria are employed to analyze stable and unstable regions within a system and assess the influence of various parameters. Illustrations such as bifurcation diagrams, LES, and Poincaré diagrams demonstrate several types of system motions. In the design and analysis of mechanical systems exposed to vibration, such as machinery or car suspensions, Duffing oscillators are commonly used. Systems modeled by these oscillators are utilized in energy harvesting to capture ambient mechanical vibrations and convert them into electrical energy. Moreover, they are used to model the nonlinear dynamics of base isolation systems in buildings, bridges, and other structures designed to mitigate the effects of earthquakes. Seismic isolators often have nonlinear stiffness, and the DO helps in predicting how the system will respond to earthquake excitations. The stability behavior ensures the structure’s safety under seismic loads, while chaotic behavior must be avoided to prevent structural failure.
In these applications, grasping the chaotic and stability dynamics of Duffing-like systems is crucial for converting ambient mechanical vibrations into electrical energy through vibration energy harvesting. This understanding assists in controlling chaos for improved system efficiency or avoiding it to preserve stability and protect mechanical, electrical, or biological systems.
Problem’s description and the perturbation procedure
In this section, the following second-order ordinary differential equation (ODE) presents the DO model with excitations, which has several applications in various fields, as mentioned before. This equation illustrates the response of a dimensionless system with quadratic nonlinearities to a sinusoidal excitation
27
modeled as
It must be mentioned that system (1) can exhibit a range of responses depending on the parameters, including periodic, quasi-periodic, and chaotic motion. As parameters such as the amplitude and frequency of the excitation are varied, the DO can undergo bifurcations, leading to chaotic behavior. This makes it a rich system for studying complex dynamical phenomena. Due to its nonlinear nature, this oscillator can exhibit hysteresis and jump phenomena in its response, particularly when the excitation frequency is varied. The system may show multiple resonance peaks due to the presence of both linear and nonlinear restoring forces, which can lead to complex resonance behaviors.28,29
We will now proceed to solve the equation as mentioned earlier (1) by applying a perturbation method known by MS
27
to derive a solution up to the third approximation. Thus, we presume that the solution with respect to the small parameter
Here, we present the fast-scale
Inserting equations (3)-(5) into (1) and equating like powers of
It is worth mentioning that equations (6)–(8) represent a set of PDEs according to the various orders of
Here
Substituting the first-order solution (9) into the PDE (7) and subsequently eliminating the secular terms (ST), one gets the below second-order solution
Using the equations given earlier, we can identify the conditions required to remove ST from the second-order approximations as follows
The third-order solution can be derived by setting equations (9)–(11) into equation (8) and then eliminating the produced ST. The next conditions need to be satisfied to remove such terms
Moreover, the third-order approximation is solved in the form
It must be mentioned that this solution reduces the complexity of analyzing the DO, making it easier to understand the system’s behavior without solving highly nonlinear differential equations exactly. It provides valuable insights into the qualitative and quantitative behavior of the system, such as identifying stability regions, resonance frequencies, and possible chaotic behavior. Moreover, this solution allows for predictions about the system’s response to various inputs, which is crucial for designing and controlling engineering systems. It enables studying how different parameters affect the system’s dynamics, helping optimize the design and operation of devices modeled by the DO. Given its generality, the approximate solution can be adapted to various applications, including mechanical systems, electrical circuits, and even biological systems, where the DO model is relevant.
The achieved approximate solution is graphed in Figures 1–4 for a various value of the parameters in view of the data: Reveals the waves of the solution Demonstrates the comparison between the approximate and numerical solutions. Shows the waves of Explores the waves of 



Figure 1 examines the temporal evolution of the attained asymptotic solution, considering the selected parameter values. Parts (a) and (b) depict the plotted standing periodic waves, wherein the solution is influenced by the values of
It must be noted that periodic waves play a crucial role in studying dynamical systems, where they help to describe and predict the behavior of systems that exhibit regular, repeating patterns over time. 30 In mechanical systems, periodic waves are essential in understanding oscillations, vibrations, and stability, which are keys to designing structures and machinery that can withstand repetitive stress. In electrical engineering, they are fundamental in analyzing alternating current circuits and signal processing. Periodic waves also enable the study of resonant phenomena, where the natural frequencies of a system can be exploited for efficient energy transfer and amplification. 31 Overall, periodic waves provide a framework for understanding and managing the complex behaviors of dynamical systems in various fields of science and engineering.
Figure 2 illustrates the temporal progressions of the approximate outcomes achieved and numerical ones attained across the same interval using the RK4. A more detailed analysis of the figure demonstrates a strong agreement between these solutions, highlighting the efficacy of the perturbation method utilized in generating precise approximate results that closely align with the numerical ones of the primary governing equation.
Based on the discussion mentioned above, we can conclude that the agreement between analytical and numerical solutions validates the accuracy of the mathematical models and assumptions used in the analysis.32,33 This ensures that the models reliably represent the real-world system. The matching between them confirms the correctness and reliability of the numerical methods and algorithms being used. This is crucial for complex systems where analytical solutions might be difficult or impossible to obtain. Moreover, the consistency between both solutions increases confidence in the results and predictions derived from the system analysis, which is essential for making informed decisions in engineering and scientific applications. Analytical solutions often provide insight into the system’s fundamental behavior and underlying principles, while numerical solutions can handle more complex scenarios. 34
Evaluation of resonance
In the current section, the resonance cases are classified. These scenarios appear when the denominators of the last two approximations are nullified.
35
Accordingly, from the higher approximations (10) and (13), one can obtain the later resonance cases (a) When (b) When
Therefore, if any of these conditions are satisfied, the system’s behavior becomes notably challenging under such circumstances.
36
Moreover, the approximate solution previously obtained will persist if the oscillations do not align with resonance states. On the other side, to investigate the system’s stability, it’s imperative to meet the requirements for solvability and ME for this system. So, we will study the external resonance case when
Now, by substituting (14) into the equations (7) and (8) addition to eliminate the ST, the solvability conditions can be obtained as follows
- Regarding the second-order approximation PDE
- Regarding the third-order approximation PDE
We may determine the functions
Utilizing equations (17) and (18) into (15) and (16) and subsequently segregating the imaginary components from the real ones yields the following ME
The system of equation (19) comprises two ODEs that regulate the adjusted phase
Furthermore, to examine the impact of different parameters, including
Figure 5 illustrates the projection of the amplitude Presents the phase plane 
The chaotic response
This section delves into the intriguing realm of chaotic behavior demonstrated by our dynamical model. Bifurcation diagrams, LES, and Poincaré maps are investigated to provide a measure of chaos and stability. It is crucial to note that even slight parameter adjustments can considerably influence the system’s behavior. Consequently, the system exhibits two distinct modes of motion, each of which will be elucidated below.
To illustrate the distinct types of motions, we simulated the bifurcation diagram of Bifurcation diagram and LES of the system Bifurcation diagram and LES of the system at Bifurcation diagram and LES of the system at 


Figure 6(a) elucidates the bifurcation diagram of
The LES in Figure 6(b) corroborates these observations. Negative LES indicate periodic behavior, consistent with the bifurcation diagram for
A Poincaré map is provided in Figure 9 to illustrate the observed chaotic behavior further. This map offers a visual representation of the system’s dynamics in the chaotic regime, highlighting the complex and aperiodic nature of the state. Poincaré map for the approximate solution at 
Figure 7(a) shows the bifurcation diagram of
Corroborating these observations in Figure 7(b), zero or negative LES indicate periodic behavior, and positive LES confirm the system’s transition into chaos. Also, the Poincaré map in Figure 10 shows chaotic behavior; the points within the diagram begin to diverge randomly. This divergence serves as a clear indication, as mentioned earlier, of the system’s chaotic response. Poincaré map for the approximate solution at 
Figure 8 shows the same behavior in Figure 7 but with less discontinuous interval, and this occurs when Poincaré map for the approximate solution at 
It is crucial to state that the chaotic response of a dynamical system, LES, and Poincaré maps enable a deeper understanding of the complex dynamics of nonlinear systems, aiding in the prediction, control, and analysis of such systems across various scientific and engineering disciplines.39,40
Moreover, we were eager to observe the effect of the quadratic term on the studied oscillator. Therefore, we investigated the influence of its coefficient Bifurcation diagram and LES of the system. Poincaré map reveals the chaotic behavior of the system at 

Analysis of stability and steady-state
In this section, we illustrate the stability analysis and the determination of steady-state solutions based on resonance response curves. Steady-state oscillations emerge once transient processes are mitigated by an effective damping system.
41
This stabilization results in the time derivatives of the phase and amplitude within the ME becoming zero (19). Subsequently, we transform these equations from ODEs into algebraic equations to simplify the analysis and facilitate the characterization of stable equilibria, as follows
Furthermore, upon eliminating the variable
The stability of oscillations at the steady state is demonstrated by examining the oscillations in proximity to a fixed position. According to Lyapunov’s perspective, fixed points such as stationary solutions exhibit asymptotic stability only if the real parts of all eigenvalues are negative.
42
We depict the stability of the fixed point utilizing the resonance response curves derived from the equation’s numerical solution (21). In Figure 14, the frequency response is illustrated in the Demonstrates the frequency response in the plane 
Shows comparisons between the studied oscillator and other oscillators.
Conclusion
An analytical solution was provided for the DO subjected to sinusoidal external excitation. The solution to the DO’s equation of motion was obtained through Lagrange’s equation and analytically solved up to the third-order approximation utilizing MS. The validity of the obtained solution was confirmed by comparing it with the numerical solution of the governing equation, demonstrating a significant level of matching. External resonance was also examined to obtain the solvability conditions and ME. To elucidate the behavior of the dynamical at a particular moment, we created and discussed a specific time history plot of the obtained solution, considering the precise parameter values utilized. The ME of the system was numerically solved to demonstrate the amplitude and fitted phase of the corresponding data, considering the parameters under examination. The stability criterion is employed to analyze both stable and unstable regions within the system and examine the impact of various parameters. Bifurcation diagrams and LEs spectra are highlighted to demonstrate diverse types of system motions, along with the illustration of the Poincaré diagram. It can be applied in many fields, like physics, mathematics, engineering, and biology, for example, studying oscillations, vibrating strings and membranes, structural dynamics, and electrical circuits. The study of the DO has provided deep insights into nonlinear dynamic systems, particularly its chaotic behavior and the impact of external forces and damping on system stability. In future research, we can add a harvest device with the control system. Recommendation: Incorporating machine learning and advanced computational tools will enhance the predictive capabilities of Duffing models in chaotic systems.
Footnotes
Author’s contributions
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Data availability statement
All data generated or analyzed during this study are included in this published article.
