Complex representation of signals

Lecture 4 · Communications Engineering · University of Klagenfurt, 2023

Nunzio Alexandro Letizia

This lecture

Lecture 4 of 6

  1. The analytic signal and the Hilbert transform
  2. Baseband signals, envelope and phase

From Communications Engineering at the University of Klagenfurt, first taught in 2020: this is the edition of winter 2023, so some of it may be a little dated. All lectures.

The analytic signal

01

A real signal, half of its spectrum

When x(t) is real, its Fourier transform is Hermitian,

X(f)=X^*(-f)

so the magnitude of X is even and the phase is odd. Split X(f) into a positive and a negative mode,

X(f)=X^+(f)+X^-(f),\qquad X^+(f)=X(f)\cdot1(f),\quad X^-(f)=X(f)\cdot1(-f)

Since x(t) is real, X^-(f)=\left(X^+(-f)\right)^*, so

X(f)=X^+(f)+\left(X^+(-f)\right)^*\ \xrightarrow{\ \mathcal{F}^{-1}\ }\ x(t)=x^+(t)+\left(x^+(t)\right)^*=\mathrm{Re}\left\{2\,x^+(t)\right\}

A real signal is the double real part of its positive mode: the negative frequencies carry no extra information.

The analytic signal

The analytic signal is a complex function of time:

x^{(a)}(t):=2\,x^+(t)\quad\xrightarrow{\ \mathcal{F}\ }\quad X^{(a)}(f)=2\,X^+(f)

It carries all the information of the original real signal x(t), without the intrinsic redundancy of its Fourier transform.

From x to x^{(a)} and back

x(t)\to x^{(a)}(t)=2\,x^+(t)

x^{(a)}(t)\to x(t)=\mathrm{Re}\left\{x^{(a)}(t)\right\}

In frequency

X(f)\to X^{(a)}(f)=2\,X(f)\cdot1(f)

X^{(a)}(f)\to X(f)=\mathcal{F}\left[\mathrm{Re}\left\{\mathcal{F}^{-1}\left[X^{(a)}(f)\right]\right\}\right]

The analytic filter

From X^{(a)}(f)=2\,X(f)\cdot1(f): the analytic filter outputs the analytic signal of its input.

x(t) h^{(a)}(t) x^{(a)}(t)

Its frequency response is

H^{(a)}(f)=2\cdot1(f)

Compute the impulse response h^{(a)}(t).

With 1(t)=\int_{-\infty}^t\delta(\tau)\,d\tau and the integration rule, \mathcal{F}[1(t)]=\frac12\delta(f)+\frac{1}{j2\pi f}. Since \mathcal{F}^{-1}[G](t)=\mathcal{F}[G](-t),

h^{(a)}(t)=\mathcal{F}^{-1}\left[2\cdot1(f)\right]=2\left(\frac12\delta(t)+\frac{1}{j2\pi(-t)}\right)=\delta(t)+j\frac{1}{\pi t}

The Hilbert transform

x^{(a)}(t)=x(t)*\left\{\delta(t)+j\frac{1}{\pi t}\right\}=x(t)+j\,x_H(t)

where x_H(t)=x*h^{(h)}(t)=x*\frac{1}{\pi t} is the Hilbert transform of x(t).

x(t) j\,h^{(h)}(t) j\,x_H(t) + adds x(t) x^{(a)}(t)

Compute the frequency response H^{(h)}(f).

Transform h^{(a)}: \ 1+j\,\mathcal{F}\left[\frac{1}{\pi t}\right]=2\cdot1(f), so j\,\mathcal{F}\left[\frac{1}{\pi t}\right]=2\cdot1(f)-1=\mathrm{sgn}(f) and

H^{(h)}(f)=-j\,\mathrm{sgn}(f)

|H^{(h)}(f)|=1 and \angle H^{(h)}(f)=-\frac\pi2\mathrm{sgn}(f): the Hilbert filter shifts every positive frequency by -\frac\pi2 and every negative one by +\frac\pi2. Applied twice, it gives -x(t).

Ex. 1

  1. Compute the analytic signal of x(t)=V_0\cos(2\pi f_0t+\varphi).
  2. Show that if x(t)=a(t)\cdot q(t), where
    • a(t) is a baseband signal, \varepsilon(a)=(-B,B),
    • q(t) is high-pass or band-pass, \varepsilon(q^+)=(f_1,f_2),
    • f_1>B,
    then x^{(a)}(t)=a(t)\cdot q^{(a)}(t).
  3. Compute the Hilbert transform x_H(t) and the analytic signal x^{(a)}(t) of x(t)=V_0\,\mathrm{sinc}^2(t)\cdot\sin(2\pi f_0t), with f_0>1 Hz.
  4. Compute the Hilbert transform x_H(t) and the analytic signal x^{(a)}(t) of x(t)=\mathrm{sinc}(t).

