I am trying to understand a rigid multibody model of a Woodpecker toy (see figure below). Now I am not going to go into details about the model or justify this approach, I am just trying to understand the equations of motion for the woodpecker during different stages of its path down the road. More specifically I am trying to understand how they are derived: Is it through the Lagrangian? The Hamiltonian? Or Newtonian mechanics? (The last one is most likely).
For the record, the Woodpecker toy consists of a rod (static) on which a sleeve (ring) is connected. The sleeve is then connected to the Woodpecker body joined by a spring.
The equation(s) of motion for the two stages of the Woodpecker toy are (using this model):
Eq. I : ($\theta$ is the only degree of freedom (DOF))
$$(I_2+m_2b^2)\ddot{\theta}=-c\theta+m_2bg_{gr}\tag{1}$$
Eq. II : (two DOF, vertical motion $z$ included)
$$(I_2+m_2b^2(1-\frac{m_2}{m_1+m_2}))\ddot{\theta}=-c\theta\tag{2}$$ $$(m_1+m_2)\ddot{z}+m_2b\ddot{\theta}=(m_1+m_2)g_{gr}\tag{3}$$
Now, the first equation corresponds to the Woodpecker being jammed (not moving vertically), thus only DOF is $\theta$. The equation is easily derived from the law of angular momentum: $$\frac{dL}{dt}=I\boldsymbol\alpha+2rp_{||}\boldsymbol\omega.$$ Since it is planar motion it reduces to one equation (the equation above).
The second equation corresponds to the Woodpecker (free) falling. It moves in vertical direction as well as rotates. We have two (coupled) equations for this motion, but how are they derived exactly? I recognize the first equation $(2)$ as the Law of angular momentum, but inside it there is this new factor/coefficient $(1-\frac{m_2}{m_1+m_2})$, that I believe comes from the motion of the sleeve. But why this term exactly? I cannot see the connection. Equation $(3)$ is Newton's second law, but why is there an angular acceleration component in there? How was this equation derived?
Edit: Follow up question linked to this: https://physics.stackexchange.com/q/459443/