Unit 2.2: Periodic, Energy and Power Signals#

We continue with our survey of Signals and Classification of Signals by looking at Periodic and Nonperiodic Signals and Energy and Power Signals.

This section is based on Section 1.2 of [Hsu, 2020].

Follow along at cpjobling.github.io/eg-150-textbook/signals_and_systems/signals/pep_signals

QR Code

Periodic and Nonperiodic Signals#

Periodic signals#

A continuous-time signal \(x(t)\) is said to be periodic with period \(T\) if there is a positive nonzero value of \(T\) for which

\[x(t + T) = x(t)\;\mathrm{all}\;t\]

An example of such a signal is given in Fig. 18.

An example of a periodic signal.

Fig. 18 An example of a periodic signal.#

We can use the periodicity to synthesize a periodic signal such as that shown in Fig. 18.

Let’s first define the signal over one period. We will use MATLAB and the symbolic math toolbox for this example:

Let one period of the periodic signal be defined by

\[\begin{split}x\left(t\right)=\left\lbrace \begin{array}{ll} t & 0\le t\le 1\\ 0 & \mathrm{otherwise} \end{array}\right.\end{split}\]

We can use the Heaviside function (unit step) (MATLAB function heaviside: see The Unit Step Function) to sythesise this signal.

Define a \(t\) as a symbolic variable t

syms t

Define the period \(T\) of the periodic signal (you might want to play with this value)

T = 1; % period of periodic signal

Now define the signal using the Heaviside function to limit the range of the signal.

x(t) = t * (heaviside(t) - heaviside(t-T));

Now plot one period of the signal \(x(t)\)

fplot(x(t)),ylim([0 1.2]),grid,title('A Single period of x(t)'),xlabel('t')
../../_images/f1afa744cbbdc5c642b96c926dc77d03c875dd4746a79d4b4b426647635e22ea.png

One period earlier:

\[x(t + T)\]
signal1 = x(t + T)
 
signal1 =
 
(t + 1)*(heaviside(t + 1) - heaviside(t))
 
fplot(signal1),ylim([0 1.2]),grid,title('A Single period of x(t+T)')
../../_images/05af8412c61ac24ed6c2178bcf8c71d134a67290e8cb7782dfefdc295a428cf7.png

Two periods later:

\[x(t - 2T)\]
signal2 = x(t-2*T)
 
signal2 =
 
(heaviside(t - 2) - heaviside(t - 3))*(t - 2)
 
fplot(signal2),ylim([0 1.2]),grid,title('A Single period of x(t)')
../../_images/931f1a7d78e24f1a984cf6ac34add180bc06971391d68f3aeef84ac3cb8d0ac4.png

It follows that

\[x(t + mT) = x(t)\]

for all \(t\) and any integer \(m\).

Now we use a loop and the definition of periodic function to repeat this signal multiple times

periodic_signal = 0;
for m = 5:-1:-5
    periodic_signal = periodic_signal + x(t + m*T);
end
periodic_signal
 
periodic_signal =
 
(t + 1)*(heaviside(t + 1) - heaviside(t)) + (heaviside(t - 1) - heaviside(t - 2))*(t - 1) - (heaviside(t + 1) - heaviside(t + 2))*(t + 2) + (heaviside(t - 2) - heaviside(t - 3))*(t - 2) - (heaviside(t + 2) - heaviside(t + 3))*(t + 3) + (heaviside(t - 3) - heaviside(t - 4))*(t - 3) - (heaviside(t + 3) - heaviside(t + 4))*(t + 4) + (heaviside(t - 4) - heaviside(t - 5))*(t - 4) - (heaviside(t + 4) - heaviside(t + 5))*(t + 5) + (heaviside(t - 5) - heaviside(t - 6))*(t - 5) - t*(heaviside(t - 1) - heaviside(t))
 

Now we plot the result

fplot(periodic_signal,'g-',"LineWidth",2),...
    grid,ylabel('x(t)'),xlabel('t'),title('T = 1')
xlim([-3.00 3.00])
ylim([0 1.2])
../../_images/f24b79cb1ca8ee24c47571326c4b5ce1907210c23f3f0484caf7bb90bb24bc5f.png

Fundamental period#

The fundamental period \(T_0\) of \(x(t)\) is the smallest value of \(T\) for which \(x(t + mT) = x(t)\) holds.

For the previous example this was \(T_0=1\).

DC signals#

Note that the definition of the fundamental period does not hold for a constant signal \(x(t)\) (known as a DC signal).

For a constant signal \(x(t) = c\) the fundamental period is undefined since \(x(t)\) is periodic for any choice of \(T\) (and so there is no smallest postive value). See Fig. 19.

