It is extremely difficult to inject a low-energy electron beam into a conventional radiofrequency (RF) linear ion trap for electron capture dissociation (ECD) without using a magnetic field to focus the electrons. In this study, the dynamic process of electrons in an RF field during their injection and transmission through a linear ion trap was simulated to determine the range of the RF phase where the electrons can be decelerated to meet the energy requirement for ECD. The ECD time window was expanded by applying a time-dependent compensation voltage to the cathode. The relationship between the cathode voltage and the phase of the RF voltage was determined. The ECD time window was increased to 49.4% of the total RF cycle after applying a compensation voltage. Between the phases of RF voltage of 0 and 0.975 π, at least 98.7% of electrons can be injected into the ECD reaction zone, and 94% of them had an energy less than 3 eV. The range of electron energy can also easily be shifted upward to enable hot electron capture dissociation.