To compile a differential equation of movement, you can use the principle of Dalalamber, stating that any moving mass T can be considered as located alone, you only need to apply all the active forces and the power of inertia, equal to the work of the mass to accelerate and directed to the side, reverse acceleration.