a weight of mass m is attached to a spring and oscillates with simple harmonic motion. By Hooke's Law, the vertical displacement, y(t) satisfies the differential equation dy/dt=sqrt(k/m)*sqrt(A^2-y^2)
where A(Fixed) is the maximum displacement and k is a constant, solve this differential equation by separation of variables, assuming that y(0)=0.