Part 3 · Chapter 10

Fourier Series Representation of Periodic Signals

Chapter 6 proved that complex exponentials are the one family of signals an LTI system cannot reshape; this chapter takes that fact seriously and rebuilds every periodic signal out of them, turning the convolution integral of Chapter 7 into a list of multiplications.

Signals and Systems Prof. Mithun Mondal Reading time ≈ 55 min
i What you'll learn
  • Why the impulse decomposition of Chapter 3, for all its generality, is the wrong decomposition when the input is periodic — and what replaces it.
  • The harmonically related set \(e^{jk\omega_0 t}\): why only integer multiples of \(\omega_0\) are allowed, and why that set is exactly large enough.
  • The synthesis equation \(x(t)=\sum_k a_k e^{jk\omega_0 t}\) and the payoff it delivers: convolution collapses into multiplication, one harmonic at a time.
  • The analysis equation for \(a_k\), derived from orthogonality rather than quoted — the derivation is three lines and worth owning.
  • The trigonometric and amplitude–phase forms, how they relate to \(a_k\), and the symmetry shortcuts that kill half the integrals before you start.
  • Line spectra: the square wave, the rectangular pulse train, and the first appearance of the shape that will dominate Part 4.
  • The discrete-time Fourier series — a finite sum of \(N\) terms, exact always, with none of the convergence anxieties of its continuous-time cousin.
Section 10-1

Why a Second Decomposition

Chapter 3 ended with a decomposition that is exact, universal and free of conditions: every signal is a sum of scaled, shifted impulses. Chapter 7 pushed that through an LTI system and obtained convolution. Nothing about that chain is wrong. The difficulty is that convolution is expensive — every output value requires an entire integral over the input's history — and that the result is opaque. Look at \(y(t)=\int h(\tau)x(t-\tau)\,d\tau\) and you cannot see at a glance which features of \(x\) the system keeps and which it discards.

Chapter 6 hinted at the way out. Feed \(e^{st}\) into an LTI system and the convolution integral factors:

The eigenfunction property, from Chapter 6
\[ y(t) = \int_{-\infty}^{\infty} h(\tau)e^{s(t-\tau)}d\tau = e^{st}\underbrace{\int_{-\infty}^{\infty} h(\tau)e^{-s\tau}d\tau}_{H(s)} = H(s)\,e^{st} \]

For this one family of inputs, the integral is done once and for all and produces a single complex number. No convolution survives. The system's entire action on \(e^{st}\) is a multiplication by \(H(s)\) — a stretch of amplitude and a shift of phase, nothing more.

That suggests an obvious strategy, and it is the strategy of the next eight chapters. If we can write an arbitrary input as a combination of exponentials, then linearity finishes the job: multiply each exponential by its own \(H\), add the results, and the output is known without ever performing a convolution. The impulse decomposition gave us building blocks that are easy to write down; the exponential decomposition gives us building blocks that are easy to push through a system.

The remaining question is which exponentials to use, and the answer depends on the signal. For a periodic signal the answer is startlingly economical: a countable set of exponentials, all at integer multiples of one frequency, suffices exactly. That is the Fourier series, and it is this chapter. For an aperiodic signal the set must become a continuum, which is the Fourier transform of Chapter 13.

Two decompositions, two chapters of Part 2 revisited. Impulses are the natural blocks when you care about when things happen — transients, delays, causality. Exponentials are the natural blocks when you care about how fast things vary — filtering, resonance, bandwidth. The whole of Parts 3 to 5 consists of learning to move between the two views at will.
Section 10-2

Harmonically Related Exponentials

Take a signal \(x(t)\) that is periodic with fundamental period \(T\), so \(x(t+T)=x(t)\), and define the fundamental frequency \(\omega_0 = 2\pi/T\) as in Chapter 2. If we intend to build \(x\) out of complex exponentials \(e^{j\omega t}\), the very first constraint is that the pieces must themselves be periodic with period \(T\) — a sum of signals none of which repeats every \(T\) seconds cannot repeat every \(T\) seconds either.

So ask which frequencies survive that test. The exponential \(e^{j\omega t}\) is periodic with period \(T\) exactly when \(e^{j\omega(t+T)} = e^{j\omega t}\), that is when \(e^{j\omega T}=1\), that is when \(\omega T\) is an integer multiple of \(2\pi\). Writing that integer as \(k\) gives \(\omega = k\,(2\pi/T) = k\omega_0\), and nothing else is admissible.

🔑
The harmonically related set
\[ \phi_k(t) = e^{jk\omega_0 t}, \qquad \omega_0 = \frac{2\pi}{T}, \qquad k = 0, \pm 1, \pm 2, \ldots \]

These are the only complex exponentials with period \(T\). The index \(k\) names the harmonic: \(k=0\) is the constant term, \(k=\pm1\) the fundamental, \(k=\pm2\) the second harmonic, and so on. The whole set is generated by one number, \(\omega_0\).

The word harmonic is not decoration. The \(k\)th member completes exactly \(k\) cycles in the time the fundamental completes one, which is why a violin string vibrating at 220 Hz also carries energy at 440, 660 and 880 Hz and not at 300 Hz. A periodic waveform of period \(T\) is physically constrained to the frequencies \(k\omega_0\); the shape of the waveform decides only how much sits at each.

