Electromagnetic waves of different frequencies penetrate formations at different depths, so the frequency component of the transmitted waveform determines the detection range of electromagnetic exploration. The selective harmonic elimination pulse width modulation technology was originally used for harmonic elimination. In this paper, SHEPWM is used for harmonic enhancement and the control of harmonics. In addition, the current SHEPWM technology mostly uses various heuristic algorithms, which are not ideal for solving higher-order nonlinear equations. This paper uses the third-order convergence arithmetic mean Newton iteration method to solve the nonlinear equations. The number of solving nonlinear equations can reach 41, and the controllable energy ratio can reach 40% to 50%. Finally, the amplitude and phase of each frequency component of the current waveform can be controlled, which provides a reference for the SHEPWM technology to enhance harmonics.