Maths Formulae Transforms Complex Form

Complex Form of Fourier Series – Exponential Representation

Understand the complex form of Fourier series using exponential terms and Euler's identity to simplify harmonic analysis...
🔑

Definition of the Complex Fourier Series

The complex form of the Fourier Series uses Euler’s identity to express a periodic function as a sum of complex exponential functions. This representation simplifies many calculations, especially in fields like signal processing and physics, by combining sine and cosine terms into a single, more compact formula.

SymbolDescription
<em>f(x)</em>The periodic function being represented.
<em>c<sub>n</sub></em>The complex-valued Fourier coefficients.
<em>n</em>The harmonic index, an integer ranging from -∞ to +∞.
<em>i</em> or <em>j</em>The imaginary unit, defined as √(-1).
<em>L</em>Half the period of the function <em>f(x)</em>.
<em>x</em>The independent variable, typically representing time or position.
🔢

Key Formulas

\[ f(x) = \sum_{n=-\infty}^{\infty} c_n \exp\left(\frac{in\pi x}{L}\right) \]
Complex Fourier Series Representation
\[ c_n = \frac{1}{2L} \int_{-L}^{L} f(x) \exp\left(\frac{-in\pi x}{L}\right) dx \]
Complex Coefficient Formula
\[ c_n = \frac{1}{2}(a_n - jb_n) \quad \text{for } n > 0 \]
Relation to Real Coefficients
\[ c_{-n} = \frac{1}{2}(a_n + jb_n) \quad \text{for } n > 0 \]
Relation for Negative Index
\[ c_0 = \frac{a_0}{2} \]
DC Component (Average Value)
🎨

Conceptual Diagram

Re Im θ sin θ cos θ e^(jθ) e^(jθ) = cos θ + j sin θ
Complex Form: phasor e^(jθ) = cos θ + j sin θ — rotates on the unit circle in the complex plane

A visual representation shows a periodic waveform, such as a square or sawtooth wave, on a standard x-y coordinate system. The complex Fourier series decomposes this waveform into a sum of rotating vectors (phasors) in the complex plane. Each phasor, corresponding to a harmonic n, rotates at a frequency nπ/L. Its length and initial angle are determined by the magnitude and phase of the complex coefficient cn, respectively. The sum of all these rotating phasors at any given time traces out the original waveform.

Key Properties

Simplified Analysis: The use of complex exponentials simplifies mathematical operations like differentiation, integration, and convolution. The exponential function is its own derivative (up to a constant), making calculus much cleaner than with sines and cosines.

Unified Formula: The complex form combines both sine and cosine terms into a single exponential term. The complex coefficient cn elegantly encodes both the amplitude and phase information of the n-th harmonic, whereas the trigonometric form requires two separate coefficients, an and bn.

Discrete Frequencies: The series represents the function's energy as being concentrated at discrete integer multiples of the fundamental frequency. The index n directly corresponds to these frequency components, including negative frequencies which represent phasors rotating in the opposite direction.

🔬

Derivation from Trigonometric Form

The complex form of the Fourier series can be derived directly from the trigonometric form by using Euler's formula.

1. Start with the standard trigonometric Fourier series:

\[ f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty} \left( a_n \cos\left(\frac{n\pi x}{L}\right) + b_n \sin\left(\frac{n\pi x}{L}\right) \right) \]

2. Apply Euler's formulas for sine and cosine:

\[ \cos(\theta) = \frac{e^{i\theta} + e^{-i\theta}}{2} \quad \text{and} \quad \sin(\theta) = \frac{e^{i\theta} - e^{-i\theta}}{2i} \]

3. Substitute these into the series, with θ = nπx/L:

\[ f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty} \left( a_n \left( \frac{e^{i\frac{n\pi x}{L}} + e^{-i\frac{n\pi x}{L}}}{2} \right) + b_n \left( \frac{e^{i\frac{n\pi x}{L}} - e^{-i\frac{n\pi x}{L}}}{2i} \right) \right) \]

4. Group the terms with positive and negative exponents:

