3.2 Square-Wave Forcing
Throw the switch on and off forever and you get the simplest periodic forcing there is: the square wave. With period , let equal on the first half-period and on the second. (The odd-looking amplitude is chosen to make every coefficient below a clean unit fraction.) In the language of the last section it is an infinite train of switches,
and its transform costs one geometric series: each delayed switch contributes its exponential tag, and
a closed form paying for infinitely many switches at once. That is the time ledger: the wave described by when it flips.
There is a second ledger — not when the wave switches but which frequencies it contains:
its Fourier series. Only odd multiples of the fundamental frequency appear, and the th harmonic arrives with amplitude . The claim looks implausible — smooth waves summing to a jump? — and deserves to be watched happening. The figure plots the first three partial sums: , then adds , then adds .
Explore in 3D (opens in a new tab)Explore
- Observe. Hide and . Alone, is a plain sine of height — the right period and the right sign pattern already, but round-topped and, at its crest, taller than the plateau it is aiming for.
- Predict. At the center of the plateau, , the next term contributes . Will revealing raise or lower the middle of the crest? Decide, then toggle it on.
- Verify. Read the three center heights at : they are , then , then — the partial sums of the alternating series , whose limit is exactly . The plateau height is that famous series, straddled from above and below.
- Observe. Count the ripples riding the solid curve's plateau: three crests, at , , and . Each harmonic added contributes one more ripple and shrinks them all.
- Predict, then verify. The solid curve's tallest crests are the ones nearest the jumps — at and , height — not the one at the center. Predict where the tallest crest of would sit, then check your reasoning against the pattern from to . (That stubborn spike beside each jump is the Gibbs phenomenon: it narrows as terms are added but never shrinks below about of the jump.)
Connect
Why take the wave apart at all? Because for a linear equation, superposition turns the series into a term-by-term to-do list. Drive an undamped oscillator with the square wave,
and each harmonic produces its own steady response , exactly as in the beats section — provided . The denominators tell the story: the response is dominated by whichever harmonic sits closest to the natural frequency. And if equals an odd integer, that single term resonates and grows without bound while every other term stays politely small.
This is the treacherous fact about periodic switching. A pure sinusoid resonates at exactly one frequency; a square wave carries the frequencies all at once and can resonate a system tuned to any of them. Matching the forcing period to the natural period is the resonance you expect. A square wave that switches three or five times slower than the system's natural oscillation excites a resonance you may not expect — the energy arrives through an overtone. Switched machinery must be designed against the whole ladder of frequencies, not a single rung.
An original work of XYZ Homework, built around interactive XYZ 3D figures, following the standard first-course sequence (first-order equations through systems and the phase plane). Distinct from the LibreTexts-sourced Differential Equations for Engineers (Lebl) edition, which has its own attribution. License: CC-BY-NC-SA-4.0.