Consider the free body diagram (FBD)
T1 and T2 are the tension at the two parts of the string N is normal force provided at the hinge. considering equation ΣFext = ma
m2g – T2 = m2a ……….. (1)
m1g – T1 = m1a ………. (2)
[Since the 2 masses are connected by string they have same displacement hence same acceleration]
R αpulley = a – (3)
(condition for rolling of pulley)
(T2 – T1) R = l αpulley = \(\frac{MR^2}{2}\) αpulley ………. (4)
from (3) and (4)
T2 – T1 = \(\frac {Ma}{2}\) ……….. (5)
from (1) and (2)
T2 = m2 (g – a)
and T1 = m1 (g + a)
∴ T2 – T1 = m2 (g – a) – m1 (g + a) = \(\frac {Ma}{2}\)
⇒ g(m2 – m1) = a [ \(\frac {M}{2}\)+ m1 + m2]