# Time/Frequency Domain Representation of Signals

Electrical signals have both time and frequency domain representations. In the time domain, voltage or current is expressed as a function of time as illustrated in Figure 1. Most people are relatively comfortable with time domain representations of signals. Signals measured on an oscilloscope are displayed in the time domain and digital information is often conveyed by a voltage as a function of time.

Figure 1. Time domain representation of an electrical signal.

Signals can also be represented by a magnitude and phase as a function of frequency. Signals that repeat periodically in time are represented by a power spectrum as illustrated in Figure 2. Signals that are time limited (i.e. are only non-zero for a finite time) are represented by an energy spectrum as illustrated in Figure 3.

Figure 2. Power spectrum of a periodic signal.

Figure 3. Energy spectrum of a time-limited (transient) signal.

Frequency domain representations are particularly useful when analyzing linear systems. EMC and signal integrity engineers must be able to work with signals represented in both the time and frequency domains. Signal sources and interference are often defined in the time domain. However, system behavior and signal transformations are more convenient and intuitive when working in the frequency domain.

## Linear Systems

Linear system theory plays a key role in the engineering analysis of electrical and mechanical systems. Engineers model a wide variety of things including circuit behavior, signal propagation, coupling and radiation as linear transformations. Therefore, it is important to review exactly what we mean by a linear system so that we recognize how and when to take advantage of the powerful linear system analysis tools available to us.

Fig. 4 illustrates a system with one input, x(t), and one output, y(t)=H[x(t)]. If an input, x1(t) produces an output y1(t), and an input x2(t) produces an output y2(t), then the system is a linear system if and only if,

$a{y}_{1}\left(t\right)+b{y}_{2}\left(t\right)=H\left[a{x}_{1}\left(t\right)+b{x}_{2}\left(t\right)\right]$ (1)

where a and b are constants. In other words, scaling the input by a constant will produce an output scaled by the same constant; and combining (summing) two inputs will produce an output that is the sum of the outputs produced by the individual inputs.

Figure 4: A linear system.

### Quiz Question

Which of the following equations describes the relationship between the output y(t) and the input x(t) of a linear system?

1. y=5x
2. y(t)=0
3. y=8x+3
4. y=x2
5. y(t)=5t x(t)
6. y=sin x
7. y(t)=5 δ/δt [x(t)]

Of the choices above, only a, b and g are linear system transformations. y=0 is not a very interesting system, because its output is always zero, but it is linear. Simple derivative and integral operators are linear, because they satisfy the conditions in Equation (1). The remaining choices are not linear operations. Note that y=8x+3 is the equation of a straight line, but it does not describe a linear system because it has a non-zero output when there is no input.

## Frequency Domain Analysis of Linear Systems

Linear systems have the unique property that any sinusoidal input will produce a sinusoidal output at exactly the same frequency. In other words if the input is of the form,

$x\left(t\right)={A}_{in}\mathrm{cos}\left({\omega }_{0}t+{\phi }_{in}\right)$. (2)

then the output will have the form,

$y\left(t\right)={A}_{out}\mathrm{cos}\left({\omega }_{0}t+{\phi }_{out}\right)$. (3)

In general, the magnitude and phase of the sinusoidal signal may change, but the frequency must be constant. This provides us with a very powerful analysis tool for analyzing linear systems. If we represent an input signal as the sum of its components in the frequency domain, then we can express the output as a simple scaling of the magnitudes and shifting of the phases of these components.

### Phasor Notation

To facilitate the analysis of linear system responses to sinusoidal inputs, it is convenient to represent signals in an abbreviated form known as phasor notation. Consider an input of the form,

$x\left(t\right)=A\mathrm{cos}\left(\omega t+\phi \right)$. (4)

This can be represented as,

$\begin{array}{c}x\left(t\right)=\mathrm{Re}\left\{A{e}^{j\left(\omega t+\phi \right)}\right\}\\ =A\cdot \mathrm{Re}\left\{{e}^{j\omega t}{e}^{j\phi }\right\}\end{array}$. (5)

where Re{• } indicates the real part of a complex quantity. Recognizing that the frequency ω will be the same throughout the system, we don't need to specifically write the term ejωt as long as we remember that it's there. The same applies to the Re{• } notation. This allows us to express a sinusoidal signal simply in terms of its magnitude and phase as,

$x=A{e}^{j\varphi }\text{ }or\text{ }A\angle \varphi$. (6)

