I require a clarification on some steps in the solution of the following problem.
Problem: The coefficient of static friction between two blocks shown in figure is μ and the table is smooth.What maximum horizontal force can be applied to the block of mass M so that the blocks move together? (M1=4kg, M2=5kg)
Acceleration of M1 is equal to frictional force only if x1 is a coordinate w.r.t the mass M2. x2 is a coordinate w.r.t some arbitrary origin. How can these two accelerations be equated?