Before solving this system, note that the rigid bars $\mathrm{\overline{OA}}$ and $\mathrm{\overline{OB}}$ are rotating about point $\mathrm{O}$, not their respective CGs. To account for this two methods are available.
- Use the mass moments of inertia of the rigid bars $\mathrm{\overline{OA}}$ and $\mathrm{\overline{OB}}$ about hinge $\mathrm{O}$, which can be obtained using parallel axis theorem. We will use this method when deriving equations of motion using Lagrange's equation.
$$I_{O} = I_{CG} + M d^{2}$$
- Use the mass moments of inertia of the rigid bars $\mathrm{\overline{OA}}$ and $\mathrm{\overline{OB}}$ about their respective CGs and account for the moments of normal and tangential forces developed due to rotation. Since the line of action of normal force (AKA centripetal force given by $\mathrm{m r \dot{\theta}^{2}}$) passes through axis of rotation, its moment is zero by definition and only the moment of the tangential force $\mathrm{m r \ddot{\theta}}$) needs to be determined. We will use this approach when deriving equation of motion using Newton's second law.
To derive the equation of motion, we will only use moment balance about point $\mathrm{O}$. Since we have already seen that the moments due to normal forces is zero, and the moment of hinge reaction is also zero, we will not show them on the free-body diagram.
Moment due to $\mathrm{\dfrac{m a \ddot{\theta}}{2}}$ acting on CG of $\mathrm{\overline{OA}}$: $\mathrm{\dfrac{m a \ddot{\theta}}{2} \times \dfrac{a}{2} = \dfrac{m a^{2} \ddot{\theta}}{4}}$
Moment due to $\mathrm{\dfrac{m a \ddot{\theta}}{2}}$ acting on CG of $\mathrm{\overline{OB}}$: $\mathrm{\dfrac{m a \ddot{\theta}}{2} \times \dfrac{a}{2} = \dfrac{m a^{2} \ddot{\theta}}{4}}$
Moment due to $\mathrm{m a \ddot{\theta}}$ acting on point mass $\mathrm{M}$: $\mathrm{M a \ddot{\theta}\times a = M a^{2} \ddot{\theta}}$
Moment due to weight $\mathrm{mg}$ of $\mathrm{\overline{OA}}$: $\mathrm{\dfrac{a}{2} \cos \theta \times m g}$
Moment due to weight $\mathrm{mg}$ of $\mathrm{\overline{OB}}$: $\mathrm{\dfrac{a}{2} \sin \theta \times m g}$
Moment due to weight $\mathrm{Mg}$ of point mass $\mathrm{M}$: $\mathrm{a \sin \theta \times M g}$
Moment due to spring force $\mathrm{K a \sin \theta}$: $\mathrm{-K a \theta \times a}$
Once the moment of all applied and inertial forces have been determined, the final step is to apply Newton's second law for rotation about hinge $\mathrm{O}$.
$$ \left( J_{CG} \right)_{OA} \ddot{\theta} + \left( J_{CG} \right)_{OB} \ddot{\theta} + \left( J_{CG} \right)_{M} \ddot{\theta} + \dfrac{m a^{2} \ddot{\theta}}{4} + \dfrac{m a^{2} \ddot{\theta}}{4} + M a^{2} \ddot{\theta} = \dfrac{a}{2} \cos \theta \times m g + \dfrac{a}{2} \sin \theta \times m g + a \sin \theta \times M g - K a \theta \times a $$
Substituting $\mathrm{\left( J_{CG} \right)_{OA} = \left( J_{CG} \right)_{OB} = \dfrac{ma^2}{12}}$ and $\mathrm{\left( J_{CG} \right)_{M} = 0}$ and simplifying gives
$$ \left(\dfrac{2}{3} m a^{2} + M a^{2} \right) \ddot{\theta} + K a^{2} \theta = \dfrac{m g a}{2} \left( \sin \theta + \cos \theta \right) + M g a \sin \theta $$
Next we will derive the same equation of motion using Lagrange's equation.
As discussed earlier, in this section, we will use mass moments of inertia about hinge $\mathrm{O}$. Using parallel axis theorem, the mass moments of inertia of rigid bars $\mathrm{\overline{OA}}$ and $\mathrm{\overline{OB}}$ about hinge $\mathrm{O}$ are equal and given by $\mathrm{\dfrac{m a^{2}}{12} + \dfrac{m a^2}{4} = \dfrac{m a^2}{3}}$. The mass moment of inertia of point mass $\mathrm{M}$ about hinge $\mathrm{O}$ is given by $\mathrm{M a^{2}}$.
$$ T = \dfrac{1}{3} m a^{2} \dot{\theta}^{2} + \dfrac{1}{2} M a^{2} \dot{\theta}^{2} $$
The centre line of bar $\mathrm{\overline{OA}}$ marks the datum for zero potential energy. As a result of positive rotation of the system, all three components fall down in gravity field. So, their potential energy will be negative.
$$ U_{g} = -m g \dfrac{a \sin \theta}{2} - m g \dfrac{a \left( 1 - \cos \theta \right)}{2} - M g a \left( 1 - \cos \theta \right) $$
The elastic potential energy of the system is given by
$$ U = -m g \dfrac{a \sin \theta}{2} - m g \dfrac{a \left( 1 - \cos \theta \right)}{2} - M g a \left( 1 - \cos \theta \right) + \dfrac{1}{2} K \left( a \theta \right)^2 $$
Evaluating the terms in Lagrange equation:
$$ \dfrac{d}{d t} \left( \dfrac{\partial T}{\partial \dot{q}_{1}} \right) = \dfrac{2}{3} m a^{2} \ddot{\theta} + M a^2 \ddot{\theta} \\\\$$
$$ \dfrac{\partial T}{\partial q_{1}} = 0 \\ $$
$$ \dfrac{\partial U}{\partial q_{1}} = -\dfrac{m g a}{2} \cos \theta - \dfrac{m g a}{2} \sin \theta - M g a \sin \theta + K a^{2} \theta $$
with $\mathrm{q_{1} = \theta}$. Substituting values in to the Lagrange's equation gives
$$ \dfrac{2}{3} m a^{2} \ddot{\theta} + M a^2 \ddot{\theta} - \dfrac{m g a}{2} \cos \theta - \dfrac{m g a}{2} \sin \theta - M g a \sin \theta + K a^{2} \theta = 0 $$
Re-arranging the above equation gives the same equation of motion already derived earlier.
$$ \left( \dfrac{2}{3} m a^{2} + M a^2 \right) \ddot{\theta} + K a^{2} \theta = \dfrac{m g a}{2} \left( \cos \theta + \sin \theta \right) + M g a \sin \theta $$
Assuming large rotations, are these derivations correct?