CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation

Similar documents
Music 270a: Complex Exponentials and Spectrum Representation

Sinusoids. Amplitude and Magnitude. Phase and Period. CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Circuits and Systems I

Mathematical Preliminaries and Review

Fourier Series and Fourier Transforms

Review of Linear Time-Invariant Network Analysis

EDISP (NWL2) (English) Digital Signal Processing Transform, FT, DFT. March 11, 2015

Electric Circuit Theory

Mathematical Review for Signal and Systems

Chapter 4 The Fourier Series and Fourier Transform

The Fourier Transform (and more )

Lecture 5. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

Review of Discrete-Time System

Phasor Young Won Lim 05/19/2015

Fourier Series. Spectral Analysis of Periodic Signals

LECTURE 12 Sections Introduction to the Fourier series of periodic signals

Chapter 7 PHASORS ALGEBRA

3 + 4i 2 + 3i. 3 4i Fig 1b

Course Notes for Signals and Systems. Krishna R Narayanan

Chapter 4 The Fourier Series and Fourier Transform

Circuit Analysis-III. Circuit Analysis-II Lecture # 3 Friday 06 th April, 18

ω 0 = 2π/T 0 is called the fundamental angular frequency and ω 2 = 2ω 0 is called the

CMPT 889: Lecture 5 Filters

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

MATH 135: COMPLEX NUMBERS

Lecture 27 Frequency Response 2

1.3 Frequency Analysis A Review of Complex Numbers

LOPE3202: Communication Systems 10/18/2017 2

Chapter 10: Sinusoidal Steady-State Analysis

Chapter 4 Discrete Fourier Transform (DFT) And Signal Spectrum

summable Necessary and sufficient for BIBO stability of an LTI system. Also see poles.

Final Exam January 31, Solutions

Phasor mathematics. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

I. Signals & Sinusoids

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

GATE EE Topic wise Questions SIGNALS & SYSTEMS

A system that is both linear and time-invariant is called linear time-invariant (LTI).

3 What You Should Know About Complex Numbers

CM2202: Scientific Computing and Multimedia Applications General Maths: 3. Complex Numbers

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Discrete-Time Fourier Transform (DTFT)

Lecture Notes on Fundamentals of Audio-Video Signal Processing

3.2 Complex Sinusoids and Frequency Response of LTI Systems

Complex Numbers and Phasor Technique

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

EE292: Fundamentals of ECE

Mathematics of the Discrete Fourier Transform (DFT)

Review of Fundamentals of Digital Signal Processing

Signals and Systems: Introduction

Figure 3.1 Effect on frequency spectrum of increasing period T 0. Consider the amplitude spectrum of a periodic waveform as shown in Figure 3.2.

Frequency Response. Re ve jφ e jωt ( ) where v is the amplitude and φ is the phase of the sinusoidal signal v(t). ve jφ

ENSC327 Communications Systems 2: Fourier Representations. Jie Liang School of Engineering Science Simon Fraser University

ENSC327 Communications Systems 2: Fourier Representations. School of Engineering Science Simon Fraser University

Fourier Representations of Signals & LTI Systems

Frequency-Domain C/S of LTI Systems

ECE 598: The Speech Chain. Lecture 5: Room Acoustics; Filters

DISCRETE FOURIER TRANSFORM

Chapter 5 Frequency Domain Analysis of Systems

EC Signals and Systems

MTH 362: Advanced Engineering Mathematics

Aspects of Continuous- and Discrete-Time Signals and Systems

Discrete Fourier Transform

Chapter 5 Frequency Domain Analysis of Systems

Chap 2. Discrete-Time Signals and Systems

Signals and Systems Lecture Notes

16.362: Signals and Systems: 1.0

Discrete Time Systems

PS403 - Digital Signal processing

Discrete Time Fourier Transform

EE 3054: Signals, Systems, and Transforms Summer It is observed of some continuous-time LTI system that the input signal.

Chapter 8: Frequency Domain Analysis

L29: Fourier analysis

Representing a Signal

Section 3: Complex numbers

Review of Linear System Theory

LECTURE 13 Introduction to Filtering

Chapter 10: Sinusoids and Phasors

Lecture 10. Digital Signal Processing. Chapter 7. Discrete Fourier transform DFT. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev.

MAS.160 / MAS.510 / MAS.511 Signals, Systems and Information for Media Technology Fall 2007

09/29/2009 Reading: Hambley Chapter 5 and Appendix A

1 The origins and uses of complex signals

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Complex Numbers. The set of complex numbers can be defined as the set of pairs of real numbers, {(x, y)}, with two operations: (i) addition,

Signals and Systems. Lecture 11 Wednesday 22 nd November 2017 DR TANIA STATHAKI

s=a+jb s=% x(t)=sin(&t)

SOLUTIONS to ECE 2026 Summer 2017 Problem Set #2

