This report shows how to determine the equations of motion for a rigid bar pendulum (also called
a physical pendulum) on a moving cart as shown in the following diagram. This is done using both
Newton’s method and the energy (Lagrangian) method.
It is useful to solve the same problem whenever possible using both methods as this helps verify
the results and also adds more understanding to the physics involved.
There are two degrees of freedom. The \(x\) coordinate and the \(\theta \) coordinate. Hence there are two
equations of motion, one for each coordinate.
2 Newton’s Method
The first step is to make a free body diagram (FBD). One for the cart and one for the physical
pendulum and equate each FBD to the kinematics diagrams in order to write down the equations
of motion.
2.1 FBD for cart
Equation of motion along the positive \(x\) direction is
Equation of motion along positive \(y\) is not
needed since cart does not move in the vertical direction. We see that to find the equation of
motion for \(\ddot {x}\) we just need to determine \(P_{x}\), since that is the only unknown in (1). \(P_{x}\) will be found from
the physical pendulum equation as is shown below.
2.2 FBD for pendulum
We see now that the equation of motion along the positive \(x\) is
The above is the equation of motion for \(\ddot {x}\).
To find the equation of motion for \(\ddot {\theta }\) we apply \(\tau =I_{cg}\ddot {\theta }\), (equivalent to \(F=ma\) for linear motion) where \(\tau \) is the
torque.
When taking moments to find the torque, we should always take moments around the center of
mass of the rotating body, even though the pendulum is hinged at one of its ends and it is actually
rotating about that hinge ofcourse. If we take moments around the hinge instead of center of mass,
then we need to account for the inertia forces due to motion of cart around center of mass of the
rigid pendulum which complicates the equations. By taking moments around center of mass, these
forces do not account, since their moments is now zero. Using counter clock wise as positive
gives
Notice the minus sign on \(-I_{cg}\ddot {\theta }\). This is because we choose the pendulum to be rotating clockwise which
is negative. Therefore \(\tau =I_{cg}\ddot {\theta }\) is
We already know \(P_{x}\) from Eq. (2). We know need to find \(P_{y}\). This is found from resolving forces in the
vertical direction for the pendulum free body diagram. Therefore
The above is the required equation of motion for \(\ddot {\theta }\). Equations (3,6) are coupled and have
to be solved numerically since they are nonlinear. Another option is to use small angle
approximation to linearize them in order to simplify these two equations and to solve them
analytically.
3 Lagrange (Energy) method
The first step in using Lagrange method is to make a velocity diagram to each object. These
diagrams are given below
From the velocity diagram above we see that the kinetic energy of the system is
Where \(\frac {1}{2}M\dot {x}^{2}\) is
K.E. of the cart due to its linear motion, and \(\frac {1}{2}mv^{2}\) is K.E. of physical pendulum due to its
translation linear motion of its center of mass, and \(\frac {1}{2}I_{cg}\dot {\theta }^{2}\) is K.E. of physical pendulum due to its
rotational motion. Now the velocity \(v\) of the center of mass of the physical pendulum is
determined
Taking zero potential energy \(V\) as the horizontal level where the pendulum is attached to the cart,
then P.E. comes from only spring extension and the change of vertical position of center of mass of
pendulum. Hence P.E. is
There are two degrees of freedom: \(x\) and \(\theta \). The generalized force in \(x\) direction is \(Q_{x}=F-c\dot {x}\) and the generalized
force for \(\theta \) is \(Q_{\theta }=0\). Equation of motions are now found. For \(x\)