Two details deserve care. First, \(\phi_k\) is periodic with period \(T\) but its fundamental period is \(T/|k|\); it repeats \(k\) times within one period of \(x\), which is precisely why it fits. Second, negative \(k\) is not redundant. In the real-signal case \(\phi_{-k}\) is the conjugate of \(\phi_k\), and it is the pairing of the two that produces a real cosine — Section 10-5 makes that explicit. Discarding negative \(k\) would leave us unable to represent a real signal at all.

Section 10-3

The Synthesis Equation and What It Buys

Fourier's claim — and it was a claim, disbelieved by Lagrange and Laplace for years before it was proved — is that the harmonic set is not merely admissible but complete: every reasonable periodic signal is a weighted sum of its members, and the weights are unique. Chapter 11 states precisely what "reasonable" means. For now, take the representation as given.

🔑
Synthesis equation — continuous-time Fourier series
\[ x(t) \;=\; \sum_{k=-\infty}^{\infty} a_k\,e^{jk\omega_0 t}, \qquad \omega_0 = \frac{2\pi}{T} \]

The complex numbers \(a_k\) are the Fourier series coefficients, or the spectral coefficients, of \(x(t)\). Each carries a magnitude, saying how much of that harmonic is present, and a phase, saying where in its cycle that harmonic sits at \(t=0\).

Before working out how to find the \(a_k\), it is worth seeing what the representation is for. Suppose this periodic \(x(t)\) is applied to an LTI system with impulse response \(h(t)\). Each term \(a_k e^{jk\omega_0 t}\) is an exponential, so by the eigenfunction property it emerges as \(a_k H(jk\omega_0) e^{jk\omega_0 t}\), where \(H(j\omega)=\int h(\tau)e^{-j\omega\tau}d\tau\) is the system's frequency response. Linearity then adds the pieces back up.

Response of an LTI system to a periodic input
\[ x(t)=\sum_{k=-\infty}^{\infty} a_k e^{jk\omega_0 t} \quad\Longrightarrow\quad y(t)=\sum_{k=-\infty}^{\infty} a_k\,H(jk\omega_0)\,e^{jk\omega_0 t} \]

Read the two sides carefully, because this single line is the reason the subject exists. The input has coefficients \(a_k\); the output has coefficients \(a_k H(jk\omega_0)\). The convolution integral has become an ordinary multiplication, performed separately on each harmonic. And the output is still periodic with the same period \(T\), because no new frequencies were created — an LTI system can amplify, attenuate and delay the harmonics it is given, but it cannot invent one that was not there.

LTI system h(t) ↔ H(jω) a₋₁ e a₀ a₁ e −jω₀t jω₀t a₋₁ H(−jω₀) e a₀ H(0) a₁ H(jω₀) e −jω₀t jω₀t every harmonic travels its own private path no frequency is created, none is destroyed — only rescaled
Convolution becomes multiplication, harmonic by harmonic
Where Chapter 9 rejoins the story. A system given by a differential equation has no obvious impulse response, but it has an obvious \(H(j\omega)\): substitute \(e^{j\omega t}\) into the equation and every derivative becomes a factor of \(j\omega\), so the whole equation collapses to a ratio of polynomials. That is why Chapter 9's constant-coefficient equations and this chapter's harmonics belong together, and it is the calculation Chapter 12 turns into a routine.
Section 10-4

The Analysis Equation

We now need the coefficients. The trick is the same one used to extract a component of a vector: find something that is "perpendicular" to every block except the one you want, and take an inner product. For signals, the inner product is an integral over one period, and the perpendicularity statement is the following.

Orthogonality of the harmonic set
\[ \int_{T} e^{jk\omega_0 t}\,e^{-jn\omega_0 t}\,dt \;=\; \int_{T} e^{j(k-n)\omega_0 t}\,dt \;=\; \begin{cases} T, & k = n\\[2pt] 0, & k \ne n\end{cases} \]

Both cases are one line. If \(k=n\) the integrand is \(e^{0}=1\) and the integral over an interval of length \(T\) is \(T\). If \(k \ne n\), write \(m = k-n\), a non-zero integer, and integrate directly over \(0\) to \(T\):

The off-diagonal case
\[ \int_{0}^{T} e^{jm\omega_0 t}\,dt = \left[\frac{e^{jm\omega_0 t}}{jm\omega_0}\right]_{0}^{T} = \frac{e^{jm\omega_0 T}-1}{jm\omega_0} = \frac{e^{j2\pi m}-1}{jm\omega_0} = 0 \]

because \(\omega_0 T = 2\pi\) and \(e^{j2\pi m}=1\) for every integer \(m\). Geometrically the reason is even simpler: \(e^{jm\omega_0 t}\) traces \(|m|\) complete circles about the origin as \(t\) crosses one period, and the average of a point going round a full circle is the centre.

Now apply this. Multiply the synthesis equation by \(e^{-jn\omega_0 t}\) and integrate over one period. Interchanging sum and integral — legitimate under the conditions of Chapter 11 — every term dies except \(k=n\):

