0% found this document useful (0 votes)
16 views46 pages

Fourier Transforms: Transmitter Output X (T) X (T) Input

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 46

Fourier Transforms HTE - 19.06.

2013

1. Basic Introduction

In its simplest form, a communication system consists of three blocks, transmitter, communication
channel, receiver as shown in Fig. 1.1.

x(t) xr ( t )
Communication Receiver
Transmitter channel
Input Output

One way communication system

Receiver Communication Transmitter


channel

Two way communication system

Fig. 1.1 Block diagram of a simple communication system.

As seen from Fig. 1.1, it is possible to have one way or two way communication system depending on
the whether the system incorporates only transmitter or receiver or both simultaneously. For instance,
the radio that we listen to or the TV that we watch (including the transmitters on the other side)
represent one way communication system, whereas telephone networks are two way communications
systems. Examples of communication channels are atmosphere, cables etc.

In a communication system, the following functions may be performed ;

a) Bandlimiting
b) Digitizing
c) Encoding
d) Encryption
e) Multiplexing
f) Modulation
g) RF amplification
h) Channel adaptation
i) Multi access arrangement

In this course we will mainly concentrate on multiplexing and modulation.

For a system (including communication system) we model the input and output as depicted in Fig. 1.2.

ECE 373 - HTE Haziran 2013 Sayfa 1


Input Communication Output
system
x(t) y(t)

X(f)
h(t),H(f),H() Y(f)

X() Y( )
t : time variable
f : frequency variable
 : angular frequency variable

Fig. 1.2 The block diagram illustrating the modelling of communication system.

The notation used in Fig. 1.2 is as follows

x t  : Input signal in time domain, input time signal, input time waveform
X  f  : Input signal in frequency domain (frequency spectrum of input signal)
X   : Input signal in angular frequency domain,   2 f
h t  : Response of communication system in time domain (time response of a system)
H  f  : Response of communication system in frequency domain
Transfer function (Magnitude and phase responses)
H   : Response of communication system in angular frequency domain
y t  : Output signal in time domain, output time signal, output time waveform
Y  f  : Output signal in frequency domain (frequency spectrum of output signal)
Y   : Output signal in angular frequency domain (1.1)

In this course, we will rarely use the angular frequency variable  and its associated functions. For the
group of functions shown in Fig. 1.2 and (1.1), the following relation holds

Y  f  X  f H  f  (1.2)

which means that the output (in frequency domain) can be obtained from the multiplication of input
signal (in frequency domain) and the response of the system (in frequency domain). Note that the
corresponding relation of (1.2) in time domain is convolution integral, i.e.,
 

y t    x   h t   d   x t   h   d (1.3)
 

Thus the following is not valid

ECE 373 - HTE Haziran 2013 Sayfa 2


y t   x t  h t  (1.4)

Looking at (1.2), we see that if the input signal is given as x t  or the response of the system is given
as h t  , then to benefit from (1.2), we need Fourier transform operation, which, for a given x t  , can
be expressed as

X  f   x t  exp  j 2 ft  dt (1.5)


In short (1.5) can be written as

X  f   F  x t  , F : Fourier Transform (FT) Operator (1.6)

(1.5) has important implications. They can be listed as

a) The integral over time is performed from minus infinity to plus infinity so as to include all
behaviours of x t  along time axis.
b) The exponential function exp  j 2 ft  contains the time variable t ,as well as the frequency
variable f , in this manner enabling the transformation from time domain to frequency
domain (also the reverse)
c) The absolute value of the exponential is unity, i.e., exp  j 2 ft   1 . This way, Fourier
transform (and the inverse) applies no scaling during transformation. Thus we expect the
energy or the power of a signal for instance to be the same, whether we take the time or
frequency domain expression of the signal.

It is also possible to define the inverse Fourier transform, as shown below


x t    X  f  exp  j 2 ft  df (1.7)


Or in short notation

x t   F -1  X  f  , F -1 : Inverse Fourier Transform (IFT) Operator (1.8)

If x t  and X  f  form a Fourier transform pair, then it is customary to denote them in the following
symbolic form.

x t 
 Xf
F
(1.9)
-1F

Graphically, (1.9) is plotted in Fig. 1.3.

ECE 373 - HTE Haziran 2013 Sayfa 3


x(t)
X(f)

t f
0 0

F-1

Fig. 1.3 Typical plots for x t  and X  f  .

The appearance in Fig. 1.3 implies that we use the positive as well the negative side of the frequency
axis.

From (1.2) and (1.3), it is clear that in order to find the output of a system, we need to go between
time and frequency domains. In this, we also need to introduce the concepts and topics such as delta
(impulse) function, unit step function, convolution, periodic and aperiodic functions.

2. Delta (Impulse) Function

A time delta function, has theoretically an existence only at the value that make its time argument
zero, its duration goes to zero, its amplitude goes to infinity, while the area underneath remains fixed
at unity. Mathematically expressed, this means

Time delta function



  t  dt  1 (2.1)


The Fourier transform of time delta function becomes


  t  exp  j 2 ft  dt  1 (2.2)


We regard the mathematical operation in (2.2) as inserting t  0 in exp  j 2 ft  , thus


exp  j 2 ft  0  1 and taking this result outside. Looking at (2.2) from inverse Fourier transform
point of view, we can write

 1 exp  j 2 ft  df   t  (2.3)


ECE 373 - HTE Haziran 2013 Sayfa 4


Since in (2.3), the sign in the argument of the exponential can be inverted, additionally the time and
the frequency variables are interchangable, we get

  f    x t  exp  j 2 ft  dt , x t   1 (2.4)


The results of (2.2), (2.3) and (2.4) are graphically displayed in Fig. 2.1.

x(t) X(f)
1
(t) F  
F-1
0
t f
0
x(t) X(f)

  (f)


1 F F-1

t f
0 0

Fig. 2.1 The graphical intepretations of (2.2) to (2.4).

As can be seen from (2.2) and the right upper plot in Fig. 2.1, the time delta function is able to generate
all frequencies of the frequency domain, hence a time delta function can be used to assess the impulse
response of a system. On the other hand, the lower plots of Fig. 2.1 refer to the Fourier transform of a
DC signal in time domain and the inverse. As seen here, the Fourier transform of a DC signal is   f  ,
i.e. a delta function at f  0 , this result is in perfect agreement with physical reality.

It is possible to envisage time delayed or advance versions of the delta function as stated below.

 t  : Delta function in existence at t  0, Delta function with zero delay


 t  t0  : Delta function in existence at t  t0 , time delayed delta function
 t  t0  : Delta function in existence at t  t0 , time advanced delta function (2.5)

The delta functions of (2.5) are plotted in Fig. 2.2.

By replacing the exp  j 2 ft  in (2.2) with a general function of x t  applying the rule of evaluation
explained underneath, we can write

  t  x t  dt  x t  0 (2.6)


ECE 373 - HTE Haziran 2013 Sayfa 5


Further considering the delayed version of the delta function, we can transform (2.6) into

x      t   x t  dt (2.7)


Note that (2.7) forms the basis of finding the time impulse response of a system.

x(t)
Time advanced Time delayed
delta function delta function

Delta function
with zero delay
 ( t + t0 )  ( t - t0 )
(t)

t
t = - t0 0 t = t0

Fig. 2.2 Time delayed, time advanced delta functions and delta function with zero time delay.

Finally in this section, we state the Fourier transforms of the delta functions with time delay or with
time advance

  t  t0  exp  j 2 ft  dt  exp  j 2 ft0 




  t  t0  exp  j 2 ft  dt  exp  j 2 ft0  (2.8)




Hence a time delay or time advance is reflected into the frequency domain as phase delay, since

exp  j 2 ft0   exp  j 2 ft0   1 (2.9)

The result in (2.9) is no different from (2.2) in terms of magnitude.

3. Unit Step Function

Unit step function is mathematically defined as

1 for t  0
u t    (3.1)
0 for t  0

Hence its graphical representation will be as given in Fig. 3.1.

ECE 373 - HTE Haziran 2013 Sayfa 6


u(t)

1 

 t
0 t
-t t=0

Fig. 3.1 Graphical representation of unit step function.

Physically unit step function can be visualized as a DC power source being switched on at time,

t  0 (disregarding the transients if there is any).