The expression in (6) is the signal in (4) expressed using phasor notation. Note that we must know the frequency of a signal in order to covert from phasor notation to the time domain representation.

### Quiz Question

Write the following signals using phasor notation:

1. x(t) = 5 cos(wt) volts
2. y(t)=5 sin(wt) amps
3. z(t) = 5t sin(wt) volts

The first signal expressed in phasor notation is simply x = 5 volts. To obtain the phasor notation for the second signal, we recognize that sin(ωt) = cos(ωt + π/2) so y = 5ej(π/2). The third signal is not a sinusoid and therefore cannot be expressed using phasor notation.

### Fourier Series

Of course many of the inputs to linear systems we would like to analyze are not sinusoidal. In this case, it is desirable to represent more arbitrary signal waveforms as a sum of sinusoidal frequency components. We then analyze each component individually and apply the concept of superposition to reconstruct the output signal.

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\left(t\right)=\sum _{n=-\infty }^{\infty }{c}_{n}{e}^{jn2\pi {f}_{0}t}$ (7a)

where

${c}_{n}=\frac{1}{T}{\int }_{{t}_{0}}^{{t}_{0}+T}x\left(t\right){e}^{-jn2\pi {f}_{0}t}dt$. (7b)

If x(t) is a real time domain signal, the coefficients cn and c-n are complex conjugates (i.e. ) and we can rewrite Equation (7) in the form,

$\begin{array}{l}x\left(t\right)={c}_{0}+\sum _{n=1}^{\infty }\left({c}_{n}{e}^{jn2\pi {f}_{0}t}+{c}_{n}^{\ast }{e}^{-jn2\pi {f}_{0}t}\right)\\ ={c}_{0}+\sum _{n=1}^{\infty }\left(|{c}_{n}|{e}^{jn2\pi {f}_{0}t+{\varphi }_{n}}+|{c}_{n}|{e}^{-\left(jn2\pi {f}_{0}t+{\varphi }_{n}\right)}\right)\\ ={c}_{0}+\sum _{n=1}^{\infty }2|{c}_{n}|\mathrm{cos}\left(n2\pi {f}_{0}t+{\varphi }_{n}\right)\end{array}$. (8)

In this form, we see that the Fourier series coefficients consist of a DC component, c0, and positive harmonic frequencies, nω0 (n = 1,2,3, …). This is a one-sided Fourier series and the coefficients, , correspond to the amplitudes of the frequency harmonics that would be measured using a spectrum analyzer.

A few periodic signals and their frequency domain representations are illustrated in Figure 5. 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 generally have finite power. The total power in the time domain signal,

${P}_{total}=\frac{1}{T}{\int }_{{t}_{0}}^{{t}_{0}+T}{x}^{2}\left(t\right)\text{\hspace{0.17em}}dt$. (9)

is equal to the sum of the power in each frequency domain component,

${P}_{total}=\sum _{n=-\infty }^{\infty }{|{c}_{n}|}^{2}$. (10)

Figure 5. Periodic signals in the time and frequency domain.

### Example 1: Frequency Domain Representation of a Pulse Train

Determine the frequency domain representation for the pulse train shown in Figure 6.

Figure 6: A pulse train.

In the time domain this signal is described by the following formula:

$x\left(t\right)=\left\{\begin{array}{cc}1\text{\hspace{0.17em}}v& nT. (E1)

The coefficients of the Fourier series are then calculated using Equation (7b) as,

$\begin{array}{l}{c}_{n}=\frac{1}{T}{\int }_{0}^{T}x\left(t\right)\text{\hspace{0.17em}}{e}^{-jn2\pi {f}_{0}t}dt\\ =\frac{1}{T}{\int }_{0}^{\tau }\left(A\right)\text{\hspace{0.17em}}{e}^{-jn2\pi t/T}dt\\ =\frac{A}{T}{\int }_{0}^{\tau }{e}^{-jn2\pi t/T}\text{\hspace{0.17em}}dt\\ =\frac{A\tau }{T}\left[\frac{\mathrm{sin}\left(n\pi \tau }{T}\right)}{\left(n\pi \tau }{T}\right)}\right]{e}^{-j\left(n\pi \tau }{T}\right)}\end{array}$. (E2)

Note that as $\tau \to 0$, our time domain signal looks like an impulse train and the amplitudes of all the harmonics approach the same value. As $\tau \to T/2$, the signal becomes a square wave and the magnitude of the harmonics becomes,

