Module for the pendulum, a second order D.E.

Check out the new Numerical Analysis Projects page.

 

Program (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_1.gif]  with  [Graphics:Images/PendulumMod_gr_2.gif], [Graphics:Images/PendulumMod_gr_3.gif],  

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

[Graphics:Images/PendulumMod_gr_5.gif]

Example 1.  Solve the second order  I.V.P.  

    [Graphics:Images/PendulumMod_gr_6.gif]  with  [Graphics:Images/PendulumMod_gr_7.gif],   [Graphics:Images/PendulumMod_gr_8.gif].    

Use the Runge-Kutta method to compute the solution over the interval
[Graphics:Images/PendulumMod_gr_9.gif].  

Solution 1.

Example 2.  Find the analytic solution to the second order  I.V.P.  

    [Graphics:Images/PendulumMod_gr_27.gif]  with  [Graphics:Images/PendulumMod_gr_28.gif],   [Graphics:Images/PendulumMod_gr_29.gif].    

Plot the solution over the interval
[Graphics:Images/PendulumMod_gr_30.gif].  

Solution 2.

Example 3.  Solve the second order  I.V.P.  

    [Graphics:Images/PendulumMod_gr_39.gif]  with  [Graphics:Images/PendulumMod_gr_40.gif],   [Graphics:Images/PendulumMod_gr_41.gif].    

Solution 3.

Example 4.  Compare the graphs of the solutions to  

(i)    [Graphics:Images/PendulumMod_gr_59.gif]  with  [Graphics:Images/PendulumMod_gr_60.gif],   [Graphics:Images/PendulumMod_gr_61.gif],    
and
(ii)    [Graphics:Images/PendulumMod_gr_62.gif]  with  [Graphics:Images/PendulumMod_gr_63.gif],   [Graphics:Images/PendulumMod_gr_64.gif].    

From the graph's can you tell which is the solution to (ii)?  How?

[Graphics:Images/PendulumMod_gr_65.gif]

[Graphics:Images/PendulumMod_gr_66.gif]

The differential equation in example 3 is called the nonlinear pendulum.
Is is a better model that the one given in example 1.

 

Research Experience for Undergraduates

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

 

Downloads (The Pendulum The Pendulum).  Download this Mathematica notebook.  

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2003