Other forms of unit step function can be envisaged. These are illustrated in Fig. 3.2.

u(-t) u(t-T)
1 1

0
t t
0 T
0
Au ( t ) t
A
-u(t)
0 1
t

Fig. 3.2 Different forms of unit step function.

The individual unit step function plots of Fig. 3.2 can be expressed mathematically as


1 for t  0 
1 for t  T
u t   
 , u t  T   


0
 for t  0 
0
 for t  T
A
 for t  0 
1 for t  0
Au t   
 ,  u t   
 (3.2)


0 for t  0 

0 for t  0

ECE 373 - HTE Haziran 2013 Sayfa 7


Again, we may associate the unit step functions of (3.2) to the following physical objects (or their
behavious)

u t  : A DC power supply which has been on from time t  , is switched off at t  0
u t  T  : A DC power supply that has been on at t  T
Au t  : A DC power supply that gives an output of amptiude, A
u t  : A DC power supply that gives an negative output (3.3)

It is possible to retrieve a rectangular function (pulse or window function) from the difference of two
unit step functions as shown in Fig. 3.3.

x(t)
Au ( t )
A

 T
t
0 T t 0
Rectangular function

-Au ( t - T )
Two unit step functions

Fig. 3.3 Retrieving a rectangular function from two unit step functions.

From Fig. 3.3, we can write

x t   A u t   u t  T 
or

A for 0  t  T
x t   
 (3.4)


0 elsewhere

From the second line of (3.4), we understand that unit step function also serve to confine time
functions between certain intervals. In this sense, there is no need to specify time interval of existence
for x t  of the first line of (3.4).

Exercise 3.1 : a) From Fig. 3.1, we see that the unit step function u t  consist of three distinct parts.
The first part is the zero (constant) prior to t  0 . The second part is at t  0 , where a rapid transition
is made from zero to an unity amplitude. Final part is where the function remains constant at unity for
t  0 . Considering this property, write the derivative and plot the derivative of the rectangular
function given in (3.4).

ECE 373 - HTE Haziran 2013 Sayfa 8


b) Plot u t  T  with respect to u t  and associate it to a physical object like done in (3.3)

Now we attempt to evaluate the Fourier transform of the unit step function using (1.5)
 

U  f    u t  exp  j 2 ft  dt   1 exp  j 2 ft  dt
 0

 ?
exp  j 2 ft  exp  j 2 ft  

1
   (3.5)
j 2 f 0
j 2 f j 2 f

The ambiguity in term on the second line of (3.5), marked with a ? is resolved by rigrous analysis, to
get

f 1
U  f   F u t    (3.6)
2 j 2 f

Plotting (3.6), we obtain the graph in Fig. 3.4.

U(f)

0.5 ( f )

-0.5j / f

Fig. 3.4 The graph of the Fourier transform of unit step function.

The result in (3.6) and the plot in Fig. 3.4 can be interpreted in terms of Fig. 3.1 as follows ;

a) Considering the time range   t   , we see from Fig. 3.1 that u t  spends half of its
time, that is   t  0 at zero amplitude, the other half, that is 0  t   at unity
amplitude. The amplitude coefficient of   f  (DC) being 0.5 is therefore is reasonable.
1
b) can be associated with the rapid transition (rise) at t  0
j 2 f

The pictorial representation of the above interpretations is displayed in Fig. 3.5.

ECE 373 - HTE Haziran 2013 Sayfa 9


u(t)

0.5 ( f )

 1

-0.5j /  f

 t
0 t
-t t=0

Fig. 3.5 The temporal parts of the unit step function giving rise to its Fourier transform.

Note that the Fourier transform of time delayed unit step function can be worked out benefiting from
(2.9) and from (3.5), thus
 

F u t  T    u t  T  exp  j 2 ft  dt   1 exp  j 2 ft  dt


 T

exp  j 2 ft    f  exp  j 2 fT 

   (3.7)
j 2 f T
2 j 2 f

Finally in this section, we evaluate the Fourier transform of rectangular function given (3.4). We do this
again using (1.5), so

 

X  f    x t  exp  j 2 ft  dt  A  u t   u t  T  exp  j 2 ft  dt


 

exp  j 2 ft 
T
T
A 
 A exp  j 2 ft  dt  A  1 exp  j 2 fT 
0 j 2 f 0
j 2 f 
sin  a 
 AT exp  j fT sinc  fT  , sinc  a  (3.8)
a

The sinc of X  f  found in (3.8) is often encountered in communications. As seen it is the result of a
time limited rectangular function or pulse. The absolute value of X  f  found in (3.8) is plotted in Fig.
3.6.

Exercise 3.2 : Plot the phase (the argument) part of X  f  found in (3.8) against f .

ECE 373 - HTE Haziran 2013 Sayfa 10


x(t) |X (f)|
AT

A
F

t -2 / T 2/T
4/T
0 T -4 / T

 
f
-3 / T -1 / T 1/T 3/T
0

Fig. 3.6 Time rectangular pulse and its Fourier transform.

4. Convolution

In the context of the communication system displayed in Fig. 1.2,convolution (in time domain) allows
us to work and write for the output directly in terms of time domain functions. This way, the
requirement to use Fourier transforms seems to be relaxed. The relevant integral and symbolic
representations are

 

y t    x   h t   d   x t   h   d
 

y t   x t   h t  : Symbolic representation (4.1)

Note that in (4.1)  is a dummy time variable to retrieve the output in the required variable of t . As
will be demonstrated later, convolution is a sliding process of one of the two function inside the
convolution integrand against t .

It is quite common to define the time convolution as

If Y  f   X  f  H  f  and x t   F-1  X  f  , h t   F-1  H  f 


Then y t   x t   h t  (4.2)

which means that multiplication in frequency domain corresponds to convolution in time domain.

Note that convolution is not restricted to time axis, for instance a convolution integral as a frequency
domain expression would be

Y  f   X  f1  H  f  f1  df1 (4.3)


ECE 373 - HTE Haziran 2013 Sayfa 11


It is quite interesting to examine the (time) convolution integral of (4.1), when the input is a (time)
delta function, i.e., x t    t  , in this case using (2.7), we get

 

y t     t   h   d      h t   d  h t  (4.4)
 

The implication of (4.4) is that, if a system is given a delta function as input, the at the output, we get
the impulse response of that system. This is reasonable, since as noted from (2.2) and Fig. 2.1, the time
delta function is able to excite all frequencies.

Now, we wish to talk about the time dilemma associated with the entry of a signal to a system. Fig 4.1
depicts such a situation, where the time signal is oriented in direction exactly as we plot is in our
graphs.

x(t)
Past Future

System
t

0
t =0 t1 = T t = 2T t = 3T t = 4T t = 5T
0 2 3 4 5

Fig. 4.1 Illustration of the orientation of signal entry into a system, as plotted in graphs.

Looking at Fig. 4.1, it is easy to identify that something is something wrong and strange. That is with
the selection of the direction for the time axis of x t  , we have the following order amoung the time
quantities of Fig. 4.1

t0  t1  t2  t3  t4  t5 (4.5)

(4.5) means that along time axis, that t0 is the earliest, t1 is the next and so on, while t5 is the latest.
In other words, for instance t1 is future with respect to t0 . We know that in order to be in line with
physical reality, the x t  of Fig. 4.1 should enter the system with earliest part of the signal first, then
the latest part of the signal last. The way to prevent and correct the wrong entry in Fig. 4.1 is displayed
in Fig. 4.2.

ECE 373 - HTE Haziran 2013 Sayfa 12


x(-t)

System
t

0
t5 = - 5T t = - 4T t = - 3T t2 = - 2T t =-T t =0
4 3 1 0

Fig. 4.2 The illustration of signal entry into a system in the correct way.

As seen from Fig. 4.2, the correct entry is established by inverting the signal along time axis, i.e. setting
the input to x t  , instead of x t  . This explains the significance of the minus sign in front of  in
the argument of x t   or h t   . Note that in mathematical sense, inverting the input or the
system is equivalent.

Example 4. 1 : Now we do a long example to help better comprehension of the above topics. To the
simple RC network drawn in Fig. 4.3, we apply a rectangular pulse, we are asked to find the output via
two methods

A. Using Fourier transforms


B. Using (time) convolution integrals

x(t) Input Output

R
A

