Given:
Radius of the ring = r
So, circumference = 2πr
Charge density = λ,
Total charge, q = 2πr × λ
Distance of the point from the centre of the ring = x
Distance of the point from the surface of the ring,

Due to symmetry at point P, vertical component of electric field vanishes.
So, net electric field = Ecosθ
