Due to given distribution charge dq of an elemenr dl of the ring, equals to dq=Qdl/2πR;
then dE(r )=dq/(4πεr^2), where r^2=R^2 +x^2 and cosθ=x/(R^2+x^2)^1/2.
At any point P along х-axis (center of the ring as origin) you have Y and X components of the vector E.
Due to symmetry sum of Y components gives zero.
Thus, you need to consider only x component dEx=cosθdE.
Then after integration for E(r )=Qx/[4πε(R^2 +x^2)^3/2]

Abbas F.
The field INSIDE of the ring is the question, NOT along the rings axis. I would suggest the Youtube video at https://www.youtube.com/watch?v=BF3wEV4tWq8 for full details.08/19/21