If you have ever read advanced textbooks or papers about electronics, you may have been surprised to see the use of complex numbers used in the analysis of AC circuits. A complex number has two parts: ...
If you simulate circuits that include not only analog, but also digital or switching/PWM aspects, then you know that traditional “AC” or frequency-domain analysis cannot be used for these designs.