Complex representation of signals

Lecture 4 · Signal Processing for Communications · University of Klagenfurt, 2019

Nunzio Alexandro Letizia

This lecture

Lecture 4 of 7

  1. The analytic signal and the Hilbert transform
  2. Baseband signals, envelope and phase
  3. Random processes and band-pass noise

From Signal Processing for Communications at the University of Klagenfurt, which I taught in winter 2019: this is that edition, rebuilt for the web, 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. (Part of Assignment 4.)
  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}

Assignment 4

Solve the two exercises below: (a) is the starred exercise of lecture 3, (b) is Ex. 1, item 3.

  1. Let x(t) be a Gaussian process with zero mean and power spectral density R_x(f)=R_0\,\mathrm{triangle}\left(\frac fB\right). Evaluate

    P\left[x(t)+x\left(t-\frac{1}{2B}\right)+x\left(t-\frac1B\right)>2\right]

  2. 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.

Bonus, for an extra grade. Evaluate, in the Cauchy principal value sense,

\int_{-\infty}^{+\infty}\frac{1}{\tau(t-\tau)}\,d\tau

Assignment 4: the solution of (a)

a. z=x(t)+x\left(t-\frac{1}{2B}\right)+x\left(t-\frac1B\right) is a sum of jointly Gaussian zero-mean samples: Gaussian, with zero mean. Its variance needs the autocorrelation

r_x(\tau)=\mathcal{F}^{-1}\left[R_0\,\mathrm{triangle}\left(\tfrac fB\right)\right]=R_0B\,\mathrm{sinc}^2(B\tau)

r_x(0)=R_0B,\qquad r_x\left(\tfrac{1}{2B}\right)=R_0B\,\mathrm{sinc}^2\left(\tfrac12\right)=\frac{4R_0B}{\pi^2},\qquad r_x\left(\tfrac1B\right)=0

Two pairs of samples are \frac{1}{2B} apart and one pair \frac1B apart:

\sigma_z^2=3r_x(0)+4r_x\left(\tfrac{1}{2B}\right)+2r_x\left(\tfrac1B\right)=R_0B\left(3+\frac{16}{\pi^2}\right)

P[z>2]=Q\left(\frac{2}{\sigma_z}\right)=Q\left(\frac{2}{\sqrt{R_0B\,(3+16/\pi^2)}}\right)

For example, with R_0B=1: Q(0.93)\approx0.18.

My notes have no solution to (a): it is added for the web version.

Assignment 4: (b) and the bonus

b. Solved in Ex. 1, item 3: x^{(a)}(t)=-j\,V_0\,\mathrm{sinc}^2(t)\,e^{j2\pi f_0t} and x_H(t)=-V_0\,\mathrm{sinc}^2(t)\cos(2\pi f_0t).

Bonus. For t\neq0, split into partial fractions:

\frac{1}{\tau(t-\tau)}=\frac1t\left(\frac1\tau+\frac{1}{t-\tau}\right)

Both terms have a principal value of zero on the whole line, as each is odd about its pole:

\mathrm{PV}\!\int_{-\infty}^{+\infty}\frac{d\tau}{\tau}=0,\qquad \mathrm{PV}\!\int_{-\infty}^{+\infty}\frac{d\tau}{t-\tau}=0\ \Rightarrow\ \mathrm{PV}\!\int_{-\infty}^{+\infty}\frac{d\tau}{\tau(t-\tau)}=0\quad(t\neq0)

Seen as a convolution, the integral is \pi^2\left(h^{(h)}*h^{(h)}\right)(t), whose transform is \pi^2\left(-j\,\mathrm{sgn}(f)\right)^2=-\pi^2. As a distribution, then,

\int_{-\infty}^{+\infty}\frac{d\tau}{\tau(t-\tau)}=-\pi^2\,\delta(t)

zero everywhere except at t=0: the Hilbert transform applied twice is -1.

My notes have no solution to the bonus: it is added for the web version.

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), usually the carrier, 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

x(t) is not band-pass (it has a line at f=0), so here x_I and x_Q are not low-pass; envelope and phase still follow from the definitions.

My notes have no solution to this one: it is added for the web version.

A DSB system

Let h_T,h_M,h_R be ideal \mathrm{rect} filters with extension \varepsilon(h^+)=(f_0-B,f_0+B), f_0>B, and in-band gains A_T,A_M,A_R; q(t) is an ideal low-pass filter with unit gain on (-B,B). Write the output \hat{x}(t) of the DSB linear modulation system below in terms of the input x(t), without noise (w(t)=0).

x(t) \times \cos(2\pi f_0t+\phi_0) h_T(t) h_M(t) + w(t) x_3(t)

x_3(t) h_R(t) \times \cos(2\pi f_0t+\phi_1) q(t) \hat x(t)

A DSB system: solution

Work with baseband equivalents. The modulator gives

x_1(t)=x(t)\cos(2\pi f_0t+\phi_0)=\mathrm{Re}\left\{x(t)e^{j\phi_0}e^{j2\pi f_0t}\right\}\ \Rightarrow\ x_1^{(bb)}(t)=x(t)\,e^{j\phi_0}

On the baseband, each ideal band-pass filter is a flat gain A_{(\cdot)} on (-B,B), so it lets x through untouched:

y^{(bb)}(t)=A_TA_MA_R\,x(t)\,e^{j\phi_0}