Extracting a single coefficient
\[ \int_{T} x(t)e^{-jn\omega_0 t}dt = \int_{T}\left(\sum_{k=-\infty}^{\infty} a_k e^{jk\omega_0 t}\right)e^{-jn\omega_0 t}dt = \sum_{k=-\infty}^{\infty} a_k \int_{T} e^{j(k-n)\omega_0 t}dt = a_n T \]
🔑
Analysis equation — continuous-time Fourier series
\[ a_k \;=\; \frac{1}{T}\int_{T} x(t)\,e^{-jk\omega_0 t}\,dt \]

The subscript on the dummy index has been renamed. The notation \(\int_T\) means an integral over any one full period — from \(0\) to \(T\), from \(-T/2\) to \(T/2\), or any other interval of length \(T\), since the integrand is itself periodic and the choice cannot matter. Choose whichever interval makes \(x(t)\) easiest to write.

Setting \(k=0\) collapses the exponential to 1 and leaves \(a_0 = \frac{1}{T}\int_T x(t)\,dt\): the coefficient of the zeroth harmonic is simply the average value of the signal over a period, its DC component. This is worth checking first in any problem, because it is free and it catches sign errors immediately.

The pair of boxed equations is the whole apparatus. Analysis takes a waveform and returns a list of numbers; synthesis takes the list and rebuilds the waveform. They are inverses, and the standard shorthand for the pairing is

Notation used throughout Part 3
\[ x(t) \;\stackrel{\mathcal{FS}}{\longleftrightarrow}\; a_k \]
Section 10-5

Trigonometric and Amplitude–Phase Forms

The exponential form is the one to compute with, but it has an uncomfortable feature: a real signal like a voltage is written as a sum of complex terms. The discomfort is illusory, and seeing why produces two alternative forms that are often more useful for interpretation.

Suppose \(x(t)\) is real. Then \(x^*(t)=x(t)\), and conjugating the synthesis equation gives \(x(t)=\sum_k a_k^* e^{-jk\omega_0 t}\). Replacing the summation index \(k\) by \(-k\) turns this into \(x(t)=\sum_k a_{-k}^* e^{jk\omega_0 t}\). Two Fourier series for the same signal must have the same coefficients, so:

🔑
Conjugate symmetry for real signals
\[ x(t)\ \text{real} \quad\Longleftrightarrow\quad a_{-k} = a_k^{*} \]

Consequently \(|a_{-k}|=|a_k|\) — the magnitude spectrum is even — and \(\angle a_{-k} = -\angle a_k\) — the phase spectrum is odd. The negative-frequency half of the spectrum carries no new information for a real signal; it is a mirror image, and it exists only so that the imaginary parts cancel.

Now group the terms in \(\pm k\) pairs. Writing \(a_k = |a_k|e^{j\theta_k}\), the pair contributes

A conjugate pair is a real cosine
\[ a_k e^{jk\omega_0 t} + a_k^{*}e^{-jk\omega_0 t} = 2\,\mathrm{Re}\big\{a_k e^{jk\omega_0 t}\big\} = 2|a_k|\cos\!\big(k\omega_0 t + \theta_k\big) \]

which is manifestly real. Summing over \(k \ge 1\) and adding the \(k=0\) term — real by the symmetry rule, since \(a_0=a_0^*\) — gives the amplitude–phase form. Expanding each cosine with the compound-angle identity gives the trigonometric form.

The three equivalent forms of the Fourier series of a real signal
\[ x(t) = \sum_{k=-\infty}^{\infty} a_k e^{jk\omega_0 t} = C_0 + \sum_{k=1}^{\infty} C_k\cos(k\omega_0 t + \theta_k) = A_0 + \sum_{k=1}^{\infty}\big[A_k\cos k\omega_0 t + B_k \sin k\omega_0 t\big] \]

The dictionary between them follows from \(\cos(k\omega_0t+\theta_k) = \cos\theta_k\cos k\omega_0 t - \sin\theta_k \sin k\omega_0 t\), which identifies \(A_k = C_k\cos\theta_k\) and \(B_k = -C_k\sin\theta_k\), so that \(a_k = \tfrac{1}{2}C_k e^{j\theta_k} = \tfrac{1}{2}(A_k - jB_k)\). Collecting the results:

QuantityFrom the exponential coefficientsDirect integral over one period
DC term \(A_0 = C_0 = a_0\)\(a_0\) is real\(\dfrac{1}{T}\displaystyle\int_T x(t)\,dt\)
Cosine coefficient \(A_k\)\(2\,\mathrm{Re}\{a_k\}\)\(\dfrac{2}{T}\displaystyle\int_T x(t)\cos k\omega_0 t\,dt\)
Sine coefficient \(B_k\)\(-2\,\mathrm{Im}\{a_k\}\)\(\dfrac{2}{T}\displaystyle\int_T x(t)\sin k\omega_0 t\,dt\)
Harmonic amplitude \(C_k\)\(2|a_k|\)\(\sqrt{A_k^2+B_k^2}\)
Harmonic phase \(\theta_k\)\(\angle a_k\)\(-\arctan(B_k/A_k)\), quadrant-corrected
Which form to use. Compute in the exponential form — one integral instead of two, and the algebra of Chapter 11's properties is far cleaner there. Report in the amplitude–phase form, because \(C_k\) and \(\theta_k\) are what an instrument measures and what a specification constrains. The trigonometric form is mainly a bridge between the two, though it is the form in which symmetry arguments read most naturally, as the next section shows.
Section 10-6

