A103 of 28
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A10 · Lesson 3 · The complex Fourier series

Spinning phasors for every harmonic

A sine and a cosine at the same frequency are really one phasor seen two ways (A3). So the Fourier series, with its separate cosine and sine coefficients, can be rewritten with a single complex coefficient per harmonic: one spinning phasor cnejnω0t for each frequency, positive and negative. The formulas get shorter, the magnitudes and phases come out directly, and everything in the rest of the course (transforms, transfer functions, the FFT) uses this form.

  • A pulse train is high for a fraction D of each 1 ms period. Its spectrum shows the size |cn| of each harmonic, doubled for the one-sided view.
  • The tops of the lines follow a sinc curve. Where does the first null fall?
  • At D=0.5 (a square wave), every even harmonic vanishes. Why?

Predict

A square wave switching between +1 and −1 is an odd function of time. What kind of numbers are its complex coefficients cn?

Name it

The complex form

A periodic signal with period T and ω0=2π/T is

x(t)=∑n=−∞∞cnejnω0t,cn=1T∫0Tx(t)e−jnω0tdt

Multiplying by e−jnω0t and averaging picks out one harmonic, because the exponentials at different harmonics are orthogonal (A6, lesson 2).

Connecting to sines and cosines

For a real signal, c−n=cn*, so each pair of terms adds to a real sinusoid:

cnejnω0t+c−ne−jnω0t=2|cn|cos⁡(nω0t+∠cn)

So the nth harmonic has amplitude 2|cn| and phase ∠cn, and cn=an−jbn2 in terms of the cosine and sine coefficients. c0 is the average (DC) value.

Symmetry shortcuts

SymmetryCoefficients
even, x(−t)=x(t)real: cosines only
odd, x(−t)=−x(t)imaginary: sines only
half-wave, x(t+T/2)=−x(t)odd harmonics only

The pulse train

A pulse train of height 1 that's on for a fraction D of each period has

cn=Dsinc(nD)=Dsin⁡(πnD)πnD

The DC level is D, and the harmonics' sizes follow a sinc curve whose first null is at n=1/D. Narrow pulses spread their energy over many harmonics.

Worked example

Find the complex coefficients of the ±1 square wave.

Show the solution
  1. Set up the integral. Over one period it's +1 for the first half and −1 for the second, so for n≠0 cn=1T∫0T/2e−jnω0tdt−1T∫T/2Te−jnω0tdt
  2. Evaluate it. cn=1−(−1)njπn
  3. Odd and even n. That's 2jπn for odd n and 0 for even n.
  4. Check against the sine series. The amplitudes match the sine series from lesson 1: 2|cn|=4πn

Answer cn=2jπn for odd n and 0 for even n.

Worked example

A 1 kHz pulse train of height 5 V has 20% duty. What are its DC level and the amplitude of its 1 kHz harmonic?

Show the solution
  1. The DC level. c0=5V×0.2=1V
  2. The first coefficient. c1=5×0.2×sin⁡(0.2π)0.2π=1×0.935=0.935V
  3. The 1 kHz amplitude. 2|c1|=1.87V

Answer the DC level is 1 V, and the 1 kHz component has an amplitude of 1.87 V.

Worked example

Find the complex coefficients c0 and c1 of the full-wave rectified sine |sin⁡t|, whose period is π.

Show the solution
  1. Set up the integral. With period π, the fundamental frequency is 2 rad/s, so cn=1π∫0πsin⁡te−j2ntdt
  2. Evaluate it. cn=−2π(4n2−1)
  3. The DC term. c0=2π=0.637
  4. The first harmonic. c1=−23π=−0.212
  5. What it means. The DC level is twice a half-wave rectifier's (both halves are kept), and there's no component at the original 1 rad/s at all: the ripple starts at twice the input frequency.

Answer c0=0.637 and c1=−0.212.

Check

For the ±1 square wave, what is |cn| for n = 3?

Check

A pulse train of height 5 V has duty cycle 0.1. What is its DC level c0?

Check

A pulse train of height 5 V and duty 0.2: what is the amplitude of harmonic 2?

Check

A pulse train has duty cycle 0.2. Which harmonic is the first to vanish?

Check

A harmonic is 4cos⁡(nω0t)+3sin⁡(nω0t). What is |cn|?

Check

A signal has half-wave symmetry, x(t+T/2)=−x(t). Which harmonics can it contain?

Check

The full-wave rectified sine 1|sin⁡t| has cn=−2Aπ(4n2−1).

(a)

What is c0, its DC level?

(b)

What is the amplitude 2|cn| of the harmonic at 21 rad/s?

Check

A pulse train of height A and duty d.

Step 1

What is c0?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why is c−n the complex conjugate of cn for a real signal?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.