Unit 1 - Notes
ECE220
Unit 1: Introduction to Signals
1. Continuous-Time and Discrete-Time Signals
Signals are mathematical functions that convey information about the behavior or attributes of some phenomenon. They are broadly classified based on the nature of the independent variable (usually time).
Continuous-Time (CT) Signals
A signal is a continuous-time signal if the independent variable is continuous.
- Definition: The signal is defined for every instant of time within a range.
- Representation: , where denotes continuous variables.
- Examples: Voltage across a resistor, audio recordings on a vinyl record, temperature in a room over a day.
Discrete-Time (DT) Signals
A signal is a discrete-time signal if the independent variable is discrete.
- Definition: The signal is defined only at integer values of the independent variable.
- Representation: , where denotes discrete integers.
- Origin: Often derived from sampling a CT signal: , where is the sampling period.
- Examples: Stock market indices at closing, pixels in a digital image, digital audio samples.
2. Energy and Power Signals
Signals are classified based on the "size" or strength of the waveform.
Energy Signals
A signal is an Energy signal if it has finite total energy () and zero average power (). These are typically aperiodic signals that decay to zero (transients).
- CT Energy Formula:
- DT Energy Formula:
Power Signals
A signal is a Power signal if it has finite non-zero average power () and infinite total energy (). These are typically periodic or random signals that do not decay.
- CT Power Formula:
- DT Power Formula:
Summary Table
| Signal Type | Energy () | Power () | Typical Characteristic |
|---|---|---|---|
| Energy | Finite | 0 | Non-periodic / Deterministic |
| Power | Infinite | Finite | Periodic / Random |
| Neither | Infinite | Infinite | Unbounded (e.g., ) |
3. Transformations of the Independent Variable
Manipulating the time variable ( or ) transforms the signal geometry.
Time Shifting
Displaces the signal along the time axis.
- Equation:
- Delay: If , the signal shifts to the right.
- Advance: If , the signal shifts to the left.
Time Scaling
Expands or compresses the signal in time.
- Equation:
- Compression: If , the signal plays faster (compresses).
- Expansion: If , the signal plays slower (expands).
- Note for DT: In DT, is known as decimation (down-sampling), which may result in loss of information if not band-limited.
Time Reversal (Reflection)
Reflects the signal across the vertical axis (y-axis).
- Equation:
- This is a special case of scaling where .
Precedence Rule
When multiple transformations occur (e.g., ), standard order of operations matters:
- Shift first:
- Scale second: Replace with
4. Periodic Signals
A periodic signal repeats its pattern indefinitely.
Continuous-Time Periodicity
A signal is periodic if there exists a positive value such that:
- Fundamental Period (): The smallest positive value of .
- Fundamental Frequency: or .
Discrete-Time Periodicity
A signal is periodic if there exists an integer such that:
- Crucial Difference: A CT sinusoid is always periodic. A DT sinusoid is periodic only if is a rational number (ratio of integers).
- Fundamental Period (): Given , the period is (after reducing the fraction).
5. Even and Odd Signals
This classification refers to the symmetry of the signal.
Even Signal (Symmetric)
Ideally symmetric about the vertical axis ().
- Examples: , , constant .
Odd Signal (Anti-symmetric)
Symmetric about the origin.
- Examples: , , .
- Note: An odd signal must be zero at the origin ().
Decomposition Property
Any arbitrary signal can be decomposed into a sum of an even part and an odd part:
- Even Part:
- Odd Part:
6. Exponential and Sinusoidal Signals
These are the fundamental building blocks (basis functions) for signal analysis (Fourier Series/Transform).
Real Exponential
- If : Growing exponential.
- If : Decaying exponential.
Complex Exponential
Using Euler’s Identity:
- This represents a rotating phasor in the complex plane.
- It is a Power signal.
Sinusoidal Signals
- : Amplitude
- : Angular frequency (rad/sec)
- : Phase angle
DT Complex Exponential
- Properties differ from CT; high frequencies in DT are near (oscillating), while low frequencies are near $0$ and .
7. The Unit Impulse and Unit Step Functions
These are "Singularity Functions" used to model system responses.
Unit Step Function ()
Used to represent a signal that switches on at .
Unit Impulse Function () - Dirac Delta
Ideally a pulse with infinite height and zero width, but area equals 1.
- Definition: for , and .
- Sifting Property: Used to extract values from a function.
Discrete-Time Impulse ()
Much simpler than the CT version.
Relationship
- CT: and
- DT: and
8. Operations on Signals
Beyond time transformations, we perform arithmetic operations on signal amplitudes.
- Amplitude Scaling: . Amplifies or attenuates the signal.
- Addition: . Used in mixing signals (e.g., audio mixing).
- Multiplication: . Used in modulation (AM radio) and windowing.
- Differentiation: . Represents rate of change.
- Integration: . Accumulation of the signal over time.
9. Software Simulation of Basic Operations
Below is a generic Python implementation (using NumPy and Matplotlib) to simulate elementary signals and operations.
Generating Elementary Signals
import numpy as np
import matplotlib.pyplot as plt
# Time vector
t = np.linspace(-5, 5, 1000)
n = np.arange(-5, 6)
# 1. Unit Step u(t)
u_t = np.where(t >= 0, 1, 0)
# 2. Unit Impulse delta[n] (Discrete)
delta_n = np.where(n == 0, 1, 0)
# 3. Sinusoid x(t) = A cos(wt + phi)
A, w, phi = 2, 2*np.pi, 0
sine_wave = A * np.cos(w * t + phi)
# 4. Exponential (Decaying)
exp_signal = np.exp(-0.5 * t) * u_t # Multiplied by u(t) to start at 0
# Plotting
plt.figure(figsize=(10, 8))
plt.subplot(2, 2, 1)
plt.plot(t, u_t)
plt.title('Continuous Unit Step u(t)')
plt.grid(True)
plt.subplot(2, 2, 2)
plt.stem(n, delta_n)
plt.title('Discrete Unit Impulse delta[n]')
plt.grid(True)
plt.subplot(2, 2, 3)
plt.plot(t, sine_wave)
plt.title('Sinusoidal Signal')
plt.grid(True)
plt.subplot(2, 2, 4)
plt.plot(t, exp_signal)
plt.title('Real Exponential Signal')
plt.grid(True)
plt.tight_layout()
plt.show()
Simulating Signal Operations (Addition & Scaling)
# Signal 1: Sine wave
x1 = np.sin(2 * np.pi * 1 * t)
# Signal 2: Square wave approximation (sign of sine)
x2 = np.sign(np.sin(2 * np.pi * 2 * t))
# Operation: y(t) = 2*x1(t) + 0.5*x2(t)
y = 2 * x1 + 0.5 * x2
plt.figure()
plt.plot(t, y)
plt.title('Result of Operation: 2*x1 + 0.5*x2')
plt.grid(True)
plt.show()