Case Study 16-1: Bach's Musical Offering — A Masterclass in Symmetry Operations

Background

In May 1747, Johann Sebastian Bach made an unusual journey. Sixty-two years old, nearly blind, and by the standards of the fashionable Enlightenment already considered an old-fashioned composer — he traveled to Potsdam at the invitation of Frederick the Great of Prussia. Frederick was an enthusiastic amateur musician and flutist, and he had assembled one of the finest courts in Europe for musical performance.

The encounter that followed has become one of music history's most famous anecdotes. Frederick presented Bach with a particularly long and chromatic theme — a melody with unusual modulations and difficult leaps that would challenge any improviser — and asked Bach to improvise a fugue on it. Bach did so immediately, reportedly to the astonishment of the assembled musicians. Several weeks after returning to Leipzig, Bach sent Frederick an elaborate collection of pieces all based on that single royal theme: the Musikalisches Opfer (Musical Offering), BWV 1079.

The Musical Offering is, among other things, a sustained demonstration of what symmetry operations can do with a single melodic idea. Bach took the "royal theme" — a tortuous, chromatic line that seems designed to resist contrapuntal development — and subjected it to every classical transformation available to a Baroque contrapuntist. The result is not merely a technical tour de force but a profound meditation on what it means to develop a musical idea through systematic transformation.

The Royal Theme and Its Properties

Before examining what Bach does with the theme, it is worth understanding the theme itself. The Royal Theme is a chromatic, ascending melody in C minor that moves through unexpected modulations, dwells on unusual harmonic areas, and contains a particularly awkward leap of a diminished seventh. These features that make it difficult to harmonize also make it ideal for symmetry exploration: a theme that is highly specific has more "information content," and its transformations produce more distinctly recognizable results than a bland, scalar theme would.

The theme, in modern pitch-class notation, begins: C, D, Eb, F, G, Ab, G, F#, G... The chromatic inflections (the Ab, the F#, the implicit dissonances) are not accidents — they give the theme a tension that drives contrapuntal development. When Bach inverts this theme, the descending chromatic lines become ascending ones, and the harmonic implications change dramatically. This is the value of a theme with strong character: its symmetry transforms are distinctly recognizable as transforms, rather than as entirely new melodies.

The Crab Canon: Retrograde Symmetry Made Audible

The Canon Cancrizans (Crab Canon) is the piece most discussed in Chapter 16, and deservedly so. It is scored for two voices, and it demonstrates retrograde symmetry in its purest musical form. The first voice plays the Royal Theme; the second voice plays it backwards simultaneously.

What makes this remarkable is not the concept — composing two voices where one is the retrograde of the other is a compositional idea that was known before Bach — but the fact that the result is musically coherent, contrapuntally correct (all intervals between the voices are consonant or correctly resolved dissonances according to Baroque counterpoint rules), and actually pleasant to hear.

Achieving this requires that the theme have a property that mathematicians would call "self-consistency under reversal in the counterpoint domain." The harmonic intervals between Voice 1 at time t and Voice 2 at time t are determined by the pitch of Voice 1 at t and the pitch of Voice 2 at t — which is the pitch of Voice 1 at time (T - t), where T is the total duration. For the counterpoint to work, these intervals must be acceptable at every moment, which imposes severe constraints on which themes can be used.

The fact that the Royal Theme admits this treatment is, of course, not coincidental — Bach either chose the theme with this possibility in mind or discovered the crab canon treatment after the fact and included it because it worked. Either way, the result is a demonstration that symmetry is not imposed on the music from outside: it is a property of the music itself, discovered rather than invented.

The Six-Voice Ricercar: Complexity at the Limit

At the opposite pole from the spare, two-voice Crab Canon stands the Ricercar a 6 — a six-voice fugue of extraordinary complexity and the longest piece in the collection. Frederick had reportedly asked Bach to improvise a six-voice fugue on the Royal Theme at Potsdam; Bach reportedly declined, improvising a three-voice fugue instead and later composing the six-voice version formally.