A DC signal

Fig. 19 A DC signal#

Note

Note that the sum of two continuous time signals may not be periodic (Example Example 2.1: Sum of two periodic signals)

Nonperiodic signals#

Any continuous-time signal which is not periodic is called a nonperiodic (or aperiodic) signal. For example see Fig. 20

A nonperiodic signal

Fig. 20 A nonperiodic signal#

Energy and Power Signals#

Consider \(v(t)\) to be the voltage across a resistor \(R\) producing a current \(i(t)\). (Fig. 21)

A simple resistor circuit.

Fig. 21 A simple resistor circuit.#

The instantaneous power \(p(t)\) per ohm is defined as

\[p(t) = \frac{v(t)i(t)}{R} = i(t)^2\]

Total energy \(E\) and average power \(P\) on a per-ohm basis are

\[E = \int_{-\infty}^{\infty}i(t)^2\,dt\quad\mathrm{joules}\]
\[P = \lim_{T\to \infty}\frac{1}{T}\int_{-T/2}^{T/2}i(t)^2\;dt\quad\mathrm{watts}\]

Normalised energy content of a signal#

For an arbitrary continuous-time signal \(x(t)\), the normalised energy content \(E\) of \(x(t)\) is defined as

\[E = \int_{-\infty}^{\infty}\left|x(t)\right|^2\,dt\quad\mathrm{J}\]

Normalised average power of a signal#

The normalised average power \(P\) of \(x(t)\) is defined as

\[P = \lim_{T\to \infty}\frac{1}{T}\int_{-T/2}^{T/2}\left|x(t)\right|^2\;dt\quad\mathrm{W}\]

Energy and power signals#

Based on the previous definitions, the following classes of signals can be defined:

  • \(x(t)\) is said to be an energy signal if and only if \(0 < E < \infty\), and so \(P = 0\).

  • \(x(t)\) is said to be an power signal if and only if \(0 < P < \infty\), thus implying that \(E = \infty\).

  • Signals that satisfy neither property are referred to as neither energy signals nor power signals.

Note that a periodic signal is a power signal if its energy content per period is finite, and then the average power of this signal need only be calulated over a period (ex:1.18).

Other Measures of Signal Size#

There are other measures of signal size that are used:

Mean value#

\[M_x = \lim_{T\to \infty}\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,dt\]

For periodic signals with fundamental period \(T_0\)

\[M_x = \frac{1}{T_0}\int_{-T_0/2}^{T_0/2}x(t)\,dt\]

The mean value is also known as the dc value.

Observations

  • the mean value corresponds to the arithmetic average

  • the signal \(x(t) - M_x\) has zero mean

Measures of spread#

Root-mean square (RMS)#

\[\mathrm{RMS}_x = \sqrt{P}\]

E.g. the power of \(x(t) = A\sin\left(\omega t + \theta\right)\) is \(A^2/2\) hence its RMS value is \(A/\sqrt{2}\).

Peak value#

\[\left|x\right|_\mathrm{peak} = \max_t \left|x(t)\right|\]

Crest factor (CF)#

\[\mathrm{CF}_x = \frac{\left|x\right|_\mathrm{peak}}{\mathrm{RMS}_x}\ge 1\]

Peak-to-average power ratio (PAPR)#

\[\mathrm{PAPR}_x = \frac{\left|x\right|_\mathrm{peak}^2}{P}\]

Observations

  • CF and PAPR measure the dispersion of a signal about its average power.

  • To express CF or PAPR we often use decibels (dB). To obtain a measure of the quantity \(y\) in dB use \(20\log_{10}(y)\).

Exercises 2#

Example 2.1: Sum of two periodic signals#

Let \(x_1(t)\) and \(x_2(t)\) be periodic signals with fundamental periods \(T_1\) and \(T_2\) respectively. Under which conditions is the sum \(x(t) = x_1(t) + x_2(t)\) periodic, and what is the fundamental period of \(x(t)\) if it is periodic?

For the answer, refer to the lecture recording or see solved problem 1.14 in [Hsu, 2020].

Exercise 2.2: Periodic signals#

MATLAB Example

We will solve this example by hand and then give the solution in the MATLAB lab.

Determine whether or not each of the following signals is periodic. If a signal is periodic, determine its fundamental period.

a). \(x(t)=\cos\left(t + \frac{\pi}{4}\right)\);

b). \(x(t)=\sin\frac{2\pi}{3}t\);

c). \(x(t)=\cos\frac{\pi}{3}t+\sin\frac{\pi}{4}t\);

d). \(x(t)=\cos t + \sin\sqrt{2}t\);

e). \(x(t)=\sin^2t\);

