Total charge -Q is uniformly spread along length of a ring of radius R. A small test charge +q of mass m is kept at the centre of the ring and is given a gentle push along the axis of the ring.

(a) Show that the particle executes a simple harmonic oscillation.

(b) Obtain its time period.

Let us draw the figure according to question,

A gentle push on q along the axis of the ring gives rise to the situation shown in the figure below.

Taking line elements of charge at A and B, having unit length, then charge on each elements.

dF=2(-Q2πR)q×14πε01r2cos θ

Total force on the charge q, due to entire ring

F=-QqπR(πR).14πε01r2.2r
F=-Qqz4πε0(Z2+R2)3/2

Here, Z<<R,

F=-Qqz4πε0R3=-Kz

where 

Qq4πε0R3=constant

F-Z

Clearly, force on q is proportional to negative of its displacement. Therefore, motion of q is simple harmonic.

ω=Km and T=2πω=2πmK
T=2πm4πε0R3Qq
T=2π4πε0mR3Qq