7.2
CiteScore
3.7
Impact Factor
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Filter by Categories
ABUNDANCE ESTIMATION IN AN ARID ENVIRONMENT
Case Study
Correspondence
Corrigendum
Editorial
Full Length Article
Invited review
Letter to the Editor
Original Article
Retraction notice
REVIEW
Review Article
SHORT COMMUNICATION
Short review
7.2
CiteScore
3.7
Impact Factor
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Filter by Categories
ABUNDANCE ESTIMATION IN AN ARID ENVIRONMENT
Case Study
Correspondence
Corrigendum
Editorial
Full Length Article
Invited review
Letter to the Editor
Original Article
Retraction notice
REVIEW
Review Article
SHORT COMMUNICATION
Short review
View/Download PDF

Translate this page into:

32 (
1
); 974-978
doi:
10.1016/j.jksus.2019.07.005

Analytic solution to the pendulum equation for a given initial conditions

Universidad Nacional de Colombia, Department of Mathematics and Statistics, FIZMAKO Research Group, Colombia
Disclaimer:
This article was originally published by Elsevier and was migrated to Scientific Scholar after the change of Publisher.

Peer review under responsibility of King Saud University.

Abstract

In this paper we give the analytical solution for the undamped pendulum equation for a given arbitrary initial conditions. This solution is expressed in terms of the Jacobian elliptic functions. Approximated trigonometric solution is also provided. Three practical formulas for the period of oscillations are given. The results are illustrated with examples.

Keywords

Undamped pendulum
Duffing equation
Period of oscillations
Jacobian elliptic functions
1

1 Introduction

The pendulum is a massless rod of lengthlwith a point mass (bob) m at  its end (Fig. 1).

Pendulum.
Fig. 1
Pendulum.

When the bob performs an angular deflection ϕ from the equilibrium downward position, the force of gravity mg provides a restoring torque - mgl sin ϕ . The rotational form of Newton’s second law of motion states that this torque is equal to the product of the moment of inertia   ml 2 times the angular acceleration d 2 ϕ dt 2 (Gitterman, 2010),

(1)
d 2 ϕ dt 2 + g l sin ϕ = 0

For small angles, sin ϕ ϕ Eq. (1) reduces to the equation of a harmonic oscillator. Other approximations are

(2)
sin ϕ ϕ - 40 243 ϕ 3 for ϕ < 7 π 18 = 70 ° .
(3)
sin ϕ ϕ - 40 243 ϕ 3 + 1 131 ϕ 5 for ϕ 2 π 3 = 120 °

These approximations are compared graphically in Fig. 2.

Polynomial approximations to sine function.
Fig. 2
Polynomial approximations to sine function.

2

2 Analytic Solution to the Pendulum Equation

Our aim is to obtain the solution to the initial value problem

(4)
d 2 ϕ dt 2 + ω 2 sin ϕ = 0 subjected to ϕ ( 0 ) = ϕ 0 and ϕ ( 0 ) = ϕ ̇ 0 , where ω = g l > 0 .

To this end, we make the transformation

(5)
ϕ ( t ) = 2 arctan ( u ( t ) ) , where u = u ( t ) is the solution to the Duffing equation (Duffing, 1918)
(6)
u ( t ) + pu ( t ) + qu 3 ( t ) = 0 , u ( 0 ) = u 0 and u ( 0 ) = u ̇ 0 .
so that
(7)
u ( t ) 2 + pu ( t ) 2 + q 2 u ( t ) 4 = u ̇ 0 2 + pu 0 2 + q 2 u 0 4 .

Inserting the ansatz (6) into the equation d 2 ϕ dt 2 + ω 2 sin ϕ = 0  and taking into account (7) gives

(8)
- p + q - ω 2 u ( t ) 3 + 2 pu 0 2 + p + qu 0 4 + 2 u ̇ 0 2 - ω 2 u ( t ) = 0 .

Equating to zero the coefficients of u ( t ) and u ( t ) 3 we obtain the system to obtain the system

