This paper describes the mathematical modeling of a Single Phase Shunt Active Power Filter using two methods; first using switching functions and second by states space averaged. The circuital analysis was discussed and the results obtained by the two paths were evaluated.