The demodulator and q(t) keep half of the baseband signal, rotated by the receiver phase:

z(t)=y(t)\cos(2\pi f_0t+\phi_1)\ \xrightarrow{\ q\ }\ \hat{x}(t)=\mathrm{Re}\left\{\tfrac12\,y^{(bb)}(t)\,e^{-j\phi_1}\right\}

\hat{x}(t)=\tfrac12A_TA_MA_R\cos(\phi_0-\phi_1)\,x(t)

No distortion, but the gain vanishes when the two phases are \frac\pi2 apart: the receiver needs the carrier phase.

My notes have no solution to this one: it is added for the web version.

Random processes

03

Complex representation of random processes

Let x(t) be a real, stationary random process. Then

x^{(a)}(t)=x*h^{(a)}(t),\qquad x^{(bb)}(t)=x^{(a)}(t)\cdot e^{-j2\pi f_0t}

and the results for the PSD of a filtered process give

R_{x^{(a)}}(f)=4\cdot1(f)\cdot R_x(f)=4\cdot R_{x^+}(f)

R_{x^{(bb)}}(f)=4\cdot1(f+f_0)\cdot R_x(f+f_0)=4\cdot R_{x^+}(f+f_0)=R_{x^{(a)}}(f+f_0)

or, for the autocorrelation, with r_x(\tau)=E\left[x(t+\tau)\,x^*(t)\right],

r_{x^{(bb)}}(\tau)=r_{x^{(a)}}(\tau)\cdot e^{-j2\pi f_0\tau}

Moreover, x^{(a)}(t) and x^{(bb)}(t) are stationary and uncorrelated with their conjugates: E\left[x^{(bb)}(t+\tau)\,x^{(bb)}(t)\right]=0.

Examples

  1. If x^{(bb)}(t)=x_I(t)+j\,x_Q(t), prove that \ R_{x_I}(f)=R_{x_Q}(f)=\frac14\left[R_{x^{(bb)}}(f)+R_{x^{(bb)}}(-f)\right].
  2. If R_{x^{(bb)}}(f) is even, then r_{x_Ix_Q}(\tau)=0 for every \tau.
  3. Band-pass noise. Let n_1(t) be a white Gaussian process, stationary with zero mean and R_{n_1}(f)=\frac{N_0}{2}. It goes through h_R, an ideal band-pass filter with \varepsilon(h_R^+)=(f_0-B,f_0+B) and gain A_R. With the reference f_0, evaluate R_n(f), R_{n^{(bb)}}(f) and R_{n_I}(f).

n_1(t) h_R(t) n(t)

Examples 1 and 2: solutions

1. Write b=x^{(bb)}, so x_I=\frac{b+b^*}{2} and x_Q=\frac{b-b^*}{2j}. Since E[b(t+\tau)\,b(t)]=0, only the cross terms with a conjugate survive:

r_{x_I}(\tau)=\tfrac14E\left[(b(t+\tau)+b^*(t+\tau))(b^*(t)+b(t))\right]=\tfrac14\left[r_b(\tau)+r_b^*(\tau)\right]

r_{x_Q}(\tau)=-\tfrac14E\left[(b(t+\tau)-b^*(t+\tau))(b(t)-b^*(t))\right]=\tfrac14\left[r_b(\tau)+r_b^*(\tau)\right]

The PSD is real, so \mathcal{F}[r_b^*(\tau)]=R_b^*(-f)=R_b(-f), and both relations follow. In particular M_{x_I}=M_{x_Q}=\frac12M_{x^{(bb)}}=M_x.

2. In the same way,

r_{x_Ix_Q}(\tau)=E\left[x_I(t+\tau)\,x_Q(t)\right]=\frac{r_b^*(\tau)-r_b(\tau)}{4j}=-\tfrac12\,\mathrm{Im}\left\{r_b(\tau)\right\}

If R_b(f) is real and even, r_b(\tau) is real, and r_{x_Ix_Q}(\tau)=0 at every lag: x_I and x_Q are uncorrelated (independent, if Gaussian). At \tau=0 it holds for any stationary process, since r_b(0)=E|b|^2 is real.

My notes have no solution to these two: they are added for the web version.

Example 3: solution

R_n(f)=|H_R(f)|^2\,\frac{N_0}{2}=\frac{N_0}{2}A_R^2\left[\mathrm{rect}\left(\frac{f-f_0}{2B}\right)+\mathrm{rect}\left(\frac{f+f_0}{2B}\right)\right]

R_{n^{(bb)}}(f)=4\cdot1(f+f_0)\,R_n(f+f_0)=2N_0A_R^2\,\mathrm{rect}\left(\frac{f}{2B}\right)

and, by Example 1, R_{n_I}(f)=\frac14\left[R_{n^{(bb)}}(f)+R_{n^{(bb)}}(-f)\right]=N_0A_R^2\,\mathrm{rect}\left(\frac{f}{2B}\right). R_{n^{(bb)}} is even, so n_I and n_Q are independent Gaussian processes, each with power M_{n_I}=M_{n_Q}=M_n=2N_0A_R^2B.

Three power spectral densities: two rects of height N0 over 2 times AR squared around plus and minus f0; the baseband one, a rect of height 2 N0 AR squared on minus B to B; the in-phase one, a rect of height N0 AR squared on the same band.

My notes have no solution to this one: it is added for the web version.