An electric motor is an electromechanical device that converts electrical energy into mechanical energy. Basically, there are three types of…