Continuous-Time and Discrete-Time Signals

Motivation

To analyze and process signals, we must first understand their basic properties: what types of signals exist, how we can measure their size, and how they respond to common operations like shifting and scaling. These properties provide the foundation for almost every concept in signal processing. Before we explore systems and transforms, we begin by precisely defining and classifying signals themselves.

Types of signals

Continuous / Discrete

A continuous-time signal x(t) is represented by an uncountably infinite number of dependent variable points (e.g., an uncountably infinite number of values across time).

A discrete-time signal x[n] is represented by a countable (potentially infinite, but not necessarily) number of dependent variable values (e.g., five values across time).

Notation warning: Some texts use the same bracket notation for both continuous-time and discrete-time signals (i.e., x(t) is continuous-time and x[n] is discrete-time). Furthermore, the book denotes discrete-time using m (common in controls literature) rather than n (common in signal processing literature). In this course, we will denote continuous-time signal with round brackets (⋅) and discrete-time signals by square brackets [⋅]. Further, we will typically use t to denote continuous-time signals and n to denote discrete-time signals. Note though that the dependent variable does not need to be time. It could be anything — time, space, speed, force, etc.

An example illustration of a continuous-time signal: x(t) = cos(w t)
Continuous-Time Signal
Example discrete-time signal
Discrete-time signal

Even / Odd

The continuous-time signals x(t) is even when x(-t) = x(t).

The continuous-time signals x(t) is odd when x(-t) = -x(t).

The discrete-time signals x[n] is even when x[-n]=x[n].

The discrete-time signals x[n] is odd when x[-n]=-x[n].

An example illustration of an even, continuous-time signal: x(t) = exp(t^2/sigma^2)
Even, continuous-time signal
An example illustration of an odd, continuous-time signal
Odd, continuous-time signal
An example illustration of an even, discrete-times signal: x[n] = delta[n+2] - 2 delta[n+1] + 3 delta[n] - 2 delta[n-1] + delta[n-1]
Even, discrete-time signal
An example illustration of an even, discrete-times signal: x[n] = delta[n+3] - 2 delta[n+2] + 2 delta[n-2] + delta[n-3]
Odd, discrete-time signal

Causal / Acausal

A continuous-time signal x(t) is said to be causal when

    \[x(t)=0 \qquad \textrm{for} \qquad t <0\]

A continuous-time signal x(t) is said to be anticausal when

    \[x(t) = 0 \qquad \textrm{for} \qquad t \geq 0\]

A discrete-time signal x[n] is said to be causal when

    \[x[n]=0 \qquad \textrm{for} \qquad n < 0\]

A discrete-time signal x[n] is said to be anticausal when

    \[x[n]=0 \qquad \textrm{for} \qquad n \geq0\]

Signals that are not causal are also called acausal. Anticausal signals are a type acausal signals.

An example causal continuous-time signal, showing an exponential ramp from x(t) = 0 to 1, starting at t = 0.
Causal continuous-time signal
An example causal discrete-time signal, showing values for n < 0 be equal to 0 and values n >= 0 with non-zero values.
Causal discrete-time signal

Periodic / Aperiodic

A continuous-time signal x(t) or discrete-time signal x[n] is said to be periodic if some T_0 or N_0 exists such that

    \[x(t) = x(t + m T_0) \qquad \, \qquad x[n] = x[n+m N_0]\]

where T_0 or N_0 is finite and m can equal any integer value. The smallest T_0 or N_0 that satisfies the above conditions is the fundamental period.

The fundamental cyclic frequency is the reciprocal of the fundamental period, such that f_0 = 1/T_0 or f_0 = 1/N_0. All other frequencies in the signal are defined by f_m = m f_0 where m is any integer. These frequencies are known as harmonics.

The fundamental angular frequency is defined by \omega_0 = w \pi f_0. Angular frequency is notationally convenient since the functions cos(\omega_1 t) and sin(\omega_2 t) will have angular frequencies of \omega_1 and \omega_2, respectively.

Caveat (discrete-time): Some signals that are periodic in continuous time are not periodic in discrete time. For example, x[n]=cos(n) is not periodic because cos(n) does not repeat with a rational multiple of 2\pi.

Periodic continuous-time signal
Periodic continuous-time signal
Periodic discrete-time signal
Periodic discrete-time signal

