Find the amplitude and initial phase of a particle in SHM