Two masses are connected by a string which passes over a pulley accelerating upward at a rate A shown. If be the accelerations of bodies I and 2 respectively then,
Since length of the string is constant. So,
Take second derivative of both sides twice w.r.t. time t,