The field of a charged ring and rod

To find the field of charge spread along an object, cut it into pieces $dq$, write the field of each as a point charge's, and integrate the components, letting symmetry cancel the ones that pair off.

From Physics 2.