The paper presents a PWM control system of a sinusoidal voltage using a single-phase inverter that comprises at the output a LC low-pass filter with resistive load. The PWM control strategy of a sinusoidal voltage and the optimization of the control loop via the modulus criterion, for step input signals, are presented. The steady-state error of the PWM control system is analyzed for sinusoidal input signal and methods for reducing the steady-state error by increasing the switching frequency and by adding an integral element series to the modulus criterion optimized controller are presented. If analyzed as a linear system, the addition of an integral element would make the system unstable, due to a double pole in the origin, but it is shown that by analyzing the system as a nonlinear system having an ideal relay-type nonlinearity, stability is preserved. Further, knowing that the steady-state error for sinusoidal input can be nullified by introducing a resonant element, a new utilization of a resonant element is proposed, namely its introduction instead of the integral element in the optimal transfer function according to the modulus criterion. The theoretical considerations are confirmed by simulation results.