tension in rope with mass and acceleration