Symmetry Shortcuts

Chapter 2 classified signals as even, odd or neither, and Chapter 4 showed how to split any signal into those two parts. The classification earns its keep here: each symmetry of \(x(t)\) forces a whole family of coefficients to vanish, and recognising one before integrating can halve or quarter the work.

Start with an even real signal, \(x(-t)=x(t)\). Use the symmetric period \(-T/2\) to \(T/2\) and split the exponential into its cosine and sine parts. The product \(x(t)\sin k\omega_0 t\) is even times odd, hence odd, and an odd function integrated over a symmetric interval gives zero. Only the cosine part survives, so \(B_k = 0\) and \(a_k\) is real. The mirror argument for an odd signal kills the cosine part instead.

Even and odd symmetry
\[ x(-t)=x(t) \ \Rightarrow\ B_k = 0,\quad a_k \ \text{real and even in } k \qquad\qquad x(-t)=-x(t) \ \Rightarrow\ A_0=A_k=0,\quad a_k \ \text{purely imaginary and odd in } k \]

The third symmetry is less familiar and more powerful. A signal has half-wave symmetry when shifting it by half a period inverts it: \(x(t \pm T/2) = -x(t)\). A square wave has it; a sawtooth does not. The claim is that such a signal contains no even harmonics whatsoever, and the proof is a substitution.

Split the analysis integral at \(T/2\), and in the second half put \(t = \tau + T/2\). Then \(x(\tau+T/2) = -x(\tau)\) by hypothesis, while the exponential picks up a factor \(e^{-jk\omega_0 T/2} = e^{-jk\pi} = (-1)^k\):

Why half-wave symmetry removes the even harmonics
\[ a_k = \frac{1}{T}\int_{0}^{T/2}\! x\,e^{-jk\omega_0 t}dt \;-\; \frac{(-1)^k}{T}\int_{0}^{T/2}\! x\,e^{-jk\omega_0 \tau}d\tau \;=\; \frac{1-(-1)^k}{T}\int_{0}^{T/2}\! x(t)\,e^{-jk\omega_0 t}\,dt \]

The bracket \(1-(-1)^k\) is \(0\) for even \(k\) and \(2\) for odd \(k\). Every even coefficient vanishes, including \(a_0\) — a half-wave symmetric signal necessarily has zero average — and every odd coefficient reduces to an integral over half a period. Recognising this symmetry in an examination question typically saves more time than any other single observation.

Symmetry of \(x(t)\)Consequence for the coefficientsIntegral you actually have to do
Real\(a_{-k}=a_k^*\); \(|a_k|\) even, \(\angle a_k\) oddOnly \(k \ge 0\)
Real and even\(a_k\) real and even; \(B_k=0\)\(A_k = \frac{4}{T}\int_0^{T/2}x\cos k\omega_0 t\,dt\)
Real and odd\(a_k\) imaginary and odd; \(A_k=0\), \(a_0=0\)\(B_k = \frac{4}{T}\int_0^{T/2}x\sin k\omega_0 t\,dt\)
Half-wave, \(x(t+T/2)=-x(t)\)\(a_k=0\) for all even \(k\), \(a_0=0\)Odd \(k\) only, over half a period
Quarter-wave (half-wave and even)Odd cosine harmonics onlyQuarter period suffices
Symmetry is a property of the chosen origin. A square wave that is odd about \(t=0\) becomes even if the time axis is shifted by a quarter period, and its coefficients turn from purely imaginary to purely real. Nothing physical changed — Chapter 11's time-shift property shows that only the phases moved. Before integrating, it is always worth asking whether a shift of origin would make the signal even or odd, and taking it.
Section 10-7

Line Spectra: the Square Wave and the Pulse Train

A Fourier series is a list of complex numbers indexed by an integer, and the natural way to display it is a pair of stem plots: \(|a_k|\) against \(k\), and \(\angle a_k\) against \(k\). Because the frequencies present are isolated multiples of \(\omega_0\), the picture consists of discrete lines rather than a continuous curve, and it is called the line spectrum. The gaps between the lines are real: a periodic signal genuinely contains no energy at any frequency other than \(k\omega_0\).

Take the odd square wave of amplitude 1 — equal to \(+1\) on \((0,T/2)\) and \(-1\) on \((-T/2,0)\). It is real and odd, so \(A_k=0\) and only sine terms appear; it has half-wave symmetry, so only odd \(k\) survives. Both facts drop out of the one integral we still have to do:

Sine coefficients of the square wave
\[ B_k = \frac{2}{T}\left[\int_{0}^{T/2}\!\sin k\omega_0 t\,dt - \int_{T/2}^{T}\!\sin k\omega_0 t\,dt\right] = \frac{2}{T}\cdot\frac{2\big[1-\cos k\pi\big]}{k\omega_0} = \frac{2}{\pi k}\big[1-(-1)^k\big] \]

which is \(4/\pi k\) when \(k\) is odd and zero when \(k\) is even, exactly as the symmetry arguments promised.

