Here are the steps to solve for the transfer function G(s) = X2(s)/F(s) for the given system:
1. Draw the free body diagrams for both masses M1 and M2 showing all the forces acting on each mass.
2. Write the Newton's second law equation for M1:
(M1s2 + f1vs + k1)X1(s) - k2(X1(s) - X2(s)) = 0
3. Write the Newton's second law equation for M2:
-k2(X1(s) - X2(s)) + (M2s2 + f2vs + k