x(t) y(t)
)

C
t Vin ( f ) i Vout ( f )

0 T

h(t),H(f)

Network , System

Fig. 4.3 The RC network of Example 4.1.

ECE 373 - HTE Haziran 2013 Sayfa 13


Solution : A. Solution using Fourier transforms : We treat the given network as a system and define
input, output, system response, like done in Fig. 1.2. This way, by defining a loop current in the
direction shown and taking the ratio of output (voltage) to input (voltage), we get

Vout  f  i 1/  j 2 fC  1
H  f    (4.6)
Vin  f  iR  i /  j 2 fC  1 j 2 fRC

From (4.6), the magnitude and phase response of H  f  in (4.6), which are H  f  and arg  H  f 
can be found as follows

1 1 1
Hf    , fc 
1   2 fRC   2 0.5
1   f / f   2 0.5
2 RC
   c

f
arg  H  f     f    tan 1   (4.7)
 f c 

The quantities of (4.7) are plotted in Fig. 4.4.

|H(f)|
Magnitude response 1

0
/2 arg [ H ( f ) ]

f
0
Phase response
- / 2

Fig. 4.4 The plots of magnitude and phase response of the network given in Fig. 4.3.

It is clear from (4.7) and Frig. 4.4 that the network of Fig. 4.3 represents a low pass filter.

In order to express the output in Fig. 4.3 in the manner of (1.2), i.e., Y  f   X  f  H  f  we take
X  f  from the middle line of (3.8), thus

f f
X   H 
A  1
Y  f  X  f H  f  1 exp  j 2 fT  (4.8)
j 2 f  1  j 2 fRC

It is possible to transform Y  f  in (4.8) into

ECE 373 - HTE Haziran 2013 Sayfa 14


f f
X   H 
A  1
Y  f  X  f H  f  1 exp  j 2 fT 
j 2 f 1  j 2 fRC
A A exp  j 2 fT 
 
j 2 f 1  j 2 fRC  j 2 f 1  j 2 fRC 
 
f f
Y  Y
1 2

 1 RC  
 A 1  RC   exp  j 2 fT 
 A  (4.9)
 j 2 f 1  j 2 fRC   j 2 f 1  j 2 fRC 

Taking into account (3.6) and (3.7), we can take the inverse Fourier transform of (4.9) and get

y t   F -1 Y  f   F -1 Y1  f   Y2  f   y1 t   y2 t 


   F -1 Y2 f   y2 t
   
F Y  f   y t 
 
 
-1
1 1

 Au t  1 exp t / RC   Au t  T 1 exp t  T  / RC  


   (4.10)

Exercise 4.1 : Prove the steps from the last line of (4.9) to the second line of (4.10).

Before plotting y t  , the output of the network given in Fig. 4.3, it is possible to make a number of
observations regarding the result shown in (4.10)

a) The output consist of two parts, the first part, y1 t  contains u t  , thus starts at t  0 , while
the second part, y2 t  contains u t  T  , thus starts at t  T
b) y1 t  is applicable in the time interval t  0 , while y2 t  is applicable in the time interval
t T
c) The output is zero (or nonexistent) prior to t  0 , which is reasonable, since the input x t  ,
starts at t  0 .

The output, y t  is plotted in Fig. 4. 5 for different ratios of T / RC

ECE 373 - HTE Haziran 2013 Sayfa 15


x(t) A
Input

t
0 T
y(t)
T / RC >> 1
A
T / RC = 1
0.6321A
T / RC << 1
Output

t
0 T

Fig. 4.5 The output of the RC low pass filter of Fig. 4.3 against the input of rectangular pulse at three
different ratios of T / RC .

Viewed along time axis, the physical interpretations related to Fig. 4.5 are

a) When T / RC  1 or T  RC , then the time constant, i.e. RC is much smaller the


rectangular pulse duration, then the capacitor C charges rapidly and the output reaches the
amplitude level of A is reached much earlier than t  T . After t  T , similar to the rapid
charge, the capacitor discharges rapidly again and the output approaches the zero amplitude
level.
b) When T / RC  1 , the capacitor is charged only partially with the rising edge of the input at
t  T , then with falling edge of the input, t  T , the output approaches zero at a slower rate
than the case of T / RC  1
c) When T / RC  1 , the capacitor is hardly charged, after the falling edge of input, it takes quite
a time for the output to reach the amplitude level of zero.

Note that due to the use of unit step functions in (4.10), no time interval are separately defined, since
they are embedded into unit step functions. It is possible to remove unit step functions and rewrite
(4.10) as follows

0 for t  0

 
y t    A 1 exp t / RC  for 0  t  T (4.11)

 A exp t  T  / RC  1 exp T / RC  for t  T
   

B. Solution Using (time) convolution integrals : We use (1.3) and (4.2), to write the output of the
network in Fig. 4.3, directly as
 

y t    x   h t   d   x t   h   d (4.12)
 

ECE 373 - HTE Haziran 2013 Sayfa 16


In (4.12), the input x t  is known from (3.4), but we need to find the impulse response, i.e., h t  .
This can be done by following the development in (4.9), thus we get

 1  u t 
h t   F -1  H  f   F -1   exp t / RC  (4.13)
1  j 2 fRC  RC

Then (4.12) will become

y t    x t   h   d


A 
  u t    u t   T  u   exp  / RC  d
RC  
A 
  u t    u t   T  exp  / RC  d
RC 0 
(4.14)

It is best to solve the convolution integral in (4.14) graphically. Initially we show in Fig. 4.6 the details
of how to obtain x t   from x t  .

x(t) x() x ( - ) x(t-)

A A A A

t
t   
0 T 0 T -T t-T t
0 0

Fig. 4.6 Steps of obtaining x t   from x t  .

Note that in Fig. 4.6, t is a variable making x t   slide along the negative and positive sides of the
 axis. The one marked in Fig. 4.6 corresponds to the case of t being negative.

In Fig. 4.7, we illustrate the actual convolution integral phases of (4.14).

ECE 373 - HTE Haziran 2013 Sayfa 17


when t < 0 x(t-) when 0 < t < T
A

when t > T

increasing (sliding) t

t-T

t-T t 0 t t-T t

h()
1 / RC

Partial overlap
Reagions of overlap

Full overlap


0

Fig. 4.7 The phases of convolution integral of (4.14).

From Fig. 4.7, the convolution integral can be solved in three steps (or rather two steps)

a) When t  0 , there is no overlap between x t   and h   , hence

y t t 0   x t   h   d  0 (4.15)


b) When 0  t  T , there is partial overlap, hence

 t

y t 0t T   x t   h   d   x t   h   d
 0

A t

  exp  / RC  d  A 1 exp t / RC 


RC 0
(4.16)

c) When t  T , there is full overlap, hence

 t

y t t T   x t   h   d   x t   h   d
 t T

A t
  exp  / RC  d  A 1 exp T / RC  exp t  T  / RC 
RC t T
(4.17)

Collecting the results obtained in (4.15) to (4.17), we get

 y t  for t  0 0 for t  0


 t 0 

  
y t    y t 0t T for 0  t  T  A 1 exp t / RC  for 0  t  T (4.18)
 
 y t  for t  T  A exp t  T  / RC  1 exp T / RC  for t  T
 t T    

which is the same as (4.11).

ECE 373 - HTE Haziran 2013 Sayfa 18


Example 4.2 : Now by taking the rectangular input and high pass filter of Fig. 4.8, find the output via
two methods

A. Using Fourier transforms


B. Using (time) convolution integrals

x(t) Input Output


C
A

x(t) y(t)

)
Vin ( f ) i R
t Vout ( f )

0 T

h(t),H(f)

Network , System

Fig. 4. 8 The high pass RC network of Exercise 4.2.

Solution : Similar to (4.6), by defining a loop current in the high pass filter of Fig. 4.2, we write

Vout  f  iR j 2 fRC


H  f    (4.19)
Vin  f  iR  i /  j 2 fC  1  j 2 fRC

(4.19) means that H  f  of high pass filter can be written in terms of H  f  of low pass filter as

H high pass  f   j 2 fRCH low pass  f  (4.20)

On the other hand, we know from the properties of Fourier transforms that

d d 
x t   F -1  j 2 fX  f  or F  x t   j 2 fX  f  (4.21)
dt  dt 