🔑
Fourier series of the unit square wave
\[ x(t) = \frac{4}{\pi}\left[\sin\omega_0 t + \frac{1}{3}\sin 3\omega_0 t + \frac{1}{5}\sin 5\omega_0 t + \cdots\right] = \frac{4}{\pi}\sum_{k \ \text{odd}} \frac{\sin k\omega_0 t}{k} \]

Odd harmonics only, amplitudes falling as \(1/k\). The fundamental alone has amplitude \(4/\pi \approx 1.273\) — larger than the square wave it approximates, which is the first hint of the overshoot studied in Chapter 11.

t +1 −1 −T/2 T/2 — fundamental only — through 3rd — through 9th
Partial sums closing in on the square wave — note the persistent bump at each jump

The second canonical example is the periodic rectangular pulse train: a pulse of unit height and width \(2T_1\) centred on the origin, repeating with period \(T\). It is real and even, so the coefficients will be real. Integrating only over the interval where the signal is non-zero,

Coefficients of the pulse train
\[ a_k = \frac{1}{T}\int_{-T_1}^{T_1} e^{-jk\omega_0 t}\,dt = \frac{1}{T}\left[\frac{e^{-jk\omega_0 t}}{-jk\omega_0}\right]_{-T_1}^{T_1} = \frac{2\sin(k\omega_0 T_1)}{k\omega_0 T} = \frac{\sin(k\omega_0 T_1)}{k\pi}, \qquad a_0 = \frac{2T_1}{T} \]

The last simplification uses \(\omega_0 T = 2\pi\). The \(k=0\) value cannot be read from the formula — it is \(0/0\) — so it is obtained separately as the average, which is the duty cycle \(2T_1/T\), and it is also the limit of the general expression as \(k \to 0\).

Two features of this result are worth fixing in memory. First, the coefficients are samples of a smooth envelope: writing \(a_k = \frac{2T_1}{T}\cdot\frac{\sin(k\omega_0T_1)}{k\omega_0 T_1}\) exposes the function \(\sin\xi/\xi\), the sinc shape promised at the end of Chapter 3. Second, the envelope has zeros wherever \(k\omega_0T_1\) is a multiple of \(\pi\), so the spectrum has evenly spaced nulls whose position depends on the pulse width alone. Narrow the pulse and the nulls move outward: a short pulse needs a wide band of harmonics, a long one does not. That reciprocity between duration and bandwidth is a theme of the rest of the book.

k a k −8 −4 0 4 8 T = 8, 2T₁ = 2 — envelope sin(kω₀T₁)/kπ, nulls at every multiple of 4
Line spectrum of a pulse train — discrete lines under a continuous envelope
Section 10-8

The Discrete-Time Fourier Series

Everything above has a discrete-time counterpart, and as usual in this subject the discrete version is the simpler one. Let \(x[n]\) be periodic with fundamental period \(N\), so \(x[n+N]=x[n]\), and set \(\Omega_0 = 2\pi/N\). The candidate building blocks are \(\phi_k[n]=e^{jk\Omega_0 n}\), and the argument of Section 10-2 applies unchanged: these are periodic in \(n\) with period \(N\) exactly for integer \(k\).

But now Chapter 3's warning about discrete-time frequency intervenes, and it changes the shape of the theory. Because \(n\) is an integer, \(e^{j2\pi n}=1\), so

The harmonic set is finite
\[ \phi_{k+N}[n] = e^{j(k+N)(2\pi/N)n} = e^{jk\Omega_0 n}\,e^{j2\pi n} = \phi_k[n] \]

The \((k+N)\)th harmonic is the \(k\)th harmonic — not similar to it, identical to it, sample for sample. There are therefore only \(N\) distinct harmonics, not infinitely many, and the synthesis sum runs over any \(N\) consecutive values of \(k\), written \(\sum_{k=\langle N\rangle}\). A periodic discrete-time signal has \(N\) independent values per period, and the series has exactly \(N\) coefficients: no information is gained or lost, and there is nothing to converge.

The analysis equation follows from the same orthogonality argument, with the integral replaced by a finite geometric sum. For \(m\) not a multiple of \(N\), summing the series \(\sum_{n=0}^{N-1}(e^{jm\Omega_0})^n\) gives \(\big(1-e^{jm2\pi}\big)/\big(1-e^{jm\Omega_0}\big) = 0\), the numerator vanishing while the denominator does not; for \(m\) a multiple of \(N\), every term is 1 and the sum is \(N\).

🔑
The discrete-time Fourier series pair
\[ x[n] = \sum_{k=\langle N\rangle} a_k\,e^{jk(2\pi/N)n} \qquad\qquad a_k = \frac{1}{N}\sum_{n=\langle N\rangle} x[n]\,e^{-jk(2\pi/N)n} \]

Two finite sums, each over one period. The coefficients are themselves periodic in \(k\) with period \(N\), so \(a_{k+N}=a_k\) — a symmetry with no continuous-time analogue, and the source of much later convenience.

The absence of convergence questions is not a technicality; it is the reason digital signal processing is possible. The continuous-time series is an infinite sum that may or may not reproduce the signal at every instant, and Chapter 11 is largely devoted to the fine print. The discrete-time series is a finite sum of \(N\) terms that reproduces \(N\) numbers exactly, always, for every periodic sequence without exception. When Chapter 26 arrives at the discrete Fourier transform and the FFT, it will be this equation — rescaled — that is being computed.

