The velocity of the particle executing SHM at any instant of time is given by
v=Aωcosωt=ω√A2−y2
The acceleration of the particle executing SHM is given by
a=dvdt=−Aω2sinωt=−ω2y
where ω - angular frequency, A - amplitude, y - displacement of particle from its mean position in time t .