Applying (4.21) to (4.20) and using (4.13), we get the impulse response of the RC high pass filter as

 j 2 fRC  d  u t  
h t   F -1    RC  exp t / RC 
1  j 2 fRC  dt  RC 

u t 
  t   exp t / RC  (4.22)
RC

Bearing in mind that the Fourier transform expression of input (rectangular pulse) remains the same,
then the same can be applied to the lower line of (4.10) to obtain

ECE 373 - HTE Haziran 2013 Sayfa 19


y t   ARC
d
dt

u t  1 exp t / RC   u t  T 1  exp t  T  / RC   
 A u t  exp t / RC   u t  T  exp t  T  / RC   (4.23)

y t  in (4.23) is plotted in Fig. 4.9.

T
x(t) A
Input
t
0
y(t) T / RC << 1
A

T / RC = 1
Output
0.3679A

t
0 T

T / RC >> 1

Fig. 4.9 The output of the RC high pass filter of Fig. 4.8 against the input of rectangular pulse at three
different ratios of T / RC .

Exercise 4.2 : By taking the rectangular input and high pass filter of Fig. 4.8, find the output via (time)
convolution integrals.

5. Fourier Transform of Time Continuous Periodic Signals

The input signal that is used for Exercises 4.1. and 4.2 is time limited (time discontinuous), and its
frequency spectrum is continuous as illustrated on the right hand side of Fig. 3.6. The use of (1.5) to
arrive at the Fourier transform for time continuous signals causes a problem, since

For time continuous signal  x t  dt 




Hence X  f    x t  exp  j 2 ft  dt  (5.1)




We alleviate this problem (for time continuous periodic signals), by the use of Fourier series. For every
periodic signal, we assume that a Fourier series expansion exists such that

x t    cn exp  j 2 nf 0t  (5.2)
n 

cn s are the Fourier coefficient to be determined from

ECE 373 - HTE Haziran 2013 Sayfa 20


T0 / 2
1
cn   x t  exp  j 2 nf 0t  dt
T0 T / 2
(5.3)
0

In (5.2) and (5.3), f0 is the (fundamental) frequency in x t  , and T0  1/ f 0 is the associated period.
Note that once a Fourier series representation of a time continuous signal then a term by term Fourier
transform of the exponentials in (5.2) can be implemented using (2.4) such that
 

 cn exp  j 2 nf 0 t  exp  j 2 ft  dt  cn  exp  j 2  f  nf 0 t   cn  f  nf 0  (5.4)


 

Example 4.2 : Given an x t  of

x t   cos 2 f 0t  for   t   (5.5)

Find the Fourier transform this x t  via the use of Fourier series formulations supplied in (5.2) and
(5.3).

Solution : By writing the cosine waveform of (5.5) in terms of the exponentials, we get

1
x t   cos 2 f 0t   exp  j 2 f 0 t   exp  j 2 f 0t  (5.6)
2

Thus from (5.3), the Fourier series coefficients will become

1 T /2 
 exp  j 2 f 0t   exp  j 2 f0t  exp  j 2 nf 0t  dt
0

cn 
2T0 T / 2 
0

 exp  j 2 f 0 1 n t   exp  j 2 f 0 1  nt   dt


T0 / 2
1
 (5.7)
2T0 T / 20

The integration in (5.7) evaluates to zero except at n   1 , in which case

T0 / 2
T0 / 2
1 t 1
c1  
2T0 T / 2
dt 
2T0

2
(5.8)
0 T0 / 2

By using the result delivered in (5.8), we can write the Fourier series representation of the cosine
function given in (5.5) as

c1 c
 1

1 1
x t   cos 2 f 0t    cn exp  j 2 nf 0t   exp  j 2 f 0t   exp  j 2 f 0t  (5.9)
n  2 2

Note that this results was already known when writing (5.6).

It is clear that if x t  was taken as a sine function, then

ECE 373 - HTE Haziran 2013 Sayfa 21


c c
1 1

1 1
x t   sin 2 f 0t    cn exp  j 2 nf 0t   exp  j 2 f 0t   exp  j 2 f 0t  (5.10)
n  2j 2j

From (5.9) and (5.10), we can find the Fourier transform of cosine and sine waveforms using (5.4),
thus

1
X c  f   F  xc t   F  cos 2 f 0 t     f  f 0     f  f 0 
2
j
X s  f   F  xs t   F sin 2 f 0t     f  f 0     f  f 0  (5.11)
2

The time waveforms and the frequency transforms of cosine and sine signals are drawn in Fig. 5.1.

Xc ( f )
x (t) 0.5 ( f + f ) 0.5 ( f - f )
0
c 0

cosine signal F

t
0 f
  f=-f
0
0 f=f
0

Xs ( f )
0.5 ( f + f )
0
x (t)
s
F
 f=f
0
0 f
t f=-f 0
0

sine signal 

- 0.5 ( f - f )
0

Fig. 5.1 Time waveform and the frequency spectrums of continuous cosine and sine signals.

I n Fig. 5.1, it is assumed that X s  f  is rotated by  / 2 . Because of the simplicity of appearance in


the spectrums of cosine and sine signals, they are used as carriers in communications and also serve
as building blocks for more complex signals. Together with the exponential, exp  j 2 f 0 t  ,
cos 2 f 0t  and sin 2 f 0t  constitute what is known as sinusoidal signals.

It is important to realize that a time limited (thus nonperiodic) sinusoidal signal is quite different from
the time continuous signals discussed above. For clarification, a time limited (thus nonperiodic) cosine
signal and a time unlimited (continuous) signal are plotted together in Fig. 5.2.

ECE 373 - HTE Haziran 2013 Sayfa 22


x (t)
1
t=-t
time limited (discontinuous) cosine signal 1
t= t
1

t
0

time unlimited (continuous) cosine signal x (t)


2

 
t
0

T
0

Fig. 5.2 Plots for time limited (discontinuous) and time unlimited (continuous) cosine signals
(waveforms).

The signals of Fig. 5.2 are mathematically defined by placing a time range directly or by another
function as shown below.

cos 2 f 0t  for  t1  t  t1


 cos 2 f 0t  for 0  t  t1
x1 t   
  

0 0
 elsewhere  elsewhere
1 for 0  t  t1
 x t  cos  2 f 0t  , x t   
0 elsewhere

 u t  t1   u t  t1  cos 2 f 0t 
x2 t   cos 2 f 0t  for   t   (5.12)

As seen from (5.12) , when time range is defined by unit step functions, there is no need to write it
additionally. It is also customary to assume that the time function is unlimited in time if no time range
is placed across. We also use the dots to indicate that the function continues from minus infinity to
plus infinity as marked in Fig. 5.2.

Exercise 5.1 : Find and plot the Fourier transform of x1 t  given in (5.12), also plotted on the first line
of Fig. 5.2.

Hint : You can use the symbolic tool box facility of Matlab for this. For instance to find the integral of
cos 2 f 0t  from t  0 up to t  t1 , type the followings on the command window

>> syms f0 t t1

>> int(cos(2*pi*f0*t),t,0,t1)

To get the answer

ans =
ECE 373 - HTE Haziran 2013 Sayfa 23
sin(2*pi*f0*t1)/(2*pi*f0)

Now we turn to a more complicated case of periodic rectangular function whose time waveform is
shown in Fig. 5.3.

Periodic rectangular function

x(t)
T

A
-T / 2 T /2
0 0

 
t
-T - T / 2 -T + T / 2 -T / 2 T/2 T -T/2 T +T/2
0 0 0 0 0

T
0

Fig. 5.3 Time periodic rectangular function.

From Fig. 5.2, it is possible to write the mathematical expression of x t  as


A for  T / 2  nT0  t  T / 2  nT0
x t   
 , n  2, 1, 0, 1, 2  (5.13)


0 elsewhere

The Fourier coefficients of the rectangular function given in Fig. 5.3 and (5.13) can be evaluated using
(5.3), hence

T0 / 2
1 1 T /2
cn    
T0 T / 2
x t exp  j 2 nf 0 
t dt   A exp  j 2 nf0t  dt
T0 T / 2
0

A  exp  j 2 nf 0t 
T /2
A 
    exp  j 2 nf 0T / 2  exp  j 2 nf 0T / 2
 (5.14)
T0  j 2 nf 0 
 T / 2 j 2 n