A dimensional check worth doing. In continuous time, \(a_k\) has the same units as \(x(t)\), because the analysis equation divides an integral of \(x\,dt\) by \(T\). The same is true in discrete time. So a Fourier coefficient of a voltage waveform is a voltage, and \(C_k = 2|a_k|\) is the peak amplitude of the \(k\)th harmonic in volts. If a computed coefficient comes out with the wrong dimensions, the \(1/T\) or the \(1/N\) has been dropped.
Section 10-9

Worked Examples

1 Coefficients by inspection

Problem. Find the Fourier series coefficients of \(x(t) = 1 + 2\cos\omega_0 t + \sin\omega_0 t + \cos(2\omega_0 t + \pi/4)\), and give the amplitude and phase of each harmonic.

Solution. No integration is needed. The signal is already a finite sum of harmonics; Euler's identities convert it into the exponential form directly, and uniqueness of the coefficients does the rest.

Working — expanding each term
\[ 2\cos\omega_0 t = e^{j\omega_0 t}+e^{-j\omega_0 t}, \qquad \sin\omega_0 t = -\tfrac{j}{2}e^{j\omega_0 t}+\tfrac{j}{2}e^{-j\omega_0 t}, \qquad \cos(2\omega_0 t+\tfrac{\pi}{4}) = \tfrac12 e^{j\pi/4}e^{j2\omega_0 t}+\tfrac12 e^{-j\pi/4}e^{-j2\omega_0 t} \]

Collecting terms by harmonic gives \(a_0 = 1\), \(a_1 = 1-\tfrac{j}{2}\), \(a_{-1}=1+\tfrac{j}{2}\), \(a_2 = \tfrac12 e^{j\pi/4}\), \(a_{-2} = \tfrac12 e^{-j\pi/4}\), and \(a_k = 0\) for \(|k| \ge 3\). The conjugate symmetry \(a_{-k}=a_k^*\) holds, as it must for a real signal.

Converting to amplitude and phase: \(C_1 = 2|a_1| = 2\sqrt{1+\tfrac14} = \sqrt5 \approx 2.236\) with \(\theta_1 = \angle a_1 = -\arctan(0.5) = -26.57^\circ\); and \(C_2 = 2|a_2| = 1\) with \(\theta_2 = 45^\circ\). So

Working — amplitude–phase form
\[ x(t) = 1 + 2.236\cos(\omega_0 t - 26.57^\circ) + \cos(2\omega_0 t + 45^\circ) \]

The first harmonic can be checked independently: \(2\cos\theta + \sin\theta = R\cos(\theta-\varphi)\) with \(R=\sqrt{2^2+1^2}=\sqrt5\) and \(\tan\varphi = 1/2\), giving \(\varphi = 26.57^\circ\). The two routes agree.

2 The pulse train with a 25% duty cycle

Problem. A rectangular pulse train of unit height has period \(T = 8\) s and pulse width \(2T_1 = 2\) s, the pulse being centred on \(t=0\). Compute \(a_0\) through \(a_5\) and locate the spectral nulls.

Solution. Here \(\omega_0 = 2\pi/8 = \pi/4\) rad/s and \(T_1 = 1\) s, so \(k\omega_0 T_1 = k\pi/4\). The general result of Section 10-7 gives \(a_k = \sin(k\pi/4)/(k\pi)\) with \(a_0 = 2T_1/T = 1/4\).

\(k\)012345
\(\sin(k\pi/4)\)0.707110.70710−0.7071
\(a_k\)0.25000.22510.15920.07500−0.0450

The coefficients are real, as expected for a real even signal, and they change sign after the first null. Nulls occur when \(\sin(k\pi/4)=0\), that is when \(k\pi/4 = m\pi\), so at \(k = 4, 8, 12, \ldots\) — every fourth harmonic, which is the reciprocal of the 25% duty cycle. A negative \(a_k\) is not an error: it is a harmonic of magnitude \(|a_k|\) carrying a phase of \(180^\circ\), and it is the reason a magnitude-only plot of this spectrum shows the rectified sinc shape.

3 A sawtooth, integrated honestly

Problem. Find the exponential and trigonometric Fourier series of the sawtooth \(x(t) = t\) for \(0 \lt t \lt T\), repeated with period \(T\).

Solution. The signal is neither even nor odd and has no half-wave symmetry, so there is no shortcut; the integral must be done. Start with the DC term, which is the average of a straight ramp: \(a_0 = \frac{1}{T}\int_0^T t\,dt = T/2\).

For \(k \ne 0\), integrate by parts with \(u = t\) and \(dv = e^{-jk\omega_0 t}dt\):

Working — the general coefficient
\[ \int_{0}^{T} t\,e^{-jk\omega_0 t}dt = \left[\frac{t\,e^{-jk\omega_0 t}}{-jk\omega_0}\right]_{0}^{T} + \frac{1}{jk\omega_0}\int_{0}^{T} e^{-jk\omega_0 t}dt = \frac{T}{-jk\omega_0} + 0 = \frac{jT}{k\omega_0} \]

