Step 1: Understanding the SHM System
When a mass \( M \) executes SHM with amplitude \( A_1 \), its energy is given by:
\[
E_1 = \frac{1}{2} M \omega^2 A_1^2
\]
When an additional mass \( m \) is attached, the new system's energy is:
\[
E_2 = \frac{1}{2} (M + m) \omega^2 A_2^2
\]
Step 2: Apply Energy Conservation
Since no external force acts on the system, mechanical energy is conserved:
\[
\frac{1}{2} M \omega^2 A_1^2 = \frac{1}{2} (M+m) \omega^2 A_2^2
\]
Solving for \( A_1/A_2 \),
\[
\frac{A_1}{A_2} = \sqrt{\frac{M+m}{M}}
\]