Measures of signal “size”

Energy

The energy of a continuous-time signal x(t) is defined by

    \[E_x = \int_{-\infty}^{\infty} |x(t)|^2 \, dt \;.\]

The energy of a discrete-time signal x[n] is

    \[E_x = \sum_{n=-\infty}^{\infty} |x[n]|^2 \; .\]

An energy signal is a signal with finite energy (i.e., 0 < E_x < \infty).

Physical Interpretation: Energy, in this context, does not refer to a specific physical property. Instead, it describes the “size” of a signal. Our energy, however, can be related to electrical energy. If x(t) is a voltage signal across a load or resistance R, then the energy supplied to that load is E_x/R.

An example discrete-time energy signal, showing a ramp between t = -2 to t = 2 and zero elsewhere.
Example continuous-time signal
Square of our example continuous-time signal. Integrating this signal gives the energy.
Square of our example continuous-time signal. Integrating this signal gives the energy.
 An example continuous-time energy signal, showing a ramp between n = -3 to n = 3 and zero elsewhere.
Example discrete-time signal
Square of our example discrete-time signal. Summing this signal gives the energy.
Square of our example discrete-time signal. Summing this signal gives the energy.

Power (sometimes referred to as average power)

The power of a continuous-time signal x(t) is defined by

    \[P_x = \lim_{T \rightarrow \infty} \frac{1}{T} \int_{-T/2}^{T/2} |x(t)|2 \; , dt \; .\]

When the signal is periodic, the power simplifies to

    \[P_x = \frac{1}{T} \int_{-T/2}^{T/2} |x(t)|2 \; , dt\]

 is a period of the periodic signal. This is equivalent to saying that the power of a periodic signal is equal to the average energy in one period of the signal.

The power of a discrete-time signal x[n] is

    \[P_x = \lim_{N \rightarrow \infty} \frac{1}{2N+1} \sum_{n=-N}^{N} |x[n]|^2 \; .\]

When the signal is periodic, the power simplifies to

    \[P_x=\frac{1}{N}\sum_{n=0}^{N-1}|x[n]|^2 \; ,\]

where N is a period of the periodic signal. This is equivalent to saying that the power of a periodic signal is equal to the average energy in one period of the signal.

A power signal is a signal with finite power (i.e., 0<P_x<\infty).

Physical Interpretation: Power, in this context, does not refer to a specific physical property. Instead, it describes the “size” of a periodic signal. Our power, however, can be related to electrical power. If x(t) is a voltage signal across a load of resistance R, then the power supplied to that load is P_x/R.

Important signal operations

Time shifting

The continuous-time signal y(t) = x(t-T) is the signal x(t) shifted to the right by T units.

The continuous-time signal y(t) = x(t+T) is the signal x(t) shifted to the left by T units.

The discrete-time signal y[n] = x[n-N] is the signal x[n] shifted to the right by N samples.

The discrete-time signal y[n] = x[n+N] is the signal x[n] shifted to the left by N samples.

Example continuous-time signal
Example continuous-time signal
Shifted (advanced) continuous-time signal
Shifted (advanced) continuous-time signal
Shifted (delayed) continuous-time signal
Shifted (delayed) continuous-time signal

Time scaling

Continuous time:

The continuous-time signal y(t) = x(a t) is the signal x(t) condensed by a factor of a.

The continuous-time signal y(t) = x(t / a) is the signal x(t) expanded by a factor of a.

Discrete time:

Scaling only works when a is an integer.

The discrete-time signal y[n] = x[a n] is the signal x[n] downsampled by a factor of a.

The discrete-time signal y[n] = x[n / a] is the signal x[n] upsampled (zero-insert) by a factor of a.

Example continuous-time signal
Example continuous-time signal
Condensed continuous-time signal
Condensed continuous-time signal
Expanded continuous-time signal
Expanded continuous-time signal

Time reversal

The continuous-time signal y(t) = x(-t) is the time-reversed signal of x(t).

The discrete-time signal y[n] = x[-n] is the time-reversed replica of signal x[n].

Expanded continuous-time signal
Expanded continuous-time signal
Time-reversed continuous-time signal
Time-reversed continuous-time signal

Special functions / signals

Impulse functions

