induction motor speed control using pwm technique

hello everyone

i m trying to write algorithm for the " speed control of induction motor using PWM technique".
can anyone please help me out in this.

Thanks in advance

Single phase or three phase?

To control the speed of an induction motor, you would normally use a variable frequency drive. This is not the same as PWM.