(9)
2 p u ̇ 0 2 + p + q u ̇ 0 4 + 2 u 0 2 - ω 2 = 0 , - p + q - ω 2 = 0

Solving this system gives

(10)
p = - u ̇ 0 4 - 1 ω 2 + 2 u 0 2 u ̇ 0 2 + 1 2 , q = 2 u ̇ 0 2 + 1 ω 2 - u 0 2 u ̇ 0 2 + 1 2

The values of the constants u 0 and u ̇ 0 are found from the initial conditions

(11)
ϕ ( 0 ) = ϕ 0 and ϕ ( 0 ) = ϕ ̇ 0

The general solution to the Duffing equation (Kovacic and Brennan, 2011; Salas and Castillo, 2014) u ( t ) + pu ( t ) + qu 3 ( t ) = 0 may be expressed in terms of the twelve Jacobian elliptic functions as shown below: u ( t ) = c 1 cd qc 1 2 + 2 p 2 t + c 2 , - qc 1 2 qc 1 2 + 2 p u ( t ) = c 1 cn qc 1 2 + p t + c 2 , qc 1 2 2 qc 1 2 + p u ( t ) = c 1 dc - qc 1 2 2 t + c 2 , - qc 1 2 - 2 p qc 1 2 u ( t ) = c 1 dn qc 1 2 2 t + c 2 , 2 qc 1 2 + p qc 1 2 u ( t ) = c 1 nc - qc 1 2 - p t + c 2 , qc 1 2 + 2 p 2 qc 1 2 + p u ( t ) = c 1 nd - qc 1 2 - 2 p 2 t + c 2 , 2 qc 1 2 + p qc 1 2 + 2 p u ( t ) = c 1 sc qc 1 2 - 2 p 2 t + c 2 , 2 p - qc 1 2 2 p - qc 1 2 u ( t ) = c 1 sd qc 1 2 + q 2 c 1 4 + p 2 t + c 2 , qc 1 2 + p - q 2 c 1 4 + p 2 2 p u ( t ) = c 1 sn qc 1 2 + 2 p 2 t + c 2 , - qc 1 2 qc 1 2 + 2 p

The values of the constants c 1 and c 2 are obtained from the initial conditions

(12)
u ( 0 ) = u 0 and u ( 0 ) = u ̇ 0

Let

(13)
u ( t ) = c 1 cn qc 1 2 + p t + c 2 , m , where m = qc 1 2 2 qc 1 2 + p .

We will make use if the addition formula

(14)
u ( t ) = c 1 cn ( qc 1 2 + p t , m ) cn ( c 2 , m ) - sn ( qc 1 2 + p t , m ) dn ( qc 1 2 + p , m ) sn ( c 2 , m ) dn ( c 2 , m ) 1 - c sn 2 ( qc 1 2 + p t , m )

Let

(15)
a = c 1 cn ( c 2 ) and b = sn ( c 2 ) dn ( c 2 )

Since

(16)
sn 2 ( c 2 ) + cn 2 ( c 2 ) = 1 and dn 2 ( c 2 ) = 1 - m sn 2 ( c 2 ) ,
(17)
a 4 q + 2 a 2 p + c 1 2 2 b 2 p - 2 p + c 1 4 2 b 2 q - q = 0 .

We have

(18)
u ( t ) = a cn ( qc 1 2 + p t , m ) - b sn ( qc 1 2 + p t , m ) dn ( qc 1 2 + p , m ) 1 - c sn 2 ( qc 1 2 + p t , m )

Define the residual R ( t )

(19)
R ( t ) = d 2 ϕ dt 2 + ω 2 sin ϕ , where ϕ ( t ) = 2 arctan ( u ( t ) )

To determine the constants a , b and c we solve the system

(20)
ϕ ( 0 ) = ϕ 0 , ϕ ( 0 ) = ϕ ̇ 0 and R ( 0 ) = 0 which reads
(21)
2 tan - 1 ( a ) = ϕ 0 , 2 b w = a 2 + 1 ϕ ̇ 0 , w 2 a 2 + 1 c + a 2 + 2 b 2 + 1 = a 2 + 1 ω 2 .

