I wonder how to properly write the motion equations for the inverted pendulum on a cart in case of overdamped dynamics. Imagine the system illustrated in Wikipedia placed in a liquid with high viscosity $\beta$. I completely understand how the system with the fixed pendulum base behaves. Let's start from the equation for the classic inverted pendulum: $$ml^2 \ddot \theta - \beta \dot \theta + mgl\sin\theta=0.$$ High values of $\beta$ allow one to neglect the inertia term, so that $$- \beta \dot \theta + mgl\sin\theta = 0.$$
However, as a person who is intrinsically bad at physics, I am greatly confused about what effect the motion of the cart has on the dynamics. The derivations here are for the classic, non-overdamped case, I guess that here everything should be much simpler. Any help is appreciated.
Update: Probably the equations I ask about should take the simplest possible form in the frame of reference centered at the moving base of the pendulum.