Ex. 1: solutions

1. X(f)=\frac{V_0}{2}e^{j\varphi}\delta(f-f_0)+\frac{V_0}{2}e^{-j\varphi}\delta(f+f_0); keep and double the positive line: X^{(a)}(f)=V_0e^{j\varphi}\delta(f-f_0), so

x^{(a)}(t)=V_0\,e^{j(2\pi f_0t+\varphi)}=\underbrace{V_0\cos(2\pi f_0t+\varphi)}_{x(t)}+j\underbrace{V_0\sin(2\pi f_0t+\varphi)}_{x_H(t)}

2. X(f)=A(f)*\left\{Q^-(f)+Q^+(f)\right\}. Since f_1>B, A*Q^+ lives on (f_1-B,f_2+B), all positive frequencies, and A*Q^- on negative ones. So X^+=A*Q^+ and

X^{(a)}(f)=2\left(A(f)*Q^+(f)\right)=A(f)*\underbrace{2Q^+(f)}_{Q^{(a)}(f)}\ \xrightarrow{\ \mathcal{F}^{-1}\ }\ x^{(a)}(t)=a(t)\,q^{(a)}(t)

3. a(t)=V_0\,\mathrm{sinc}^2(t) has band 1 Hz <f_0, so item 2 applies, with q^{(a)}(t)=\mathcal{F}^{-1}\left[2\cdot\frac{1}{2j}\delta(f-f_0)\right]=-j\,e^{j2\pi f_0t}:

x^{(a)}(t)=-j\,V_0\,\mathrm{sinc}^2(t)\,e^{j2\pi f_0t}=V_0\,\mathrm{sinc}^2(t)\sin(2\pi f_0t)-j\,V_0\,\mathrm{sinc}^2(t)\cos(2\pi f_0t)

so x_H(t)=-V_0\,\mathrm{sinc}^2(t)\cos(2\pi f_0t), as \mathcal{H}[\sin]=-\cos.

Ex. 1: solutions, continued

4. X(f)=\mathrm{rect}(f), so X^{(a)}(f)=2\,\mathrm{rect}\left(\frac{f-\frac14}{\frac12}\right), a rect of height 2 on \left(0,\frac12\right):

x^{(a)}(t)=\mathrm{sinc}\left(\frac t2\right)e^{j\frac{\pi t}{2}}=\mathrm{sinc}\left(\frac t2\right)\cos\left(\frac{\pi t}{2}\right)+j\,\mathrm{sinc}\left(\frac t2\right)\sin\left(\frac{\pi t}{2}\right)

With \sin2\alpha=2\sin\alpha\cos\alpha the real part is \frac{2\sin(\pi t/2)\cos(\pi t/2)}{\pi t}=\mathrm{sinc}(t), as it must be, and

x_H(t)=\mathrm{sinc}\left(\frac t2\right)\sin\left(\frac{\pi t}{2}\right)=\frac{1-\cos(\pi t)}{\pi t}

Baseband signals

02

The baseband equivalent

Given a reference frequency f_0, the baseband (BB) equivalent of a real band-pass signal x(t) is

x^{(bb)}(t):=x^{(a)}(t)\cdot e^{-j2\pi f_0t}\quad\xrightarrow{\ \mathcal{F}\ }\quad X^{(bb)}(f)=X^{(a)}(f+f_0)=2X^+(f+f_0)

Three spectra: a real band-pass signal with two lobes at plus and minus f0; its analytic signal, only the positive lobe, doubled; its baseband equivalent, that lobe moved to the origin.

In-phase and quadrature

The baseband signal decomposes as

x^{(bb)}(t)=x_I(t)+j\,x_Q(t)

so a real band-pass signal x(t) can always be written as a superposition of the components x_I and x_Q, which leads to the quadrature modulator:

x(t)=x_I(t)\cos(2\pi f_0t)-x_Q(t)\sin(2\pi f_0t)

x_I(t) \times \cos(2\pi f_0t) + the two branches x(t)

x_Q(t) \times -\sin(2\pi f_0t) into the same adder

Envelope, phase, frequency

For a real band-pass signal x(t):

  • Envelope: M_x(t):=\left|x^{(a)}(t)\right|=\left|x^{(bb)}(t)\right|
  • Instantaneous phase: \phi_x(t):=\arg\left\{x^{(a)}(t)\right\}
  • Instantaneous frequency: f_x(t):=\dfrac{1}{2\pi}\dfrac{d\phi_x(t)}{dt}

Given a reference sinusoid x_0(t)=V_0\cos(2\pi f_0t+\phi_0), define

\Delta M_x(t)=M_x(t)-V_0,\qquad \Delta\phi_x(t)=\phi_x(t)-(2\pi f_0t+\phi_0),\qquad \Delta f_x(t)=f_x(t)-f_0

