Comparing the derivation of equation of motion for double pendulum by method of F=ma and by energy (Lagrangian) method

by Nasser M. Abbasi
May 11, 2011

The goal of this note is to show how to use a symbolic program to help solve a typical basic engineering problem that requires large amount of algebraic manipulation. By applying a CAS program such as Mathematica on such a problem, one can then concentrate more on the problem formulation itself by having the program do the long algebraic computation, which can be very time consuming if done by hand, and also can be error prone.

This also allows one to be able to experiment with different formulation, as one is now relieved from the time consuming part and is able to try different solutions and different idea, which can lead to better insight of the problem.

In this note, we solve the double pendulum problem both ways. One way is by using the energy method, and another way is by using F=ma approach. Both would require long time to do by hand due to the large amount of algebra involved. And at the end, both solutions are verified to be the same.

download   PDF  NOTEBOOK

system diagram

This diagram shows the velocity and acceleration components of the 2 masses in the double pendulum.

main_1.gif

Lagrangian solution

Write down the kinetic energy T

In[17]:=

main_2.gif

Out[18]=

main_3.gif

Write down the potential energy

In[19]:=

main_4.gif

Out[20]=

main_5.gif

Write down the Lagrangian L

In[21]:=

main_6.gif

Out[22]=

main_7.gif

Find equation of motion for θ

In[26]:=

main_8.gif

Out[28]=

main_9.gif

Find equation of motion for φ

In[29]:=

main_10.gif

Out[31]=

main_11.gif

decouple the above 2 equations

In[32]:=

main_12.gif

Out[33]=

main_13.gif

Out[34]=

main_14.gif

Numerically solve the 2 equations found above for θ(t) and φ(t), use some arbitrary parameters

In[38]:=

main_15.gif

Out[40]=

main_16.gif

Make plots of the solutions. Assume main_17.gif

In[41]:=

main_18.gif

Out[43]=

main_19.gif

F=ma solution

Write the free body diagram

main_20.gif

We have 4 unknowns main_21.gif

Write F=ma for forces radially along θ along for main_22.gif

main_23.gif

main_24.gif

Resolve forces perpendicular for main_25.gif

main_26.gif

main_27.gif

Write F=ma for forces radially along φ along for main_28.gif

main_29.gif

main_30.gif

Resolve forces perpendicular for main_31.gif

main_32.gif

main_33.gif

Solve the above 4 equestions

main_34.gif

main_35.gif

main_36.gif

main_37.gif

main_38.gif

We see that the solution from F=ma is the same as the solution obtained from Lagrange method.  To verify

main_39.gif

main_40.gif

main_41.gif

main_42.gif

We see from the above that the solutions are identical.

Spikey Created with Wolfram Mathematica 8.0