Question
Question: Two masses m and M are attached with string, for the system to be in equilibrium we have 
Now from the figure on resoling along the y coordinate we will get,
∑Fx=0
Now we can write,
T1cos45∘−T2cos45∘=0
On further solving we will get,
2T2=2T1
⇒T2=T1……(2)
Now putting equation (1) in place of equation (2) we will get,
T1+T1=2mg
⇒2T1=2mg=2mg
Free body diagram of mass M,
Now from the figure on resoling along the y coordinate we will get,
∑Fy=0
Now we can write,
T3sinθ−(T1sin45∘+Mg)=0
On further solving we will get,
T3sinθ=(2T1+Mg)……(3)
Now from the figure on resoling along the y coordinate we will get,
∑Fx=0
Now we can write,
T3cosθ−T1cos45∘=0
On further solving we will get,
T3cosθ=T1cos45∘
⇒T3cosθ=2T1……(4)
Taking the ratio of equation (3) to (4) we will get,
T3cosθT3sinθ=2T1(2T1+Mg)
Cancelling the common term we will get,
tanθ=2T1(2T1+Mg)
Putting the value of T1 in the above equation we will get,
tanθ=2mg(2mg+Mg)
Cancelling the common term we will get,
tanθ=1+m2M
Note: Here we have used the free body diagram to solve the problem. Remember that the free body diagram is usually associated with the motion of a free body which is a pictorial device used by the physicist and the engineers so as to solve the problem easily and to analyze the problem.