Step 1: Velocity at mean position.
At mean position, the velocity of the mass is maximum and given by
\[
v = \omega A_1
\]
where
\[
\omega = \sqrt{\frac{k}{M}}
\]
Step 2: Apply conservation of momentum.
When mass \(m\) is placed on \(M\), total mass becomes \(M+m\).
Using conservation of momentum at mean position,
\[
Mv = (M+m)v'
\]
Step 3: Relate new velocity and amplitude.
New angular frequency
\[
\omega' = \sqrt{\frac{k}{M+m}}
\]
and
\[
v' = \omega' A_2
\]
Step 4: Solve for amplitude ratio.
\[
M\omega A_1 = (M+m)\omega' A_2
\]
\[
\frac{A_1}{A_2} = \sqrt{\frac{M+m}{M}}
\]