Foundations: The Intersection of Mathematics and Music
When you scroll through a 15-second TikTok video, tap play on a Taylor Swift chorus, or bob your head to the beat of an Afrobeats track, you are participating in one of humanity’s oldest mathematical practices: music. Every chord progression, drum pattern, and vocal melody you hear is built on ratios, cycles, and symmetries that mathematicians have been studying for 2,500 years. This chapter will trace that unlikely partnership between two seemingly unrelated fields, define the core terms that will anchor every discussion in this book, and give you a roadmap for the 14 chapters ahead. We will start not with a textbook, but with a story you might have heard in middle school math class: the legend of Pythagoras and the blacksmith’s shop.
<sidebar class="digital-interactive">📱 动手试试:如果你有吉他、尤克里里,甚至只是一根绑在纸盒上的橡皮筋,拨动它,然后按住弦的中点(改变弦长为原来的1/2),再拨一次。两次的声音听起来几乎一样,但音高差了一个八度——这就是毕达哥拉斯2500年前发现的第一条数学音乐规律。</sidebar>
The Pythagorean Origin Story: Numbers in the Blacksmith’s Shop
Around 530 BCE, a 40-year-old Greek philosopher named Pythagoras walked past a blacksmith’s shop in the city of Croton (modern-day southern Italy) and heard something that would change the course of both mathematics and music. The blacksmith was hammering iron on an anvil, and Pythagoras noticed that some pairs of hammers produced sounds that blended together smoothly, while others clashed harshly. Intrigued, he went inside, weighed the hammers, and found that the smooth-sounding pairs had masses in simple integer ratios: the heaviest hammer was twice as heavy as the lightest, the next heaviest was 1.5 times the lightest, and so on. Pythagoras rushed back to his school (the first known institution of higher learning in the West) and tested the same idea with strings on a monochord, a single-stringed instrument he designed for precise experiments.
He found the same pattern: if two strings have lengths in a 2:1 ratio, the notes they produce blend perfectly, with the higher note exactly one octave above the lower. A 3:2 length ratio produces a perfect fifth, the interval you hear when you sing “do-sol” in a major scale. A 4:3 ratio produces a perfect fourth, the interval from “do-fa.” Harsh, clashing sounds, by contrast, came from strings with lengths in messy, non-integer ratios. Pythagoras famously declared that “all is number”: the entire universe, from the movement of planets to the sound of a blacksmith’s hammer, was built on simple integer ratios.
This discovery was not just a fun party trick. It was the first time anyone had proven that a sensory experience (the sound of music) could be described by abstract mathematical rules. For the next 2,000 years, every major advance in Western music theory would be built on the same foundation Pythagoras laid in that blacksmith’s shop.
The Mathematics of Pythagoras’s Intervals
To understand why Pythagoras’s ratios matter, we first need to define one core term: <concept>frequency</concept>, measured in hertz (Hz), which counts how many times a sound-producing object vibrates per second. A string vibrating 440 times per second produces the note A4, the standard reference pitch for modern Western music. A string vibrating 880 times per second produces A5, exactly one octave higher.
When two notes sound together, their <concept>frequency ratio</concept> determines how smoothly they blend. Let’s test Pythagoras’s ratios with real numbers:
- For an octave: If the lower note is A4 at 440 Hz, the higher note is $440 \times 2 = 880$ Hz, a ratio of $2:1$. If you play both at the same time, you will hear a single, rich note that sounds like both pitches at once, with no clash.
- For a perfect fifth: The higher note is $440 \times \frac{3}{2} = 660$ Hz, a ratio of $3:2$. This is the interval you hear at the start of “Twinkle Twinkle Little Star” (the first two notes: do-sol) or the “star wars” fanfare opening.
- For a perfect fourth: The higher note is $440 \times \frac{4}{3} \approx 587$ Hz, a ratio of $4:3$. This is the interval from “do-fa” in “Do-Re-Mi.”
Notice a pattern? All of Pythagoras’s consonant (smooth-sounding) intervals come from ratios of small integers: 2:1, 3:2, 4:3. Dissonant (clashing) intervals, by contrast, come from ratios of larger integers: a major second (the interval from do-re) has a ratio of $9:8$, a minor second (the interval from do-do♯) has a ratio of $16:15$. The smaller the integers in the ratio, the more consonant the interval. This is not a coincidence: when two notes sound together, their <concept>harmonic overtones</concept> (higher-frequency vibrations that occur naturally when a string or air column vibrates) align more closely when their frequency ratio is a simple integer. For a 2:1 octave, every overtone of the lower note matches an overtone of the higher note exactly. For a 16:15 minor second, almost no overtones align, creating a harsh, unstable sound.
<sidebar class="paper-box">📖 纸书小实验:拿一根橡皮筋,绑在两个相距10厘米的图钉上(钉在硬纸板上)。拨动橡皮筋,记录音高。然后把两个图钉的距离缩短到5厘米,再拨动一次。你会发现音高升高了一个八度,弦长刚好是原来的1/2,频率比是2:1,完美验证毕达哥拉斯的发现。</sidebar>
From Pythagoras to the Middle Ages: Music as a Mathematical Trinity
Pythagoras’s discovery sparked a 2,000-year tradition of treating music as a branch of mathematics, not art. The first person to formalize this tradition was Anicius Boethius, a Roman philosopher who lived from about 480 to 524 CE. Boethius wrote a textbook called *De institutione musica* (The Principles of Music), which became the standard music theory text in Europe for more than 1,000 years. In it, he divided music into three categories, all rooted in mathematics: 1. Musica mundana (world music): The harmony of the cosmos, created by the movement of the planets and stars. Boethius argued that the planets’ orbital periods and distances followed simple integer ratios, creating a silent, perfect music that humans could not hear directly. 2. Musica humana (human music): The harmony of the human body, created by the ratio of organs, bones, and even the rhythm of the pulse. Boethius believed that a healthy person’s body was in perfect mathematical proportion, just like a consonant chord. 3. Musica instrumentalis (instrumental music): The music humans actually make with instruments and voices, which was just a physical echo of the first two, more perfect forms of music.
Boethius’s framework was not just abstract philosophy. It shaped the way people thought about music for a millennium. For example, the 17th-century astronomer Johannes Kepler, who discovered the laws of planetary motion, was obsessed with finding the mathematical harmony of the cosmos that Boethius had described. In his 1619 book *Harmonices Mundi* (The Harmony of the World), Kepler calculated the ratios of the orbital periods of the planets and found that they roughly matched musical intervals: the ratio of Earth’s orbital period (365 days) to Venus’s (225 days) is about 1.62, close to the just major third ratio of 5:4 = 1.25? No, wait, 365/225≈1.62, which is close to the golden ratio, and Kepler thought this was evidence of divine mathematical order. He even wrote a piece of music based on the orbital ratios of the planets, which was finally performed in 2016, 400 years after he wrote it.
<sidebar class="digital-interactive">📱 侧边栏:如果你想听 Kepler 的行星音乐,可以在视频平台搜索“Kepler’s Planetary Harmony”,你会听到每个行星对应一个声部,轨道周期越短,音高越高,整个曲子听起来像宇宙的合唱。</sidebar>
The Renaissance Breakthrough: From String Ratios to Harmony Rules
For 2,000 years after Pythagoras, music theory was limited to the simple intervals he discovered: octaves, fifths, and fourths. But in the 16th century, Italian music theorist Gioseffo Zarlino published *Le istitutioni harmoniche* (The Foundations of Harmonic Theory), the first book to use mathematical ratios to explain chords, not just single intervals. Zarlino noticed that the three notes of a major chord (for example, C, E, G) have frequency ratios of 4:5:6. If C is 1, E is 5/4, and G is 3/2, multiplying all by 4 gives 4:5:6, all small integers