${c}_{n}=\frac{A}{2}|\frac{\mathrm{sin}\left(n\pi }{2}\right)}{\left(n\pi }{2}\right)}||{e}^{-j\left(n\pi }{2}\right)}|=\left\{\begin{array}{cc}\frac{A}{n\pi }& n=±1,±3,±5\cdots \\ 0& n=±2,±4,±6\cdots \end{array}$. (E3)

In this case, the amplitude of the even harmonics is zero and the odd harmonics decrease linearly with frequency (n).

### 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\left(f\right)={\int }_{-\infty }^{\infty }x\left(t\right)\text{\hspace{0.17em}}{e}^{-j2\pi f\text{​}t}dt$. (11)

The inverse Fourier transform can be used to convert the frequency domain representation of a signal back to the time domain,

$x\left(t\right)=\frac{1}{2\pi }{\int }_{-\infty }^{\infty }X\left(f\right)\text{\hspace{0.17em}}{e}^{j2\pi f\text{​}t}df$. (12)

Some transient time domain signals and their Fourier transforms are illustrated in Figure 7.

Figure 7. Transient signals in the time and frequency domain.

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={\int }_{-\infty }^{\infty }{x}^{2}\left(t\right)\text{\hspace{0.17em}}dt$. (13)

This must equal the total energy in the frequency domain representation of the signal,

$E={{\int }_{-\infty }^{\infty }|X\left(f\right)|}^{2}\text{\hspace{0.17em}}df$. (14)

## Frequency Domain Representation of a Trapezoidal Signal

Let's examine the frequency domain representation of the periodic trapezoidal waveform illustrated in Figure 8. Examining the behavior of this waveform helps us to gain insight into the relationship between time and frequency domain representations in general. Also, the similarity between the trapezoidal waveform and common digital signal waveforms will be useful when we investigate EMC or signal integrity problems with digital systems.

Figure 8. A trapezoidal waveform.

Using the one-sided Fourier series, Equations (7b) and (8), we can represent this signal as the sum of its frequency components [1],

$x\left(t\right)={c}_{0}+\sum _{n=1}^{\infty }2|{c}_{n}|\mathrm{cos}\left(n\text{​}\text{​}\text{​}2\pi {f}_{0}\text{​}t+{\varphi }_{n}\right)$. (15)

where

$2|{c}_{n}|=\frac{2A\tau }{T}|\frac{\mathrm{sin}\left(n\pi \tau }{T}\right)}{\left(n\pi \tau }{T}\right)}||\frac{\mathrm{sin}\left(n\pi {t}_{r}}{T}\right)}{\left(n\pi {t}_{r}}{T}\right)}|$. (16)

Equation (16) can be derived by noting that the trapezoidal waveform in Figure 7 can be obtained by convolving the pulse train in Figure 9 with another pulse train whose pulses have a width, tr, and an amplitude A/tr. Convolution in the time domain is equivalent to multiplication in the frequency domain, so we can simply multiply the two frequency domain representations of these pulse trains to obtain Equation (16).

Each term, 2|cn|, is the amplitude of the nth harmonic. If we assume that tr<<T, we note that the third term is approximately equal to for the lower harmonics. If $\tau =T}{2}$ (i.e. a 50% duty cycle), then the numerator of the second term is 1 for the harmonics (n = 1,3,5,…) and 0 for the even harmonics (n = 2,4,6,…). The amplitude of the lower harmonics is then inversely proportional to n (i.e. the amplitude of the lower harmonics decreases proportional to the frequency). At higher harmonics, the third term also begins to decrease proportional to frequency, so the overall amplitude of the upper harmonics decreases on average at a rate proportional to the square of the frequency. This frequency representation of a trapezoidal signal $\left(\tau =T}{2},\text{\hspace{0.17em}}{t}_{r}\ll T\right)$ and its envelope are illustrated in Figure 9.

Figure 9: Frequency Domain representation of a trapezoidal signal

### Example 2: Harmonics of a Trapezoidal Signal

The waveform shown in Figure 10 below is measured on an oscilloscope in the lab. The rise and fall times are 0.8 ns.

a.) What is the fundamental frequency?

b.) Calculate the amplitudes of the harmonics at 50 MHz, 150 MHz, 250 MHz and 1.55 GHz.

If the rise and fall times are increased to 1.6 nanoseconds, then by how many dB will the harmonics at 50 MHz, 150 MHz, 250 MHz and 550 MHz be reduced?