\[ f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty} \left( \left( \frac{a_n - ib_n}{2} \right) e^{i\frac{n\pi x}{L}} + \left( \frac{a_n + ib_n}{2} \right) e^{-i\frac{n\pi x}{L}} \right) \]

5. Define the complex coefficients:

\[ c_0 = \frac{a_0}{2}, \quad c_n = \frac{a_n - ib_n}{2}, \quad c_{-n} = \frac{a_n + ib_n}{2} \quad (\text{for } n>0) \]

6. By substituting these definitions, the series elegantly collapses into a single summation from -∞ to +∞:

\[ f(x) = c_0 + \sum_{n=1}^{\infty} c_n e^{i\frac{n\pi x}{L}} + \sum_{n=1}^{\infty} c_{-n} e^{-i\frac{n\pi x}{L}} = \sum_{n=-\infty}^{\infty} c_n e^{i\frac{n\pi x}{L}} \]
🧮

Worked Example: Square Wave

Find the complex Fourier coefficients <em>c<sub>n</sub></em> for the square wave defined over the interval [-L, L] as: <em>f(x) = 0</em> for <em>-L < x < 0</em> and <em>f(x) = 1</em> for <em>0 < x < L</em>.
  1. First, calculate the coefficient <em>c<sub>n</sub></em> for <em>n ≠ 0</em> using the integral formula. Since the function is zero for <em>x < 0</em>, the integral simplifies.
  2. Formula: \[ c_n = \frac{1}{2L} \int_{-L}^{L} f(x) e^{-in\pi x/L} dx = \frac{1}{2L} \int_{0}^{L} (1) e^{-in\pi x/L} dx \]
  3. Evaluate the integral: \[ c_n = \frac{1}{2L} \left[ \frac{e^{-in\pi x/L}}{-in\pi/L} \right]_0^L = \frac{1}{2L} \left( \frac{L}{-in\pi} \right) (e^{-in\pi} - e^0) = \frac{1}{-2in\pi} ((-1)^n - 1) \]
  4. This result is 0 if n is even, and <em>1/(inπ)</em> if n is odd.
  5. Next, calculate the DC component <em>c<sub>0</sub></em> separately for <em>n = 0</em>.
  6. Formula: \[ c_0 = \frac{1}{2L} \int_{-L}^{L} f(x) dx = \frac{1}{2L} \int_{0}^{L} 1 dx = \frac{1}{2L} [x]_0^L = \frac{L}{2L} = \frac{1}{2} \]
The complex Fourier coefficients are: \[ c_0 = \frac{1}{2} \] and for n ≠ 0: \[ c_n = \begin{cases} 0 & \text{if } n \text{ is even} \\ \frac{1}{in\pi} & \text{if } n \text{ is odd} \end{cases} \]
🏭

Applications

📡 Signal Processing: The complex Fourier series is fundamental to analyzing signals in the frequency domain. It allows engineers to decompose a complex signal (like audio or radio waves) into its constituent frequencies, which is essential for designing filters, equalizers, and compression algorithms like MP3.

⚛️ Quantum Mechanics: Wavefunctions, which describe the state of a quantum system, are often represented as a superposition of basis states. The Fourier series provides a way to express a particle's wavefunction in terms of its momentum states, as the exponential terms are eigenfunctions of the momentum operator.

📶 Digital Communications: Modulation techniques like Orthogonal Frequency-Division Multiplexing (OFDM), used in Wi-Fi and 4G/5G cellular networks, rely on Fourier analysis. Data is encoded onto many orthogonal sub-carrier frequencies, and the complex form is used to efficiently compute the transformation between the time-domain signal and frequency-domain data.

🌍

Real-World Examples

