The torque ripple of an induction motor has strong harmonic interference, which causes stator current distortion. Stability control is always a difficult problem in this field. An optimal control method for the torque ripple of induction motors based on harmonic components is proposed. To address the instability and significant energy loss caused by torque ripple in induction motors, an optimization control method for torque ripple in induction motors based on harmonic components is studied and designed. On the basis of the induction motor model, according to the characteristics and generation principle of torque ripple, combined with controllable and uncontrollable parts of harmonic torque, the stator current harmonics are used to suppress torque harmonics and minimize torque ripple. For the purpose of to cancel the harmonic component of the output voltage, achieve digital output voltage filtering, reduce the harmonic component of the stator current, and achieve optimal control of the torque ripple of the induction motor, the resonant digital filter is simultaneously deployed at the controller's output. The test results showed that the maximum torque ripple value was 2 Nm and the minimum torque ripple value was 0.1 Nm, which can restrain the distortion of stator current to the greatest extent and reduce the harmonic content of torque. In summary, the optimization control method proposed in the study can effectively suppress harmonic interference, which has important practical implications for future harmonic research.