The Dirac δ signal (continuous-time impulse signal) is defined by

    \[\delta(t) = \begin{cases} \infty & \text{for } t = 0 \\ 0 & \text{for } t \neq 0 \end{cases}\]

where

    \[\int_{-\infty}^{\infty} \delta(t) \, dt = 1\]

The Kronecker \delta signal (discrete-time impulse signal) is defined by

    \[\delta[n] = \begin{cases}1 & \text{for } n = 0 \\0 & \text{for } n \neq 0\end{cases}\]

The properties of impulse signals:

  • Energy: E_x= \textrm{not well defined}
  • Power: P_x=0
  • Even / Odd?: Even (Understanding why is beyond the purview of this course. You will not be tested on this.)
  • Periodic?: No
  • Causal?: Yes
Dirac delta function
Dirac delta function
Kronecker delta function
Kronecker delta function

Heaviside step functions

The continuous-time Heaviside step function u(t) is defined by

    \[u(t) = \int_{-\infty}^{t} \delta(\tau) \, d\tau = \begin{cases}1 & \text{for } t \geq 0 \\0 & \text{for } t < 0\end{cases}\]

The discrete-time Heaviside step function u[n] is defined by

    \[u[n] = \sum_{k = -\infty}^{n} \delta[k] = \begin{cases}1 & \text{for } n \geq 0 \\0 & \text{for } n < 0\end{cases}\]

The properties of the Heaviside step functions:

  • Energy: E_x=\infty
  • Power: P_x=1/2
  • Even / Odd?: Neither
  • Periodic?: No
  • Causal?: Yes
Continuous-time step function
Continuous-time step function
Discrete-time step function
Discrete-time step function

Other Important Signals

Cosines and sines

The continuous-time cosine and sine signals are defined by

x_(t)=\cos(\omega_0 t) \qquad , \qquad x_2(t)=\sin(\omega_0 t)

The properties of the continuous-time cosines or sines:

  • Energy: E_{x} = \infty
  • Power: P_{x} = 1/2
  • Even / Odd?: \cos(\omega_0 t) is even and \sin(\omega_0 t) is odd
  • Periodic?: Yes
    • Fundamental frequency: f_0 = \omega_0/(2 \pi)
    • Fundamental period: T_0 = 1/f_0
  • Causal?: No
Cosine function
Cosine function
Sine function
Sine function

Stepped exponential

A continuous-time exponential signal is defined by x(t) = e^{a_0 t} u(t)

The properties of the exponential signals are:

  • Energy: E_{x} = \begin{cases} \infty & \text{for } a_0 \geq 0 \\ 1/(2 a_0) & \text{for } a_0 < 0 \end{cases}
  • Power: P_{x} = 0
  • Even / Odd?: No
  • Periodic?: No
  • Causal?: Yes
Stepped exponential function
Stepped exponential function

Complex exponentials

The continuous-time complex exponential signal is defined by x(t) = e^{j \omega_0 t} \ &=& \cos(\omega_0 t) + j \sin(\omega_0 t)

The properties of the continuous-time complex exponential:

  • Energy: E_{x} = \infty
  • Power: P_{x} = 1
  • Even / Odd?: No, but its components are: cos(ω0t) is even and sin(ω0t) is odd
  • Periodic?: Yes
    • Fundamental frequency: f_0 = \omega_0/(2 \pi)
    • Fundamental period: T_0 = 1/f_0
  • Causal?: No
Complex exponential function (blue = real part, red = imaginary part)
Complex exponential function (blue = real part, red = imaginary part)

Stepped general exponential

The continuous-time general exponential signal is defined by x(t) = e^{(j \omega_0 + a_0)t} u(t) \ &=& \left[ e^{a_0 t} \cos(\omega_0 t) + j e^{a_0 t} \sin(\omega_0 t) \right] u(t)

The properties of the general exponential signals are:

  • Energy: E_{x} = \begin{cases} \infty & \text{for } a_0 \geq 0 \\ -1/(2 a_0) & \text{for } a_0 < 0 \end{cases}
  • Power: P_{x} = 0
  • Even / Odd?: No
  • Periodic?: No
  • Causal?: Yes
Stepped complex exponential function (blue = real part, red = imaginary part)
Stepped complex exponential function (blue = real part, red = imaginary part)