By using the sinc function definition given in (3.8), (5.14) can be converted into

sin  nT / T0  AT sin  nT / T0  AT  nT 
cn  A   sinc   (5.15)
n T0  nT / T0 T0  T0 

From (5.15) and (5.2), the Fourier series of the periodic rectangular function can be written as

 nT 
 sinc 
AT 
x t    exp  j 2 nf0t  (5.16)
T0 n   T0 

ECE 373 - HTE Haziran 2013 Sayfa 24


In (5.16), the sinc function inside the summation is independent of time variable, therefore in a manner
similar to the one applied in (5.4), we can take the Fourier transform of (5.16) and get

 nT 
 sinc 
AT 
X  f   F  x t     f  nf 0  (5.17)
T0 n   T0 

The absolute value of frequency spectrum defined by (5.17) is plotted in Fig. 5.4, together with its
associated time signal.

T x(t)

 
t
0 T0
|X(f)| AT / T
0 T/2
(f)
 ( f + f0 )
 ( f - f0 )

 ( f + 2 f0 )
 ( f - 2 f0 )

 
f
-4 / T -3 / T -2 / T -1 / T 0 1/T 2/T 3/T 4/T

Fig. 5.4 Time periodic rectangular function and its corresponding frequency spectrum.

Comparing to Fig. 5.4 to Fig. 3.6, where (on the right hand side) the spectrum of time limited (single)
rectangular is displayed, we see that in both cases, the frequency spectrum is sinc shaped, but in the
case of single rectangular function, this spectrum is continuous, but when the time function is
continuous and periodic, then the spectrum is discontinuous or rather discrete, consisting of delta
functions as depicted in Fig. 5.4. This is not surprising, since time and frequency axis act in reverse.

6. Properties of Fourier Transforms

For the following equalities, it is assumed that

x t 
 X  f  , y t 
 Yf 
F F
(6.1)
F
-1 -1 F

which means that x t  and X  f  and y t  and Y  f  form a Fourier transform pairs.

a) Time shifting property states that

F  x t  t0   X  f  exp  j 2 ft0  (6.2)

This property was also introduced in (2.6) and (3.7).

b) Convolution property is

ECE 373 - HTE Haziran 2013 Sayfa 25


F -1  X  f Y  f   x t   y t  (6.3)

This property was also introduced in (4.1).

c) Modulation property states that

1
F  x t  cos 2 f 0t    X  f  f 0   X  f  f 0  (6.4)
2

This property will often be used when discussing modulation topics.

d) Rayleigh’s property state that the energy of the signal is the same whether we use the time or
frequency axis representation, thus
 

 x 2 t  dt   X  f  df
2
(6.5)
 

e) Autocorrelation property states that

F  Rx    X  f 
2
(6.6)

where Rx   is the autocorrelation function of a time signal x t  and defined as

Rx     x t  x t   dt
*
(6.7)


f) Differentiation property states that

d 
F  x t   j 2 fX  f  (6.8)
 dt 

This property was also introduced in (4.21).

7. Classification of Signals

7.1 Deterministic and Random Signals

A signal is said to be deterministic if its value is known at all times. For instance, the following x t  is
deterministic

x t   A cos 2 f 0t   2 cos 20 t  , A  2 , f 0  10 Hz , T0  0.1 s (7.1)

since x t  0  2, x t  0.12  0.618  . Hence, if we are standing at t  0 , then we do not


have to wait for the time, t  0.12 , in order to find the value of x t  . The same is valid for the value
of x t  , prior to t  0 . On the other hand time signal representation of noise is random. Hence it is
not easy to write a time expression for noise, therefore we choose to describe its properties

ECE 373 - HTE Haziran 2013 Sayfa 26


statistically. The same also goes for message signal (that we want to transmit). Sample deterministic
and random signals are shown in Fig. 7.1.

x ( t ) - Noise
Random signals Deterministic signal x(t)

 
t

x ( t ) - Message signal
 
t
0
T0
 
t
0
-A

Fig. 7.1 Typical examples of deterministic and random signals.

7.2 Periodic and Nonperiodic Signals

If for a T0  0 , a time signal x t  satisfies the property

x t   x t  T0  for   t   (7.2)

then x t  is said to be periodic, otherwise it is nonperiodic. For instance x t  on the right hand side
of Fig. 7.1 is periodic, whereas the two signals on the left hand side of the same figure are nonperiodic.
Another example of nonperiodic signal is the (single) rectangular pulse in shown on the left hand side
of Fig. 3.3.

7.3 Analog and Discrete Signals

As an analogue signal, x t  is continuous function of time, thus defined at all times, whereas a discrete
signal will only exist at discrete times. An analog and a discrete signal in the form of time delta functions
(sample of analog signal) are displayed in Fig. 7.2. As seen from this figure x  nTs  is undetermined
when t  nTs .

ECE 373 - HTE Haziran 2013 Sayfa 27


Analog signal x(t) Discrete signal x ( nT )
s

 Ts


t t
 0  0

Fig. 7.2 Samples of analog and discrete signals.

7.4 Power and Energy Signals

Initially, we state the definition of power. If x t  is voltage waveform, the instantaneous power
dissipated across a resistor R can be written as

x 2 t 
Px t   (7.3)
R

On the other hand if x t  is current waveform, then the definition in (7.3) will convert into

Px t   x 2 t  R (7.4)

It is clear from (7.3) and (7.4) that if we set R  1 , then the power based on voltage waveform and the
current waveforms will be identical. Such power is called normalized power.

With such a definition, for x t  referring to voltage or current signal, the following integral will
indicate the energy dissipated during a time interval T / 2  t  T / 2

T /2

Ex   x 2 t  dt (7.5)
T / 2

The average power dissipated in the time interval of T will be given by

Ex 1 T /2
Px    x 2 t  dt (7.6)
T T T / 2

At the detection stage, the performance of a communication system is governed by the received signal
energy. This means received signals with higher energy give rise to fewer errors, while those signals

ECE 373 - HTE Haziran 2013 Sayfa 28


with less energy are detected with higher errors. So we say that here, the energy plays the major role.
On the other hand, what comes out of a transmitter is usually measured in terms of power. Therefore
we need a clear distinction between energy and power signals.

We say a signal x t  is an energy signal, if the following conditions are satisfied

T /2

Ex  Tlim
  x 2 t  dt , 0  E x   , Ex is finite
T / 2

1 T /2 2
Px  Tlim

 x t  dt , Px  0 ,
T T / 2
Px goes to zero (7.7)

(7.7) means that it possible to quantify an energy signal only by its amount of energy, since its power
goes to zero.

For x t  to be a power signal, the following conditions must be satisfied

T /2

Ex  Tlim
  x 2 t  dt   , Ex is infinite
T / 2

1 T /2 2
Px  Tlim

 x t  dt , 0  Px   ,
T T / 2
Px is finite (7.8)

(7.8) means that for a power signal, the power is finite, while the energy is infinite, thus energy is a
meaningless quantity for a power signal. In the case of a periodic signal with a period T0 , the power
expression on the second line of (7.8) becomes

T0 / 2
1
Px   x 2 t  dt , 0  Px   , Px is finite (7.9)
T0 T / 2
0

In Figs. 7.3 to 7.5, we illustrate various energy and power signals.

x (t)
1
A
1
- t1 t
 1 
0
t

- A1

x (t)
2
A
2

 
t
0

- A2
T
0

Fig. 7. 3 Samples of energy and power signals.

ECE 373 - HTE Haziran 2013 Sayfa 29


x (t)
1
A
1

 0 
t
-T / 2 T/2
x (t)
-T / 2 2 T
A 0 T /2
2 0

 
0
t
-T - T / 2 -T + T / 2 -T / 2 T/2 T -T/2 T +T/2
0 0 0 0
T
0

Fig. 7. 4 Samples of energy and power signals.

x (t)
1
t=-t
1

 
t
0
t=t
2

x (t)
2

 
t
0

Fig. 7. 5 Samples of energy and power signals.

Exercise 7.1 : For the x1 t  and x2 t  signals given Figs. 7.3, 7.4 and 7.5, identify each of them in the
followings classifications

a) Deterministic or random signal


b) Periodic or nonperiodic signal
c) Analog or discrete signal
d) Power or energy signal

