Mathematical analysis of PWM processes