Module 0 Β· Week 1 Β· Undergraduate
The Pythagorean Wager
Can all of music be reduced to ratios of whole numbers? The Pythagoreans wagered yes β and the consequences of that wager, including its spectacular failure, set the stage for two millennia of mathematics.
1. The Quadrivium
In the medieval university, the quadrivium comprised four disciplines: arithmetic (number in itself), geometry (number in space), music (number in time), and astronomy (number in space and time). This was not mere curriculum design β it reflected a deep philosophical conviction that the universe is fundamentally mathematical.
The Pythagorean school (c. 530 BCE) discovered that the intervals which sound most consonant correspond to the simplest ratios of string lengths. This was arguably the first quantitative law of nature β preceding Newton by two millennia.
βAll is numberβ β attributed to Pythagoras. The quadrivium endured as the core of European education from late antiquity through the Renaissance.
2. Consonance and Ratio
When a string is divided into simple integer ratios, the resulting intervals are perceived as consonant. The three most consonant intervals, after unison, are:
Octave
Frequency ratio 2:1
1200 cents
Perfect Fifth
Frequency ratio 3:2
~701.96 cents
Perfect Fourth
Frequency ratio 4:3
~498.04 cents
The cent is a logarithmic unit: 1200 cents per octave. An interval of frequency ratio \(r\) has \(1200 \log_2(r)\) cents. This converts multiplicative ratios to additive measures.
Why do simple ratios sound consonant? When two tones with frequencies in ratio \(p:q\) are sounded together, their combined waveform repeats every \(\text{lcm}(p,q)\) cycles. Simpler ratios produce shorter repeat periods, which the auditory system processes more easily. This is a rough first approximation β the full story involves critical bands and the cochlear mechanics we will explore in Module 1.
3. The Pythagorean Comma
If we stack twelve perfect fifths, we expect to return to our starting note (seven octaves higher). But the arithmetic is merciless:
Twelve fifths overshoot seven octaves by about 23.46 cents β roughly a quarter of a semitone. This is the Pythagorean comma, and it means that no circle of pure fifths ever closes exactly.
Numerical verification
\((3/2)^{12} = 129.746337890625\) while \(2^7 = 128\). The ratio \(129.746.../128 = 1.01364326...\), and\(1200 \log_2(1.01364326) \approx 23.46\) cents.
Simulation: The Pythagorean Comma Spiral
The following simulation plots the spiral of fifths on a polar diagram, the cumulative comma error in cents, and a three-way comparison of Pythagorean, equal-temperament, and just-intonation tunings across all 12 pitch classes.
Click Run to execute the Python code
Code will be executed with Python 3 on the server
4. The Core Impossibility
The comma is not an accident of the number 12. It reflects a deep number-theoretic impossibility:
Theorem
There exist no positive integers \(a, b > 0\) such that \(2^a = 3^b\).
Proof
Suppose \(2^a = 3^b\) for positive integers \(a, b\). The left side is even; the right side is odd. Contradiction. \(\square\)
Equivalently, \(\log_2 3\) is irrational. If \(\log_2 3 = p/q\) for integers \(p, q\), then \(2^p = 3^q\), contradicting the above. Since \(\log_2(3/2) = \log_2 3 - 1\), the number of fifths in an octave is also irrational. No equal division of the octave into fifths is possible.
This elementary fact β that powers of 2 and powers of 3 never coincide β is the original sin of Western tuning theory. Every tuning system is a different strategy for managing this impossibility.
5. The Comma Spiral
Stacking perfect fifths around the circle of pitch classes, we spiral outward instead of closing. After 12 fifths, we arrive at Bβ― instead of returning exactly to C β overshooting by the Pythagorean comma.
The spiral of fifths. Starting from C and stacking 12 pure fifths (ratio 3:2), we arrive at Bβ― β not back at C, but ~23.46 cents sharp. The gap (red) is the Pythagorean comma.
6. The Harmonic Series
A vibrating string produces not just its fundamental frequency \(f_1\), but also integer multiples: \(f_1, 2f_1, 3f_1, 4f_1, \ldots\) These are the harmonics(or overtones/partials). The relative amplitudes of harmonics determine the timbre of a sound.
Harmonics and intervals
The harmonic series connects music to number theory: the consonant intervals of Western music are precisely the ratios of small integers that appear early in the series. The mathematical study of these ratios, their approximations, and their incompatibilities is the subject of this entire course.
Formally, the \(n\)-th harmonic has frequency \(f_n = n \cdot f_1\). The interval between harmonic \(n\) and harmonic \(m\) is the ratio \(n/m\), measured in cents as \(1200 \log_2(n/m)\).
7. Course Roadmap
This course follows a trajectory from the concrete to the abstract, building mathematical machinery as the musical questions demand it:
Wave equation, eigenvalue problem, Fourier series/transform, psychoacoustics
Continued fractions, why 12 tones, just intonation, equal temperament
Dihedral groups, Tonnetz, neo-Riemannian theory, generalized interval systems
Euclidean rhythms, necklaces, rhythmic canons, DFT on finite groups
Shannon entropy, Markov models, Bayesian surprise, neural correlates
Orbifolds, voice-leading geometry, persistent homology
L-systems, cellular automata, stochastic music, deep generative models
12 unsolved questions at the music-mathematics frontier
Each module includes interactive components, detailed mathematical derivations, and connections to the broader mathematical landscape. The course spirals through three depth levels: undergraduate, graduate, and research frontier.