Basics of Signals
Basics of Signals
TEXT BOOKS
1. Signals, Systems & Communications - B.P. Lathi, 2013, BSP.
2. Signals and Systems - A.V. Oppenheim, A.S. Willsky and S.H.
Nawabi, 2 Ed.
3. Peyton Z. Peebles, “Probability, Random Variables & Random
Signal Principles”, 4th Edition, TMH, 2002.
PRAKASAM TUTORIALS:
https://www.youtube.com/playlist?list=PLNb3wUjRD8AkbD
HiGDQOI6fhU68UiMl4g
• Signals and Systems Subject is designed to cover analysis, types,
convolution, sampling and operations performed on signals. It also
describes various types of systems.
• Examples:
➢Human speech is a familiar example of a signal.
➢Electric current and voltage are also examples of signals.
➢voice signal, video signal, signals on telephone wires, EEG,
ECG etc.
• Human Voice – best example
• Ear recognizes sounds 20KHz or less
• AM Radio – 535KHz to 1605KHz
• FM Radio – 88MHz to 108MHz
• A signal can be a function of one or more independent variables. A
signal can be a function of time, temperature, position, pressure,
distance etc.
• If a signal depends on only one independent variable, it is called a
one-dimensional signal, and if a signal depends on two independent
variables, it is called a two-dimensional signal.
What is a System?
• System is a device or combination of devices, which can operate on
signals and produces corresponding response.
1. Continuous-time signal
2. Discrete-time signal
Continuous-time signals
• Continuous time signals are defined for all values of time ‘t’ and it is
represented by x(t).
• Commonly found in the physical world
• ex. Human speech
• The temperature recorded over an interval of time. It is define at
every instant of time.
x(t)
t
Discrete-time signals
• The discrete time signals are defined at discrete instant of time and is
represented by x(n), where n is index.
1 2 3 4 5 6 7 8 9 10 n
A CT signal is called a function.
• Unit Step Signal: The unit step signal has amplitude of 1 for
positive value and amplitude of 0 for negative value of independent
variable.
1 for t ≥ −a
• The advanced unit step signal is u t + 𝑎 = ቊ
0 for t < −a
1 for t ≥ a
• The delayed unit step signal is u t − 𝑎 = ቊ
0 for t < a
u(t+a)
u(t) = 1 for t ≥ 0
1
u(t+a) = 1 for t+a ≥ 0
==> t ≥ -a
t
-a 0
u(t-1) u(t+2)
1
1
t t
0 1 -2 0
u(t) = 1 for t = 0 to ∞ 1
u(t-2) = 1 for t = 2 to ∞ t
0 2
u(t)-u(t-2) = 1 for t = 0 to 2
• The mathematical representation of DT unit step signal u(n) is given
by,
u(n) = 1; n ≥ 0
= 0; n < 0
• The graphical representation of Discrete Time Unit Step Function or
Unit Sequence Function is
u(n)
1
....
n
. . . -3 -2 -1 0 1 2 3 4 . . .
Fig: Unit Step Sequence
Example: Draw the graphical representation of u(n) - u(n-2) signal.
u(n) u(n-2)
1 1
.... ....
n n
. . -2 -1 0 1 2 3 . . . . -2 -1 0 1 2 3 4 . . .
u(n) - u(n-2)
1
d2 p(t) dp(t)
u t = 2
and r t =
dt dt
t2
ඵ 1 dt = න t dt = = p(t)
2
Unit Impulse Function
• Impulse function is denoted by δ(t). and it is defined as
1 for t = 0
δ t = ቊ
0 for t ≠ 0
δ(t)
1
t
. . . . -2 -1 0 1 2 3 . . . . .
Fig: Unit Impulse Signal
• So unit impulse function is the derivative of the unit step
function or unit step is the integral ∞
of the unit impulse function.
du(t)
δ t = and න δ t dt = u t
dt
−∞
−
(t )dt = 1
(t ) = 0 for t 0
• Discrete Time Unit Impulse Function or Unit Pulse Sequence.
1 for n = 0
δ n = ቊ
0 for n ≠ 0
Representation of Impulse Function
∞
1) Shifting Property: (a)−∞ 𝒙 𝒕 𝜹 𝒕 𝒅𝒕 = 𝒙 𝟎
∞
(b) −∞ 𝒙 𝒕 𝜹 𝒕 − 𝒕𝟎 𝒅𝒕 = 𝒙 𝒕𝟎
Proof: (a) Let us consider the product of x(t) and δ(t). Which is x(t)
δ(t).
Let, the signal x(t) is continuous at t = 0, the value of x(t) at t = 0 is
x(0).
The impulse exists only at t = 0.
Therefore, x(t) δ(t) = x(0) δ(t)
Integrating on both sides,
∞ ∞
−∞ x(t) δ(t) 𝑑𝑡 = −∞ x(0) δ(t) 𝑑𝑡
∞ ∞
∞
We, Know that, −∞ δ(t) 𝑑𝑡 = 1
∞
∞
We, Know that, −∞ δ(t−t0) 𝑑𝑡 = 1
∞
• Depending upon the value of ‘a’ the discrete time real exponential
signal may be of following type
➢When a > 1, the exponential sequence x(n) grows
exponentially.
➢When 0 < a < 1, the exponential signal x(n) decays
exponentially.
➢When a < 0, the exponential sequence x(n) takes alternating
signs.
Complex Exponential Signal
• The continuous time complex signal is defined as x(t) = Aest
Where, A is the amplitude of the signal & s is a complex variable.
-1
1 𝑓𝑜𝑟 𝑡 > 0
• The signum function,
sgn 𝑡 = ቐ 0 𝑓𝑜𝑟 𝑡 = 0
−1 𝑓𝑜𝑟 𝑡 < 0
sgn 𝑡 + 1 = 2u(t)
sgn 𝑡 = 2u t − 1
Sinc Function
• The mathematical formulation of the sinc function, also known as
the cardinal sine function. It is denoted as sinc(t).
• For non-periodic signals x(t) ≠ x(t+Tₒ) (or) x(n) ≠ x(n + N). Where
N is the fundamental time period.
2πm
• Fundamental time period N = .
ω
E = න |x t |2 dt Joules
−∞
• The total energy of the discrete time signal x(n) is defined as
∞
E = |x n |2
n=−∞
• Power signal: The signal which has finite average power
(0<P<∞) and infinite energy (E = ∞) is called power signal.
• For non causal system, the output depends upon future inputs also.
Example : y(n) = 2 x(t) + 3 x(t-3) + 6x(t + 3)
Stable and Unstable Systems
• The system is said to be stable only when the output is bounded for
bounded input. For a bounded input, if the output is unbounded in
the system then it is said to be unstable.
• Example : y(t) = x2(t). Let the input is u(t) (unit step bounded
input) then the output y(t) = u2(t) = u(t) = bounded output. Hence,
the system is stable.
Basic Operations ON Signals
Basic Operations ON Signals
• Different operations are required for different purposes of
arbitrary signals.
• The operations on signals can be
1. Time Shifting
2. Time Reversal
3. Time Scaling
4. Amplitude Scaling
5. Signal Multiplier
6. Signal Addition
Time shifting
• Time shifting (also called translation) maps the input signal x(t) to
the output signal y(t) as given by, y(t) = x(t−T); where T is a real
number.
• Such a transformation shifts the signal (to the left or right) along the
time axis.
• Time scaling maps the input signal x(t) to the output signal y(t) as
given by y(t) = x(at), Where a is a non zero real number.
• If a>1, y(t) is compressed along the horizontal axis by a factor of a,
relative to x(t).
π
(ii) x t = 20 cos 10πt +
6
2𝜋
∴𝑇= = 0.4𝜋
5
(ii) 𝑥 𝑡 = sin 50𝜋𝑡
2𝜋 1
∴𝑇= = 𝑠𝑒𝑐.
50𝜋 25
𝜋
(iii) 𝑥 𝑡 = 20 cos 10𝜋𝑡 +
6
𝜋
From given signal , 𝜔0 = 10𝜋 and ∅ =
6
2𝜋 2𝜋 1
Fundamental time period 𝑇 = = = sec.
𝜔0 10𝜋 5
2𝜋 𝜋
Time period of 2cos 10𝑡 + 1 is T1 = = 𝑠𝑒𝑐.
10 5
2𝜋 𝜋
Time period ofsin 4𝑡 − 1 is T2 = = 𝑠𝑒𝑐.
4 2
𝑇1
The ratio is a rational number or ratio of two integers.
𝑇2
π
T1 5 2
=π=
T2 5
2
Therefore, the sum of two signals [i.e., 𝑥1 𝑡 &𝑥2 (𝑡)] are periodic
and the period is given by T = 2T2 = 5T1
1 1
T1 = 𝜋 ∗ and T2 = 𝜋 ∗
5 2
𝑥 𝑡 = 𝑥1 𝑡 + 𝑥2 (𝑡)
Where 𝑥1 𝑡 = 2𝑢 𝑡 = 2 𝑓𝑜𝑟 𝑡 ≥ 0.
1
The signal 𝑢 𝑡 − is not a periodic
2
Problem 3: Determine the power and R.M.S value of
the signal 𝒙 𝒕 = 𝑨 𝒄𝒐𝒔(𝝎𝟎 𝒕 + 𝜽)
Solution: Given, 𝑥 𝑡 = 𝐴 cos(𝜔0 𝑡 + 𝜃)
1 𝑇
The power, p = lim −𝑇 𝑥(𝑡) 2 𝑑𝑡
𝑇→∞ 2𝑇
𝑇
1 2
𝑃 = lim න 𝐴 cos 𝜔0 𝑡 + 𝜃 𝑑𝑡
𝑇→∞ 2𝑇
−𝑇
𝑇
1
𝑃 = lim න 𝐴2 cos2 𝜔0 𝑡 + 𝜃 𝑑𝑡
𝑇→∞ 2𝑇
−𝑇
2
1 + cos 2𝜃
cos 𝜃 =
2
𝑇
𝐴2 1 + cos 2 𝜔0 𝑡 + 𝜃
𝑃 = lim න 𝑑𝑡
𝑇→∞ 2𝑇 2
−𝑇
𝑇 𝑇
𝐴2
𝑃 = lim න 1. 𝑑𝑡 + න cos 2 𝜔0 𝑡 + 𝜃 𝑑𝑡
𝑇→∞ 4𝑇
−𝑇 −𝑇
2 𝑇
𝐴 𝑇
sin 2𝜔0 𝑡 + 2𝜃
𝑃 = lim 𝑡 −𝑇 +
𝑇→∞ 4𝑇 2𝜔0 −𝑇
2 𝑇
𝐴 𝑇
sin 2𝜔0 𝑡 + 2𝜃
𝑃 = lim 𝑡 −𝑇 +
𝑇→∞ 4𝑇 2𝜔0 −𝑇
𝐴2 1 2𝜋 2𝜋
P= lim 2𝑇 + sin 2𝜔0 . + 2𝜃 + sin 2𝜔0 . − 2𝜃
𝑇→∞ 4𝑇 2𝜔0 𝜔0 𝜔0
𝑃
𝐴2 𝐴2 1
= lim 2𝑇 + lim . sin 4𝜋 + 2𝜃 + sin 4𝜋 − 2𝜃
𝑇→∞ 4𝑇 𝑇→∞ 4𝑇 2𝜔0
𝐴2 𝐴2 1
𝑃 = lim + lim + sin 2𝜃 − sin 2𝜃
𝑇→∞ 2 𝑇→∞ 4𝑇 2𝜔0
𝐴2 𝐴2
𝑃= + 0 =
2 2
𝐴2 𝐴
R.M.S value = 𝑝𝑜𝑤𝑒𝑟 = =
2 2
Problem 4: Determine the power and R.M.S value of
𝜋
the following signals: (i) ) 𝑥 𝑡 = 5 cos 50𝑡 +
3
𝜋 𝜋
(ii) 𝑥 𝑡 = 10 sin 50𝑡 + +16) cos 100𝑡 +
4 3
Problem 5: Determine whether a unit step signal u(t) is
energy or power signal.
1; 𝑡 ≥ 0
Solution: We know that, 𝑢 𝑡 = ቊ
0; 𝑡 < 0
∞ 2 ∞ 2
Energy, 𝐸 = −∞ |𝑥 𝑡 | 𝑑𝑡 𝑜𝑟 −∞ 𝑥 (𝑡) 𝑑𝑡
∞ ∞ ∞
𝐸 = න |𝑢 𝑡 |2 𝑑𝑡 = න |1|2 𝑑𝑡 = න 1 𝑑𝑡
−∞ 0 0
𝐸 = [𝑡]∞
0 =∞
1 T
Power, P = lim −T |x t |2 dt
T→∞ 2T
T T
1 2
1
P = lim න |u t | dt = lim න |1|2 dt
T→∞ 2T T→∞ 2T
−T 0
T
1 1 T
1
P = lim න 1 dt = lim [t]0 = lim [T − 0]
T→∞ 2T T→∞ 2T T→∞ 2T
0
1 1 1
P = lim T = lim =
T→∞ 2T T→∞ 2 2
The Energy of the signal is infinity and average power is zero.
Therefore, the u(t) is a power signal.
Assignment Question:
Problem 6: Find the energy and
power of a signal shown in figure.
Problem 7: sketch the following signals.
(i) u(-t+1) (ii) -2u(t-1) (iii) 3r(t-1) (iv) -2r(t)
(v) r(-t+2) (vi) π(t+3)
Fig (c)
(ii)Given x(t)=-2u(t-1).
Draw the unit step signal.
ഥ1 along with V
• Let the component of V ഥ2 is given by C12 V
ഥ2 .
ഥ1 along with the vector V
• The component of a vector V ഥ2 can obtained
by taking a perpendicular from the end of Vഥ1 to the vector Vഥ2 as
shown in diagram.
• The vector Vഥ1 can be expressed in terms of vector V
ഥ2 ,
ഥ1 = C12 V
V ഥ2 + Vഥe
Where V ഥe is the error vector, C12 is coefficient.
• But this is not the only way of expressing vector Vഥ1 in terms of V
ഥ2 .
The alternate possibilities are:
ഥ1 = C1 V
V ഥ2 + Vഥe1 and Vഥ1 = C2 Vഥ2 + Vഥe2
• The error signal is minimum for large component value. If C12=0,
then two signals are said to be orthogonal.
ഥ. B
• The Dot Product of Two Vectors, A ഥ = AB cosθ
ഥ1 . V
• Similarly, V ഥ2 = V1 V2 cosθ
Where, θ = Angle between V1 and V2
ഥ1 . V
• The dot product obeys commutative law, V ഥ2 = V
ഥ2 . V
ഥ1
• The components of V1 along V2 is V2cos(θ)
Vഥ1 . V
ഥ2 ഥ1 . V
V ഥ2
V2 cosθ = and V1 cosθ =
V1 V2
• From the diagram, components of V1 along V2 is C12 V2
ഥ1 . V
V ഥ2
==> V1 cosθ = = C12 V2
V2
ഥ1 . V
V ഥ2
==> C12 =
V22
• If the two vectors V ഥ1 & V ഥ2 are orthogonal, then the dot product of
ഥ1 & V
V ഥ2 is zero. i. e. , V
ഥ1 . V
ഥ2 = 0
• So, C12 = 0
• Signal (Component of a Signal): The concept of orthogonality can
be applied to signals. Let us consider two signals f1(t) and f2(t).
• Similar to vectors, we can approximate f1(t) in terms of f2(t) as
f1 t = C12 f2 t + fe t for t1 < t < t 2
==> fe t = f1 t − C12 f2 t
Where, fe(t) is error function.
• One possible way of minimizing the error is integrating over the
interval t1 to t2.
t2
1
i. e. , න fe t dt
t 2 − t1
t1
t2
1
==> න f1 t − C12 f2 t dt
t 2 − t1
t1
• However, this step also does not reduce the error to appreciable
extent.
• This can be corrected by taking the square of error function and it is
denoted by ϵ.
t2 t2
1 2
1 2
𝜖= න fe (t) dt ==> 𝜖 = න f1 t − C12 f2 t dt
t 2 − t1 t 2 − t1
t1 t1
• Where ε is the mean square value of error signal. The value of C12
dϵ
which minimizes the error, we need to calculate =0
dC12
t2
d 1 2
==> න f1 t − C12 f2 t dt = 0
dC12 t 2 − t1
t1
t2
d 1 2 2 2
==> න f1 t + C12 f2 t − 2C12 f1 t f2 t dt = 0
dC12 t 2 − t1
t1
t2
1 d
==> න f12 t + C12 2 f22 t − 2C12 f1 t f2 t dt = 0
t 2 − t1 dC12
t1
t2
1 d 2 d 2 2 d
=> න f1 t + C12 f2 t − 2C12 f1 t f2 t dt = 0
t 2 − t1 dC12 dC12 dC12
t1
t2
1
==> න 0 + f22 t 2C12 − 2f1 t f2 t dt = 0
t 2 − t1
tt21
t2
t f t gj t dt 1 t2
• But, Cj = 1
t2 2 ==> Cj = f t g j t dt
t gj t dt Kj t1
1
t2
t f t gr t dt 1 t2
1
(or) Cr = t2 2 ==> Cr = t
f t g r t dt
t gr t dt Kr 1
1
t2 t2
− 2 Cr න f t g r t dtቑ
𝑟=1 t1
t2 𝑛 𝑛
1
=⇒ 𝜖 = න f 2 t dt + Cr 2 K r − 2 Cr (Cr K r )
t 2 − t1
t1 𝑟=1 𝑟=1
t2 𝑛 𝑛
1
=⇒ 𝜖 = න f 2 t dt + Cr 2 K r − 2 Cr 2 K r
t 2 − t1
t1 𝑟=1 𝑟=1
t2 𝑛
1 2 2
=⇒ 𝜖 = න f t dt − Cr K r
t 2 − t1
t1 𝑟=1
t2
1 2 2 2 2
𝜖= න f t dt − C1 K1 + C2 K 2 + ⋯ … … + Cn K n
t 2 − t1
t1
• The above equation is used to evaluate the mean square error.
Closed and Complete Set of Orthogonal Functions
• The MSE is given by,
t2 𝑛
1 2 2
𝜖= න f t dt − Cr K r
t 2 − t1
t1 𝑟=1
• Where,
t2 ∗
t 1 f t f 2 t dt
1
C12 = t2
t |f2 t |2 dt
1
==> න f1 t f2∗ t dt = 0
t1
• The above equation represents orthogonality condition in complex
functions.