Unit 2 - Notes

ECE220

Unit 2: Linear Time-Invariant (LTI) Systems

1. Introduction

Signals and systems analysis relies heavily on the concept of Linear Time-Invariant (LTI) systems. While few physical systems are perfectly linear and time-invariant, many can be modeled as such to a high degree of accuracy. The power of LTI systems lies in the fact that they can be completely characterized by their response to a single specific signal: the impulse.

If we know the Impulse Response of an LTI system, we can calculate the output for any arbitrary input signal using Convolution.

Key Definitions

  • Linearity: A system is linear if it satisfies the Principle of Superposition, which includes:
    • Additivity: Response to is .
    • Homogeneity (Scaling): Response to is .
  • Time-Invariance: A time shift in the input signal results in an identical time shift in the output signal.
    • If , then .

2. Continuous-Time and Discrete-Time Systems

Systems are classified based on the nature of the signals they process.

Continuous-Time (CT) Systems

  • Input/Output: Continuous variables defined at all instants of time .
  • Mathematical Model: Typically described by differential equations.
  • Notation: Parentheses, e.g., , .
  • Examples: Analog circuits (RC, RLC), mechanical dampers.

Discrete-Time (DT) Systems

  • Input/Output: Discrete sequences defined only at integer time steps .
  • Mathematical Model: Typically described by difference equations.
  • Notation: Square brackets, e.g., , .
  • Examples: Digital filters, computer algorithms, stock market data processing.

3. Discrete-Time LTI Systems: The Convolution Sum

Representation of Discrete Signals

Any discrete-time signal can be represented as a sum of scaled, shifted unit impulses ():


Here, acts as the coefficient (weight) for the impulse located at .

Derivation of the Convolution Sum

Let be the response of a linear system to a unit impulse . If the system is Time-Invariant, the response to a shifted impulse is .

Applying Linearity (Superposition):

  1. Input:
  2. Output is the sum of the responses to the individual shifted impulses:

This formula is known as the Convolution Sum or discrete convolution. It is denoted as:

Steps to Compute Convolution

To calculate at a specific time :

  1. Change of Variable: Rename the independent variable of the signals to (e.g., , ).
  2. Fold (Reflect): Time-reverse the impulse response to get .
  3. Shift: Shift the folded signal by to get .
  4. Multiply: Multiply by for all .
  5. Sum: Sum the products over all to get the value of .

4. Continuous-Time LTI Systems: The Convolution Integral

Representation of Continuous Signals

Analogous to the discrete case, a continuous signal can be viewed as a sum of weighted impulses in the limit as the width of the impulses approaches zero.

Derivation of the Convolution Integral

Let be the impulse response of the CT LTI system (response to ).
Using the same logic of Linearity and Time-Invariance:

  1. The response to an impulse shifted to , , is .
  2. The response to the weighted impulse is .
  3. Integrating over all :

This is the Convolution Integral, denoted as .

Graphical Interpretation

  1. Plot and on the axis.
  2. Fold about the vertical axis to get .
  3. Shift by to the right (for ) or left (for ) to get .
  4. Multiply the two signals to find the overlap area.
  5. Integrate the area under the product curve. This area equals .

5. Basic System Properties (General)

Before discussing properties specific to LTI systems, we recall general system definitions:

  1. Memory: A system has memory if the output at time depends on past or future inputs (not just the current input).
  2. Invertibility: A system is invertible if distinct inputs produce distinct outputs (i.e., the input can be recovered from the output).
  3. Causality: The output depends only on present and past inputs.
  4. Stability: Bounded Input produces Bounded Output (BIBO).

6. Properties of Linear Time-Invariant Systems

For LTI systems, these properties can be defined entirely in terms of the impulse response .

A. Algebraic Properties of Convolution

  1. Commutative Property:

    Significance: The roles of input and impulse response are interchangeable.
  2. Distributive Property:

    Significance: Parallel connection of two systems ( and ) is equivalent to a single system with impulse response .
  3. Associative Property:

    Significance: Series (cascade) connection of systems allows the impulse responses to be convolved first. The order of cascaded LTI systems does not matter.

B. System Characteristics in Terms of Impulse Response

  1. Memoryless:
    • An LTI system is memoryless if (Discrete) or (Continuous).
    • The output is simply a scaled version of the current input.
  2. Causality:
    • An LTI system is causal if for (or for ).
    • This ensures the system does not respond before the input is applied.
  3. Stability (BIBO):
    • Discrete-Time: Stable if the impulse response is absolutely summable.
    • Continuous-Time: Stable if the impulse response is absolutely integrable.
  4. Unit Step Response:
    • The step response is the running integral (CT) or running sum (DT) of the impulse response.

7. Causal LTI Systems Described by Differential and Difference Equations

While convolution describes the input-output relationship explicitly, systems are often physically modeled using equations relating the rates of change (CT) or time differences (DT).

Linear Constant-Coefficient Differential Equations (LCCDE)

Used for Continuous-Time systems.

  • Complete Solution:
    • : Particular solution (forced response due to input).
    • : Homogeneous solution (natural response due to system structure).
  • Initial Conditions: Required to determine the auxiliary constants in the homogeneous solution. For causal LTI systems, we assume Initial Rest (if input is 0 for , output is 0 for ).

Linear Constant-Coefficient Difference Equations

Used for Discrete-Time systems.

  • Recursive Form:
    • The output depends on previous outputs.
    • Corresponds to IIR (Infinite Impulse Response) systems.
  • Non-Recursive Form: If (no feedback), depends only on current and past inputs.
    • Corresponds to FIR (Finite Impulse Response) systems.

8. Software Simulation of Convolution and Correlation

Convolution Simulation

Software tools (MATLAB, Python/SciPy) perform discrete convolution numerically. Even for continuous signals, simulation requires discretization (sampling).

Concept:
Software creates an array for signal and signal . It implements the "sliding window" sum-of-products algorithm.

  • Length of output signal: If len() = and len() = , then len() = .

Python Implementation:

PYTHON
import numpy as np

# Define signals
x = np.array([1, 2, 3])
h = np.array([1, 1])

# Built-in function
y = np.convolve(x, h)
# Result: [1, 3, 5, 3]

Correlation Simulation

Correlation measures the similarity between two signals as a function of the displacement of one relative to the other.

  • Cross-Correlation (): Measure of similarity between two different signals and .
    • Formula (DT):
    • Difference from Convolution: Convolution involves folding (), Correlation does not ().
    • Relation: .
  • Auto-Correlation (): Correlation of a signal with itself. Used for finding repeating patterns or signal periodicity in noise. maximum value always occurs at lag .

Python Implementation:

PYTHON
import numpy as np

x = np.array([1, 2, 3])
y = np.array([0, 1, 0.5])

# 'valid', 'same', or 'full' modes dictate output size
correlation = np.correlate(x, y, mode='full')

Applications of Simulation

  1. Filtering: Convolution of audio data with a filter kernel (e.g., removing noise).
  2. Pattern Matching: Using Cross-Correlation to find where a short signal (template) appears inside a longer signal (radar/sonar).
  3. Reverberation: Convolving dry audio with the impulse response of a room (hall, cathedral) to simulate acoustics.