The boundary term used \(e^{-jk\omega_0 T} = e^{-j2\pi k}=1\), and the remaining integral vanished by orthogonality. Dividing by \(T\) and substituting \(\omega_0 = 2\pi/T\):

Working — result
\[ a_k = \frac{j}{k\omega_0} = \frac{jT}{2\pi k} \quad (k \ne 0), \qquad a_0 = \frac{T}{2} \]

The coefficients are purely imaginary and odd in \(k\), which is the signature of an odd signal — and indeed \(x(t)-T/2\) is odd about the midpoint of each period. Using \(B_k = -2\,\mathrm{Im}\{a_k\} = -T/(\pi k)\), the trigonometric form is

Working — trigonometric form
\[ x(t) = \frac{T}{2} - \frac{T}{\pi}\sum_{k=1}^{\infty}\frac{\sin k\omega_0 t}{k} \]

A quick sanity check at \(t = T/2\): every \(\sin(k\pi)\) is zero, so the series returns \(T/2\), which is the correct mid-period value. At \(t \to 0^+\) the series returns \(T/2\) as well, whereas the signal itself is \(0\) — the series has landed on the midpoint of the jump between \(T\) and \(0\). That is not a mistake, and Chapter 11 explains why it is the only sensible answer there.

4 A square wave through an RC filter

Problem. The unit square wave of Section 10-7, with fundamental frequency \(\omega_0\), drives a first-order lowpass filter with \(H(j\omega) = 1/(1+j\omega/\omega_c)\) and \(\omega_c = \omega_0\). Find the first three non-zero harmonics of the output.

Solution. The input harmonics are known: amplitude \(4/\pi k\) at frequency \(k\omega_0\), odd \(k\) only. At the \(k\)th harmonic the filter contributes \(H(jk\omega_0) = 1/(1+jk)\), so

Working — gain and phase per harmonic
\[ |H(jk\omega_0)| = \frac{1}{\sqrt{1+k^2}}, \qquad \angle H(jk\omega_0) = -\arctan k \]

Multiplying each input amplitude by the gain and adding the phase to the argument:

\(k\)Input amplitude \(4/\pi k\)\(|H|\)Output amplitudePhase shift
11.27320.70710.9003−45.00°
30.42440.31620.1342−71.57°
50.25460.19610.0499−78.69°
Working — the output
\[ y(t) = 0.900\sin(\omega_0 t - 45.0^\circ) + 0.134\sin(3\omega_0 t - 71.6^\circ) + 0.050\sin(5\omega_0 t - 78.7^\circ) + \cdots \]

Compare the harmonic ratios. In the input, the third harmonic stands at \(1/3 = 0.333\) of the fundamental; in the output it stands at \(0.1342/0.9003 = 0.149\), less than half as prominent. The filter has not removed any harmonic, but it has tilted the balance towards the low ones, and a waveform whose high harmonics have been suppressed is a waveform with rounded corners. This is the frequency-domain account of why an RC network turns a square wave into an exponential-cornered pulse — and it required no differential equation and no convolution.

5 A four-point discrete-time series

Problem. A discrete-time signal has period \(N = 4\) with one period \(x[0]=1\), \(x[1]=2\), \(x[2]=-1\), \(x[3]=0\). Find its Fourier series coefficients and verify the synthesis equation at \(n=1\).

Solution. With \(N=4\) the harmonic factor is \(e^{-jk(2\pi/4)n} = e^{-jk\pi n/2} = (-j)^{kn}\), so every exponential is one of \(1, -j, -1, j\) and the arithmetic is exact.

Working — the four coefficients
\[ a_k = \frac{1}{4}\sum_{n=0}^{3} x[n](-j)^{kn} \]

Evaluating term by term:

Working
\[ \begin{aligned} a_0 &= \tfrac14(1+2-1+0) = \tfrac12\\ a_1 &= \tfrac14\big(1 + 2(-j) + (-1)(-1) + 0\big) = \tfrac14(2-2j) = \tfrac12 - \tfrac{j}{2}\\ a_2 &= \tfrac14\big(1 + 2(-1) + (-1)(1) + 0\big) = -\tfrac12\\ a_3 &= \tfrac14\big(1 + 2(j) + (-1)(-1) + 0\big) = \tfrac12 + \tfrac{j}{2} \end{aligned} \]

Check the symmetry first: \(x[n]\) is real, so we require \(a_{-k}=a_k^*\), and since the coefficients are periodic with \(N=4\) this reads \(a_3 = a_{-1} = a_1^*\). It does. Now verify synthesis at \(n=1\), where \(e^{jk\pi/2} = j^k\):

Working — synthesis check
\[ \sum_{k=0}^{3} a_k j^{k} = \tfrac12 + \left(\tfrac12-\tfrac{j}{2}\right)j + \left(-\tfrac12\right)(-1) + \left(\tfrac12+\tfrac{j}{2}\right)(-j) = \tfrac12 + \left(\tfrac{j}{2}+\tfrac12\right) + \tfrac12 + \left(\tfrac12-\tfrac{j}{2}\right) = 2 \]

which is \(x[1]\), as required. Notice that four data points produced four coefficients and the reconstruction was exact — no limit, no infinite sum, no conditions to check.

6 Reading a symmetry before integrating