Calculate the power or the energy in each case for x1 t  and x2 t  .

ECE 373 - HTE Haziran 2013 Sayfa 30


8. Spectral Density

As seen in the above developments, for instance in (2.8), (3.6) and (3.8), X  f  is usually complex. This
is because, X  f  has two components, magnitude and phase. Sometimes we are not interested in
phase and seek a real quantity, to observe how the spectral components are distributed over the
frequency axis, thus we define spectral density function given by

Sx  f   X  f  X *  f   X  f 
2
(8.1)

For energy signals, using the Fourier transform property of (6.5), we can write
  

Ex   x 2 t  dt   X  f  df   S x  f  df
2
(8.2)
  

Example 8.1 : Find the (energy) spectral density of x1 t  given in Fig. 7.4.

Solution : From Fig. 3.3 and (3.4) if x t  is

 A for 0  t  T
x t    (8.3)
0 elsewhere

then from (3.8), its Fourier transform is

A 
X  f  1 exp  j 2 fT   AT exp  j fT sinc  fT  (8.4)
j 2 f 

From Figs. 3.3 and 7.4, it is easy to see that x1 t  and x t  are related as

x1 t   x t  T / 2 (8.5)

Now using the time shifting property of Fourier transform, i.e. (6.2), we get

F  x1 t   F  x t  T / 2  X  f  exp  j fT  (8.6)

Finally, using (8.4), we obtain

sin  fT 
X 1  f   F  x1 t   F  x t  exp  j fT   ATsinc  fT   AT (8.7)
 fT

It is interesting to note that (8.7) does not contain a phase term, since x1 t  is centred with respect to
t 0.

The result in (8.7) could have equally been achieved by the Fourier transform of x1 t  as shown below

ECE 373 - HTE Haziran 2013 Sayfa 31


 T /2

X1  f    x1 t  exp  j 2 ft  dt  A  exp  j 2 ft  dt
 T / 2

exp  j 2 ft 
T /2

 A  ATsinc  fT  (8.8)
j 2 f T / 2

To arrive at the spectral density we use (8.1), thus

S x1  f   X 1  f  X 1*  f   X 1  f   A2T 2sinc2  fT 
2
(8.9)

Note that it is easy to plot S1  f  in Matlab with the following command lines

>> A = 1;T = 1;

>> f = -5:0.011:5; %%% Note the increment

>> Sx1f = A^2*T^2*sinc(f*T).^2;

>> plot(f,Sx1f)

It is important to realize that in the spectrum of S x1  f  , the sidelobes (tails) will decay more rapidly
than those shown in Fig. 3.6 (why ?).

Now we turn to the spectral density of power signals, in particular periodic power signals. We know
from the developments in section 5, in particular from (5.16) and (5.17) that the Fourier transform of
periodic (time) signals is in the form of

 
Fourier series representationof xt  
 
 
X  f   F  x t   F   cn exp  j 2 nf 0t    cn  f  nf 0 

(8.10)
 n  n
 

Then by using a slightly modified version of the power definition given in (7.9)

1
T /2
1
T /2
   
 x t  dt     cn exp  j 2 n1 f 0t   cn* exp  j 2 n2 f 0t  dt
0 0

Px 
2

T0 T / 2 0
T0 T / 2  n  0
1n 
1
2
2

T0 / 2
1  
   cn c *
n2  exp  j 2 n1 f 0t  exp  j 2 n2 f 0t  dt
T0 n1  n2 
1

T0 / 2

T0 / 2
1  
   cn cn*  exp  j 2 f 0 n1  n2  t  dt
T0 n1  n2 
1 2

T0 / 2

T0 / 2
1   
    exp  j 2 n1  n2  t / T0  dt  
2
*
cn c n2
cn (8.11)
T0 n1  n2 
1

T0 / 2 n1 
1

ECE 373 - HTE Haziran 2013 Sayfa 32


We have been able to arrive at the result shown on the last line of (8.11), since the prior integration
containing the exponential term exp  j 2 n1  n2  t / T0  , when integrated from T0 / 2 to T0 / 2

evaluates to zero except n1  n2 .

The spectral density for a power signal can be deduced from the expression on the far right hand side
of (8.10), thus
 
Sx  f   X  f  X *  f   X  f    cn   f  n1 f 0   cn*   f  n2 f 0 
2

1 2
n1  n2 


  cn   f  nf 0 
2
(8.12)
n 

The result on the second line of (8.12) is based on the fact that in the multiplication of the two delta
functions, only the time coincident ones survive, the others become zero. This means

  f  nf 0 
 if n1  n2  n
  f  n1 f 0   f  n2 f 0    (8.13)

 if n1  n2
0

Eventually, it is possible to express the power of a power signal in terms of the spectral density as
follows

T0 / 2  
1
Px           Sx  f  df
2 2
x t dt X f df (8.14)
T0 T / 2
0
 

Example 8.2 : Find the power for x t   A cos 2 f 0t  both from the time and the frequency
integrals of (8.14).

Solution : Using the time integral, we have

T0 / 2 T0 / 2 T0 / 2
1 1 A2
Px   x t  dt   A2 cos 2 2 f0 t  dt   1  cos 4 f 0t  dt
2

T0 T / 2 T0 2T0  
0
T0 / 2 T0 / 2

V  
2
of xt 
 
rms

T0  0   
2 2
A A A 
 (8.15)
2T0 2  2 
 

From (5.9) and (5.11), we know that there are only two Fourier series coefficients of the cosine
function, thus (8.12) turns into

Sx  f   X  f  X *  f   X  f    cn   f  nf 0 
2 2

n 

 
2 2
c1 c1

A2 A2
   f  f0     f  f0  (8.16)
4 4

The power will then become

ECE 373 - HTE Haziran 2013 Sayfa 33


  
A2 A2 A2
Px   S x  f  df     f  f 0  df  4    f  f 0  df  2 (8.17)
 4  

Not surprisingly, in (8.17) we find the same result as that of (8.15).

9. Autocorrelation

Autocorrelation measures the similarity of a signal with its time shifted copy. It was defined earlier for
an energy signal in (6.7), repeated here as
 

Rx     x t  x* t   dt   x t  x t    dt
*
(9.1)
 

(9.1) means that we have to shift x t  over the whole interval of overlap by and amount  and
perform integration over t .

By taking x t  to be (a single) rectangular function of Fig. 3.3, whose mathematical expression is given
in (3.4), we illustrate in Fig. 9.1 graphically the sliding of x* t    x t   against x t 

x(t)
Region of overlap when  < 0 A
Region of overlap when  > 0
0
t
<0 T
x(t-) >0
A

0
t
 +T  +T
R ()
x
A2 T
=-T =T
0

Fig. 9.1 Graphical illustration of computation of autocorrelation function of a single rectangular pulse.

The mathematical formulation related to Fig. 9.1 is as follows ;

T 

when   0 : R x     A2 dt A2 T   
0
T

when   0 : R x     A2 dt A2 T  

Rx    A T   2
 , 0   T (9.2)

When x t  is a power signal, in particular periodic power signal with a period of T0 , then the
autocorrelation function is defined as

ECE 373 - HTE Haziran 2013 Sayfa 34


T0 / 2 T0 / 2
1 1
Rx     x t  x* t   dt   x t  x* t   dt (9.3)
T0 T / 20
T0 T / 2
0

A sample of calculations for a periodic signal is found in ECE 373MT-19112012_Solutions and in ECE
373 MT_21112011_Solutions_CC. Here we show the solution of ECE 373MT-19112012_Solutions.

The common properties of autocorrelation functions are listed below

a) Rx    Rx   : It is symmetrical about zero.


b) Rx    Rx   0 : Maximum value occurs at the origin.

Rx  
 S x  f  : Autocorrelation function and spectral density form Fourier transform
F
c)
F
-1

pairs.
d) Rx   0  Ex if x t  is an energy signal, Rx   0  Px if x t  is a power signal.

10. Random Signals

As mentioned in section 7, random signals can best be described by statistical quantities. As regards
to defining how a variable x distributed over the statistical domain, we have three functions which are
written below together with their relations to each other.

d
p x  F  x  : probability density function (pdf)
dx
x

F  x   p  x  dx
1 1
: cumulative distribution function


P  x  x1   p  x  x1  : probability that x assumes the value x1 (10.1)