Figure 10. Trapezoidal waveform for Example 2.

Noting that the period is 20 nsec, the fundamental frequency is easily determined to be ${f}_{0}=\frac{1}{T}=\frac{1}{2×{10}^{-8}}=50\text{\hspace{0.17em}}\text{MHz}$. Therefore we are being asked to determine the amplitudes of the 1st, 3rd, 5th and 11th harmonics. Applying Equation (16) for n = 1,3,5 and 11 we get the amplitudes of these harmonics,

$\begin{array}{l}2|{c}_{1}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(1\pi \left(10\right)}{20}\right)}{\left(1\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(1\pi \left(0.8\right)}{20}\right)}{\left(1\pi \left(0.8\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.64\right)\left(1.00\right)=0.64\text{\hspace{0.17em}}v\\ 2|{c}_{3}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(3\pi \left(10\right)}{20}\right)}{\left(3\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(3\pi \left(0.8\right)}{20}\right)}{\left(3\pi \left(0.8\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.21\right)\left(0.98\right)=0.21\text{\hspace{0.17em}}v\\ 2|{c}_{5}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(5\pi \left(10\right)}{20}\right)}{\left(5\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(5\pi \left(0.8\right)}{20}\right)}{\left(5\pi \left(0.8\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.13\right)\left(0.94\right)=0.12\text{\hspace{0.17em}}v\\ 2|{c}_{11}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(11\pi \left(10\right)}{20}\right)}{\left(11\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(11\pi \left(0.8\right)}{20}\right)}{\left(11\pi \left(0.8\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.06\right)\left(0.71\right)=0.04\text{\hspace{0.17em}}v\end{array}$.

None of these harmonics are significantly affected by the risetime. They have virtually the same amplitude that they would have had if the risetime had been zero. Increasing the risetime to 1.6 ns however, significantly affects the amplitude of the upper harmonics,

$\begin{array}{l}2|{c}_{1}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(1\pi \left(10\right)}{20}\right)}{\left(1\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(1\pi \left(1.6\right)}{20}\right)}{\left(1\pi \left(1.6\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.64\right)\left(.99\right)=0.63\text{\hspace{0.17em}}v\\ 2|{c}_{3}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(3\pi \left(10\right)}{20}\right)}{\left(3\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(3\pi \left(1.6\right)}{20}\right)}{\left(3\pi \left(1.6\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.21\right)\left(0.91\right)=0.19\text{\hspace{0.17em}}v\\ 2|{c}_{5}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(5\pi \left(10\right)}{20}\right)}{\left(5\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(5\pi \left(1.6\right)}{20}\right)}{\left(5\pi \left(1.6\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.13\right)\left(0.76\right)=0.10\text{\hspace{0.17em}}v\\ 2|{c}_{11}|=\frac{2\left(1\text{\hspace{0.17em}}v\right)}{2}|\frac{\mathrm{sin}\left(11\pi \left(10\right)}{20}\right)}{\left(11\pi \left(10\right)}{20}\right)}||\frac{\mathrm{sin}\left(11\pi \left(1.6\right)}{20}\right)}{\left(11\pi \left(1.6\right)}{20}\right)}|=\left(1\text{\hspace{0.17em}}v\right)\left(0.06\right)\left(0.13\right)=0.008\text{\hspace{0.17em}}v\end{array}$.

Doubling the risetime from 0.8 to 1.6 ns reduces the first harmonic by only $20\mathrm{log}\left(.64}{.63}\right)=0.14\text{\hspace{0.17em}}\text{dB}$. The third harmonic is reduced by $20\mathrm{log}\left(.21}{.19}\right)=0.87\text{\hspace{0.17em}}\text{dB}$. The fifth harmonic is reduced by $20\mathrm{log}\left(.12}{.10}\right)=1.6\text{\hspace{0.17em}}\text{dB}$, while the eleventh harmonic is reduced by $20\mathrm{log}\left(0.04}{0.008}\right)=14\text{\hspace{0.17em}}\text{dB}$.

Note that changing the risetime can have a significant effect on the amplitude of the upper harmonics without changing the time domain representation of the signal significantly. Radiated EMI or crosstalk problems at the upper harmonic frequencies of a digital signal can often be solved by increasing the risetime of the digital signal waveform. Generally, a risetime that is equal to 10% of a bit length or more will still produce a very good digital signal while significantly limiting the amplitude of a signal at frequencies above the 10th harmonic.