Charge q is uniformly distributed over a thin half ring of radius R. The electric field at the centre of the ring is
Electric field at centre due to di, is
We need to consider only the component dE cos as the component dE sin will cancel out because of the field at C due to the symmetrical element dl'.