Regulating the electric power sent to an electric motor is a task performed by high-speed switching transistors inside a motor…