Docsity

Digital Signal Processing: Discrete Time Signals and Systems, Essays (university) of Digital Signal Processing

Partial preview of the text

Download Digital Signal Processing: Discrete Time Signals and Systems and more Essays (university) Digital Signal Processing in PDF only on Docsity!

LECTURE NOTES

ON

DIGITAL SIGNAL PROCESSING

III B.TECH II SEMESTER (JNTUK – R 13)

FACULTY : B.V.S.RENUKA DEVI (Asst.Prof) / Dr. K. SRINIVASA RAO (Assoc. Prof)

DEPARTMENT OF ELECTRONICS AND COMMUNICATIONS ENGINEERING

GVP COLLEGE OF ENGINEERING FOR WOMEN

MADHURAWADA, VISAKHAPATNAM- 48

UNIT I – INTRODUCTION

Syllabus

Introduction to Digital Signal Processing: Discrete time signals & sequences, linear shift invariant systems,

stability, and causality. Linear constant coefficient difference equations. Frequency domain representation of

discrete time signals and systems.

Introduction

Signal

A signal is any physical quantity that carries information, and that varies with time, space, or any other

independent variable or variables. Mathematically, a signal is defined as a function of one or more independent

variables.

1 – Dimensional signals mostly have time as the independent variable. For example,

Eg., S 1

(t) = 20 t

2

2 – Dimensional signals have two independent variables. For example, image is a 2 – D signal whose

independent variables are the two spatial coordinates (x,y)

Eg., S 2

(t) = 3x + 2xy + 10y

2

Video is a 3 – dimensional signal whose independent variables are the two spatial coordinates, (x,y) and time

(t).

Similarly, a 3 – D picture is also a 3 – D signal whose independent variables are the three spatial coordinates

(x,y,z).

Signals S 1

(t) and S 2

(t) belong to a class that are precisely defined by specifying the functional dependence on

the independent variables.

Natural signals like speech signal, ECG, EEG, images, videos, etc. belong to the class which cannot be

described functionally by mathematical expressions.

System

A system is a physical device that performs an operation on a signal. For example, natural signals are generated

by a system that responds to a stimulus or force.

For eg., speech signals are generated by forcing air through the vocal cords. Here, the vocal cord and the vocal

tract constitute the system (also called the vocal cavity). The air is the stimulus.

The stimulus along with the system is called a signal source.

An electronic filter is also a system. Here, the system performs an operation on the signal, which has the effect

of reducing the noise and interference from the desired information – bearing signal.

When the signal is passed through a system, the signal is said to have been processed.

Processing

The operation performed on the signal by the system is called Signal Processing. The system is characterized

by the type of operation that it performs on the signal. For example, if the operation is linear, the system is

called linear system, and so on.

  1. Different parts of digital signal processor can work at different sampling rates.
  2. It is very difficult to perform precise mathematical operations on signals in analog form but these

operations can be routinely implemented on a digital computer using software.

  1. Several filters need several boards in analog signal processing, whereas in digital signal processing,

same DSP processor is used for many filters.

Disadvantages of Digital Signal Processing over Analog Signal Processing

  1. Digital signal processors have increased complexity.
  2. Signals having extremely wide bandwidths require fast – sampling – rate ADCs. Hence the frequency

range of operation of DSPs is limited by the speed of ADC.

  1. In analog signal processor, passive elements are used, which dissipate very less power.

In digital signal processor, active elements like transistors are used, which dissipate more power.

The above are some of the advantages and disadvantages of digital signal processing over analog signal

processing.

Discrete – time signals

A discrete time signal is a function of an independent variable that is an integer, and is represented by x [ n ] ,

where n represents the sample number ( and not the time at which the sample occurs).

A discrete time signal is not defined at instants between two successive samples, or in other words, for non –

integer values of n. ( But, it is not zero, if n is not an integer).

Discrete time signal representation

The different representations of a discrete time signal are

  1. Graphical Representation
  2. Functional representation

