I have a mechanical system and I need to model in differential equations
I tried to model the mass $M_1$ and got this
$m_1\displaystyle\frac{d^2\,x}{dt^2}=F-K_1(x_2 - x_1)-Ba_1\displaystyle\frac{dx}{dt}.$
$F$ is the force.
$K_1(x_2 - x_1)$ spring is multiplied by subtracting the distance of the spring and damper.
$Ba_1\displaystyle\frac{dx}{dt}$ is the force of the damper.
I don't understand how to model the mass on the right (D2). I tried, but I need help
$m_2\displaystyle\frac{d^2\,x}{dt^2}=-K_1(x_2 - x_1)-Ba_2\displaystyle\frac{dx}{dt} $.