To illustrate the implications of (10.1), we take the case shown in Fig. 1.10

p(x)
1/x
0
x=-x x=x
0 0

x
0
P(x=0)=1/x F(x) 1
0

0.5

x
0

Fig. 10.1 Typical example of probability density function, p  x  , probability of x assuming a certain
value, P  x  x1  and cumulative distribution function, F  x  .

ECE 373 - HTE Haziran 2013 Sayfa 35


From Fig. 10.1, the mathematical expressions for p  x  and F  x  can be written as


 1

  x  x0  for  x0  x  0
 x 2

p  x  

0
x0 : positive quantity

 1


 x0  x for 0  x  x0
 x0
2


 1  x 2 
  for  x0  x  0
  0 
x x
 x0  2
 2

F  x   (10.2)

 1  x 2 
 2  0
x x   for 0  x  x0

 x0 

 2 

Another example drawn from practice is the representation of throwing a dice with p  x  and F  x  .
This case is illustrated in Fig. 10.2.

Fig. 10.2 Probability density function, p  x  , probability of x assuming equal and less than a certain
value, P  x  x1  and cumulative distribution function, F  x  for the case of throwing a dice.

As seen from Fig. 10.2, it is also possible to define the probability up to a certain value. The definition
of such a probability becomes
x1

P  x  x1   F  x1    p  x dx


P  x  x1  : probability that x assumes a value less than and equal to x1 (10.3)

In our case, the most important probability density function (pdf) is the exponential Gaussian pdf,
which we shall study in the next section.

From Figs. 10.1, 10.2 and the expressions (10.1) and (10.2), it is possible to make the following
generalizations about p  x  and F  x 

ECE 373 - HTE Haziran 2013 Sayfa 36


0  p  x   1 : pdf canot be minus and cannot be larger than unity

 p  x dx  1 : area under pdf is unity, since it covers all posibilities




0  F  x  1 : cumulative distribution function is limited to the range of zero to unity


F  x2   F  x1  : cumulative distribution function is monotonically increasing function of x
F   0 : cumulative distribution function starts at zero
F   1 : cumulative distribution function ends at unity (10.4)

Moments of a Random Variable

The n th moment of the variable x is defined as

E  x n    x n p  x  dx (10.5)


In (10.5), the first and second moments are used often. The first moment is named mean (average),
also denoted by m x

mx  E  x    xp  x  dx (10.6)


The second moment is named root mean square


E  x 2    x 2 p  x  dx (10.7)


It is also possible to define central moments as the difference between x and the mean. Of particular
importance is the second central moment, which is commonly called as variance, hence

Variance :   E x  mx      x  m  p  x  dx
2 2 2
(10.8)
x
  
x

The square root of the variance, i.e.,  x is called standard deviation. Both the variance and the
standard deviation are indications of how the variable values are concentrated around the mean.

Example 10.1 : The outcome of an experiment is x  1, 1, 0, 1,  2,  4, 3, 1, 1, 1 . We wish


to find the statistical parameters such as p  x  , m x and  x .
2

Solution : From the given x data, we construct the pdf, p  x  and set its integration to unity, so that
we can determine the respective amplitudes. This is illustrated in Fig. 10.3

ECE 373 - HTE Haziran 2013 Sayfa 37


p(x)
4A ( x - 1 )
A = 0.1 4A

2A ( x + 1 )
2A

A ( x + 4 ) A ( x + 2 ) A ( x ) A ( x - 3 )
A

x
x=-4 x=-2 x=-1 0 x=1 x=3

Fig. 10.3 pdf for Example 10.1.

The amplitude A is found from

 

 p  x dx  A    x  4    x  2  2  x  1    x   4  x 1    x  3 dx


 

 10 A  1 , A  0.1 (10.9)

Then mean, m x is evaluated as

 

mx   xp  x  dx  0.1 x   x  4    x  2  2  x  1    x  4  x 1    x  3 dx


 

 0.141 211 2  01  1 4  31  0.1 (10.10)

Finally the variance  x is found to be


2

 x2    x  mx  p  x  dx
2



 0.1   x 1   x  4    x  2  2  x  1    x   4  x 1    x  3 dx


2



 0.1 4  0.1  2  0.1  2 1  0.1  0  0.1  4 1  0.1  3  0.1   3.88
2 2 2 2 2 2
(10.11)
 

Exercise 10.1 : Assume that the outcome of a random event is represented by the uniform probability
distribution, p  x  , as plotted in Fig. 10.4. Find the cumulative distribution, F  x  , mean m x , and
the variance,  x for the pdf given in Fig.10.4.
2

ECE 373 - HTE Haziran 2013 Sayfa 38


p(x)
x=-x x=x
0 0

x
0

Fig. 10. 4 Probability density function (pdf) for Exercise 10.1.

Ensemble Average and Time Average

As defined in (10.6), the average (mean) is obtained by multiplying the pdf with all possible values of
the variable and integrating the result. There is another possibility however as explained below.

Suppose we have random signal, or in particular the noise signal. To characterize the statistical
properties of this random event, we may envisage two ways. One is to take one noise source and
examine its (statistical) properties along time axis. The other is, have a lot of noise sources and examine
the statistical properties by taking samples simultaneously (at a fixed time). The first method
corresponds to multiplying the time axis, the other is multiplying the event axis. This situation is
illustrated in Fig. 10.5.

n1 ( t )
t

n (t)
2
Ensemble average


t = t1 t = t 2 t = t3 t = t4 t = t5 t = t6 t = t7  
Time average 
ni ( t ) 
t


nN ( t ) 

t

t = tk

Fig. 10.5 Two ways of obtaining the statistical properties.

If we want to retrieve the statistical properties by examining a single source along time axis, then we
operate on the samples

ECE 373 - HTE Haziran 2013 Sayfa 39


n2 t1  , n2 t2  , n2 t3  , n2 t4   (10.12)

On the other hand, if we want to retrieve the statistical properties by examining several source at a
fixed time, then we operate on the samples

n1 tk  , n2 tk , n3 tk  , n4 tk   nN tk  (10.13)

For instance, if we arrive at the mean (average) by using the samples in (10.12), then this is called time
averaging, whereas if we obtain the mean by using the samples in (10.13), then it is called ensemble
averaging. In either case, the greater the number of samples, the nearer we get to the theoretical limit
or the more accurate our result becomes.

The time average of any noise signal n t  is achieved in the following manner

1
 n t k 
N
mn  , N 
N k 1

1 T /2
mn  Tlim
  n t  dt
T T / 2
(10.14)

Provided that the statistical properties of a random event (signal) do not change (drift) with time, then
it is not important in what time slice or fixed time instance we take the sample, so long as the number
of samples are sufficiently high so that the random event is represented including all its characteristics.

Example 10.2 : Suppose that gambling house orders 6000 dice and want them all to be fair dice.
Describe how such a test can be conducted.

Solution : If all dice are fair, then the probability density function of this event should be exactly like
shown in the upper figure of Fig. 10.2. This means that if all the dice are tried (tested), then we should
get the following results

1000 Number of times 1 is obtained


Probability of getting 1 : P 1  
6000 Total number of trials
1000 Number of times 2 is obtained
Probability of getting 2 : P 2  
6000 Total number of trials
1000 Number of times 3 is obtained
Probability of getting 3 : P 3  
6000 Total number of trials
1000 Number of times 4 is obtained
Probability of getting 4 : P 4  
6000 Total number of trials
1000 Number of times 5 is obtained
Probability of getting 5 : P 5  
6000 Total number of trials
1000 Number of times 6 is obtained
Probability of getting 6 : P 6   (10.15)
6000 Total number of trials

As described above, we can achieve the result in (10.15) in two ways. The first one is to take only one
dice (assuming that this selected dice is a perfect representative of the remaining dice) and throw it
many times (multiplying the time axis, to get time average). The second is to throw all dice or some of

ECE 373 - HTE Haziran 2013 Sayfa 40


the dice at the same time (multiplying the event axis, to get ensemble average). The question is how
many times should the experiment be repeated along time axis in the first case and how many dice
thrown at a time in the second case so that we arrive at a result well approximated to the ones shown
in (10.15). According to the sources in the literature [4], this criteria is fixed as follows

To get a result within 98 % confidence interval


