Introduction
Introduction
1
Signals and Systems
• The concept and theory of signals and systems are needed in almost all engineering and scientific disciplines.
Examples of 1-D Signals
microphone
3
Vision System
• The visual system includes both the eyes and the brain.
• Light (photons) enters the eye where it hits the retina area
and triggers light receptors.
4
SIGNALS
• In electrical engineering, the fundamental quantity of representing some information is called a signal. Signals
may describe a wide variety of physical phenomena.
• Mathematically, a signal is a function 𝑥 𝑡 = 𝑓(𝑡) that conveys some information. 𝑥 is the dependent variable
represented as a function of one or more independent variables (time 𝑡, space [𝑥, 𝑦, 𝑧]).
𝑥 𝑡 = 𝑣𝑖 (𝑡) 𝑦 𝑡 = 𝑣𝑜 (𝑡)
𝟏 𝟏
𝒙[𝒏] 𝒙[−𝒏]
𝟐 𝟐
0.5 0.5
𝟎 𝟎
𝟏 𝟏
𝒙 𝒏 = 𝒙𝒆 𝒏 + 𝒙𝒐 𝒏 𝒙𝒆 𝒏 = [𝒙 𝒏 + 𝒙 −𝒏 ] 𝒙𝒐 𝒏 = [𝒙 𝒏 − 𝒙 −𝒏 ]
𝟐 𝟐
= +
7
Matlab Decomposition a signal into Even and Odd parts
8
sin
CLASSIFICATION OF SIGNALS2
cos
6. Periodic and Non-periodic Signals:
Continuous Discrete
𝒙 𝒕 (or 𝒙[𝒏]) is periodic with period T (or N) if
The fundamental period T of 𝒙 𝒕 is the smallest
positive value of T such that 𝒙 𝒕 + 𝒎𝑻 = 𝒙 𝒕 ⋮
𝒙 𝒕+𝑻 =𝒙 𝒕 𝑻>𝟎
1
The frequency: 𝑓 = 𝑇 𝑠𝑒𝑐 −1 = 𝐻𝑒𝑟𝑡𝑧 𝑐𝑦𝑐𝑙𝑒𝑠/𝑠𝑒𝑐 𝒙 𝒏 + 𝑵 = 𝒙[𝒏] with N must be integer
2𝜋 2𝜋
𝐸𝑥𝑎𝑚𝑝𝑙𝑒: 𝑓𝑜𝑟 𝑇 = 0.1𝑠 ⇒ 𝑓 = 10 𝐻𝑒𝑟𝑡𝑧 10 𝑐𝑦𝑐𝑙𝑒𝑠/𝑠𝑒𝑐 𝜔 = 2𝜋𝑓 = 𝜔 = 2𝜋𝑓 =
𝑇 𝑁
Examples: Determine whether each of the following signals are periodic:
1. 𝑥 𝑡 = 2 𝑐𝑜𝑠 2𝑡 + 𝜋ൗ5 3 𝑚
2.𝑥 𝑛 = cos(3𝑛) → 𝜔 = 3 = 2𝜋 = 2𝜋 → 𝑁 = 2𝜋
2𝜋 𝑁
This signal is a CT sinusoid, so it is periodic. Its Not a Rational number
fundamental angular frequency is 2 rad/sec and 2
Since 𝜋 is irrational ∄ 𝑚 ∈ ℤ 𝑠. 𝑡. 3 𝑚𝜋 ∈ ℤ+
hence its fundamental period is
1
𝑥 𝑡 = 𝐴 𝑐𝑜𝑠 𝜔𝑡 + 𝜑 with 𝜔 = 2𝜋𝑓 = 2𝜋 𝑇 Therefore, 𝑥 𝑛 is not periodic.
2𝜋 2𝜋 5𝜋 5𝜋 (5) 𝑚
𝑇= = =𝜋 𝑇=𝜋 3. 𝑥 𝑛 = cos
5𝜋
𝑛 → 𝜔= = 2𝜋 = 2𝜋 = 2𝜋
𝜔 2 31 31 31 2𝜋 62 𝑁
Are Related and have
cos 𝜔𝑛 , sin 𝜔𝑛 , 𝑒 𝑗𝜔𝑛
same frequency 𝜔 → 𝑁 = 62 therefore, 𝑥 𝑛 is periodic. 9
𝑒 𝑗𝜃 = cos 𝜃 + 𝑗 𝑠𝑖𝑛 𝜃
CLASSIFICATION OF SIGNALS3
7. Energy and Power Signals:
Continuous Discrete
∞
Total Energy: 𝐸∞of 𝒙 𝒕 : 𝐸∞ = −∞ 𝑥(𝑡) 2 𝑑𝑡 (𝑗𝑜𝑢𝑙𝑒𝑠) ∞
𝐸∞ = 𝑥[𝑛] 2
1 𝑇
Total averaged Power: 𝑃∞ of 𝒙 𝒕 : 𝑃∞ = lim 𝑥(𝑡) 2 𝑑𝑡 (𝑤𝑎𝑡𝑡𝑠) 𝑛=−∞
𝑇→∞ 2𝑇 −𝑇
𝐸∞ 𝑁
𝒙 𝒕 is an energy signal if 0 < 𝐸∞ < ∞ then 𝑃∞ = lim =0 Signals with finite total energy 1
𝑇→∞ 2𝑇 2
𝑃∞ = lim 𝑥[𝑛]
𝑁→∞ 2𝑁 + 1
𝒙 𝒕 is a power signal if 0 < 𝑃∞ < ∞ then 𝐸∞ = ∞ Signals with finite average power 𝑛=−𝑁
𝑥[𝑛] 𝑥[−𝑛]
1 𝑡+𝑏 ≥0 1 𝑡 ≥ −𝑏
𝑥 𝑡+𝑏 =ቊ
0 𝑡+𝑏 <0
=ቊ
0 𝑡 < −𝑏 𝑎𝑑𝑣𝑎𝑛𝑐𝑒𝑑
1 𝑡−𝑏 ≥0 1 𝑡≥𝑏
𝑥 𝑡−𝑏 =ቊ =ቊ 𝑑𝑒𝑙𝑎𝑦𝑒𝑑
0 𝑡−𝑏 <0 0 𝑡<𝑏
𝑥(𝑡 − 𝑏)
𝑥(𝑡)
𝑥(𝑡 + 𝑏) 𝑥(𝑡) 𝑥(−𝑡)
0 0 𝑡 0 𝑏 𝑡
−𝑏
𝑂𝑟𝑖𝑔𝑖𝑛𝑎𝑙 𝑎𝑑𝑣𝑎𝑛𝑐𝑒𝑑 𝑑𝑒𝑙𝑎𝑦𝑒𝑑
Example1: Time Shift The signal 𝑥(𝑡 + 1) can be obtained by shifting 𝑥 𝑡 to the left by one unit
Example2: Time reversal The signal 𝑥(−𝑡 + 1) can be obtained from 𝑥 𝑡 using the mathematical definition
0 𝑡<0
1 0≤𝑡<1
𝑥 𝑡 =
2−𝑡 1≤𝑡<2
0 𝑡≥2
0 −𝑡+1<0
1 0 ≤ −𝑡 + 1 < 1
𝑥 −𝑡 + 1 =
2 − (−𝑡 + 1) 1 < −𝑡 + 1 < 2
0 −𝑡+1≥2
0 𝑡>1
1 0≤𝑡<1 First plot 𝑥(𝑡 + 1), then reflect.
𝑥 −𝑡 + 1 =
1+𝑡 −1≤𝑡 <0
0 𝑡 ≤ −1
12
Transformation of the independent Variable3
3 3 1 2
Example3: Time Compression Find 𝑥( 𝑡) ( 𝑎 = > 1 linear compression by a factor of = 3)
2 2 (3Τ2)
Matlab
13
BASIC SIGNALS 𝒖 𝒏−𝟏
⋯
1. The Unit Step signal (Heaviside unit function ): 𝒖[𝒏]
𝒖 𝒕
𝟏 𝒕>𝟎 𝟏 𝒏≥𝟎
𝒖 𝒕 =ቊ 𝒖[𝒏] = ቊ
𝟎 𝒕<𝟎 𝟎 𝒏<𝟎
∞ 𝒕=𝟎 𝜹 𝒕
𝜹 𝒕 =ቊ 𝟏 𝒏=𝟎
𝟎 𝒕≠𝟎 Amplitude infinite
and area one 𝜹[𝒏] = ቊ
0+ → 𝟎 𝒏≠𝟎
න 𝜹 𝒕 𝑑𝑡 = 1
0− 𝒕
𝜹 −𝒕 = 𝜹 𝒕 𝜹 𝒏 = 𝒖 𝒏 − 𝒖[𝒏 − 𝟏] ⋯
∞ Difference Equation
𝑡
𝟏 𝒕>𝟎 𝒖 𝒏 = 𝜹[𝒏 − 𝒌]
𝑢 𝑡 = න 𝜹 𝒕 𝑑𝑡 = ቊ
−∞ 𝟎 𝒕<𝟎 𝒌=𝟎 any sequence 𝒙 𝒏 can be expressed
∞
𝒅𝒖(𝒕) 𝒖 𝒏 = 𝜹 𝒏 +𝜹 𝒏−𝟏 +𝜹 𝒏−𝟐 +⋯
→ 𝜹 𝒕 = 𝒙 𝒏 = 𝒙 𝒌14𝜹[𝒏 − 𝒌]
𝒅𝒕 𝒌=−∞
3. Sinusoidal Signals:
BASIC SIGNALS3 𝒙 𝒕
Angular Frequency Phase
2𝜋
period 𝑇0 = Amplitude
(pulsation)
time
𝜔0
𝒙 𝒕 has a 1
fundamental frequency 𝑓0 = 𝑇 𝒙 𝒕 = 𝑨 𝒄𝒐𝒔 𝝎𝒐 𝒕 + 𝜽 𝒕
0
4. Complex Exponential Signals: the general form is 𝒙 𝒕 = 𝑪 𝒆𝒔𝒕 𝒔 𝒓𝒆𝒂𝒍 < 𝟎 𝒔 𝒓𝒆𝒂𝒍 > 𝟎
16
Signal plot
17
SYSTEMS
• A system is a mathematical model of a physical process (an interconnection of components,
devices, or subsystems) that transforms an input signal (excitation, single or multiple) into an
output signal (response, single or multiple).
SISO MIMO
input signal Output signal
only at that same time. Otherwise, the system is said to have memory.
𝒙 𝒕
Memoryless system: A resistor R with a current as input 𝒙 𝒕 𝒚 𝒕 = 𝒗𝑪 𝒕
𝒙(𝒕)and a voltage as output 𝒚(𝒕) 𝒚 𝒕 = 𝒗𝑹 𝒕
A system is causal if the output at any time depends causal systems the current value of the input x(t) influences the
current value of the output y(t)
only on values of the input at the present time and in 𝒚 𝒕 = 𝒙 𝒕 + 𝒙(𝒕 − 𝟏)
the past (non-anticipative of future values of the input). 𝒚 𝒕 = 𝒙 𝒕 ∙ 𝒄𝒐𝒔(𝒕 + 𝟏)
19
All memoryless systems are causal, but not vice versa. 𝒚[𝒏] = 𝒙[𝒏 − 𝟐]
CLASSIFICATION OF SYSTEMS2
4. lnvertibility and Inverse Systems:
A system is said to be invertible if distinct inputs lead to distinct outputs.
Examples:
• an invertible continuous-time system is 𝒚 𝒕 = 𝒌 𝒙 𝒕
𝟏
𝒚 𝒕 = 𝒌 𝒙 𝒕 → 𝒘 𝒕 = 𝒙 𝒕 = 𝒚(𝒕) 𝟏
𝒌 𝒚 𝒕 = 𝒙(𝒕)
• a Non-invertible continuous-time system is 𝒚 𝒕 = 𝒙𝟐 𝒕 𝒌
we cannot determine the sign of the input from knowledge of the output.
𝒚𝟏 𝒕
𝒙𝟏 𝒕
System 𝒚𝟐 𝒕
𝒙𝟐 𝒕
𝒂 𝒚𝟏 𝒕 + 𝒃𝒚𝟐 𝒕
𝒂 𝒙𝟏 𝒕 + 𝒃𝒙𝟐 𝒕
20
CLASSIFICATION OF SYSTEMS3
6. Time-Invariant and Time-Varying Systems:
A system is called time-invariant if a time shift (delay or advance) in the input signal causes the same time shift in the output
signal (behavior and characteristics of the system are fixed over time).
If the system is linear and time-invariant, then it is called a Linear Time-Invariant system (LTI system).
7. Stability
A system is bounded-input/bounded-output (BIBO) stable if for any bounded input 𝒙 ( 𝒙 ≤ 𝑘1 ) the corresponding output y is
also bounded ( y ≤ 𝑘2 ). A stable system is one in which small inputs lead to responses that do not diverge.
Examples: unstable. stable.
𝒚 𝒕 = 𝒕 𝒙(𝒕) 𝒚 𝒕 = 𝒆𝒙(𝒕)
For bounded input (𝒙 𝒕 = 𝟏) the output For bounded input 𝒙(𝒕) < 𝑩 the output 𝒆−𝑩 < 𝒚(𝒕) < 𝒆𝑩
𝒚 𝒕 = 𝒕 unbounded. bounded.
21
Example 6 (Time Invariance)
1. 𝑇 𝑥[𝑛] = 5𝑥[𝑛 − 10]
5𝑥[𝑛 − 10]
𝑥[𝑛] T 𝑦𝐴 𝑛 = 5𝑥 𝑛 − 10 − 𝑛0
𝑆ℎ𝑖𝑓𝑡
𝑥[𝑛 − 𝑛0 ]
𝑆ℎ𝑖𝑓𝑡 T 𝑦𝐵 𝑛 = 5𝑥 𝑛 − 𝑛0 − 10
𝑦𝐴 𝑛 = 𝑦𝐵 𝑛 ∀ 𝑛 ⇔ 𝑇 𝑖𝑠 𝑡𝑖𝑚𝑒 𝑖𝑛𝑣𝑎𝑟𝑖𝑎𝑛𝑡
Feedback interconnection
series-parallel interconnection
24
Background on complex numbers
𝑟=𝑧 = 𝑥2 + 𝑦2
𝑟 𝑠𝑖𝑛 𝜃
Magnitude of z
The Euler’s formula: can be easily derived using the Taylor series
𝑥2 𝑥4 𝑥3 𝑥5
𝑒 𝑖𝑥 = 1− + −⋯ +𝑖 𝑥− + −⋯
2! 4! 3! 5!