The Fourier Series
Of course, many of the inputs to linear systems that we would like to analyze are not sinusoidal. In this case, it is desirable to represent time-domain signal waveforms as a sum of sinusoidal frequency components. In the frequency domain, each component can be analyzed individually. The frequency-domain system outputs can then be summed and converted back to the time domain.
A periodic signal can be represented as a sum of its frequency components by calculating its Fourier series coefficients. A periodic signal with period T can be written
x(t) = ∑n=-∞∞ cnej2πnf0t (4.7a)
where f0 = 1/T and
cn = ∫T x(t)e-j2πnf0t dt. (4.7b)
If x(t) is a real time-domain signal, the coefficients cn and c-n are complex conjugates (i.e., cn = c-n*) and we can rewrite Eq. (4.7a) in the form,
x(t) = c0 + 2∑n=1∞ |cn| cos(2πnf0t + ∠cn) (4.8)
The Fourier series coefficients in this form consist of a DC component, c0, and positive harmonic frequencies, n2πf0 (n = 1, 2, 3, …). This is the one-sided Fourier series and the coefficients, 2|cn|, represent the peak value of each harmonic. Dividing the peak value by √2 yields the root-mean-square (rms) value. Signal harmonics measured with a spectrum analyzer or EMI test receiver are the rms values of the one-sided Fourier Series coefficients. In other words, the amplitude of each measured harmonic is √2|cn|.
The frequency-domain representation of a periodic signal is a line spectrum. It can only have non-zero values at DC, the fundamental frequency, and harmonics of the fundamental. Because periodic signals have no beginning or end, non-zero periodic signals have infinite energy but finite power. The total power in the time-domain signal,
P = limT→∞ 1⁄T ∫-T/2T/2 |x(t)|2 dt (4.9)
is equal to the sum of the power in each frequency-domain component,
P = |c0|2 + 2∑n=1∞ |cn|2. (4.10)
A few periodic signals and their frequency-domain representations are illustrated in Figure 4.5.

The Fourier Transform
Transient signals (i.e., signals that start and end at specific times) can also be represented in the frequency domain using the Fourier transform. The Fourier transform representation of a transient signal, x(t), is given by,
X(f) = ∫-∞∞ x(t)e-j2πft dt (4.11)
The inverse Fourier transform can be used to convert the frequency-domain representation of a signal back to the time domain,
x(t) = ∫-∞∞ X(f)ej2πft df (4.12)
Two transient time-domain signals and their Fourier transforms are illustrated in Figure 4.6.

Note that transient signals have zero average power, when averaged over all time, but they have finite energy. The total energy in a transient time-domain signal is given by,
E = ∫-∞∞ |x(t)|2 dt (4.13)
This must equal the total energy in the frequency-domain representation of the signal,
E = ∫-∞∞ |X(f)|2 df (4.14)