54
http://www.ee.unlv.edu/~b1morris/ee360 EE360: SIGNALS AND SYSTEMS I CH1: SIGNALS AND SYSTEMS 1

EE360: SIGNALS AND SYSTEMS Ib1morris/ee360/slides/1_slides_signals_systems.pdfch1: signals and systems 1. continuous-time and discrete-time signals chapter 1.0-1.1 2

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

  • http://www.ee.unlv.edu/~b1morris/ee360

    EE360: SIGNALS AND SYSTEMS ICH1: SIGNALS AND SYSTEMS

    1

    http://www.ee.unlv.edu/~b1morris/ee360

  • CONTINUOUS-TIME AND DISCRETE-TIME SIGNALSCHAPTER 1.0-1.1

    2

  • Signals are quantitative descriptions of physical phenomena

    Represent a pattern of variation

    INTRODUCTION

    3

  • Circuit

    𝑣𝑠 - voltage signal

    𝑣𝑐 - voltage signal

    𝑖 – current signal

    These are continuous-time signals

    EXAMPLE SIGNALS I

    4

  • Stock market price

    𝑝 – closing price signal

    Discrete time signal

    EXAMPLE SIGNALS II

    5

  • Stock market price

    𝑝 – closing price signal

    Discrete time signal

    Tesla stock for fun

    Last 3 months

    Last 5 years

    EXAMPLE SIGNALS II

    6

  • Audio signal

    Continuous signal in β€œraw” form

    Discrete signal when store on a CD/computer

    EXAMPLE SIGNALS III

    7

  • In these examples, the signal is a function of one variable, time

    𝑓(𝑑) ⟡ focus of the book

    More generally, a signal can be a function of multiple variables and not just time

    E.g. an image 𝐼(π‘₯, 𝑦)

    MATHEMATICAL FORMULATION

    8

  • This course deals with two types of signals

    Continuous-time (CT) signals

    π‘₯(𝑑) with 𝑑 ∈ ℝ a real-values variable, denoting continuous time

    Notice the parenthesis is used to denote a CT signal

    Discrete-time (DT) signals

    π‘₯[𝑛] with 𝑛 ∈ β„€ an integer-valued variable, denoting discrete time

    Notice the square brackets to denote a DT signal

    π‘₯[1] is defined but π‘₯[1.5] is not defined

    SIGNAL TYPES

    9

  • Note: π‘₯(𝑑) could signify the full signal or a value of the signal at a specific time 𝑑

    May see π‘₯(𝑑0) for a specific value of signal π‘₯(𝑑) when 𝑑 = 𝑑0for clarity

    GRAPHICALLY

    10

  • This course will often work with complex signals as they are mathematically convenient

    π‘₯ 𝑑 ∈ β„‚, π‘₯ 𝑛 ∈ β„‚

    β„‚ = 𝑧 𝑧 = π‘₯ + 𝑗𝑦, π‘₯, 𝑦 ∈ ℝ, 𝑗 = βˆ’1

    Note the use of 𝑗 for the imaginary number in electrical engineering rather than 𝑖

    COMPLEX NUMBER REVIEW

    11

  • Rectangular/Cartesian form

    𝑧 = π‘₯ + 𝑗𝑦

    𝑅𝑒 𝑧 = π‘₯ real-part

    πΌπ‘š 𝑧 = 𝑦 imaginary-part

    Polar form

    𝑧 = π‘Ÿπ‘’π‘—πœƒ

    π‘Ÿ2 = π‘₯2 + 𝑦2

    πœƒ = arctan𝑦

    π‘₯

    π‘₯ = π‘Ÿ cos πœƒ

    𝑦 = π‘Ÿ sin πœƒ

    COMPLEX NUMBER REPRESENTATION

    12

  • π‘’π‘—πœƒ = cos πœƒ + 𝑗 sin πœƒ

    Note:

    𝑗 = π‘’π‘—πœ‹/2 βˆ’1 = π‘’π‘—πœ‹

    βˆ’π‘— = 𝑒𝑗3πœ‹/2 1 = 𝑒𝑗2πœ‹π‘˜

    Know trig functions for common angles

    For inverse trig function you must account for the quadrant

    EULER’S FORMULA

    13

  • Express in polar form

    1 βˆ’ 𝑗

    Express in polar form

    1 βˆ’ 𝑗 2

    EXAMPLES: COMPLEX NUMBERS

    14

  • TRANSFORMATIONS OF THE INDEPENDENT VARIABLECHAPTER 1.2

    15

  • π‘₯ 𝑑 β†’ π‘₯ 𝑑 βˆ’ 𝑑0 π‘₯ 𝑛 β†’ π‘₯[𝑛 βˆ’ 𝑛0]

    𝑑0 > 0 β‡’ delay 𝑑0 < 0 β‡’ advance

    TIME SHIFT

    16

  • π‘₯ 𝑑 β†’ π‘₯(βˆ’π‘‘) π‘₯ 𝑛 β†’ π‘₯[βˆ’π‘›]

    Flip signal across y-axis (𝑑 = 0 axis)

    TIME REVERSAL

    17

  • π‘₯ 𝑑 β†’ π‘₯(π‘Žπ‘‘) π‘Ž > 0

    π‘Ž > 1 β‡’ shrink time scale (β€œspeed-up” or compress)

    0 < π‘Ž < 1 β‡’ expand time scale (β€œslow-down” or stretch)

    π‘₯ 𝑛 β†’ π‘₯[π‘Žπ‘›] π‘Ž ∈ β„€+

    TIME SCALING

    18

  • π‘₯ 𝑑 β†’ π‘₯(𝛼𝑑 βˆ’ 𝛽) 𝛼 < 0 for time reversal

    General methodology – shift, then scale

    1. Shift: define 𝑣 𝑑 = π‘₯(𝑑 βˆ’ 𝛽)

    2. Scale: define 𝑦 𝑑 = 𝑣 𝛼𝑑 = π‘₯ 𝛼𝑑 βˆ’ 𝛽

    Notice: scaling is only applied to time variable 𝑑

    GENERAL TRANSFORMATION

    19

  • A signal is periodic if a shift of the signals leaves it unchanged

    Periodicity constraint

    CT: there exists a 𝑇 > 0 s.t.

    π‘₯ 𝑑 = π‘₯(𝑑 + 𝑇) βˆ€π‘‘ ∈ ℝ

    DT: there exists a 𝑁 > 0 s.t.

    π‘₯ 𝑛 = π‘₯[𝑛 + 𝑁] βˆ€π‘ ∈ β„€

    PERIODIC SIGNALS

    20

  • Note: π‘₯ 𝑑 = π‘₯ 𝑑 + 𝑇 = π‘₯ 𝑑 + 2𝑇 = π‘₯ 𝑑 + 3𝑇 = β‹―

    Periodic with period 𝑇 or π‘˜π‘‡

    Fundamental period

    𝑇0 is the fundamental period of π‘₯(𝑑) if it is the smallest value of 𝑇 > 0 to satisfy the periodicity constraint (𝑁0 for DT)

    Fundamental frequency – inverse relationship to time

    πœ”0 =2πœ‹

    𝑇0occasionally, Ξ©0 =

    2πœ‹

    𝑁0

    Aperiodic signal – signal with no 𝑇,𝑁 satisfying periodicity constraint

    FUNDAMENTAL PERIOD/FREQUENCY

    21

  • π‘₯ 𝑑 = π‘’π‘—πœ‹π‘‘/5 π‘₯[𝑛] = π‘’π‘—πœ‹π‘›/5

    EXAMPLES: FIND PERIOD

    22

  • Even signal – same flipped across y-axis

    π‘₯ βˆ’π‘› = π‘₯ 𝑛

    Odd signal – upside-down when flipped

    π‘₯ βˆ’π‘› = βˆ’π‘₯ 𝑛

    Note: must have π‘₯ 𝑛 = 0 at 𝑛 = 0

    Decomposition theorem – any signal can be broken into sum of even and odd signals

    π‘₯ 𝑑 = 𝑦 𝑑 + 𝑧 𝑑 , 𝑦 𝑑 even, 𝑧(𝑑) odd

    𝑦 𝑑 = 𝐸𝑣 π‘₯ 𝑑 =1

    2π‘₯ 𝑑 + π‘₯ βˆ’π‘‘

    𝑧 𝑑 = 𝑂𝑑𝑑 π‘₯ 𝑑 =1

    2π‘₯ 𝑑 βˆ’ π‘₯ βˆ’π‘‘

    EVEN/ODD SIGNALS

    23

  • EXPONENTIAL AND SINUSOIDAL SIGNALSCHAPTER 1.3

    24

  • 1. Complex exponential - πΆπ‘’π‘Žπ‘‘, πΆπ‘’π‘Žπ‘› 𝐢, π‘Ž ∈ β„‚

    2. Impulse function - 𝛿 𝑑 , 𝛿[𝑛]

    Will want to represent general signals as linear combination of these special signals

    The essence of linear system analysis

    Typically,

    Impulse functions ⟢ time-domain analysis

    Complex exponentials ⟢ frequency/transform domain analysis

    IMPORTANT CLASSES OF SIGNALS

    25

  • π‘₯ 𝑑 = πΆπ‘’π‘Žπ‘‘ 𝐢, π‘Ž ∈ ℝ

    π‘Ž = 0, π‘₯ 𝑑 = 𝐢 : constant function

    REAL EXPONENTIAL SIGNALS

    π‘Ž > 0 exponential growth π‘Ž < 0 exponential decay

    26

  • π‘₯ 𝑑 = πΆπ‘’π‘Žπ‘‘

    π‘Ž = π‘—πœ”0, 𝐢 = π΄π‘’π‘—πœƒ

    π‘Ž is purely complex

    π‘₯ 𝑑 is a pair of sinusoidal signals with the same amplitude 𝐴, frequency πœ”0, and phase shift πœƒ

    𝑅𝑒 π‘₯ 𝑑 = 𝐴 cos πœ”0𝑑 + πœƒ

    Proof

    27

    PERIODIC COMPLEX EXPONENTIAL

  • π‘₯ 𝑑 = πΆπ‘’π‘Žπ‘‘

    π‘Ž = π‘Ÿ + π‘—πœ”, 𝐢 = π΄π‘’π‘—πœƒ

    Amplitude controlled sinusoid

    π΄π‘’π‘Ÿπ‘‘ defines envelope

    π‘Ÿ > 0

    π‘Ÿ < 0

    28

    GENERAL COMPLEX EXPONENTIAL

  • π‘₯ 𝑛 = 𝐢𝑒𝛽𝑛 or π‘₯ 𝑛 = 𝐢𝛼𝑛

    𝛼 = 𝑒𝛽, 𝐢, 𝛽 ∈ β„‚

    𝛼 > 1

    𝛼 < βˆ’1

    Real exponential

    𝐢, 𝛼 ∈ ℝ

    βˆ’1 < 𝛼 < 0

    0 < 𝛼 < 1

    29

    DT COMPLEX EXPONENTIAL - REAL

  • π‘₯ 𝑛 = 𝐢𝛼𝑛, 𝐢, 𝛼 ∈ β„‚

    𝐢 = 𝐢 π‘’π‘—πœƒ, 𝛼 = 𝛼 π‘’π‘—πœ”0

    Three cases for |𝛼|

    π‘Ž = 1

    Not necessarily periodic

    𝛼 < 1 - decaying exponential envelope

    𝛼 > 1 - Growing exponential envelope

    30

    GENERAL DT COMPLEX EXPONENTIAL

  • Unlike CT, there are conditions for periodicity

    Consider frequency πœ”0 + 2πœ‹

    𝑒𝑗 πœ”0+2πœ‹ 𝑛 = π‘’π‘—πœ”0𝑛𝑒𝑗2πœ‹π‘› = π‘’π‘—πœ”0𝑛

    Exponential with freq πœ”0 + 2πœ‹ is the same as exp. with freq πœ”0

    Only need to consider a 2πœ‹ interval for πœ”0 0 ≀ πœ”0 ≀ 2πœ‹ or βˆ’πœ‹ ≀ πœ”0 ≀ πœ‹

    See Fig. 1.27 of book

    31

    PERIODICITY OF DT COMPLEX EXPONENTIALS

  • 32

    DT FREQUENCY RANGE

  • 𝑒𝑗Ω0𝑛 is periodic iff Ξ©0 is a rational multiple of 2πœ‹

    Fundamental period: 𝑁 =2πœ‹π‘š

    Ξ©0

    π‘š

    𝑁is in reduced form

    gcd(π‘š,𝑁) = 1 greatest common denominator

    Table 1.1 is good for highlighting the differences between DT and CT

    33

    DT PERIODICITY CONSTRAINT

  • THE UNIT IMPULSE AND UNIT STEP FUNCTIONSCHAPTER 1.4

    34

  • Unit impulse (Kronecker delta)

    𝛿 𝑛 = α‰Š1 𝑛 = 00 𝑛 β‰  0

    𝛿 𝑛 = 𝑒 𝑛 βˆ’ 𝑒[𝑛 βˆ’ 1]

    Unit step

    𝑒 𝑛 = α‰Š1 𝑛 β‰₯ 00 𝑛 < 0

    𝑒 𝑛 = Οƒπ‘š=βˆ’βˆžπ‘› 𝛿[π‘š]

    Running (cumulative) sum

    𝑒 𝑛 = Οƒπ‘˜=0∞ 𝛿 𝑛 βˆ’ π‘˜

    = Οƒπ‘˜=βˆ’βˆžβˆž 𝑒 π‘˜ 𝛿[𝑛 βˆ’ π‘˜]

    Sum of delayed impulses

    35

    DT IMPULSE AND UNIT STEP FUNCTIONS

  • Sampling Property

    π‘₯ 𝑛 𝛿 𝑛 = π‘₯ 0 𝛿[𝑛]

    π‘₯ 𝑛 𝛿 𝑛 βˆ’ 𝑛0 = π‘₯ 𝑛0 𝛿[𝑛 βˆ’ 𝑛0]

    Product of signals is a signal

    Multiply values at corresponding time

    Sifting Property

    Οƒπ‘š=βˆ’βˆžβˆž π‘₯ π‘š 𝛿 π‘š = π‘₯[0]

    Οƒπ‘š=βˆ’βˆžβˆž π‘₯ π‘š 𝛿 π‘š βˆ’ 𝑛0 = π‘₯[𝑛0]

    Notice above is summation of values in the sampled signal

    More generally, this summation holds for any limits that contain the impulse

    36

    SAMPLING/SIFTING PROPERTIES

  • Every DT signal can be represented as a linear combination of shifted impulses

    π‘₯ 𝑛 = Οƒπ‘˜=βˆ’βˆžβˆž π‘₯ π‘˜ 𝛿[𝑛 βˆ’ π‘˜]

    π‘₯[π‘˜] – value of signal at time π‘˜

    A bit complicated but useful for study of LTI systems (Ch2)

    37

    REPRESENTATION PROPERTY

  • Unit impulse (dirac delta)

    𝛿 𝑑 = α‰Šβˆž 𝑑 = 00 𝑑 β‰  0

    With βˆ’βˆžβˆžπ›Ώ 𝑑 𝑑𝑑 = 1

    Unit step

    𝑒(𝑑) = α‰Š1 𝑑 β‰₯ 00 𝑑 < 0

    Relationship

    𝑒 𝑑 = βˆžβˆ’π‘‘π›Ώ 𝜏 π‘‘πœ

    𝛿 𝑑 =𝑑𝑒 𝑑

    𝑑𝑑

    38

    CT IMPULSE AND UNIT STEP FUNCTIONS

    limΞ”β†’0

  • Sampling

    π‘₯ 𝑑 𝛿 𝑑 = π‘₯ 0 𝛿 𝑑

    π‘₯ 𝑑 𝛿 𝑑 βˆ’ 𝑑0 = π‘₯ 𝑑0 𝛿(𝑑 βˆ’ 𝑑0)

    Product of two signals is a signal

    Representation property

    π‘₯ 𝑑 = βˆžβˆ’βˆžπ‘₯ 𝜏 𝛿 𝑑 βˆ’ 𝜏 π‘‘πœ

    Example

    𝑒 𝑑 = βˆžβˆ’βˆžπ‘’ 𝜏 𝛿 𝑑 βˆ’ 𝜏 π‘‘πœ

    Sifting

    39

    PROPERTIES

  • CONTINUOUS-TIME AND DISCRETE-TIME SYSTEMSCHAPTER 1.5

    40

  • A system is a quantitative description of a physical process to transform an input signal into an output signal

    Systems are a black box – a mathematical abstraction

    Shorthand notation

    π‘₯ 𝑑 ⟢ 𝑦(𝑑)

    More complex systems

    Sampling

    MIMO (multi input/multi output

    41

    SYSTEMS

  • Series/cascade connection

    Parallel interconnection

    Feedback connection

    Very important in controls

    More complex systems can be composed by various series/parallel interconnections

    42

    SYSTEM INTERCONNECTIONS

  • BASIC SYSTEM PROPERTIESCHAPTER 1.6

    43

  • Memoryless

    Invertibility

    Causality

    Stability

    Linearity

    Time-invariance

    44

    BASIC SYSTEM PROPERTIES

    Define an important class of systems called LTI

  • A system is memoryless if the output at a time 𝑑depends only on input at the same time 𝑑

    Examples

    𝑦 𝑑 = 2π‘₯ 𝑑 βˆ’ π‘₯2 𝑑2

    𝑦 𝑛 = π‘₯ 𝑛

    𝑦 𝑛 = π‘₯ 𝑛 βˆ’ 1

    𝑦 𝑛 = π‘₯ 𝑛 + 𝑦[𝑛 βˆ’ 1]

    45

    MEMORYLESS SYSTEMS

  • A system is invertible if distinct inputs lead to distinct outputs

    Rules for proving invertible systems

    Show invertible by given the inverse system expression/formula

    Show non-invertible by any counter example

    46

    INVERTIBILITY

  • 𝑦 𝑑 = (cos 𝑑 + 2)π‘₯(𝑑)

    π‘₯ 𝑑 =𝑦 𝑑

    cos 𝑑+2

    Invertible (no divide by zero!)

    𝑦 𝑛 = Οƒπ‘˜=βˆ’βˆžπ‘› π‘₯[π‘˜]

    β‡’ 𝑦 𝑛 = π‘₯ 𝑛 + 𝑦[𝑛 βˆ’ 1]

    β‡’ π‘₯ 𝑛 = 𝑦 𝑛 βˆ’ 𝑦 𝑛 βˆ’ 1

    Invertible

    𝑦 𝑑 = π‘₯2(𝑑)

    π‘₯1 𝑑 = 1 β‡’ 𝑦1 𝑑 = 1

    π‘₯2 𝑑 = βˆ’1 β‡’ 𝑦2 𝑑 = 1

    Need unique input distinct output

    Not invertible

    47

    EXAMPLES: INVERSE SYSTEMS

  • A system is causal if the output at any time 𝑑 depends only on the input at same time 𝑑 or past times 𝜏 < 𝑑

    Real systems must be causal because we cannot know future values

    Buffering gives the appearance of non-causality

    Examples

    𝑦 𝑛 = π‘₯ 𝑛

    𝑦 𝑛 = π‘₯ 𝑛 + π‘₯ 𝑛 + 1

    𝑦 𝑑 = βˆžβˆ’π‘‘π‘₯ 𝜏 π‘‘πœ

    𝑦 𝑛 = π‘₯ βˆ’π‘›

    𝑦 𝑑 = π‘₯(𝑑)(cos(𝑑 + 2))

    48

    CAUSALITY

  • A system is stable if a bounded input results in a bounded output signal BIBO stable

    A signal is bounded if there exists a constant 𝐡 such that

    π‘₯ 𝑑 ≀ 𝐡 βˆ€π‘‘ and 𝐡 < ∞

    BIBO condition

    π‘₯ 𝑑 ≀ 𝐡 ⟢ 𝑦 𝑑 < ∞

    49

    STABILITY

  • 𝑦 𝑑 = 2π‘₯2 𝑑 βˆ’ 1 + π‘₯(3𝑑)

    50

    EXAMPLES: BIBO STABILITY

  • A system is time-invariant if a time shift in input signal results in an identical time shift in the output signal

    Steps to check for TI

    Assume π‘₯(𝑑) ⟢ 𝑦(𝑑)

    1. Check 𝑦1 𝑑 = 𝑦(𝑑 βˆ’ 𝑑0) time shift on output

    2. Check 𝑦2 𝑑 = 𝑓(π‘₯ 𝑑 βˆ’ 𝑑0 ) operate on time shifted input

    3. Verify 𝑦1 𝑑 = 𝑦2(𝑑) for TI

    51

    TIME INVARIANCE

  • 𝑦 𝑑 = sin π‘₯ 𝑑 𝑦 𝑛 = 𝑛π‘₯[𝑛]

    52

    EXAMPLES: TIME INVARIANT SYSTEMS

  • A system is linear if it is additive and scalable

    If π‘₯1(𝑑) ⟢ 𝑦1(𝑑) and π‘₯2(𝑑) ⟢ 𝑦2(𝑑)

    Additive

    π‘₯1 𝑑 + π‘₯2 𝑑 ⟢ 𝑦1 𝑑 + 𝑦2(𝑑)

    Scalable

    π‘Žπ‘₯1(𝑑) ⟢ π‘Žπ‘¦1(𝑑) π‘Ž ∈ β„‚

    Then, π‘Žπ‘₯1 𝑑 + 𝑏π‘₯2 𝑑 ⟢ π‘Žπ‘¦1 𝑑 + 𝑏𝑦2(𝑑)

    53

    LINEARITY

  • 𝑦 𝑑 = 𝑑π‘₯(𝑑) 𝑦 𝑛 = 2π‘₯2[𝑛]

    54

    EXAMPLES: LINEAR SYSTEMS