the envelope, phase and frequency deviations. Then x(t) admits the representation

x(t)=\underbrace{\left[V_0+\Delta M_x(t)\right]}_{\text{envelope modulation}}\cos\big(2\pi f_0t+\phi_0+\underbrace{\Delta\phi_x(t)}_{\text{phase modulation}}\big)

An example

Consider the real signal x(t)=V_0\cos^2(2\pi f_0t+\phi_0). Find:

  1. x^{(a)}(t), x_H(t) and x^{(bb)}(t);
  2. x_I(t) and x_Q(t);
  3. M_x(t), \phi_x(t) and f_x(t).
The squared cosine: a periodic signal between zero and V0, at twice the frequency f0.

The example: solution

x(t)=\frac{V_0}{2}+\frac{V_0}{2}\cos(\theta), with \theta=4\pi f_0t+2\phi_0. With 1(0)=\frac12, the constant keeps its value and the cosine becomes an exponential:

x^{(a)}(t)=\frac{V_0}{2}+\frac{V_0}{2}e^{j\theta},\qquad x_H(t)=\frac{V_0}{2}\sin(4\pi f_0t+2\phi_0)

x^{(bb)}(t)=x^{(a)}(t)\,e^{-j2\pi f_0t}=\frac{V_0}{2}e^{-j2\pi f_0t}+\frac{V_0}{2}e^{j(2\pi f_0t+2\phi_0)}

x_I(t)=V_0\cos\phi_0\cos(2\pi f_0t+\phi_0),\qquad x_Q(t)=V_0\sin\phi_0\cos(2\pi f_0t+\phi_0)

Factoring e^{j\theta/2} out of x^{(a)}: \ x^{(a)}(t)=V_0\cos\left(\frac\theta2\right)e^{j\theta/2}, so

M_x(t)=V_0\left|\cos(2\pi f_0t+\phi_0)\right|,\qquad \phi_x(t)=2\pi f_0t+\phi_0\ (\text{up to jumps of }\pi),\qquad f_x(t)=f_0

This example had no written solution in my notes: this one is added for the web version.

Assignment 2

Exercise 1, Fourier transform. Let x(t)=|\sin(\pi t)| and y(t)=\mathrm{rect}\left(\frac t2\right).

  1. Evaluate the area and the energy of z(t)=x(t)\cdot y(t).
  2. Compute the Fourier transform Z(f) of z(t).
  3. Write a Matlab script that verifies the previous result.

Exercise 2, analytic signal. Let x(t) be the real signal x(t)=\mathrm{sinc}(t)*\mathrm{sinc}(2t).

  1. Compute its analytic signal x^{(a)}(t).
  2. Compute its Hilbert transform x_H(t).
  3. Evaluate the energy of x_H(t).
  4. Find the baseband components x_I(t) and x_Q(t).

Assignment 2: the solution

Exercise 1. z(t) is two positive sine arches on [-1,1]:

A(z)=2\int_0^1\sin(\pi t)\,dt=\frac4\pi

E(z)=\int_0^1\left(1-\cos(2\pi t)\right)dt=1

Writing \sin(\pi t)=\frac{e^{j\pi t}-e^{-j\pi t}}{2j} and integrating on [-1,0] and [0,1]:

\begin{aligned}Z(f)&=\sin\left(\pi\left(f+\tfrac12\right)\right)\mathrm{sinc}\left(f+\tfrac12\right)\\&\quad-\sin\left(\pi\left(f-\tfrac12\right)\right)\mathrm{sinc}\left(f-\tfrac12\right)\\&=\frac{4\cos^2(\pi f)}{\pi\left(1-4f^2\right)}\end{aligned}

real and even, with Z(0)=\frac4\pi, the area.

Exercise 2. X(f)=\mathrm{rect}(f)\cdot\frac12\mathrm{rect}\left(\frac f2\right)=\frac12\mathrm{rect}(f), so x(t)=\frac12\mathrm{sinc}(t), and as in Ex. 1.4:

x^{(a)}(t)=\tfrac12\,\mathrm{sinc}\left(\tfrac t2\right)e^{j\pi t/2},\qquad x_H(t)=\frac{\sin^2\left(\frac{\pi t}{2}\right)}{\pi t}

E(x_H)=E(x)=\tfrac12E\left(x^{(a)}\right)=\tfrac12\int_0^{1/2}1\,df=\tfrac14

With the reference f_0=\frac14, the centre of the positive band, x^{(bb)}(t)=\frac12\mathrm{sinc}\left(\frac t2\right):

x_I(t)=\tfrac12\,\mathrm{sinc}\left(\tfrac t2\right),\qquad x_Q(t)=0

Another f_0 gives another, equally valid, pair.

No Matlab for exercise 1 survives: it should draw the numerical transform on top of this curve. Next: Lecture 5, random signals and stochastic processes