Digital Signal Processing

Sinusoids and Phasors

E : Lecture 1 Introduction

Chapter 2: Complex numbers

Appendix on complex numbers:

2.3 Oscillation. The harmonic oscillator equation is the differential equation. d 2 y dt 2 r y (r > 0). Its solutions have the form

ENGIN 211, Engineering Math. Complex Numbers

EE301 Signals and Systems In-Class Exam Exam 3 Thursday, Apr. 19, Cover Sheet

The Discrete-Time Fourier

2.161 Signal Processing: Continuous and Discrete Fall 2008

EA2.3 - Electronics 2 1

EE 224 Signals and Systems I Review 1/10

Transcription:

CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 23, 2006 1

Exponentials The exponential is typically used to describe the natural growth or decay of a system s state. An exponential is defined as x(t) = e t/τ where e = 2.7182... and τ is the characteristic time constant of the exponential where at time t = τ, the function will equal 1/e. That is, τ is the time it takes to decay by 1/e. In room acoustics, t 60 or T60, is defined as the time to decay by 60 db. Though this function may, at first, seem very different from a sinusoid, both functions are aspects of a slightly more complicated function. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 2

Complex numbers Complex numbers provides a system for manipulating rotating vectors, and allows us to represent the geometric effects of common digital signal processing operations, like filtering, in algebraic form. In rectangular (or Cartesian) form, the complex number z is defined by the notation z = x + jy. The part without the j is called the real part, and the part with the j is called the imaginary part. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 3

Complex Numbers cont. A complex number can be drawn as a vector, where the tip of the vector is at the point (x, y), where x is the horizontal coordinate, or the real part, and y is the vertical coordinate, or the imaginary part. Im{z} z = x + jy = re jθ r θ Re{z} Figure 1: Cartesian and polar representations of complex numbers in the complex plane. We may now refer to the x and y axes as the realand imaginary-axes, respectively. A multiplication by j may be seen as an operation meaning rotate counterclockwise 90 or π/2. Two successive rotations by π/2 bring us to the negative real axis, that is, j 2 = 1. From this we see j = 1. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 4

Polar Form A complex number may also be represented in polar form z = re jθ. where the vector is defined by its 1. Length r 2. Direction θ The length of the vector is also called the magnitude of z (denoted z ) and the angle with the real axis is called the argument of z (denoted arg z). Using trigonometric identities and the Pythagorean theorem, we can compute: 1. The Cartesian coordinates(x, y) from the polar variables r θ: x = r cos θ and y = r sin θ 2. The polar coordinates from the Cartesian: r = ( y (x 2 + y 2 ) and θ = arctan x) CMPT 318: Fundamentals of Computerized Sound: Lecture 5 5

Euler s Formula Recall from our previous section on sinusoids that the projection of a rotating sinusoid on the x and y axes, traces out a cosine and a sine function respectively. From this we can see how Euler s famous formula for the complex exponential was obtained: e jθ = cos θ + j sin θ, valid for any point (cos θ, sin θ) on a circle of radius one (1). Euler s formula can be further generalized to be valid for any complex number z: z = re jθ = r cos θ + jr sin θ. Though called complex, these number usually simplify calculations considerably particularly in the case of multiplication and division. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 6