The Ricercar a 6 is not primarily a piece about symmetry operations in the explicit sense of the Crab Canon. Rather, it demonstrates what happens when a theme with built-in symmetry properties is subjected to the full contrapuntal machinery of fugue: exposition, stretto (voices entering before the previous voice has finished the subject), augmentation (the theme doubled in note values), diminution (halved in note values), and invertible counterpoint (voices that can be swapped — what was in the top voice can go to the bottom without creating forbidden intervals).

The symmetry structure here is more complex: the invertible counterpoint requires that the theme be compatible with itself in multiple contrapuntal configurations — a multi-dimensional symmetry that is not easily represented as a single geometric operation. This is the musical analog of what crystallographers call "point group symmetry": the piece has multiple symmetry axes simultaneously, and the theme must satisfy all of them.

The Modulating Canons: Broken Symmetry in Action

Several of the canons in the Musical Offering exploit a type of symmetry that is deliberately broken: modulating canons. A canon is in principle a time-translation symmetric piece — the second voice is the first voice displaced in time, so the structure should repeat identically as the canon proceeds. But Bach writes canons that modulate — that shift key — as they progress.

The Canon per Tonos (Canon through the Keys) is the most striking example. It is a two-voice canon over a bass line, and at the end of each repetition, the piece has modulated up by one whole step. After six repetitions, it has moved up a major sixth and returned — in pitch class — to where it started, but one octave higher. The piece is notated to be repeated indefinitely: it is literally an infinite ascending spiral in pitch.

This is related to the "strange loop" concept: a structure that, by repeatedly applying a simple transformation (moving up a whole step), returns to its starting point — but not quite. The Shepard tone illusion in psychoacoustics is based on a similar principle: tones that seem to rise indefinitely while actually cycling. Bach's Canon per Tonos is the contrapuntal equivalent.

In group theory terms, this modulating canon exploits a specific tension between the cyclic symmetry of the pitch class system (twelve pitches, after which you return to the start an octave higher) and the real-valued pitch continuum (octave higher is not the same as the start). The canon is symmetric under the cyclic group Z6 (six transpositions of a whole step bring you back to the same pitch class in a different octave), but the "same" is not quite same — it is same plus an octave, creating an infinite ascent if you continue literally.

What Does This Tell Us About Group Theory and Music?

The Musical Offering demonstrates several key points about musical group theory. First, symmetry operations are compositional generators — they take one theme and produce an entire collection of related pieces. The unity of the Musical Offering comes entirely from the Royal Theme and the operations applied to it; there is no other musical material.

Second, the practical constraint of musical intelligibility selects from the space of all possible symmetry operations those that can actually be heard and recognized. The Crab Canon works because the retrograde is audible as a coherent musical line. The canon per augmentation (where one voice plays twice as slowly as the other) works because the augmented voice is recognizable as a slower version of the theme. Operations that produce completely unrecognizable results — even if mathematically valid — would not serve the Musical Offering's purpose.

Third, the combination of multiple symmetry operations (canon + inversion, canon + augmentation + inversion) produces results of greater complexity than any single operation alone. This is exactly what happens in physics: the Standard Model's SU(3) × SU(2) × U(1) symmetry is a product of three separate symmetry groups acting simultaneously, and the richness of the resulting theory (with all its particles and forces) comes from the interaction of these symmetries.

Discussion Questions

  1. The Musical Offering was composed in response to a royal commission and political situation. Does knowing the context change how you hear the symmetry operations? Does the social function of the music affect its mathematical structure?

  2. Bach reportedly improvised a three-voice fugue on the Royal Theme at Potsdam but refused to improvise in six voices. What does this suggest about the relationship between compositional symmetry (which can be planned) and improvisation (which cannot)? Are symmetry operations primarily a tool for pre-composed music?

  3. The Canon Cancrizans is "beautiful" to many listeners even when they don't know the compositional technique. If the symmetry is imperceptible as a technical fact, does the beauty come from the symmetry or from something else? Could a random melody happen to be beautiful in the same way?

  4. How does the Musical Offering compare to other compositional approaches that exploit a single generating idea (e.g., Beethoven's development of the four-note motif in the Fifth Symphony, or a jazz musician's improvised variations on a standard)? What is distinctive about the group-theoretic approach, and what does it sacrifice?