Question
Two masses m1 and m2 are attached with massless, flexible and inextensible string and passed over a pulley (frictionless). Find the acceleration of masses and tension in the string.
Solution
Weight of mass m1 is greater than the mass m2.
Let these two masses m1 and m2 be attached with massless, flexible and inextensible string and passed over the pulley.

Let these two masses m1 and m2 be attached with massless, flexible and inextensible string and passed over the pulley.

Let 'T' be the tension in the string and 'a' be the acceleration of mass m1 and m2.
Equations of motion of masses m1 and m2 are,
...(1)
...(2)
Solving (1) and (2), we get
Acceleration of the masses is given by,
and
Tension in the string is,