The elastic potential energy of a spring is given by:
![PE=(1)/(2)kx^2](https://img.qammunity.org/2023/formulas/physics/college/3hef2vd7wyu1olxmze9uyg073rb5z6hy0k.png)
Where:
![\begin{gathered} PE=\text{ potential energy} \\ k=\text{ spring constant} \\ x=\text{ distance of the spring is compressed} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/c7lfn3jiwm5ltw76h17jkrx615xsc9t1kh.png)
Now, the total energy of the spring is given when the value of "x" is equal to the amplitude "A":
![E_(tot)=(1)/(2)kA^2](https://img.qammunity.org/2023/formulas/physics/college/y87jvuvl6e9nz0ngsjchzqj38y8axl9xfz.png)
The total energy is converted into kinetic energy and elastic energy, therefore, we have:
![(1)/(2)kA^2=(1)/(2)kx^2+(1)/(2)mv^2](https://img.qammunity.org/2023/formulas/physics/college/it2n1pclstf8ez7o1loqit5gbcd95sk13w.png)
Since the kinetic energy is twice the potential energy we have:
![(1)/(2)mv^2=2((1)/(2)kx^2)=kx^2](https://img.qammunity.org/2023/formulas/physics/college/3tqp9z8bn0aj313mpsvj4l7jmn19rrtes6.png)
Now, we substitute the values in the equation:
![(1)/(2)kA^2=(1)/(2)kx^2+kx^2](https://img.qammunity.org/2023/formulas/physics/college/xilyd1y6rv2umn0dzlsel193k50sidcc4g.png)
Now, we can cancel out the spring constant "k":
![(1)/(2)A^2=(1)/(2)x^2+x^2](https://img.qammunity.org/2023/formulas/physics/college/kjetpz9hijh07vqkaghvu1g37tmfm2y1me.png)
Now, we add like terms in the right side:
![(1)/(2)A^2=(3)/(2)x^2](https://img.qammunity.org/2023/formulas/physics/college/ll0a4npm0jtmfez21c7faico0n2ntyjxhb.png)
Now, we multiply both sides by 2:
![A^2=3x^2](https://img.qammunity.org/2023/formulas/physics/college/7ypfpt656qt0k1kk1omljeboklfcf2qw29.png)
Now, we divide both sides by 3:
![(A^2)/(3)=x^2](https://img.qammunity.org/2023/formulas/physics/college/bkdw66qc4k3yor8gz005amu4yirdbaht6p.png)
Now, we take the square root to both sides:
![\sqrt{(A^2)/(3)}=x](https://img.qammunity.org/2023/formulas/physics/college/ftu0mcy1u256qvs8x3h8zd32a7bi0rg5fp.png)
Solving the operations:
![\pm0.5A=x](https://img.qammunity.org/2023/formulas/physics/college/nllnhkk2wymhiwrpujpetq6a3h7icxqrnv.png)
Therefore, the distance is 0.5A.