𝑥[𝑛] = {

3. Tabular representation

N - - - - - - - 2 - 1 0 1 2 3 4 5 - - - - - -

x [ n ] - - - - - - 0 0 1 1 4 1 0 0 - - - - - -

-4 -3 -2 -1 0 1 2 3 4

0

1

2

3

4

sample number n

DT signal x[n]

Graphical Representation

  1. Sequence representation

x [ n ] = { - , - , -. - , - , 0, 0, 1, 4, 1, 0, 0, - , - , - , - }

the above is a representation of a two – sided infinite duration sequence, and the symbol indicates the time

origin (n = 0).

If the sequence is zero for n < 0, it can be represented as

x [ n ] = { 1, 4, 1, 2, - , - , - , - }

Here the leftmost point in the sequence is assumed to be the time origin, and so the symbol is optional in this

case.

A finite duration sequence can be represented as

x[ n ] = { 3, - 1, - 2, 5, 0, 4, - 1}

This is referred to as a 7 – point sequence.

Elementary discrete time sequences

These are the basic sequences that appear often, and play an important role. Any arbitrary sequence can be

represented in terms of these elementary sequences.

1. Unit – Sample sequence It is denoted by δ [ n ]. It is defined as

[

]

It is also referred as discrete time impulse.

It is mathematically much less complicated than the continuous impulse δ (t), which is zero everywhere

except at t = 0. At t = 0, it is defined in terms of its area (unit area), but not by its absolute value.

It is graphically represented as

2. Unit step sequence

It is denoted by u [ n ] and defined as

[

]

- 1 < a < 0

a < - 1

b. If a is complex valued, then a can be expressed as a = re

jθ

, so that x[n] can be represented as

[

]

𝑛

𝑗𝑛𝜃

𝑛

[

cos 𝑛𝜃 + 𝑗 sin 𝑛𝜃

]

So, x [ n ] is represented graphically by plotting the real part and imaginary parts separately as functions of n,

which are

𝑅

[

]

𝑛

cos 𝑛𝜃

𝐼

[

]

𝑛

sin 𝑛𝜃

If r < 1, the above two functions are damped cosine and sine functions, whose amplitude is a decaying

exponential.

If r = 1, then both the functions have fixed amplitude of unity.

If r > 1, then they are cosine and sine functions respectively, with exponentially growing amplitudes.

Alternatively, x [ n ] can be represented by the amplitude and phase functions:

Amplitude function, 𝐴[𝑛] = |𝑥[𝑛]| = 𝑟

𝑛

Phase function, ∅[𝑛] = ∠𝑥[𝑛] = 𝑛𝜃

For example, for r < 1, the amplitude function would be

And the phase function would be

Although the phase function ∅

[

]

= 𝑛𝜃 is a linear function of n, it is defined only over an interval of 2π (since

it is an angle).i.e., over an interval – π<θ<π or 0<θ<2π.

A real – valued discrete – time signal is called an Odd Signal if it is antisymmetrical about the vertical

axis.

𝑥[𝑛] = −𝑥[−𝑛] ∀𝑛

From the above relation, it can be inferred that an odd signal must be zero at time origin, n = 0.

Every signal x[n] can be expressed as the sum of its even and odd components.

𝑥[𝑛] = 𝑥

𝑒

[𝑛] + 𝑥

𝑜

[𝑛]

Where

𝑒

[

]

𝑥[𝑛] + 𝑥[−𝑛]

𝑜

[𝑛] =

𝑥[𝑛] − 𝑥[−𝑛]

  • Product of even and odd sequences results in an odd sequence.
  • Product of two odd sequences results in an even sequence.
  • Product of two even sequences results in an even sequence. 4. Conjugate Symmetric and Conjugate Antisymmetric sequences

A complex discrete – time signal is conjugate – symmetric if

𝑥[𝑛] = 𝑥

∗

[−𝑛] ∀𝑛

And conjugate – antisymmetric if

𝑥[𝑛] = −𝑥

∗

[−𝑛] ∀𝑛

Any complex signal can be expressed as the sum of conjugate – symmetric and conjugate –

antisymmetric parts

𝑥[𝑛] = 𝑥

𝑐𝑠

[𝑛] + 𝑥

𝑐𝑎

[𝑛]

Where

𝑐𝑠

[

]

[

]

∗

[−𝑛]

And

𝑐𝑎

[𝑛] =

𝑥[𝑛] − 𝑥

∗

[−𝑛]

5. Bounded and Unbounded sequences

A discrete – time sequence x[n] is said to be bounded if each of its samples is of finite magnitude .i.e.,

|𝑥[𝑛]| ≤ 𝑀

𝑥

For example,

The unit step sequence u[n] is a bounded sequence,

but the sequence nu[n] is an unbounded sequence.

6. Absolutely summable and square summable sequences

A discrete – time sequence x[n] is said to be absolutely summable if,

∑ |𝑥[𝑛]|

∞

𝑛=− ∞

And it is said to be square summable if

∑ |𝑥[𝑛]|

2

∞

𝑛=− ∞

Discrete – Time Systems

A system accepts an input such as voltage, displacement, etc. and produces an output in response to this input.

A system can be viewed as a process that results in transforming input signals into output signals.

A discrete – time system can be represented as

𝑥[𝑛] → 𝑦[𝑛]

[

]

𝑥[𝑛]

Discrete – Time System Properties

1. Linearity

A system is said to be linear if it satisfies superposition principle, which in turn is a combination of

additivity and homogeneity.

Additivity implies that

If the response of the DT system to x 1

[n] is y 1

[n], and the response to x 2

[n] is y 2

[n], then

the response of the system to {x 1

[n]+x 2

[n]} must be {y 1

[n]+y 2

[n]}.

Homogeneity implies that

if the response of a DT system to x[n] is y[n], then the response of the system to ax[n] must be ay[n],

where a is a constant.

Thus, for a DT system,

If

𝑥[𝑛] → 𝑦[𝑛]

1

[𝑛] → 𝑦

1

[𝑛]

2

[𝑛] → 𝑦

2

[𝑛]

Then according to additivity principle

1

[𝑛] + 𝑥

2

[𝑛] → 𝑦

1

[𝑛] + 𝑦

2

[𝑛]

And according to homogeneity principle

𝑎𝑥[𝑛] → 𝑎𝑦[𝑛] (𝑎 = 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡)

  • If a = 0, then the above relation implies that a zero input must result in a zero output.

Combining the above two principle to get superposition principle , we obtain

A system is Linear if it satisfies the following relation

1

[

]

2

[

]

1

[

]

2

[

]

Discrete - Time Input Signal,

x[n]

Discrete - Time

System

Discrete - Time Output signal,

y[n]

Sifting property

The impulse function δ[n-k] “sifts” through the function x[n] and pulls out the value x[k]

[

]

[

]

∞

𝑛=− ∞

= 𝑥[𝑘]

Signal decomposition

Any arbitrary sequence x[n] can be expressed as a weighted sum of shifted impulses.

[

]

= ∑ 𝑥[𝑘]

∞

𝑘=− ∞

[

]

Impulse response

Impulse response of a discrete – time system is defined as the output/response of the system to unit impulse

input and is represented by h[n].

If for a system,

[

]

→ 𝑦[𝑛]

Then,

[

]

→ ℎ[𝑛]

If the DT system satisfies the property of time – invariance, then,

𝛿[𝑛 − 𝑘] → ℎ[𝑛 − 𝑘]

In addition to being time – invariant, if the system also satisfies linearity (homogeneity and additivity), then,

Homogeneity:

𝑥[𝑘]𝛿[𝑛 − 𝑘] → 𝑥[𝑘]ℎ[𝑛 − 𝑘]

Additivity:

∑ 𝛿[𝑛 − 𝑘]

∞

𝑘=− ∞

→ ∑ ℎ[𝑛 − 𝑘]

∞

𝑘=− ∞

Combining the above two properties, a Linear Time – Invariant (LTI) System can be described by the input –

output relation by

[

]

𝛿[𝑛 − 𝑘]

∞

𝑘=− ∞

[

]

ℎ[𝑛 − 𝑘]

∞

𝑘=− ∞

The Left hand side is the input x[n] expressed as a weighted sum of shifted impulses (from signal

decomposition property of impulse function). So, the right hand side must be the output y[n] of the DT system

in response to input x[n].

Discrete - Time unit impulse,

δ[n]

Discrete - Time

System

impulse response, h[n]

Thus the output of a Linear Time – Invariant (LTI) system can be expressed as

𝑦[𝑛] = ∑ 𝑥[𝑘]ℎ[𝑛 − 𝑘]

∞

𝑘=− ∞

𝑜𝑟, 𝑦[𝑛] = 𝑥[𝑛] ∗ ℎ[𝑛]

The above relation is called Convolution Sum.

So, the impulse response h[n] of an LTI DT system completely characterizes the system .i.e., a knowledge of

h[n] is sufficient to obtain the response of an LTI system to any arbitrary input x[n].

Properties of Convolution Sum

1. Commutative Property

𝑥[𝑛] ∗ ℎ[𝑛] = ℎ[𝑛] ∗ 𝑥[𝑛]

x[n] x[n] * h[n] ≡ h[n] h[n] * x[n]

2. Associative Property

𝑥[𝑛] ∗ {ℎ

1

[𝑛] ∗ ℎ

2

[𝑛]} = {𝑥[𝑛] ∗ ℎ

1

[𝑛]} ∗ ℎ

2

[𝑛]

x[n] y[n] ≡ x[n] y[n]

From this property it can be inferred that, a cascade combination of LTI systems can be replaced by a

single system whose impulse response is the convolution of the individual impulse responses.

3. Distributive Property

𝑥[𝑛] ∗ {ℎ

1

[𝑛] + ℎ

2

[𝑛]} = {𝑥[𝑛] ∗ ℎ

1

[𝑛]} + {𝑥[𝑛] ∗ ℎ

2

[𝑛]}

x[n] y[n] ≡ x[n] y[n]

From this property, it can be inferred that, a parallel combination of LTI systems can be replaced by a

single system whose impulse response is the sum of individual responses.

input, x[n]

LTI System,

h[n]

output,

y[n] = x[n] * h[n]

h[n]

x[n]

h 1

[n] h 2

[n]

h 1

[n]*h 2

[n]

h 1

[n]

h 2

[n]

h 1

[n] + h 2

[n]

Where N is called the order of the difference equation/ system.

This equation expresses the output of an LTI system at time n in terms of present and past inputs and

past outputs.

Solution of LCCDE (Direct Solution – Solution in time domain)

Given an LCCDE, the goal is to determine the output y[n], n> 0 given a specific input x[n], n > 0, and a

set of initial conditions.

The total solution of the LCCDE is assumed to be the sum of two parts:

Homogeneous/complementary solution, y H

[n] and

Particular solution, y P

[n]

Homogeneous Solution

The homogeneous difference equation is obtained by substituting input x[n]=0 in the LCCDE.

𝑘

𝑦[𝑛 − 𝑘]

𝑁

𝑘= 0

The solution to this homogeneous equation is assumed to be in the form of an exponential .i.e.,

ℎ

[𝑛] = 𝜆

𝑛

Substituting Eq. 2 in Eq. 1, we obtain

𝑘

𝑛−𝑘

𝑁

𝑘= 0

0

Expanding this equation

𝑛−𝑁

𝑁

1

𝑁− 1

2

𝑁− 2

𝑁− 1

𝑁

The polynomial in the parenthesis is called the characteristic polynomial of the system.

The characteristic equation is given by

𝑁

1

𝑁− 1

2

𝑁− 2

𝑁− 1

𝑁

Its solution has N roots denoted by λ 1

, λ 2

, …, λ N

, which can be real or complex.

Complex valued roots occur as complex conjugate pairs.

If some roots are identical, then we have multiple order roots.

If all roots are distinct, then the general solution is given by

𝐻

[

]

1

1

𝑛

2

2

𝑛

𝑁

𝑁

𝑛

C

1

, C

2

, … , C

N

are weighting coefficients.

For multiple order roots, if λ 1

repeats m times, then the solution is given by

𝐻

[𝑛] = 𝐶

1

1

𝑛

2

1

𝑛

3

2

1

𝑛

𝑚

𝑚− 1

1

𝑛

𝑚+ 1

2

𝑛

𝑚+ 2

3

𝑛

𝑁

𝑁

𝑛

Particular solution

The particular solution must satisfy the LCCDE for the specific input signal x[n], n > 0.

We assume a form for y P

[n] that depends on the form of the input x[n] as follows

Input, x[n] Particular solution, yP[n]

Constant, A Constant, K

A M

n

KM

n

An

M

K

0

n

M

+ K

1

n

M- 1

+…+K

M

A

n

n

M

A

n

(K 0 n

M

+K 1 n

M- 1

+…+KM)

A cos ω 0

n

K

1

cos ω 0

n + K 2

sin ω 0

n

A sin ω 0

n

If the particular solution, y P

[n] has the same form as the homogeneous solution y H

[n], we multiply

y P

[n] with n or n

2

or n

3

so that it is different from y H

[n].

Total solution y[n] = y H

[n]+y P

[n]

The total solution will contain {C i

}s from the homogeneous solution. They are determined by

substituting the given initial conditions in the total solution.

Frequency domain representation of discrete time signals

The concept of frequency is closely related to a specific type of periodic motion called harmonic oscillation,

which is described by sinusoidal functions. The CT and DT sinusoidal signals are characterized by the

following properties:

  1. A continuous time sinusoid x(t) = cos (2πf a

t) is periodic for any value of f a

But for DT sinusoid x[n]=cos(2πf d

n) to be periodic with period N (an integer), we require

cos( 2 𝜋𝑓

𝑑

𝑛) = cos[ 2 𝜋𝑓

𝑑

(𝑛 + 𝑁)] = cos( 2 𝜋𝑓

𝑑

𝑑

This is possible only if

𝑑

[

]

= ∑ ℎ[𝑘][𝐴𝑒

𝑗𝜔(𝑛−𝑘)

]

∞

𝑘=− ∞

= 𝐴 [ ∑ ℎ(𝑘)𝑒

−𝑗𝜔𝑘

∞

𝑘=− ∞

] 𝑒

𝑗𝜔𝑛

Here, the term inside the brackets is a function of frequency ω. It is the Fourier Transform of the impulse

response h[n], and is denoted by

−𝑗𝜔𝑘

∞

𝑘=− ∞

And 𝑦

[

]

𝑗𝜔𝑛

Since the output differs from the input only by a constant multiplicative factor, the exponential input signal is

called the eigen function of the system, and the multiplicative factor is called the eigenvalue of the system.

H(ω) is a complex valued function of the frequency variable ω.