Solving system (21) and taking into account (17) we obtain, after some algebraic simplifications, the following expression for the solution to the pendulum Eq. (4):

(22)
ϕ ( t ) = 2 tan - 1 tan ϕ 0 2 cn ( i ω t | m ) - i 2 ω ϕ ̇ 0 sec 2 ϕ 0 2 dn ( i ω t | m ) sn ( i ω t | m ) 1 + ϕ ̇ 0 2 2 ω 2 cos ϕ 0 + 1 - 1 sn ( i ω t | m ) 2 , m = 1 4 2 ( 1 + cos ϕ 0 ) - ϕ ̇ 0 2 ω 2

This solution may also be expressed in the forms

(23)
ϕ ( t ) = 2 tan - 1 tan ϕ 0 2 cn ( ω t | m ) + ϕ ̇ 0 2 ω sec 2 ϕ 0 2 dn ( ω t | m ) sn ( ω t | m ) 1 - ϕ ̇ 0 2 4 ω 2 sec 2 ϕ 0 2 sn ( ω t | m ) 2 , m = 1 4 2 ( 1 - cos ϕ 0 ) + ϕ ̇ 0 2 ω 2 . and
(24)
ϕ ( t ) = 2 tan - 1 2 ω ω sin ϕ 0 nc ( ω t | m ) + ϕ ̇ 0 dc ( ω t | m ) sc ( ω t | m ) 2 ω 2 1 + cos ϕ 0 + 2 ω 2 1 + cos ϕ 0 - ϕ ̇ 0 2 sc ( ω t | m ) 2 , m = 1 4 2 ( 1 - cos ϕ 0 ) + ϕ ̇ 0 2 ω 2 .

The period of oscillations is given by

(25)
T = K ( m ) ω = 1 ω K 1 4 2 ( 1 - cos ϕ 0 ) + ϕ ̇ 0 2 ω 2

This number may be approximated by means of the formulas

(26)
T = π 2 l g 5 m - 16 9 m - 16 for m 1 3 and also
(27)
T = π 2 l g 409 m 2 - 3984 m + 4864 1025 m 2 - 5200 m + 4864 for m 3 4 .
(28)
T = π 2 l g 540191 m 3 - 10617024 m 2 + 32584960 m - 24653824 1708091 m 3 - 16837184 m 2 + 38748416 m - 24653824 for m < 1
Example 1

Fig. 3.

Example 2

Fig. 4.

The dashed curve is that of the numerical solution.
Fig. 3
The dashed curve is that of the numerical solution.
The dashed curve is that of the numerical solution.
Fig. 4
The dashed curve is that of the numerical solution.

3

3 Trigonometric approximations

In this section we provide some approximations that solve in a reasonable way the pendulum equation in terms of trigonometric functions. From (3), we see that the equation of the pendulum d 2 ϕ dt 2 + g l sin ϕ = 0 may be approximated by means of the equation

(29)
d 2 ϕ dt 2 + g l ϕ ( t ) - 40 243 ϕ 3 ( t ) + 1 131 ϕ 5 ( t ) = 0 for ϕ 2 π 3 = 120 ° .

Let us consider the case when ϕ ( 0 ) = ϕ 0 and ϕ ( 0 ) = 0

(30)
ϕ ( t ) = ϕ 0 cos ( kt ) 1 + λ sin 2 ( kt )

Define the residual R ( t ) as

(31)
R ( t ) = d 2 ϕ dt 2 + ω 2 ( ϕ ( t ) - 40 243 ϕ 3 ( t ) + 1 131 ϕ 5 ( t ) ) , ω = g l .

Direct calculations show that R ( 0 ) = 0 . In order to find the values of the constants k and λ we solve the system

(32)
R ( 0 ) = 0 , R ( 0 ) = 0 .

This system reads

