The field of a charged rod

To find the field of a spread-out charge, cut it into pieces small enough to be point charges, write each piece's field, let symmetry cancel the components that cancel, and integrate the rest along the rod.

From AP Physics C: Electricity and Magnetism.