The (un)forced (un)damped parametric pendulum oscillator (PPO) is analyzed analytically and numerically using some simple, effective, and more accurate techniques. In the first technique, the ansatz method is employed for analyzing the unforced damped PPO and for deriving some optimal and accurate analytical approximations in the form of angular Mathieu functions. In the second approach, some approximations to (un)forced damped PPO are obtained in the form of trigonometric functions using the ansatz method. In the third approach, He's frequency-amplitude principle is applied for deriving some approximations to the (un)damped PPO. In the forth approach, He's homotopy technique is employed for analyzing the forced (un)damped PPO numerically. In the fifth approach, the p-solution Method, which is constructed based on Krylov–Bogoliúbov Mitropolsky method, is introduced for deriving an approximation to the forced damped PPO. In the final approach, the hybrid Padé-finite difference method is carried out for analyzing the damped PPO numerically. All proposed techniques are compared to the fourth-order Runge–Kutta (RK4) numerical solution. Moreover, the global maximum residual distance error is estimated for checking the accuracy of the obtained approximations. The proposed methodologies and approximations can help many researchers in studying and investigating several nonlinear phenomena related to the oscillations that can arise in various branches of science, e.g. waves and oscillations in plasma physics.
Haifa A Alyousef, M R Alharthi, Alvaro H Salas, S A El-Tantawy. Optimal analytical and numerical approximations to the (un)forced (un)damped parametric pendulum oscillator[J]. Communications in Theoretical Physics, 2022, 74(10): 105002. DOI: 10.1088/1572-9494/ac7bdc
1. Introduction
The theory of linear oscillations has been successfully applied by many authors for modeling and analyzing the oscillatory devices. However, nonlinear behavior appears in a lot of real world phenomena [1–7]. As a result, researchers from various fields are exploring nonlinear systems and trying to model these systems and come up with explanations and solutions to some problems, whether in the manufacture of large small machines, as well as electronic chips. Accordingly, the nonlinear oscillation is one of the most popular and interesting topics among researchers because it has many different applications in sensing, automobiles, liquid and solid interaction, micro and nanoscale, space, bioengineering, and nonlinear oscillations in plasma. The complex pendulum is a model in the study of nonlinear oscillations and many other nonlinear phenomena in engineering, physics, and nonlinear dynamics [8–10]. The nonlinear oscillators can arise in several branches of science including the oscillations of a high-amplitude physical pendulum, nonlinear electrical circuits, image processing, open states of DNA, the movement of satellites, Bose–Einstein condensates, oscillations in different plasma models, and many others phenomena [11–15]. Moreover, the simple pendulum has been used as a physical model to solve several natural problems related to bifurcations, oscillations, and chaos such as nonlinear plasma oscillations [16–19], and many other oscillations in different fields of science [20–37].
There are few attempts are devoted to analyze one of the equations of motion to the nonlinear damped pendulum taking the friction forces into consideration [38]. However, in addition to the friction force, there are many other physical forces that can affect on the pendulum oscillations, e.g. the perturbed and periodic forces. For example, the following damped parametric pendulum oscillator (PPO) has been investigated only numerically via implicit discrete mappings [39]
where $\phi (t)={\omega }_{0}^{2}-{Q}_{0}\cos (\gamma t)$, ${\omega }_{0}=\sqrt{g/l}$ gives the eigenfrequency of the system, $\beta =\mu /\left(2{ml}\right)$ represents the coefficient of the damping term, Q0 = ϵω2 is the excitation amplitude, ω2 = γ2/l. Here, A simple mathematical parametric pendulum system is modeled by a point mass m, hanging at the end of a massless wire with length l and fixed to a supporting point ‘O', swinging to and from in a vertical plane. Motivated by the potential applications of the nonlinear oscillator model, thus, in the present study, the parametric pendulum equation (PPE) will be solved and investigated using some new analytical and numerical approaches. A new formula for the approximate analytical solution will be obtained in the form of Mathieu function. In addition, the hybrid Padé-finite difference method (Padé-FDM) is employed for anatomy equation (1) numerically. Due to the high-accuracy of the fourth-order Runge–Kutta (RK4), which is characterized by an error of the fourth-order, thus, we will take this method as a benchmark to measure the accuracy of the approximate solutions that we will obtain.
In this investigation, some approximations to the (un)forced (un)damped PPO using different approaches are obtained. In the first approach, an effective and high-accuracy approximation to the unforced damped PPO is obtained using the ansatz method in the form of Mathieu function. In the second approach, some approximations to (un)forced damped PPO are obtained in the form of trigonometric functions using the ansatz method. In the third approach, He's frequency-amplitude principle (He's-FAP) is devoted for deriving some approximations to the (un)damped PPO. In the forth approach, He's homotopy technique (He's-HT) is carried out for analyzing the forced (un)damped PPO. In the fifth approach, the p-solution Method which is constructed based on Krylov–Bogoliúbov Mitropolsky method is implemented for getting an approximation to the forced damped PPO. In the final approach, the hybrid Padé-FDM is performed for analyzing the damped PPO.
where g(t) is an undetermined time-dependent function which can be obtained later using the initial conditions (ICs) g(0) = 0 while θ ≡ θ(t) indicates the exact solution to the following i.v.p. for small θ $\left(\sin (\theta )\approx \theta ,\right)$
here, ρ denotes the free integration constant. Observe that $g\left(t\right)$ does not depend on the coefficient λ give in ${{\mathbb{R}}}_{1}$. Thus, the obtained approximation does not depend on the coefficient λ. Consequently, our analytical approximation is considered an effective and gives high-accuracy. By substituting the value of $g\left(t\right)$ (given in equation (9)) into solution (7), then the solution of the i.v.p. (2) is obtained
where both $\left(\rho ,{ \mathcal F }\right)$ give the free parameters of optimization. In this case the values of $g\left(t\right)$ given in equation (9) and Z1 given in equation (6) have the following new forms
$\begin{eqnarray}\begin{array}{rcl}\tilde{g}\left(t\right) & = & \displaystyle \frac{1}{2{ \mathcal F }\beta }\left(2t{ \mathcal F }\beta +\mathrm{log}\left[1+{{\rm{e}}}^{\rho }\right]\right.\\ & & \left.-\mathrm{log}\left[1+{{\rm{e}}}^{\rho +2t{ \mathcal F }\beta }\right]\right),\\ {\tilde{Z}}_{1} & = & -\displaystyle \frac{4\left({{ \mathcal F }}^{2}{\beta }^{2}-{\omega }_{0}^{2}\right)}{{\gamma }^{2}}.\end{array}\end{eqnarray}$
Then the optimal analytical approximation to the i.v.p. (2) reads
We can choose the default values of $\left(\rho ,{ \mathcal F }\right)=\left(-T,1\right)$ where T represents the maximum value of t.
Both approximations (10) and (13) are, respectively, presented in figure 1 for $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{\dot{\varphi }}_{0}\right)=\left(0.1,1,0.1,1,0.2\right)$ and with different values to φ0. Also, these approximations give excellent results compared to the RK4 numerical approximation as shown in figure 1. Also, the global maximum residual distance error (GMRDE) Ld according to the following relation:
It is clear that the second optimal parameter ${ \mathcal F }$ plays a vital role in the improving the accuracy of the second approximation (13). In this case, the accuracy of the second approximation (13) becomes better than the first one (10).
Figure 1. The profile of two-analytical approximations (10) and (13) to the i.v.p. (4) is plotted against the RK4 numerical approximation for different values to the ICs: $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)$.
3. Second approach for analyzing the (un)forced damped PPO
Equating both S1 and S2 to zero and then eliminating w″(t) from the resulting system to obtain an ode for w(t). Solving the obtained ode gives the value of the frequency-amplitude formulation as follows
For investigating the accuracy of the obtained solution, we analyze this solution numerically using the following data: $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma \right)=\left(0.1,2,0.1,1\right)$ with the ICs: φ0 = 0 and ${\dot{\varphi }}_{0}=0.1$ which lead to
Solution (15) to the i.v.p. (22) is compared with RK4 numerical approximation as illustrated in figure 2. Also, the GMRDE Ld is estimated for $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(0.1,2,0.1,1,0,0.1\right)$ and $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(0.1,2,0.1,1,\tfrac{\pi }{6},0.1\right)$, respectively
Figure 2. The profile of the approximation (15) to the i.v.p. (22) is plotted against the RK4 numerical approximation for different values to the ICs: $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)$.
The solution to i.v.p. (23) is assumed to have the following ansatz form
We choose the least in magnitude real roots to the system (27).
Solution (24) for $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{F}_{0},\omega \right)=\left(0.1,2,0.1,1,0.1,0.1\right)$ and different values to $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)\ $ is introduced in figure 3. Also, the GMRDE Ld is estimated as follows
The exact match between the obtained approximation (24) and the RK4 numerical approximation was observed, as shown in figure 3. Moreover, the obtained approximation (24) is characterized by high-accuracy, as is evident from the GMRDE Ld.
Figure 3. The profile of the approximation (24) to the i.v.p. (23) is plotted against the RK4 numerical approximation for different values to the ICs: $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)$.
4. He's-FAP for analyzing the (un)damped pendulum oscillator
The approximation (32) for $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma \right)=\left(0.1,2,0.1,1\right)$ and $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(\tfrac{\pi }{6},0.1\right)$, is presented in figure 4. Also, the GMRDE Ld for the approximation (32) is estimated as follows
Figure 4. The profile of the approximation (32) to the i.v.p. (29) is plotted against the RK4 numerical approximation for $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(\tfrac{\pi }{6},0.1\right)$.
5. He's-HT for analyzing the forced (un)damped PPO
In the beginning, let us consider the forced undamped oscillator
where Y1 and Y2 are defined in appendix (I). Equating to zero the coefficients ${Y}_{{i}}\left({i}=1,2,3,\cdots \right)$ and then solving the resulting ode system, we have
For the damped case, we can replace A with $A\exp (-\beta t)$ solution (38) and in frequency-amplitude formula (39) or (43).
The approximation (38) for both unforced (F0 = 0) and forced (F0 = 0.1 & w = 0.1) damped PPO is introduced in figure 5 for $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma \right)=\left(0.1,2,0.1,1\right)$ and with different values to $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)$. Also, the GMRDE Ld for both unforced (F0 = 0) and forced (F0 = 0.1 & w = 0.1) are estimated as follow
Figure 5. The profile of the approximation (38) to the (un)forced i.v.p. (36) is plotted against the RK4 numerical approximation for different values to the ICs: $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)$.
6. The p-solution Method
Now, we proceed for analyzing the following the forced damped i.v.p.
for $\sin \varphi \approx \varphi -\tfrac{1}{6}{\varphi }^{3}+\tfrac{1}{120}{\varphi }^{5}$ and $F\left(t\right)={F}_{0}\cos ({wt})$, using the p-solution Method. To do that, the forced damped i.v.p. (44) in the form of p- problem is considered
where each un ≡ un(a, ψ) is a periodic function of ψ, and the functions $\left(a,\psi \right)\equiv \left(a\left(t\right),\psi \left(t\right)\right)$ are given by
Observe that this method can be applied for any oscillator, conservative, autonomous or not. The results are different from that obtained using He's-HT. On the other hand, He's-HT is hard to apply for a nonconservative oscillators. Even if the application is possible, the results are too large and cumbersome, as we saw in the previous section. Moreover, the solutions obtained using the p-method are simpler. The solution to the original problem is obtained for p = 1.
The approximation (49) for both unforced (F0 = 0) and forced (F0 = 0 & w = 3) damped PPO is introduced in figure 6 for $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{\dot{\varphi }}_{0}\right)=\left(0.1,2,0.1,1,0.1\right)$ and with different values to $\left({\varphi }_{0},{F}_{0}\right)$. Also, the GMRDE Ld for both unforced (F0 = 0) and forced (F0 = 0.1 & w = 0.1) are estimated as follow
Figure 6. The profile of the approximation (46) to the (un)forced i.v.p. (44) is plotted against the RK4 numerical approximation for different values to the ICs: $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)$.
7. Finite different method for analyzing the damped PPO
Note here, for simplicity only we put $x\left(t\right)=\varphi (t)\ $ and $F(\varphi ,\dot{\varphi },t)=2\beta \dot{\varphi }+\phi \left(t\right)\sin \left(\varphi \right)$.
According to the FDM, we make use the following backward finite difference formulas for the first- and second-derivatives
This is a transcendental equation for z = xk. We may solve this equation using the Newton–Raphson or other suitable method, taking z = xk−1 as initial value. This way, the FDM gives us the advantage of solving the ode recursively. Thus, the discretization form to the i.v.p. (2) reads
At $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{\dot{\varphi }}_{0}\right)=\left(0.1,1,0.1,1,0.2\right)$ and for different values to φ0 (here φ0 = 0 and φ0 = π/6), the comparison between the analytical approximation (13) and both Padé-FDM and RK4 numerical approximations is displayed in figure 7. It is found that the numerical approximation using the Padé-FDM is better than the analytical approximation (13). However, in general, both analytical and numerical approximations give highly-accurate and acceptable results. Moreover, the comparison between all proposed techniques at $\left(\beta ,{\omega }_{0},{Q}_{0},\gamma ,{\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(0.1,1,0.1,1,\pi /6,0.2\right)$ is carried out as follows
Figure 7. The profile of the numerical solutions using both Padé-FDM and RK4 method and the optimal analytical approximation (13) to the i.v.p. (2) for $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(0,0.2\right)$ and $\left({\varphi }_{0},{\dot{\varphi }}_{0}\right)=\left(\pi /6,0.2\right)$ is considered.
8. Conclusions
The (un)forced (un)damped PPE have been investigated analytical and numerical using some different approaches. The ansatz method was devoted for deriving some analytical approximations to the damped PPE in the form angular Mathieu functions. Using some suitable assumptions, the obtained analytical approximation has been improved based on two-optimal parameters. In the second approach, the ansatz method was applied for deriving some approximations to the (un)forced damped PPE in the form of trigonometric functions using the ansatz method. In the third approach, He's-FAP was implemented for getting some approximations to the (un)damped PPE. In the forth approach, He's-HT was employed for analyzing the forced (un)damped PPE. In the fifth approach, the p-solution Method was implemented for deriving an approximation to the forced damped PPE. In the final approach, the hybrid Padé-FDM was performed for analyzing the damped PPE. During the numerical simulation, some different cases for small and large angle with the vertical pivot have been discussed. It was found that the accuracy of both first and second formulas for the analytical approximations become identical for small angle, but for large angle the accuracy of second formula becomes better. Furthermore, both analytical and numerical approximations were compared with each other and it turned out that the numerical approximation using Padé-FDM is more accurate than the other approaches. The analytical and numerical techniques that were used in this study can be extended to investigate many nonlinear oscillators.
Acknowledgments
The authors express their gratitude to Princess Nourah bint Abdulrahman University Researchers Supporting Project (Grant No. PNURSP2022R17), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia. Taif University Researchers supporting project number (TURSP-2020/275), Taif University, Taif, Saudi Arabia.
Conflicts of interest
The authors declare that they have no conflicts of interest.
Author contributions
All authors contributed equally and approved the final manuscript.
BaskonusH MHasanBAbdulkadirS T2017 Investigation of various travelling wave solutions to the extended (2+1)-dimensional quantum ZK equation Eur. Phys. J. Plus132 482
HasanBNesligülA EMiraçKAbdulkadirS T2019 New solitary wave structures to the (3+1) dimensional Kadomtsev–Petviashvili and Schrödinger equation J. Ocean Eng. Sci.4 373 378
Onur AlpİHasanBAbdulkadirS TMehmetB H2019 On the new wave behavior of the Magneto-Electro-Elastic(MEE) circular rod longitudinal wave Int. J. Optim. Control: Theories Appl. (IJOCTA)10 1 8
AbdulkadirS TAbdullahiYAbdonA2020 New lump, lump-kink, breather waves and other interaction solutions to the (3+1)-dimensional soliton equation Commun. Theor. Phys.72 085004
AlbalawiWSalasA HEl-TantawyS AYoussefAAbdA-R2021 Approximate analytical and numerical solutions to the damped pendulum oscillator: Newton–Raphson and moving boundary methods J. Taibah Univ. Sci.15 479
El-TantawyS ASalas AlvaroHAlharthiM R2021 On the analytical solutions of the forced damping duffing equation in the form of weierstrass elliptic function and its applications Math. Probl. Eng.2021 6678102
TantawyS ASalas AlvaroHAlharthiM R2021 A new approach for modelling the damped Helmholtz oscillator: applications to plasma physics and electronic circuits Commun. Theor. Phys.73 035501
Salas AlvaroHEl-TantawyS AAlharthiM R2021 Novel solutions to the (un) damped Helmholtz-Duffing oscillator and its application to plasma physics: Moving boundary method Phys. Scr.96 104003
Aljahdaly NoufeHEl-TantawyS A2021 On the Multistage Differential Transformation Method for Analyzing Damping Duffing Oscillator Applications to Plasma Physics Mathematics9 432
Salas AlvaroHCastilloHJairoEMosqueraD P2020 A New Approach for Solving the Undamped Helmholtz oscillator for the given arbitrary initial conditions and Its physical applications J. Math. Probl. Eng.2020 7876413
23
TurkyilmazogluM2012 An effective approach for approximate analytical solutions of the damped Duffing equation Phys. Scr.86 015301
Alyousef HaifaASalas AlvaroHAlkhateeb SadahAEl-TantawyS A2022 some novel analytical approximations to the (Un) damped duffing–mathieu oscillators J. Math.2022 2715767
27
ZajaczkowskiJ1981 Destabilizing effect of Coulomb friction on vibration of a beam supported at an axially oscillating mount J. Sound Vib.79 575
Salas AlvaroHWedadAAlharthiM REl-TantawyS A2022 Some Novel solutions to a quadratically damped pendulum oscillator: analytical and numerical approximations Complexity2022 7803798
41
HeJ-H2006 Some asymptotic methods for strongly nonlinear equations Int J. Mod. Phys. B20 1141 1199
Alyousef HaifaASalas AlvaroHAlharthiM REl-TantawyS A2022 Galerkin method, ansatz method, and He's frequency formulation for modeling the forced damped parametric driven pendulum oscillators J. Low Freq. Noise, Vib. Active Control