Signal and Systems

Continuous-Time and Discrete-Time Signals: Introduction

Imron Rosyadi

1.1 Continuous-Time and Discrete-Time Signals: Introduction

What is a Signal?

Signals describe patterns of variation that convey information.

  • Electrical Circuits: Voltage/current changes over time.
  • Audio/Speech: Acoustic pressure fluctuations.

Signal (Examples)

Signal (Examples)

Mathematical Representation

Signals are mathematically described as functions of one or more independent variables. Typically, we refer to the independent variable as “time.”

Continuous-Time (CT) Signals: \(x(t)\)

  • Independent variable t is continuous.
  • Defined for a continuum of values.

Discrete-Time (DT) Signals: \(x[n]\)

  • Independent variable n is discrete (integers).
  • Defined only at discrete points.

Mathematical Representation

Continuous-Time (CT) Signals: \(x(t)\)

  • Examples:
    • Speech signal: \(P(t)\)
    • Wind profile vs. height: \(W(h)\)

Discrete-Time (DT) Signals: \(x[n]\)

  • Examples:
    • Weekly Dow-Jones Index: \(D[k]\)
    • Demographic data

Visualizing CT Signals

Continuous-Time Signal Example: \(x(t) = \cos(2\pi t)\)

Visualizing DT Signals

Discrete-Time Signal Example: \(x[n] = \cos(\frac{\pi}{4}n)\)

Origins of Discrete-Time Signals

Discrete-time signals can arise in two ways:

  1. Inherently Discrete Phenomena:
    • Variables are naturally discrete.
    • Examples: Population counts, quarterly economic data, number of defects per batch.
  2. Sampling of Continuous-Time Signals:
    • Converting a continuous signal into a discrete sequence.
    • Process: Measuring the continuous signal’s value at regular intervals.
    • Importance: Foundation of modern digital signal processing.
    • Applications: Digital audio, image processing (pixels are samples of brightness), digital control systems (autopilots).

Signal Energy and Power

Motivation derives from physical systems (e.g., electrical power \(p(t) = v(t)i(t)\) across a resistor).

We extend these concepts to any signal. For a general signal \(x(t)\) or \(x[n]\) , we use \(|x|^2\).

  • Total Energy over a finite interval:
    • CT: \(\int_{t_1}^{t_2} |x(t)|^2 dt\)
    • DT: \(\sum_{n=n_1}^{n_2} |x[n]|^2\)
  • Average Power over a finite interval:
    • CT: \(\frac{1}{t_2-t_1} \int_{t_1}^{t_2} |x(t)|^2 dt\)
    • DT: \(\frac{1}{n_2-n_1+1} \sum_{n=n_1}^{n_2} |x[n]|^2\)

Total Energy (\(E_{\infty}\)) for CT Signals

The total energy of a continuous-time signal \(x(t)\) over an infinite interval is:

\[ E_{\infty} \triangleq \lim _{T \rightarrow \infty} \int_{-T}^{T}|x(t)|^{2} d t=\int_{-\infty}^{+\infty}|x(t)|^{2} d t \]

  • If \(E_{\infty} < \infty\), the signal is a finite-energy signal.
  • If \(E_{\infty} = \infty\), the signal has infinite energy.

Total Energy (\(E_{\infty}\)) for CT Signals

Example: Finite Energy Pulse Signal

Consider a rectangular pulse \(x(t) = 1\) for \(0 \leq t \leq 1\) and \(0\) otherwise.

Total Energy (\(E_{\infty}\)) for DT Signals

The total energy of a discrete-time signal \(x[n]\) over an infinite interval is:

\[ E_{\infty} \triangleq \lim _{N \rightarrow \infty} \sum_{n=-N}^{+N}|x[n]|^{2}=\sum_{n=-\infty}^{+\infty}|x[n]|^{2} \]

  • If \(E_{\infty} < \infty\), the signal is a finite-energy signal.

Total Energy (\(E_{\infty}\)) for DT Signals

Example: Decaying Exponential

Consider \(x[n] = (0.5)^n u[n]\), where \(u[n]\) is the unit step function (\(u[n]=1\) for \(n \ge 0\), \(0\) for \(n < 0\)).

Average Power (\(P_{\infty}\)) for CT Signals

The time-averaged power over an infinite interval for a continuous-time signal \(x(t)\) is:

\[ P_{\infty} \triangleq \lim _{T \rightarrow \infty} \frac{1}{2 T} \int_{-T}^{T}|x(t)|^{2} d t \]

  • If \(E_{\infty} < \infty\), then \(P_{\infty} = 0\).
  • If \(P_{\infty} > 0\) and \(P_{\infty} < \infty\), the signal is a finite-power signal (implying \(E_{\infty} = \infty\)).

Average Power (\(P_{\infty}\)) for CT Signals

Example: Sinusoidal Signal

Consider \(x(t) = A \cos(\omega t + \phi)\). Its average power is \(P_{\infty} = A^2/2\). Let’s test with \(x(t) = \cos(2\pi t)\).

Average Power (\(P_{\infty}\)) for DT Signals

The time-averaged power over an infinite interval for a discrete-time signal \(x[n]\) is:

\[ P_{\infty} \triangleq \lim _{N \rightarrow \infty} \frac{1}{2 N+1} \sum_{n=-N}^{+N}|x[n]|^{2} \]

  • If \(E_{\infty} < \infty\), then \(P_{\infty} = 0\).
  • If \(P_{\infty} > 0\) and \(P_{\infty} < \infty\), the signal is a finite-power signal (implying \(E_{\infty} = \infty\)).

Average Power (\(P_{\infty}\)) for DT Signals

Example: Constant Signal

Consider \(x[n] = 4\).

Signal Classification based on Energy & Power

Signals can be broadly classified into three categories:

graph LR
    A[Signal x] --> B{Calc. $$E_\infty$$};
    B --> C{ $$E_\infty \lt \infty$$ ?};
    C -- Yes --> D[Finite Energy Signal];
    D --> E[$$P_\infty = 0$$];
    C -- No --> F{Calculate $$P_\infty$$};
    F --> G{$$P_\infty \lt \infty$$ ?};
    G -- Yes --> H[Finite Power Signal];
    H --> I[$$E_\infty = \infty$$];
    G -- No --> J[Neither Finite Energy nor Power];
    J --> K[$$E_\infty = \infty$$];
    J --> L[$$P_\infty = \infty$$];

    style D fill:#ddf,stroke:#333,stroke-width:2px;
    style H fill:#dfd,stroke:#333,stroke-width:2px;
    style J fill:#fdd,stroke:#333,stroke-width:2px;

  • Finite Energy Signals: \(E_{\infty} < \infty \implies P_{\infty} = 0\). (e.g., pulses, decaying exponentials)
  • Finite Power Signals: \(P_{\infty} < \infty\) and \(P_{\infty} > 0 \implies E_{\infty} = \infty\). (e.g., periodic signals, constant signals)
  • Neither Finite Energy nor Finite Power: \(E_{\infty} = \infty\) AND \(P_{\infty} = \infty\). (e.g., \(x(t)=t\), \(x[n]=n\))

Key Takeaways

  • Signals convey information through patterns of variation.
  • Distinguish between Continuous-Time (\(x(t)\)) and Discrete-Time (\(x[n]\)) signals.
    • CT: Defined for a continuum of values.
    • DT: Defined only at discrete points (often sampled CT signals).
  • Signals are characterized by their Total Energy (\(E_{\infty}\)) and Average Power (\(P_{\infty}\)).
    • Used to classify signals into finite-energy, finite-power, or neither.