Complex Exponential Signals The complex exponential signal (or complex sinusoid is defined as x(t) = Ae j(ω 0t+φ). It may be expressed in Cartesian form using Euler s formula: x(t) = Ae j(ω 0t+φ) = A cos(ω 0 t + φ) + ja sin(ω 0 t + φ). As with the real sinusoid, A is the amplitude given by x(t) x(t) re 2 {x(t)} + im 2 {x(t)} A 2 (cos 2 (ωt + φ) + sin 2 (ωt + φ)) A for all t (since cos 2 (ωt + φ) + sin 2 (ωt + φ) = 1). φ is the initial phase ω 0 is the frequency in rad/sec ω 0 t + φ is the instantaneous phase, also denoted arg x(t). CMPT 318: Fundamentals of Computerized Sound: Lecture 5 7

Real and Complex Exponential Signals How does the Complex Exponential Signal compare to the real sinusoid? As seen from Euler s formula, the sinusoid given by A cos(ω 0 t + φ) is the real part of the complex exponential signal. That is, A cos(ω 0 t + φ) = re{ae j(ω 0t+φ) }. Recall that sinusoids can be represented by the sum of in-phase and phase-quadrature components. Complex exponentials allow us to represent this algebraically: A cos(ω 0 t + φ) = re{ae j(ω 0t+φ) } = re{ae j(φ+ω 0t) } = Are{e jφ e jω 0t } = Are{(cos φ + j sin φ) (cos(ω 0 t) + j sin(ω 0 t))} = Are{cos φ cos(ω 0 t) sin φ sin(ω 0 t) +j(cos φ sin(ω 0 t) + sin φ cos(ω 0 t))} = A cos φ cos(ω 0 t) A sin φ sin(ω 0 t). CMPT 318: Fundamentals of Computerized Sound: Lecture 5 8

Inverse Euler Formulas The inverse Euler formulas allow us to write the cosine and sine function in terms of complex exponentials: cos θ = ejθ + e jθ, 2 and sin θ = ejθ e jθ. 2j This can be shown by adding and subtracting two complex exponentials with the same frequency but opposite in sign, e jθ + e jθ = cos θ + j sin θ + cos θ j sin θ = 2 cos θ, and e jθ e jθ = cos θ + j sin θ cos θ + j sin θ = 2j sin θ. A real cosine signal is, therefore, actually composed of two complex exponential signals: one with a positive frequency and one with a negative frequency. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 9

Complex Conjugate The complex conjugate z of a complex number z = x + jy is given by z = x jy. A real cosine can be represented in the complex plane as the sum of two complex rotating vectors that are complex conjugates of each other. 1 Complex Plane 0.8 0.6 0.4 Imaginary Part 0.2 0 0.2 0.4 0.6 0.8 1 1 0.8 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 1 Real Part The negative frequencies that arise from the complex exponential representation of the signal, will greatly simplify the task of signal analysis and spectrum representation. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 10

Complex Sinusoids Every real sinusoid consists of an equal contribution of positive and negative frequency components. If X(ω) denotes the spectrum of the real signal x(t), then X( ω) = X(ω) A complex sinusoid e jωt consists of one frequency ω, while the real sinusoid sin(ω k t) consists of two (2) frequencies ω and ω. It is easier therefore, and more common, to use the less complicated complex sinusoid when doing signal processing. Given, a real signal, the negative frequencies are usually filtered out to produce an analytic signal, a signal which has no negative frequency components. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 11

Analytic Signals The real sinusoid x(t) = A cos(ωt + φ) can be converted to a positive frequency complex sinusoid z(t) = A exp[j(ωt + φ)] to create an analytic signal, by generating a phase quadrature component y(t) = A sin(ωt + φ) to serve as the imaginary part. 1. Consider the positive and negative frequency components of a real sinusoid at frequency ω 0 : x + e jω 0t x e jω 0t. 2. Apply a phase shift of π/2 to the positive-frequency component and of π/2 to the negative-frequency component: y + = e jπ/2 e jω 0t = je jω 0t y = e jπ/2 e jω 0t = je jω 0t. 3. Form a new complex signal by adding them together: z + (t) x + (t) + jy + (t) = e jω 0t j 2 e jω 0t = 2e jω 0t z (t) x (t) + jy (t) = e jω 0t + j 2 e jω 0t = 0. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 12

Hilbert Transform Filters For more complicated signals (which are the sum of sinusoids), a filter, called a Hilbert Transform Filter is used to shift each sinusoidal component by a quarter cycle. When a real signal x(t) and its Hilbert transform y(t) = H t {x} are used to form a new complex signal z(t) = x(t) + jy(t) the signal z(t) is the (complex) analytic signal corresponding to the real signal x(t). Example: Suppose you have a signal x(t) = A(t) cos(ωt). How do you obtain A(t) without knowing ω? Ans: Use the Hilbert tranform to generate the analytic signal z(t) A(t)e jωt, and then take the absolute value A(t) = z(t). CMPT 318: Fundamentals of Computerized Sound: Lecture 5 13

Complex Amplitude or Phasor When two complex numbers are multiplied, their magnitudes multiply and their angles add: r 1 e jθ 1 r 2 e jθ 2 = r 1 r 2 e j(θ 1+θ 2 ). This is true also of the complex exponential signal. If the complex number X = Ae jφ is multiplied by the complex valued function e jω 0t, we obtain x(t) = Xe jω 0t = Ae jφ e jω 0t = Ae j(ω 0t+φ). The complex number X is referred to as the complex amplitude, a polar representation of the amplitude and the initial phase of the complex exponential signal. The complex amplitude is also called a phasor as it can be represented graphically as a vector in the complex plane. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 14

Spectrum Representation Recall that summing sinusoids of the same frequency but arbitrary amplitudes and phases produces a new single sinusoid of the same frequency. Summing several sinusoids of different frequencies will produce a waveform that is no longer purely sinusoidal. The spectrum of a signal is a graphical representation of the frequency components it contains and their complex amplitudes. Consider a signal that is the sum of N sinusoids of arbitrary amplitudes, phases, AND frequencies: N x(t) = A 0 + A k cos(ω k t + φ k ) k=1 CMPT 318: Fundamentals of Computerized Sound: Lecture 5 15

Spectrum Representation cont. Using inverse Euler, this signal may be represented as N { Xk x(t) = A 0 + 2 ejωkt + X } k 2 e jω kt. k=1 Every signal therefore, can be expressed as a linear combination of complex sinusoids. If a signal is the sum of N sinusoids, the spectrum will be composed of 2N + 1 complex amplitudes and 2N + 1 complex exponentials of a certain frequency. 10 7e jπ/3 7e jπ/3 4e jπ/2 4e jπ/2 Figure shows the spectrum of a signal with N = 2 components. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 16

Why are phasors important? Linear Time Invariant (LTI) systems perform only four (4) operations on a signal: copying, scaling, delaying, adding. The output of an LTI system therefore is always a linear combination of delayed copies of the input signal(s). In a discrete time system, any linear combination of delayed copies of a complex sinusoid may be expressed as N y(n) = g i x(n d i ) i=1 where g i is the i th weighting factor, d i is the i th delay, and x(n) = e jωnt. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 17

Linear Time Invariant Systems Notice, the carrier term x(n) = e jωnt can be factored out to obtain N y(n) = g i x(n d i ) = = i=1 N g i e j[w(n d i)t ] i=1 N g i e jωnt e jwd it i=1 = x(n) N g i e jwdit, i=1 showing an LTI system can be reduced to a calculation involving only the sum phasors. Since every signal can be expressed as a linear combination of complex sinusoids, this analysis can be applied to any signal by expanding the signal into its weighted sum of complex sinusoids (by expressing it as an inverse Fourier Transform). CMPT 318: Fundamentals of Computerized Sound: Lecture 5 18

Signals as Vectors For the Discrete Fourier Transform (DFT), all signals and spectra are length N. A length N sequence x can be denoted x(n), n = 0, 1,...N 1, where x(n) may be real or complex. We may regard x as a vector x in an N dimensional vector space. That is, each sample x(n) is regarded as a coordinate in that space. Mathematically therefore, a vector x is a single point in N-space, represented by a list of coordinates (x(0), x(1), x(2),..., x(n 1). 4 x = (2, 3) 3 2 1 1 2 3 4 Figure 2: A length 2 signal plotted in 2D space. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 19

Projection, Inner Product and the DFT The coefficient of projection of a signal y onto another signal x can be thought of as a measure of how much x is present in y, and is computed using the inner product x, y. One signal x( ) is projected onto another signal y( ) using an inner product defined by N 1 x, y x(n)y(n) n=0 The vectors (signals) x and y are said to be orthogonal if x, y = 0. That is x y x, y = 0. 1 x = (1,1) 1 1 2 3 y = (1, 1) Figure 3: Two orthogonal vectors for N = 2. x, y = 1 1 + 1 ( 1) = 0. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 20

Orthogonality of Sinusoids Sinusoids are orthogonal at different frequencies if their durations are infinite. For length N sampled sinusoidal segments, orthogonality holds for the harmonics of the sampling rate divided by N, that is for frequencies f k = k f s, k = 0, 1, 2, 3,..., N 1. N These are the only frequencies that have a whole number of periods in N samples. The complex sinusoids corresponding to the frequencies f k are s k (n) e jω knt, ω k k 2π N f s, k = 0, 1, 2,..., N 1. These sinusoids are generated by the Nth roots of unity in the complex plane, so called since [e jω kt ] N = [e jk2π/n ] N = e jk2π = 1. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 21

DFT Sinusoids The Nth roots of unity are plotted below for N = 8. e jω 2T = e j4π/n = e jπ/2 = j e jω 1T = e j2π/n = e jπ/4 e jω 0T = 1 The sampled sinusoids corresponding to the N roots of unity are given by (e jω kt ) n = e j2πkn/n, and are used by the DFT. Taking successively higher integer powers of the root e jω kt on the unit circle, generates samples of the kth DFT sinusoid. Since each sinusoid is of a different frequency and each is a harmonic of the sampling rate divided by N, the DFT sinusoids are orthogonal. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 22

DFT Recall, one signal y( ) is projected onto another signal x( ) using an inner product defined by y, x N 1 n=0 y(n)x(n) If x(n) is a sampled, unit amplitude, zero-phase, complex sinusoid, x(n) = e jw knt, n = 0, 1,..., N 1, then the inner product computes the Discrete Fourier Transform (DFT). y, x = N 1 y(n)x(n) n=0 N 1 y(n)e jw knt n=0 DFT k (y) Y (ω k ) Y (ω k ), the DFT at frequency ω k, is a measure of the amplitude and phase of the complex sinusoid which is present in the input signal x at that frequency. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 23

Final DFT and IDFT The DFT is most often written X(ω k ) N 1 n=0 The IDFT is normally written j 2πkn x(n)e N, k = 0, 1, 2..., N 1. x(n) = 1 N N 1 k=0 X(ω k )e j 2πkn N. CMPT 318: Fundamentals of Computerized Sound: Lecture 5 24