Applying the equations of motion for pulleys and blocks
For m1 : T−m1g=m1a1........(i)
For m2 : m2g−T=m2a2.......(ii)
For pulley P1: 2T−T=0×ap1......(iii)
For pulley P2 : T2−2t=0×ap2
From Eq (iii), T=0; from (iv), T2=0, and from (i) and (ii), a1=−g also a2=g. Hence, blocks m1 and m2 both will move down with acceleration g downward direction.
Calculating ap1 and ap2
Constraint relations : consider the reference line and the position vectors of the pulleys and masses. Write the length of the rope in terms of position vectors and differentiate it to obtain the relations between accelerations of the masses and pulleys.
∙ For the length of the string connecting P2 and m2 not to change and for this rope not to slacken, ap2=a2=g.
∙ Length of the string connecting
p1 to m1 not to change and for this rope not to slacken:
l=(x1−xp1)+xp1+(xp2−xp1)+xp2
=x1−xp1+xp2
Differentiationg this equation w.r.t. t twice, we get
d2ldt2=d2x1dr2−d2ap1dt22+2d2xp3dt2⇒0=a1−ap1−2ap2
⇒ 0=g−ap1+2g⇒ap1=3g