f). \(x(t)=e^{j\left[(\pi/2)t-1\right]}\);

For the answers, refer to the lecture recording or see solved problem 1.16 in [Hsu, 2020].

Exercise 2.3: Integral properties of periodic signals#

Show that if \(x(t + T) = x(t)\), then

\[\int_\alpha^\beta x(t)\,dt=\int_{\alpha+T}^{\beta+T} x(t)\,dt\]
\[\int_0^T x(t)\,dt=\int_{a}^{a+T} x(t)\,dt\]

for any real \(\alpha\), \(\beta\) and \(a\).

For the answer, refer to the lecture recording or see solved problem 1.17 in [Hsu, 2020].

Exercise 2.4: Power in a periodic signal#

Show that if \(x(t)\) is periodic with fundamental period \(T_0\), then the normalized average power \(P\) of \(x(t)\) defined by

\[P = \lim_{T\to \infty}\frac{1}{T}\int_{-T/2}^{T/2}\left|x(t)\right|^2\;dt\]

is the same as the average power \(x(t)\) over any interval of length \(T_0\), that is,

\[P = \frac{1}{T_0}\int_{0}^{T_0}\left|x(t)\right|^2\;dt\]

For the answer, refer to the lecture recording or see solved problem 1.18 in [Hsu, 2020].

Exercise 2.5: Power and energy signals#

MATLAB Example

We will solve this example by hand and then give the solution in the MATLAB lab.

Determine whether the following signals are energy signals, power signals, or neither.

a). \(x(t)=e^{-at}u_0(t)\), \(a > 0\);

b). \(x(t)=A\cos\left(\omega_0 t + \theta\right)\)

c). \(x(t)=t u_0(t)\)

Note \(u_0(t)\) is the unit step (or Heaviside) function formally introduced in the next lecture. For the answer, refer to the lecture recording or see solved problem 1.20 in [Hsu, 2020].

Exercise 2.6: Power in domestic mains electricty#

Domestic mains power in the UK is delivered as a sinusoidal signal \(x(t)=A\cos(\omega_0 t + \theta)\) with frequency of \(50\mathrm{Hz}\) and RMS value of \(240\mathrm{V}\).

Calculate the fundamental period \(T_0\), fundamental angular frequency \(\omega_0\), average power \(P\), peak voltage \(A = x_\mathrm{peak}\), crest factor (CF) and peak-to-average power ratio (PAPR) of the power signal provided to the home.

Express CF and PAPR in dB.

Summary#

In this lecture we completed our look at signals and the classification of signals.

In particular we have looked at

Unit 2.2: Take aways#

  • A signal is periodic, with period \(T\) is \(x(t + T) = x(t)\;\mathrm{all}\;t\)

  • Signal energy for a signal \(x(t)\):

\[E_x = \int_{-\infty}^{\infty}\left|x(t)\right|^2\,dt\quad\mathrm{J}\]
  • Signal power for a signal \(x(t)\):

\[P_x = \lim_{T\to \infty}\frac{1}{T}\int_{-T/2}^{T/2}\left|x(t)\right|^2\;dt\quad\mathrm{W}\]
  • \(x(t)\) is said to be an energy signal if and only if \(0 < E < \infty\), and so \(P = 0\).

  • \(x(t)\) is said to be an power signal if and only if \(0 < P < \infty\), thus implying that \(E = \infty\).

  • Signals that satisfy neither property are referred to as neither energy signals nor power signals.

  • Signal mean (average or DC value):

\[M_x = \lim_{T\to \infty}\frac{1}{T}\int_{-T/2}^{T/2}x(t)\,dt.\quad\mathrm{For\, a\, periodic\, signal}\;M_x = \frac{1}{T_0}\int_{-T_0/2}^{T_0/2}x(t)\,dt\]
  • Root mean square (RMS): \(\sqrt{P_x}\);

  • Peak value: \(\left|x\right|_\mathrm{peak} = \max_t \left|x(t)\right|\);

  • Crest factor:

\[\mathrm{CF}_x = \frac{\left|x\right|_\mathrm{peak}}{\mathrm{RMS}_x}\ge 1\]
  • Peak-to-average power ratio (PAPR):

\[\mathrm{PAPR}_x = \frac{\left|x\right|_\mathrm{peak}^2}{P}\]
  • Value of \(y\) in decibel (dB) is \(20\log_{10} y\).

Next Time#

Unit 2.3: Elementary Signals

References#

Hsu20(1,2,3,4,5,6)

Hwei P. Hsu. Schaums outlines signals and systems. McGraw-Hill, New York, NY, 2020. ISBN 9780071634724. Available as an eBook. URL: https://www.accessengineeringlibrary.com/content/book/9781260454246.