Problem. Without computing any integral, state everything that can be said about the Fourier coefficients of (a) a triangular wave that is even about \(t=0\) with zero average; (b) the signal \(x(t) = |\sin\omega_1 t|\), the full-wave rectified sine; (c) a square wave shifted so that it equals \(+1\) on \((0,T/2)\) and \(0\) on \((T/2,T)\).

Solution (a). Real and even, so \(a_k\) is real and even in \(k\), and \(B_k=0\). Zero average gives \(a_0=0\). A triangular wave of this shape also satisfies \(x(t+T/2)=-x(t)\), so it has half-wave symmetry and every even harmonic vanishes. Conclusion: real cosine harmonics at odd \(k\) only — and nothing else need be computed to know that.

Solution (b). The trap here is the period. Rectifying \(\sin\omega_1 t\) folds the negative half up, so the result repeats every \(\pi/\omega_1\), not \(2\pi/\omega_1\): the fundamental frequency of \(x\) is \(2\omega_1\), not \(\omega_1\). The signal is real, even about \(t=0\), and strictly positive, so \(a_k\) is real and even with \(a_0 \gt 0\). It has no half-wave symmetry — a non-negative signal cannot — so both even and odd harmonics of \(2\omega_1\) are present.

Solution (c). This is the square wave of Section 10-7 rescaled and lifted: \(x(t) = \tfrac12 + \tfrac12 s(t)\), where \(s\) is the \(\pm1\) square wave. Linearity, which Chapter 11 states formally, then gives the coefficients at once: \(a_0 = \tfrac12\), and \(a_k = \tfrac12 s_k\) for \(k \ne 0\), where \(s_k\) are the square wave's coefficients. The added constant touched only the \(k=0\) line and left every harmonic untouched — which is exactly what one expects, since a DC offset has no frequency content anywhere else.

Review

Chapter Summary

Why exponentials

They are eigenfunctions of LTI systems, so a decomposition into exponentials converts convolution into multiplication by \(H(jk\omega_0)\).

The harmonic set

Only \(\omega = k\omega_0\) gives an exponential of period \(T\). Negative \(k\) is essential: it pairs with \(+k\) to make real cosines.

The pair

\(x(t)=\sum_k a_k e^{jk\omega_0 t}\) and \(a_k = \frac{1}{T}\int_T x e^{-jk\omega_0 t}dt\), the second following from orthogonality alone.

Real signals

\(a_{-k}=a_k^*\): magnitude even, phase odd. Each pair combines into \(2|a_k|\cos(k\omega_0 t + \angle a_k)\).

Symmetry

Even kills the sines, odd kills the cosines, half-wave kills every even harmonic. Check before integrating, not after.

Discrete time

Only \(N\) distinct harmonics exist, the sums are finite, \(a_{k+N}=a_k\), and the representation is exact for every periodic sequence.

Practice

Problems

Problems 1 to 3 are inspection exercises — no integral should be needed. Problems 4 to 6 require the analysis equation, and in each case the symmetry should be identified first. Problems 7 and 8 push the ideas towards the systems view of Chapter 12.

  1. Find \(a_k\) for \(x(t) = 3 + 4\sin(2t) - 2\cos(4t)\). State the fundamental period, and give the amplitude and phase of every non-zero harmonic.
  2. The signal \(x(t)=\cos(3t)+\cos(5t)\) is periodic. Find its fundamental frequency \(\omega_0\), then say which harmonics \(k\) carry non-zero coefficients. Explain why \(k=1\) is not one of them.
  3. A real periodic signal has \(a_1 = 2e^{j\pi/3}\) and \(a_2 = -1\), with all other coefficients zero. Write \(x(t)\) in amplitude–phase form, and state \(a_{-1}\) and \(a_{-2}\) without further work.
  4. Compute the Fourier coefficients of the pulse train of Section 10-7 for \(T = 6\), \(2T_1 = 3\). Where are the nulls, and what is \(a_0\)?
  5. Find the coefficients of the triangular wave \(x(t) = 1-4|t|/T\) for \(|t| \le T/2\), repeated with period \(T\). Identify all three symmetries first and use them to reduce the integral to one over \((0, T/2)\).
  6. Compute the Fourier series of the half-wave rectified sine: \(x(t)=\sin\omega_0 t\) for \(0 \lt t \lt T/2\) and \(0\) for \(T/2 \lt t \lt T\). Show that \(a_1\) must be treated separately from the general formula, and explain why.
  7. The square wave of Section 10-7 with \(\omega_0 = 100\) rad/s drives a filter with \(H(j\omega)=1/(1+j\omega/500)\). Compute the amplitudes of the first three non-zero output harmonics and comment on how the waveform's shape has changed.
  8. For the discrete-time signal \(x[n] = 1 + \sin(2\pi n/8) + 3\cos(2\pi n/8) + \cos(4\pi n/8 + \pi/2)\), find all \(a_k\) by inspection. Confirm \(a_{k+8}=a_k\) and \(a_{-k}=a_k^*\).
Tip: before writing a single integral, answer three questions. What is the fundamental period — really, after any rectification or sum of sinusoids? Is the signal even, odd, or neither about some convenient origin? Does shifting it by half a period invert it? A yes to any of these deletes work; a wrong answer to the first invalidates everything that follows.