wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
CHAPTER 5.4.1 • 2DPublished Interactive Labs~30 min study

Orthogonal Harmonics, Epicycles & Gibbs Phenomenon

Build square, sawtooth, and triangle waves from N sinusoids and inspect the 9% Gibbs overshoot near jump discontinuities.

Engineering & Physical Application Context

Digital audio harmonic synthesis, JPEG/MP3 spectral compression, JPEG blocking ringing artifacts, and structural harmonic resonance balancing.

Governing Mathematical Formulation
f(t)∼a02+∑n=1N(ancos⁡(nω0t)+bnsin⁡(nω0t))f(t) \sim \frac{a_0}{2} + \sum_{n=1}^{N} \big(a_n\cos(n\omega_0 t) + b_n\sin(n\omega_0 t)\big)
Volume V • Module 5.41 Interactive Lab(s)

The Question You Should Ask

How can smooth sine waves stack to build sharp square corners—and why does a stubborn ~9% ringing spike survive near jump edges no matter how many harmonics you add?

In Simple Words & Math

Distinct harmonics {cos⁡(nω0t),sin⁡(nω0t)}\{\cos(n\omega_0 t), \sin(n\omega_0 t)\} are mutually orthogonal under definite integration over one period, letting each Fourier coefficient project independently like vector components.

At any jump discontinuity, partial sums squeeze oscillations inward without losing peak height (~8.95% Gibbs overshoot), whereas smooth continuous waves like triangles converge uniformly with rapid O(1/n2)O(1/n^2) decay.

4-Step Pedagogical Chapter Rhythm • Geometric Intuition First
Ch. 5.4.1
STEP 1 • GEOMETRIC QUESTION

Why do sine and cosine harmonics form perpendicular basis axes for periodic signals—and why does a ~9% Gibbs spike refuse to vanish near sudden jumps?

STEP 2 • INTERACTIVE LAB EXPLORATION

Scrub harmonic count N ∈ [1, 45] across Square, Sawtooth, Triangle, and 25% Duty Pulse waveforms while spinning the rotating epicycle chain.

STEP 3 • SYMBOLIC FORMALIZATION
f(t)∼a02+∑n=1N(ancos⁡(nω0t)+bnsin⁡(nω0t)),∥f∥22=Parsevalf(t) \sim \frac{a_0}{2} + \sum_{n=1}^{N} \big(a_n\cos(n\omega_0 t) + b_n\sin(n\omega_0 t)\big), \qquad \|f\|_2^2 = \text{Parseval}
STEP 4 • EDGE CASES & NEXT BRIDGE

Notice that continuous Triangle waves decay at O(1/n²) with zero Gibbs overshoot, whereas jump-discontinuous Square waves decay at O(1/n) and lock at ~8.95% peak overshoot. Chapter 5.4.2 opens the period T → ∞ to reach the continuous Fourier Transform.

Interactive Laboratories in Chapter 5.4.1
Initializing Interactive Laboratory
LOADING MODULE

Preparing interactive canvas & numerical solver…

wanna math drafting viewport

Orthogonal Harmonics & Energy • Ch. 5.4.1

Orthogonal Harmonics, Smoothness Decay Rates, Parseval Energy & Gibbs Overshoot

Open Fourier Series Formulas →
1. INNER-PRODUCT PROJECTION & SMOOTHNESS DECAY
∫−ππsin⁡(nt)sin⁡(mt) dt=π δnm\int_{-\pi}^{\pi} \sin(nt)\sin(mt)\,dt = \pi\,\delta_{nm}

Distinct harmonics are mutually orthogonal, isolating each an,bna_n, b_n independently. Jump discontinuities (Square wave) force slow O(1/n)O(1/n) tails, whereas continuous piecewise-smooth corners (Triangle wave) decay rapidly at O(1/n2)O(1/n^2) and converge uniformly.

2. PARSEVAL POWER CONSERVATION
1π∫−ππ∣f(t)∣2 dt=a022+∑n=1∞(an2+bn2)\frac{1}{\pi}\int_{-\pi}^{\pi} |f(t)|^2\,dt = \frac{a_0^2}{2} + \sum_{n=1}^{\infty} (a_n^2 + b_n^2)

Total signal power in time equals the sum of squared harmonic amplitudes in frequency, giving exact L2L^2 truncation error control whenever a spectrum is truncated at mode NN.

3. DIRICHLET MIDPOINT & WILBRAHAM–GIBBS RINGING
1π∫0πsin⁡uu du−12≈8.95%\frac{1}{\pi}\int_0^{\pi} \frac{\sin u}{u}\,du - \frac{1}{2} \approx 8.95\%

By Dirichlet's theorem, partial sums at any jump t0t_0 converge to the midpoint 12[f(t0+)+f(t0−)]\tfrac{1}{2}[f(t_0^+)+f(t_0^-)], while ringing horns squeeze inward without shrinking below ≈8.95%\approx 8.95\% of the step height.

Chapter 5.4.1 Laboratory Specifications

1 Interactive Lab(s)
LAB 5.4.1.1Component: FourierSeriesGibbsLab

Fourier Harmonic Synthesizer, Spectrum & Gibbs Inspector

Scrub harmonic count N ∈ [1, 50] and inspect orthogonal inner-product coefficients.

cn=1T∫0Tf(t)e−inω0t dtc_n = \frac{1}{T}\int_0^T f(t)e^{-in\omega_0 t}\,dt