The longitudinal resonance of waves and energetic electrons in the Earth's magnetosphere, and the possible role this resonance may play in generating various magnetospheric phenomena are studied. The derivation of time-averaged nonlinear equations of motion for energetic particles longitudinally resonant with a whistler mode wave propagating with nonzero wave normal is considered. It is shown that the wave magnetic forces can be neglected at lower particle pitch angles, while they become equal to or larger than the wave electric forces for alpha 20 deg. The time-averaged equations of motion were used in test particle simulation which were done for a wide range of wave amplitudes, wave normals, particle pitch angles, particle parallel velocities, and in an inhomogeneous medium such as the magnetosphere. It was found that there are two classes of particles, trapped and untrapped, and that the scattering and energy exchange for those two groups exhibit significantly different behavior.