A simplified electrical signal from a power inverter is a square wave alternating between +5V and -5V with a period of 20 milliseconds (T=0.02s). This corresponds to a frequency of 50 Hz. Find the magnitude of the complex coefficient for the third harmonic (n=3).
  1. The function is f(t) with period T=0.02, so L=0.01. f(t) = 5 for 0 < t < 0.01 and f(t) = -5 for -0.01 < t < 0.
  2. The formula for <em>c<sub>n</sub></em> is: \[ c_n = \frac{1}{T} \int_{-T/2}^{T/2} f(t) e^{-in2\pi t/T} dt \]
  3. For an odd square wave, the coefficients are purely imaginary and non-zero only for odd n: \[ c_n = \frac{2A}{in\pi} \] where A is the amplitude.
  4. Here A = 5V. For n=3: \[ c_3 = \frac{2(5)}{i3\pi} = \frac{10}{i3\pi} \]
  5. The magnitude is: \[ |c_3| = \left| \frac{10}{i3\pi} \right| = \frac{10}{3\pi} \approx 1.061 \]
The magnitude of the complex coefficient for the third harmonic is approximately 1.061 V.
An audio synthesizer creates a sawtooth wave to produce a brassy sound. The waveform is described by <em>f(t) = t</em> over the interval [-π, π], with a period T=2π. Calculate the complex Fourier coefficient <em>c<sub>2</sub></em>.
  1. Here, L = π. The formula for <em>c<sub>n</sub></em> is: \[ c_n = \frac{1}{2\pi} \int_{-\pi}^{\pi} t e^{-int} dt \]
  2. Use integration by parts (∫u dv = uv - ∫v du) with u=t and dv = e<sup>-int</sup> dt.
  3. Then du = dt and v = e<sup>-int</sup>/(-in).
  4. \[ c_n = \frac{1}{2\pi} \left( \left[ t \frac{e^{-int}}{-in} \right]_{-\pi}^{\pi} - \int_{-\pi}^{\pi} \frac{e^{-int}}{-in} dt \right) \]
  5. \[ c_n = \frac{1}{2\pi} \left( \frac{\pi e^{-in\pi} - (-\pi)e^{in\pi}}{-in} - \left[ \frac{e^{-int}}{(-in)^2} \right]_{-\pi}^{\pi} \right) \]
  6. Since e<sup>±inπ</sup> = (-1)<sup>n</sup>, the second term evaluates to 0. \[ c_n = \frac{1}{2\pi} \frac{2\pi(-1)^n}{-in} = \frac{(-1)^n}{-in} = \frac{i(-1)^n}{n} \] for n ≠ 0.
  7. For n=2: \[ c_2 = \frac{i(-1)^2}{2} = \frac{i}{2} \]
The complex Fourier coefficient for the second harmonic is <em>c<sub>2</sub> = i/2</em>.
🏙️

Real-World Scenarios

V I φ V = Ze^(jφ)I
AC Circuit Analysis
Complex exponentials represent voltage and current phasors in AC circuits. The complex impedance Z = R + jωL lets engineers compute amplitude and phase relationships without solving differential equations.
e^(jωt) — rotating phasor
Radar Systems
Radar signals are modelled as complex exponentials e^(jωt). The rotating phasor captures amplitude and phase, enabling precise Doppler velocity measurement and target range computation.
3-phase rotating field
Electric Motors
Three-phase motors use three complex exponentials at 120° offsets to create a smooth rotating magnetic field — no torque pulsation, high efficiency. The complex form makes phase analysis and torque calculations tractable.

Digital Image Compression (JPEG)
When you save a photo as a JPEG, the software divides the image into small blocks. A process very similar to a 2D Fourier series (the Discrete Cosine Transform) is applied to each block, converting spatial pixel values into frequency components. The algorithm then discards the high-frequency information that the human eye is less sensitive to, allowing the image to be stored in a much smaller file size.

Medical Imaging (MRI)
Magnetic Resonance Imaging (MRI) machines build an image without using harmful radiation. They place the patient in a strong magnetic field and use radio waves to excite hydrogen atoms. The signals emitted by these atoms are captured in 'k-space,' which is essentially the Fourier domain of the image. A powerful computer then performs an inverse Fourier transform on this data to reconstruct a detailed cross-sectional image of the body's tissues.

Vibration Analysis in Engineering
Engineers designing bridges, aircraft, or car engines need to understand how these structures vibrate. They place sensors to measure the complex vibrations, then use Fourier analysis to decompose the signal into its fundamental frequencies. This helps identify the structure's natural resonant frequencies, which must be avoided to prevent catastrophic failure, as seen in the infamous Tacoma Narrows Bridge collapse.

