Home › Physics › Waves and Oscillations › Fourier Analysis and Representation of Square Waves
Waves and Oscillations
Fourier Analysis and Representation of Square Waves
A square wave is a periodic waveform that alternates instantaneously between two distinct fixed levels at regular intervals. Its frequency spectrum contains only fundamental frequency and odd harmonic components with amplitudes inversely proportional to the harmonic number.
UP TGT ScienceUP PGT PhysicsStudy Notes + Practice
Scope and prerequisites
TGT core
Understanding the definition of periodic functions, time period, frequency, and basic identification of wave components.
PGT extension
Detailed Fourier series expansion of square waves, evaluation of Fourier coefficients (a<sub>0</sub>, a<sub>n</sub>, b<sub>n</sub>), root-mean-square (RMS) value, energy distribution, and Gibbs phenomenon.
Prerequisites
Periodic functions and trigonometric identities
Integration techniques for definite integrals (Euler-Fourier formulas)
Concept of harmonics and fundamental frequency in wave motion
Definition and Symmetry Properties
A symmetric square wave alternates between values -V and +V with a total time period T.
Due to its time-reversal antisymmetry about the origin f(-t) = -f(t), the square wave is an odd function.
Because it is an odd function, all cosine coefficients (an) in its Fourier series expansion vanish identically, leaving only sine terms.
Frequency Spectrum and Harmonics
The Fourier expansion of a square wave consists exclusively of the fundamental frequency and its odd harmonics: 3ω, 5ω, 7ω, etc.
Even harmonics are completely absent due to half-wave antisymmetry: f(t + T/2) = -f(t).
The amplitude of the n-th harmonic is inversely proportional to n, falling off as 1/n.
Power and RMS Value
The root-mean-square (RMS) value of a symmetric square wave oscillating between -V and +V is simply V.
Parseval's theorem relates the total average power of the square wave to the sum of the powers contained in its individual harmonic components.
Higher-order harmonics contribute progressively less to the total signal energy.
Gibbs Phenomenon
When a square wave is reconstructed using a finite number of terms in its Fourier series, overshoots and ripples consistently appear near the points of discontinuity.
The overshoot magnitude remains approximately 9% of the step height regardless of how many terms are added.
This non-uniform convergence behavior at discontinuities is known as the Gibbs phenomenon.
Derivations
Fourier Series Expansion of a Symmetric Square Wave
Conditions: Square wave defined as f(t) = V for 0 < t < T/2 and f(t) = -V for T/2 < t < T
Write the general Fourier series: f(t) = a_0 / 2 + su$m_{n=1}^\infty [a_n \cos(n\omega t) + b_n \sin(n\omega t)]$.
Evaluate the average value $a_0 = (2/T) \int_0^T f(t) dt = 0 due$ to wave symmetry.
Evaluate $a_n = (2/T) \int_0^T f(t) \cos(n\omega t) dt = 0$ because f(t) is an odd function multiplied by an even function.
Evaluate $b_n = (2/T) \int_0^T f(t) \sin(n\omega t) dt = \frac{4V}{n\pi}$ for odd n, and 0 for even n.
$A_1 = peak amplitude of fundamental component$ Volts
First harmonic term
Duty Cycle for Symmetric Wave
$$D = \frac{T_{on}}{T} \times 100\% = 50\%$$
$T_on = time during$ which wave is positive, T = total period Percent (%)
For symmetric square wave
Graphs and experiments
Time-Domain Square Waveform
Draw: A plot of amplitude f(t) on the y-axis versus time t on the x-axis, showing instantaneous transitions between +V and -V at intervals of T/2.
Interpret: Illustrates the rectangular pulses repeating every period T with sharp vertical edges representing infinite slope discontinuities.
Exam use: Direct identification questions and determining time period and peak voltage.
Frequency Spectrum (Harmonic Amplitude vs Frequency)
Draw: A discrete line spectrum (frequency domain) with vertical spectral lines at frequencies \omega, 3\omega, 5\omega, 7\omega with heights proportional to 4V/(n\pi).
Interpret: Shows the absence of even harmonics and the 1/n amplitude envelope decay.
Exam use: Questions concerning which harmonic frequencies are present or absent.
Draw: Superposition curves showing the resultant waveform building up as more odd harmonics (n = 1, 3, 5, 15) are added, highlighting overshoot at corners.
Interpret: Demonstrates convergence of trigonometric series and the persistent ~9% overshoot at points of discontinuity.
Exam use: Conceptual PGT questions regarding series convergence and boundary behaviors.
Solved numericals
TGT core
A symmetric square wave has a peak voltage of 10 V. What is the root-mean-square (RMS) value of this voltage?
Recall the formula for the RMS value of a symmetric square wave: $V_{rms} = V$.
Identify the given peak voltage V = 10 V.
Conclude that $V_{rms} = 10 V$.
Answer: 10 V
PGT extension
Find the amplitude of the third harmonic component in the Fourier series expansion of a square wave whose peak amplitude is 5 V.
The general amplitude formula for the n-th harmonic of a square wave is $A_n = \frac{4V}{n\pi}$.
A square wave of peak amplitude V and frequency 50 Hz is passed through an ideal low-pass filter that cuts off all frequencies above 120 Hz. Which harmonic frequencies are allowed to pass through the filter?
The fundamental frequency is $f_1 = 50 Hz$.
The square wave contains odd harmonics: $f_1 = 50 Hz$, $f_3 = 150 Hz$, $f_5 = 250 Hz$, etc.
The low-pass filter cutoff is 120 Hz, meaning only frequencies less than or equal to 120 Hz pass.
Therefore, only the fundamental frequency (50 Hz) passes through, as the 3rd harmonic (150 Hz) exceeds the cutoff.
Answer: Only the fundamental frequency (50 Hz)
Assumptions and limitations
Transitions between voltage levels are assumed to be instantaneous (zero rise time and fall time), which is physically impossible in real electronic circuits due to stray capacitances and inductances.
Common misconceptions
Common error: A square wave contains both even and odd harmonics.
Correct: A symmetric square wave contains only odd harmonics.
Half-wave antisymmetry eliminates all even harmonic coefficients in the Fourier expansion.
Common error: The RMS value of a square wave is equal to its peak value divided by square root of 2.
Correct: The RMS value of a symmetric square wave is exactly equal to its peak value (V).
Since the square wave spends 100% of its time at magnitude V (either +V or -V), the time average of V^2 is V^2, making $V_{rms} = V$.
Quick revision
Square waves consist of fundamental and odd harmonics with amplitudes proportional to 1/n.
Fourier Coefficient b_n: $b_n = \frac{4V}{n\pi} \text{ for odd } n,\quad b_n = 0 \text{ for even } n$, 3, 5, \dots \\ 0 & \text{for } n = 2, 4, 6, \dots \end{cases}
Must remember
A symmetric square wave alternating between $-V$ and $+V$ is an odd function, leading to zero cosine coefficients ($a_n = 0$).
Only odd harmonics ($\omega, 3\omega, 5\omega, \dots$) are present in a symmetric square wave due to half-wave antisymmetry.
The amplitude of the $n$-th harmonic in a square wave's Fourier series is given by $A_n = \frac{4V}{n\pi}$.
The RMS value of a symmetric square wave oscillating between $-V$ and $+V$ is equal to $V$.
The Gibbs phenomenon refers to the constant $\approx 9\%$ overshoot and ripples that occur near points of discontinuity when using a finite Fourier series.
Glossary
Symmetric Square WaveA periodic waveform that alternates equally between $-V$ and $+V$ with a 50% duty cycle.
Odd FunctionA function satisfying $f(-t) = -f(t)$, resulting in a Fourier series containing only sine terms.
Half-Wave AntisymmetryA property where $f(t + T/2) = -f(t)$, which eliminates all even harmonics from the frequency spectrum.
Gibbs PhenomenonThe non-uniform convergence and persistent overshoot ($\approx 9\%$) of a Fourier series near a jump discontinuity.
Parseval's TheoremRelates the total average power of a periodic signal to the sum of the powers of its individual harmonic components.
Fourier Properties of Square Wave vs Sine Wave
Feature
Square Wave
Pure Sine Wave
Harmonic Content
Fundamental and odd harmonics ($3\omega, 5\omega, \dots$)
Only fundamental frequency ($\omega$)
Fourier Coefficients
Only $b_n$ terms exist ($a_n = 0$)
RMS Value
$V_{rms} = V$
$V_{rms} = \frac{V_0}{\sqrt{2}}$
Discontinuities
Present (infinite slope changes)
Continuous and smooth
Practice Quiz
Choose an option to reveal the explanation.
1. Which of the following harmonic components are completely absent in the Fourier expansion of a symmetric square wave?
Explanation: Due to half-wave antisymmetry $f(t + T/2) = -f(t)$, all even harmonics ($2\omega, 4\omega, 6\omega, \dots$) vanish from the Fourier expansion.
2. What is the RMS value of a symmetric square wave that alternates between $-V$ and $+V$?
Explanation: Since the square wave maintains a magnitude of $V$ for 100% of the time (either $+V$ or $-V$), the time average of $f(t)^2$ is $V^2$, making the RMS value equal to $V$.
3. Why are all cosine coefficients ($a_n$) zero in the Fourier series of a symmetric square wave?
Explanation: A symmetric square wave centered about the origin satisfies $f(-t) = -f(t)$, making it an odd function. Consequently, all cosine terms vanish.
4. What is the peak amplitude of the fundamental frequency component in the Fourier series of a square wave of amplitude $V$?
Explanation: The fundamental term is given by $\frac{4V}{\pi} \sin(\omega t)$, so its peak amplitude is $\frac{4V}{\pi}$.
5. How does the amplitude of the $n$-th harmonic vary with the harmonic number $n$ for a square wave?
Explanation: The amplitude of the $n$-th harmonic is $A_n = \frac{4V}{n\pi}$, which is inversely proportional to $n$.
6. What percentage of overshoot is observed near the points of discontinuity when a square wave is reconstructed using a finite Fourier series (Gibbs phenomenon)?
Explanation: The Gibbs phenomenon causes a fixed overshoot of approximately 9% of the step height, regardless of how many terms are added.
7. What is the angular frequency $\omega$ of a square wave with time period $T$?
Explanation: By definition, the angular frequency is $\omega = \frac{2\pi}{T} = 2\pi f$.
8. Which theorem relates the total average power of a square wave to the sum of powers in its harmonic components?
Explanation: Parseval's theorem states that the total average power of a periodic signal equals the sum of the average powers contained in each of its harmonic frequencies.
9. What is the duty cycle of a symmetric square wave?
Explanation: A symmetric square wave remains positive for half the period and negative for the other half, giving a duty cycle of 50%.
10. Which of the following represents the correct set of harmonic frequencies present in a symmetric square wave?
Explanation: A symmetric square wave contains only the fundamental frequency and odd multiples thereof: $\omega, 3\omega, 5\omega, 7\omega, \dots$.
11. If the peak amplitude of a square wave is $V = 5\text{ V}$, what is the amplitude of its 3rd harmonic?
Explanation: The amplitude of the 3rd harmonic is $A_3 = \frac{4V}{3\pi} = \frac{4(5)}{3\pi} = \frac{20}{3\pi}\text{ V}$.
12. What type of convergence does the Fourier series of a square wave exhibit near its discontinuities?
Explanation: Near jump discontinuities, the Fourier series exhibits non-uniform convergence, resulting in the Gibbs phenomenon (overshoots and ripples).
13. What is the value of the DC component ($a_0$) for a symmetric square wave oscillating symmetrically between $-V$ and $+V$?
Explanation: A symmetric square wave has a zero DC component because the positive area exactly cancels the negative area over one complete time period.
14. For a square wave, how do the higher-order harmonics contribute to the total signal energy compared to lower-order harmonics?
Explanation: Since harmonic amplitudes fall off as $1/n$ and power as $1/n^2$, higher-order harmonics contribute progressively less to the total signal energy.
15. What is the expression for the Fourier coefficient $b_n$ for odd values of $n$ in a symmetric square wave?
Explanation: The sine coefficient for odd harmonics is given by $b_n = \frac{4V}{n\pi}$ for $n = 1, 3, 5, \dots$.
PYQ Patterns
These are pattern-based practice questions. Authentic year labels are only used when verified from a source.
1. The Fourier series expansion of a symmetric square wave of amplitude $V$ contains:
Explanation: A symmetric square wave is an odd function with half-wave antisymmetry, resulting in a Fourier series consisting exclusively of sine terms with odd harmonics.
2. What is the root-mean-square (RMS) value of a symmetric square wave with peak-to-peak amplitude $2V$ (oscillating between $-V$ and $+V$)?
Explanation: The square wave spends 100% of its time at magnitude $V$ (either $+V$ or $-V$), so the time average of $f(t)^2$ is $V^2$, giving an RMS value of $V$.
3. In the frequency spectrum of a symmetric square wave, the ratio of the amplitude of the 3rd harmonic to the 1st (fundamental) harmonic is:
Explanation: The amplitude of the $n$-th harmonic is $A_n = \frac{4V}{n\pi}$. Thus, $A_1 = \frac{4V}{\pi}$ and $A_3 = \frac{4V}{3\pi}$, making the ratio $A_3 / A_1 = 1/3$.
4. The occurrence of ripples and an approximate 9% overshoot near the points of discontinuity in the Fourier series reconstruction of a square wave is known as:
Explanation: Gibbs phenomenon describes the non-uniform convergence and persistent ~9% overshoot near jump discontinuities when using truncated Fourier series.
5. Why are all even harmonics absent in the Fourier series of a symmetric square wave?
Explanation: Half-wave antisymmetry, given by $f(t + T/2) = -f(t)$, ensures that all even harmonic coefficients ($a_n$ and $b_n$ for even $n$) are identically zero.
6. According to Parseval's theorem, for a symmetric square wave of amplitude $V$, the total average power $P_{avg}$ is equal to:
Explanation: The average power of a periodic signal over one period is $\frac{1}{T} \int_0^T f(t)^2 dt$. Since $f(t)^2 = V^2$ constantly, $P_{avg} = V^2$.
Timed Topic Test
Attempt these questions under a ten-minute limit using a separate timer.
1. What is the peak amplitude of the 5th harmonic of a square wave with amplitude $V = 10\text{ V}$?
Explanation: The amplitude of the 5th harmonic is $A_5 = \frac{4V}{5\pi} = \frac{4(10)}{5\pi} = \frac{40}{5\pi} = \frac{8}{\pi}\text{ V}$.
2. Which symmetry property of a symmetric square wave guarantees that all cosine coefficients ($a_n$) are zero?
Explanation: An odd function satisfies $f(-t) = -f(t)$, which makes all integrals defining the cosine coefficients $a_n$ evaluate to zero.
3. If a square wave has a time period of $T = 2\text{ ms}$, what is its fundamental angular frequency $\omega$?
4. What happens to the harmonic amplitudes $A_n$ as the harmonic number $n$ increases in the Fourier expansion of a square wave?
Explanation: The amplitude formula is $A_n = \frac{4V}{n\pi}$, showing that amplitudes decrease inversely with harmonic order $n$ ($1/n$ decay).
5. In Parseval's identity for a symmetric square wave, the sum $\sum_{n=1,3,5\dots}^{\infty} \frac{1}{n^2}$ evaluates to:
Explanation: Equating total power $V^2 = \left(\frac{4V}{\pi}\right)^2 \frac{1}{2} \sum \frac{1}{n^2}$ yields $\sum_{n=1,3,5\dots}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{8}$.
6. Why is the Gibbs phenomenon important when studying Fourier series representations?
Explanation: The Gibbs phenomenon highlights that truncated Fourier series do not converge uniformly near discontinuities, retaining a persistent overshoot.
7. If the amplitude $V$ of a square wave is doubled, how does the peak amplitude of its fundamental frequency component change?
Explanation: Since $A_1 = \frac{4V}{\pi}$, the fundamental amplitude is directly proportional to the peak amplitude $V$, so doubling $V$ doubles $A_1$.
8. Which of the following functions best describes a symmetric square wave oscillating between $-V$ and $+V$ over one period from $-T/2$ to $T/2$?
Explanation: By definition, a symmetric square wave is negative for the first half of the cycle and positive for the second half when centered at the origin.
9. What is the average value over one complete period for a symmetric square wave oscillating between $-V$ and $+V$?
Explanation: Since the square wave spends equal time at $+V$ and $-V$ over one period, the net time-average (DC component) is zero.
10. If we retain only the fundamental and the 3rd harmonic in the Fourier series of a square wave, what fraction of terms are we considering out of the infinite series of odd harmonics?
Explanation: Retaining a limited set of terms provides a finite trigonometric polynomial approximation, which exhibits ripples due to truncation.