(33)
31833 k 2 λ + 31833 k 2 - 31833 ω 2 - 243 ω 2 ϕ 0 4 + 5240 ω 2 ϕ 0 2 = 0 . 95499 k 2 λ + 10611 k 2 - 10611 ω 2 - 405 ω 2 ϕ 0 4 + 5240 ω 2 ϕ 0 2 = 0 .

A solution is

(34)
k = 1 9 g l 81 262 ϕ 0 4 - 10 ϕ 0 2 + 81 , λ = 1 + 262 20 ϕ 0 2 - 243 243 ϕ 0 4 - 7860 ϕ 0 2 + 63666 so that an approximated trigonometric solution is given by
(35)
ϕ ( t ) = ϕ 0 cos 1 9 g l 81 262 ϕ 0 4 - 10 ϕ 0 2 + 81 t 1 + 1 + 262 20 ϕ 0 2 - 243 243 ϕ 0 4 - 7860 ϕ 0 2 + 63666 sin 2 1 9 g l 81 262 ϕ 0 4 - 10 ϕ 0 2 + 81 t for ϕ ( t ) 2 π 3 = 120 °
Example 3

Compare the exact and approximated trigonometric solution for the pendulum equation

(36)
d 2 ϕ dt 2 + sin ϕ = 0 subjected to ϕ ( 0 ) = π 2 and ϕ ( 0 ) = 0 .

Figs. 5 and 6.

The dashed curve is that of the trigonometric solution.
Fig. 5
The dashed curve is that of the trigonometric solution.
The dashed curve is that of the trigonometric solution.
Fig. 6
The dashed curve is that of the trigonometric solution.

If we are interested in a trigonometric solution to the pendulum equation for a given initial conditions, we may approximate the exact solution by means of trigonometric functions. Let us consider solution given by Eq. (24). The trigonometric approximation is good when the modulus mis a small number. This approximation reads.

Other approximations may be found in Belendez et al. (2012) and Belendez et al. (2016).

Example 4

Fig. 7

The dashed curve is that of the trigonometric solution.
Fig. 7
The dashed curve is that of the trigonometric solution.

4

4 Conclusions

We have derived the exact solution to the undamped pendulum equation for arbitrary given initial conditions. We conclude that the pendulum equation is closely related to both cubic and cubic-quintic Duffing oscillator equations. Two kinds of trigonometric approximate solutions were provided. We may say that trigonometric approximations are good when the modulus of the Jacobian elliptic functions is a small number say, a number in absolute value less that 0.2 .The techniques used are applicable for solving the Duffing and the cubic-quintic Duffing equations (Belendez et al., 2012; Belendez et al., 2016) by means of trigonometric ansatze. We think that some of the formulas in this work are new in the literature. Other approaches to nonlinear pendulum may be found in Gitterman (2010), Johannessen (2014) and Salas and Castillo (2014)

References

  1. , , , , , , , . Analytical approximate solutions for the cubic-quintic Duffing oscillator in terms of elementary functions. J. Appl. Math., Q3 2012 Article ID 286290,16 pages, ISSN 1110-757X. The special issue Advances in Nonlinear Vibration
    [Google Scholar]
  2. , , , , , , . Exact solution for the unforced Duffing oscillator with cubic and quintic nonlinearities. Nonlinear Dyn. (NODY). 2016;86:1687-1700.
    [Google Scholar]
  3. , . Erzwungene schwingungen bei veränderlicher eigenfrequenz und ihre technische bedeutung, Series: Sammlung Vieweg, No 41/42. Braunschweig: Vieweg & Sohn; .
  4. , . The Caothic Pendulum. World Scientific Publishing Co., Pte. Ltd.; .
  5. , . An analytical solution to the equation of motion for the damped nonlinear pendulum. Eur. J. Phys.. 2014;35:035014
    [Google Scholar]
  6. , , . The Duffing Equation: Nonlinear Oscillators and their Behaviour (1st ed.). John Wiley & Sons Ltd; .
  7. , , . Exact solution to duffing equation and the pendulum equation. Appl. Math. Sci.. 2014;8:8781-8789.
    [Google Scholar]
Show Sections