the minimum number that an experiment should be performed
1
 The inverse of probability of that particular event 10  10  60 (10.16)
P

The result in (10.16) means that in order to approach the result of upper figure in Fig. 10.2 within a
confidence interval of 98 %, the minimum number of times we have to throw a dice is 60 or
alternatively we have to throw a minimum of 60 dice simultaneously to approximate to the result of
upper figure in Fig. 10.2.

It is clear from (10.6) and (10.14), it is possible to arrive at the mean either by ensemble or time
averaging. We illustrate this by the following example based on question 1 of ECE 373_MT
Exam_16.11.2009.

Example 10.3 : For the time continuous (power) signal given in Fig. 10.6, find the mean and the power
and make appropriate comments on the results.

Fig. 10.6 Time continuous signal for Example 10.3.

Solution : From Fig. 10.6, it is clear that the signal x t  is a DC shifted AC signal. The mathematical
expression for this signal is

DC shift

x t   0.25 A  0.5 A cos 2 t / T0  for   t  


 0.5 A 0.5  cos 2 f 0t  , f 0  1/ T0 (10.16)

From (10.14), we get the mean as

ECE 373 - HTE Haziran 2013 Sayfa 41


T0 / 2 T0
1 1
mt   x t  dt   x t  dt  0.25 A (10.17)
T0 T / 2
0
T0 0

A result, which show that the time averaging gives the DC value of the signal. On the other hand, from
(8.15), we get the rms value of x t  as

0.5 A
Vxrms  (10.18)
2

Based on the definition of normalized power of (7.3), we calculate DC, AC and total power of x t  as

PxDC  mt2  0.0625 A2 , PxAC  Vxrms


2
 0.125 A2 , Px  0.1825 A2 (10.19)

Note that Px  0.1825 A could have equally been obtained from


2

T0 / 2 T0 / 2
1 0.25 A2
Px       0.5  cos 2 f 0t  dt  0.1825 A2
2 2
x t dt   (10.20)
T0 T / 2
0
T0 T0 / 2

In ECE 373_MT Exam_16.11.2009, the probability density function (pdf) of x t  is shown to be

1
p  x  ,  0.25 A  x  0.75 A (10.21)
 0.25 A2  x  0.25 A 
2 0.5

 

With the definition given in (10.6), we get the ensemble average as


 
x
mx  E  x    xp  x dx   dx  0.25 A (10.22)
  0.25 A2   x  0.25 A 
2 0.5
 
 

The integral in (10.22) is evaluated by the following Matlab commands

>> syms A x

>> F = x/(pi*sqrt(0.25*A^2 - (x - 0.25*A)^2));

>> int(F,x,-0.25*A,0.75*A)

ans = A/4

Exercise 10.1 : In a manner similar to Example 10.3, find the AC power in x t  using (10.8), i.e.,

PxAC   x2  E x  mx      x  mx  p  x  dx
2 2
(10.23)
  

Note that you may have to perform the integration in Matlab (further note that numeric integration
delivers the correct result for (10.23)).

ECE 373 - HTE Haziran 2013 Sayfa 42


11. Noise Signal

Noise and message signals are random signals. But message signal (in discrete form) is also
deterministic in the sense that within a given symbol interval, it can only assume one of the finite
number of waveform shapes. When the noise time signal is sampled along time axis and the measured
amplitudes are mapped into a probability density function, we obtain a Gaussian distribution pdf as
shown in Fig. 11.1

p ( n ) - pdf of noise signal


n ( t ) - noise time signal

Gaussian pdf
pdf from samples



 0
t 

n
0

Fig. 11.1 Noise time signal and its pdf.

If the noise time signal, n t  and the samples in Fig. 11.1 are extended to infinity, then we would get
the Gaussian pdf marked in green on the right hand side of Fig. 11.1. Otherwise with a limited number
of samples (more than those shown on the left hand side of Fig. 11.1), we can only get the
approximated Gaussian pdf plotted as histogram bars on right hand side of Fig. 11.1. We must bear in
mind that for such a pdf, the normalization should be applied as shown in (10.9).

The thermal noise created by the agitation of atoms has the following (normalized) Gaussian pdf

 n2 
exp  2 
1
p  n  (11.1)
 n 2  2 n 

where  n denotes the variance, corresponding to the amount of power in the noise.
2

This noise has the following properties

a) The time and the ensemble averages are the same. This also means whether we analyse a
single noise source or analyse a lot of different noise sources, we get the same result. Hence
one single noise source is capable of exhibiting the properties of all noise sources (in the
world), if it is observed for a sufficient length of time.
b) Its pdf is Gaussian as stated in (11.1).
c) It has zero mean.

ECE 373 - HTE Haziran 2013 Sayfa 43


d) It is white that in the sense that its spectral density is uniform (flat) from zero up to optical
frequencies.
e) It is additive, such that it adds itself to the message signal.

From these properties we name this type of noise as additive white Gaussian noise (AWGN). From
(11.1), the pdf of noise with the marking of the parameters is plotted in Fig. 11.2.

p(n) p(n)

1 / n  2 
small  n

n
exp ( - 0.5 ) /  n  2  2 n 0
p(n)

mn , mean
large  n

n n
n = - n n = n
0 0

Fig. 11.2 Noise Gaussian pdf with the marking of parameters.

Note that as stated above and illustrated in Fig. 11.2, the mean of noise is always zero, but the variance
my change. Small variance causes the width of the Gaussian exponential to contract, while large
variance broadens the Gaussian exponential. In the noise time waveform of Fig. 11.1, small variance
means small amplitudes are seen along the time axis, large variance means large amplitudes are seen
along time axis.

The additive nature of noise has the implication that when noise is mixed with the transmitted
(message) signal (at receiver) as


received signal

transmitted signal

noise signal

r  s  n (11.2)

The interpretation of (11.2) is that the noise pdf retains the Gaussian profile and the variance, but its
mean shifts from zero to a value s (the square of the energy in the message signal). Thus the pdf of
(11.1) will become

 r  s 2 
exp  
1
p r   (11.3)
 n 2  2 n 
2

Exercise 11.1 : Plot (11.3) and make the necessary markings on this plot, like done in Fig. 11.2.

Another important parameter of noise is its autocorrelation. Noise is a power signal, hence from (9.3),
we have

ECE 373 - HTE Haziran 2013 Sayfa 44


1 T /2
Rn    Tlim  n t  n t   dt
*
(11.4)

T T / 2

Noise is completely random, it never repeats itself along time axis, so it is impossible to find a time
sliced copy of noise as  sweeps the range from minus infinity to plus infinity. This way, the result of
(11.4) will be

1 T /2 N
Rn    Tlim  n t  n* t   dt  0      n2   (11.5)

T T / 2 2

N0
is known as the two sided noise spectral density and related to the variance of noise as shown in
2
(11.5). From the autocorrelation property c) listed at the end of section 9, we know that
autocorrelation function and spectral density form Fourier transform pairs. Thus

N0
F  Rn    S n  f     n2 (11.6)
2

According to (11.6), the noise spectral density is exactly equivalent to noise variance. The results of
(11.5) and (11.6) are displayed in Fig. 11.3.

Rn (  ) Sn ( f )
Autocorrelation Spectral density
function of noise of noise

N /2
0  
N /2
0

 f
0 0

Fig. 11.3 Aucorrelation function and spectral density of noise.

Example 11.1 : To demonstrate the above stated properties of Gaussian noise, we utilize the Matlab
file GaussianNoise.m, also available on the course webpage.

There we see the variations in noise time waveform, noise pdf and noise spectral density against the
number of noise samples, and noise variance.

The above text is prepared benefiting from

1) John G. Proakis, Masoud Salehi, “Communication Systems Engineering” 2nd Ed. 2002, ISBN : 0-
13-061793-8.

ECE 373 - HTE Haziran 2013 Sayfa 45


2) Bernard Sklar, “Digital Communications Fundamentals and Applications”, 2nd Ed. Prentice Hall
2002, ISBN : 0-13-084788-7.
3) My own lecture notes.

4) M. C. Jeruchim, “Techniques for estimating the bit error rate in the simulation of digital
communication systems,” IEEE J. Select. Areas Commun. vol. SAC 2, pp. 153-170, Jan. 1984.

ECE 373 - HTE Haziran 2013 Sayfa 46

You might also like