Velocity is the rate of change of displacement. The expression for velocity can be obtained from the expression of acceleration.
Acceleration,
d2xdt2=dvdt=dvdx×dxdt
But, acceleration =v(dvdt)−−−−−(1)
But we know, d2xdt2=−ω2x----- (2)
From (1) and (2), vdvdx=−ω2x
∴vdv=−ω2x
Integrating both side, the above equation, we get
∫vdv=∫−ω2xdx=−ω2∫xdx
Hence, v22=−ω2k22+c
where C is the constant of integration. Now, to find the vaue of C, lets consider boundary value condition. When a particle performing SHM is at the extreme position, displacement of the particle is maximum and velocity is zero.
a is the amplitude of SHM.
Therefore, at x=±a,v=0
&0=−ω2a22+C
Hence,C=ω2a22
Substituting the value of C,
v22=−ω2x22+C
∴v22=−ω2x22+ω2a22v2=ω2(a2−x2)
Taking square root in both side, v=±ω√a2−x2