Module

for

The Nonlinear Pendulum

 

The second order D. E. approach

Math-Model (Nonlinear Pendulum)  A simple pendulum consists of a point mass  m  attached to a rod of negligible weight.   The torque  [Graphics:Images/PendulumMod_gr_1.gif]  is  

(1)        [Graphics:Images/PendulumMod_gr_2.gif],
        
where  [Graphics:Images/PendulumMod_gr_3.gif]  denotes the the angle of the rod measured downward from a vertical axis.  The moment of inertia for the point mass is  [Graphics:Images/PendulumMod_gr_4.gif]  where  l  is the length of the rod.  The torque can also be expressed as  [Graphics:Images/PendulumMod_gr_5.gif],  where  [Graphics:Images/PendulumMod_gr_6.gif]  is the angular acceleration, using Newton's second law, and the second derivative, this can be written as  

(2)        [Graphics:Images/PendulumMod_gr_7.gif].

Equating  (1) and (2) results in the nonlinear D. E.

(3)        [Graphics:Images/PendulumMod_gr_8.gif].

Proof Pendulum Models  Pendulum Models    

 

Math-Model (Linear Pendulum)  Introductory courses discuss the pendulum with small oscillations as an example of a simple harmonic oscillator.  If the angle of oscillation [Graphics:Images/PendulumMod_gr_9.gif]  is small, use the approximation  [Graphics:Images/PendulumMod_gr_10.gif]  in equation (3) and obtain the familiar linear D. E. for simple harmonic motion:  

(4)        [Graphics:Images/PendulumMod_gr_11.gif],

Using the substitution  [Graphics:Images/PendulumMod_gr_12.gif], the solution to (4)  is known to be

(5)        [Graphics:Images/PendulumMod_gr_13.gif],

which has period  [Graphics:Images/PendulumMod_gr_14.gif].  When the solution (5) is written with a phase shift, it becomes

(6)        [Graphics:Images/PendulumMod_gr_15.gif].

Proof Pendulum Models  Pendulum Models    

 

Computer Programs Pendulum Models  Pendulum Models    

Mathematica Subroutine (Runge-Kutta Method for second order D.E.'s)  To compute a numerical approximation for the solution of the initial value problem  

    
[Graphics:Images/PendulumMod_gr_16.gif]  with  [Graphics:Images/PendulumMod_gr_17.gif], [Graphics:Images/PendulumMod_gr_18.gif],  

over the interval  
[Graphics:Images/PendulumMod_gr_19.gif]  at a discrete set of points.  

[Graphics:Images/PendulumMod_gr_20.gif]

Example 1.  Solve the second order  I.V.P.  
    [Graphics:Images/PendulumMod_gr_21.gif]  with  [Graphics:Images/PendulumMod_gr_22.gif],   [Graphics:Images/PendulumMod_gr_23.gif].    
Use the Runge-Kutta method to compute the solution over the interval
[Graphics:Images/PendulumMod_gr_24.gif].  
Solution 1.

 

Example 2.  Find the analytic solution to the second order  I.V.P.  
    [Graphics:Images/PendulumMod_gr_46.gif]  with  [Graphics:Images/PendulumMod_gr_47.gif],   [Graphics:Images/PendulumMod_gr_48.gif].    
Plot the solution over the interval
[Graphics:Images/PendulumMod_gr_49.gif].  
Solution 2.

 

Example 3.  Solve the second order  I.V.P.  
    [Graphics:Images/PendulumMod_gr_60.gif]  with  [Graphics:Images/PendulumMod_gr_61.gif],   [Graphics:Images/PendulumMod_gr_62.gif].    
Solution 3.

 

Example 4.  Compare the graphs of the solutions to  
(i)        [Graphics:Images/PendulumMod_gr_82.gif]  with  [Graphics:Images/PendulumMod_gr_83.gif],   [Graphics:Images/PendulumMod_gr_84.gif],    
    and
(ii)        [Graphics:Images/PendulumMod_gr_85.gif]  with  [Graphics:Images/PendulumMod_gr_86.gif],   [Graphics:Images/PendulumMod_gr_87.gif].    
Solution 4.

 

 

The systems of  D. E.'s approach

    The pendulum can also be explored using a phase curve in the phase plane.  This requires a method to solve systems of D. E.'s, and our choice will be the Runge-Kutta method.  Plotting several curves will enable us to make a phase portrait which help understand some of the subtle features of the non-linear pendulum.

 

Mathematica Subroutine (Runge-Kutta Method in 2D space)  To compute a numerical approximation for the solution of the initial value problem  

    
[Graphics:Images/PendulumMod_gr_90.gif]  with  [Graphics:Images/PendulumMod_gr_91.gif],  
    
[Graphics:Images/PendulumMod_gr_92.gif]  with  [Graphics:Images/PendulumMod_gr_93.gif],  

over the interval  
[Graphics:Images/PendulumMod_gr_94.gif]  at a discrete set of points.

[Graphics:Images/PendulumMod_gr_95.gif]

Note.  The Runge-Kutta method in 2D is a "vector form" of the one-dimensional method, here the function f is replaced with F.

 

Example 5.   Solve   [Graphics:Images/PendulumMod_gr_96.gif],  by using the Runge-Kutta method to solve the system of D. E.'s  
        [Graphics:Images/PendulumMod_gr_97.gif] ,  
and
        [Graphics:Images/PendulumMod_gr_98.gif].    
Use  
g = 32  and  l = 32.
Solution 5.

 

Example 6.   Solve   [Graphics:Images/PendulumMod_gr_141.gif],  by using the Runge-Kutta method to solve the system of D. E.'s  
        [Graphics:Images/PendulumMod_gr_142.gif] ,  
and
        [Graphics:Images/PendulumMod_gr_143.gif].    
Solution 6.

 

Example 7.   Solve  [Graphics:Images/PendulumMod_gr_186.gif],  by using the Runge-Kutta method to solve the system of D. E.'s  
        [Graphics:Images/PendulumMod_gr_187.gif] ,  
and
        [Graphics:Images/PendulumMod_gr_188.gif].    
Solution 7.

 

Research Experience for Undergraduates

The Pendulum  The Pendulum  Internet hyperlinks to web sites and a bibliography of articles.  

 

Download this Mathematica Notebook The Pendulum

 

Return to Numerical Methods - Numerical Analysis

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004