By examining the conjugate infinitesimal on the other side of the origin, we see that the horizontal components of the two contributions will balance. We need only consider the vertical contribution to the electric field by each infinitesimal charge.