📊

Alternative Representations

The complex Fourier series can be expressed in several equivalent ways depending on the context, such as using the full period T or the angular frequency ω0.

Using Period T = 2L:

\[ c_n = \frac{1}{T} \int_{-T/2}^{T/2} f(t) e^{-jn\omega_0 t} \, dt \]
Coefficient Formula with Period T

Using Fundamental Angular Frequency ω₀:

\[ \omega_0 = \frac{2\pi}{T} = \frac{\pi}{L} \]
Fundamental Frequency

Magnitude and Phase Representation:

Each complex coefficient cn can be represented in polar form, which explicitly separates the amplitude and phase of each harmonic.

\[ c_n = |c_n| e^{j\phi_n} \]
Polar Form of Coefficient
\[ |c_n| = \frac{\sqrt{a_n^2 + b_n^2}}{2} \quad \text{(for } n > 0\text{)} \]
Magnitude (Amplitude Spectrum)
\[ \phi_n = -\arctan\left(\frac{b_n}{a_n}\right) \]
Phase (Phase Spectrum)
⚠️

Common Mistakes

⚠️ Forgetting the n=0 Case: The formula for cn often involves division by n, making it undefined for n=0. The coefficient c0 (the DC offset or average value) must always be calculated separately using its own integral: \[ c_0 = \frac{1}{2L} \int_{-L}^{L} f(x) dx \]
⚠️ Incorrect Sign in the Exponential: The series itself uses a positive exponential (e+inπx/L), but the integral formula to find the coefficients uses a negative exponential (e-inπx/L). Mixing these up is a very common error.
⚠️ Ignoring Negative Frequencies: The summation runs from -∞ to +∞ for a reason. Negative values of n are not redundant. For real-valued signals f(x), the negative-frequency coefficient c-n is the complex conjugate of the positive one (c-n = cn*). Both are required to reconstruct the signal correctly.
🚀

Study Strategy

1 🧠 Grasp the Core Concepts
  • Review the 'Definition' to understand how a periodic function is a sum of complex exponentials.
  • Study the 'Derivation from Trigonometric Form' to see how Euler's formula elegantly combines sine and cosine terms.
  • Analyze the 'Conceptual Diagram' to visualize how rotating phasors sum to create the original waveform.
  • Read the 'Key Properties' section, focusing on how linearity and time-shifting affect the complex coefficients c_n.
2 ✍️ Internalize the Equations
  • Write out the analysis formula for calculating c_n and the synthesis formula for reconstructing the signal ten times each.
  • Create flashcards for the key formulas, including the special case for c_0 (the DC offset).
  • Focus on the integration limits (e.g., -T/2 to T/2) and the normalization factor (1/T), as noted in 'Common Mistakes'.
  • Recite the formulas aloud, explaining what each component, like e^(-inω₀t), physically represents (a rotating phasor).
3 🏋️ Solidify with Practice
  • Follow the 'Worked Example: Square Wave' step-by-step, then attempt to solve it yourself without looking.
  • Calculate the complex Fourier coefficients for another common signal, like a triangular or sawtooth wave.
  • Verify your calculations by checking the property that for real signals, c_n is the complex conjugate of c_-n.
  • Use your calculated coefficients to write out the first few terms of the series to see the approximation build up.
4 💡 Connect to Reality
  • Choose one topic from the 'Applications' section, such as signal processing, and explain how the magnitude and phase of c_n are used.
  • For a 'Real-World Example' like an audio signal, identify what the fundamental frequency (ω₀) and harmonics represent.
  • Examine the 'Alternative Representations' to understand how plotting |c_n| (magnitude spectrum) provides a clear frequency domain view.
  • Consider a 'Real-World Scenario' and describe how you would set up the integral for c_n to begin analyzing that signal's frequency content.
By breaking down the complex form into these manageable steps, you'll transform abstract theory into a powerful tool for analyzing real-world signals.

Frequently Asked Questions

×

×