Cover of the summary of “The Simpsons and Their Mathematical Secrets”

Book summary “The Simpsons and Their Mathematical Secrets”: summary

Simon Singh

3,766 words · 21 min read

You often watch television to escape intellectual rigor, assuming that smart shows and pop culture comedy exist in separate worlds.

Summary text

3,766 words · 21 min read

Introduction

You often watch television to escape intellectual rigor, assuming that smart shows and pop culture comedy exist in separate worlds.

Mainstream television writers with advanced degrees in mathematics and physics successfully integrate rigorous theorems, paradoxes, and equations into animated sitcoms.

Simon Singh reveals how a unique group of Ivy League writers transformed popular animation into a stealth educational platform for serious numbers. You will discover how the books, background gags, and character quirks conceal profound mathematical truths developed by people with doctorates. The text maps these academic jokes across six thematic sections, tracing prime numbers, geometry, topology, and complex proofs through the history of two iconic series.

  • Which equations hide in the background of Springfield?
  • How did a formal mathematical theorem solve a writers' room plot trap?
  • What links Homer Simpson to Fermat's Last Theorem?

1. Mathematical Backgrounds and Number Theory

Writers incorporated advanced academic training and classic number theory into early episodes, using clever gags to introduce prime numbers, proofs, and calculus jokes.

Several key writers and producers of The Simpsons hold advanced degrees in mathematics, physics, and computer science from elite universities. Ken Keeler earned a PhD in applied mathematics from Harvard, while Jeff Westbrook holds a PhD in computer science from Princeton. Al Jean, David S. Cohen, and J. Stewart Burns also brought rigorous academic training into the writers' room. This allowed them to seamlessly incorporate complex mathematical theorems, formulas, and concepts into a mainstream animated sitcom.

Academic Writers and First References

From its very first full-length episode, The Simpsons integrated subtle and overt mathematical references into the visual gags and dialogue. In the debut episode "Bart the Genius," baby Maggie stacks her alphabet blocks to spell out a phonetic version of Einstein's mass-energy equivalence formula. Later in the episode, students at a gifted school use esoteric mathematical and astronomical terms to negotiate lunch trades.

Maggie stacks her alphabet blocks to display EMCSQU, representing E = mc2, while Bart faces confusing lunch offers involving Jovian moons and picoliters of milk.

Writer Mike Reiss developed an early passion for recreational mathematics inspired by Martin Gardner, leading him to discover properties of palindromic square numbers as a child. Reiss was captivated by mathematical puzzles and wrote a letter to Martin Gardner at age eight pointing out that palindromic square numbers tend to have an odd number of digits. He also asked a naive question about whether prime numbers are finite or infinite, prompting Gardner to direct him to Euclid's ancient proof. Mike Reiss won humor writing competitions as a child while also participating on his high school mathematics team in Connecticut. Across the range under 100 billion, there are thirty-five palindromic square numbers. Only 1 of these palindromic square numbers below 100 billion has an even number of digits.

Calculus Punchlines and Euclid's Proof

The writers embedded a sophisticated calculus joke into a classroom scene by using the derivative of a curve to create an acoustic punchline. A teacher poses a calculus problem asking students to determine the rate of change of a curve where y equals r cubed over three. When differentiated, the mathematical steps yield an expression that sounds phonetically like a famous sarcastic cartoon catchphrase.

The teacher's solution reduces to r dr r, which sounds like har-de-har-har, a phrase popularized by Jackie Gleason and a Hanna-Barbera cartoon hyena.

Ancient Greek mathematician Euclid proved that prime numbers are infinite using a logical technique known as proof by contradiction. Euclid assumed the list of primes is finite, multiplied them all together, and added one to create a new number N. Because N cannot be divided evenly by any prime on the original list, N must either be a new prime itself or be divisible by new primes not on the list, thereby disproving the assumption of a finite list. Euclid worked in Alexandria around 300 B.C. and established that any proposed finite list of prime numbers is inevitably incomplete.

To perform this logical check yourself:

  • Assume the number of primes is finite and compile them into a list.
  • Multiply all the primes on the list together and add 1 to create a new number N.
  • Evaluate whether N is prime or not to show that it contradicts the initial assumption of a complete finite list.

Pi Approximations and Indiana Legislation

Mathematicians historically calculated the irrational number pi by trapping a circle between inner and outer polygons with an increasing number of sides. Archimedes pioneered the method of polygonal approximation by using squares and hexagons to bound the circumference of a circle, eventually reaching 96-sided polygons. Later mathematicians expanded this technique to thousands of sides and billions of subdivisions to determine dozens of decimal places for pi. Chinese mathematician Zu Chongzhi used 12,288-sided polygons in the 5th century A.D. to bound pi between extremely narrow decimal limits.

Professor Frink silencing a science conference by declaring pi is exactly three references an actual 1897 attempt by an Indiana politician to legally mandate a wrong value for pi. In the episode "Bye, Bye, Nerdie," Professor Frink shouts that pi equals three to stun an unruly audience of scientists into silence. This mirrors House Bill No. 246 proposed by physician Edwin J. Goodwin, which attempted to legislate a flawed geometric ratio before being halted by Purdue professor C.A. Waldo. Indiana physician Edwin J. Goodwin proposed a bill in 1897 based on his attempted solution to squaring the circle, which was indefinitely postponed thanks to the intervention of Professor C.A. Waldo.

2. Puzzles, Networks, and Sabermetrics

Historical Puzzles and Erdös-Bacon Numbers

You will find that classical puzzles frequently appear as a reflection of the writers' mathematical passions. In 'Homer Defined' (1991), a younger Homer cycles through permutations on a Rubik's cube during a nuclear safety training session instead of paying attention to meltdown procedures. There are 43,252,003,274,489,856,000 permutations of the Rubik's Cube.

Writers incorporate historical problems into episode plots. In 'Gone Maggie Gone' (2009), Homer must ferry his baby, a dog, and poison across a river using a flimsy boat, mirroring Alcuin of York's eighth-century wolf, goat, and cabbage problem from Propositiones ad Acuendos Juvenes.

To solve the puzzle successfully, you follow these exact steps:

  • Take Maggie across the river from the original bank to the destination bank.
  • Return to the original bank to collect the poison, row back to the destination bank, and deposit the poison.
  • Bring Maggie back to the original bank and leave her there while taking the dog across to join the poison.
  • Row back to the original bank to collect Maggie and row to the destination bank to complete the crossing.

Network connections and mathematical humor unite in the writers' room.

Jeff Westbrook and David S. Cohen brought rigorous academic backgrounds from Harvard, Princeton, and Berkeley to the writers' room of The Simpsons. Mathematically trained comedy writers approach story and joke creation as a collaborative problem-solving process. They treat story issues and jokes like theorems, throwing out raw ideas and analyzing them collaboratively rather than relying solely on sudden individual inspiration.

You can measure a person's connectivity within both the mathematical research community and the Hollywood film industry using the Erdös-Bacon number. This combines an academic Erdös number derived from co-authored research papers with a Hollywood Bacon number derived from shared film appearances. Paul Erdös published 1,525 research papers and had 511 co-authors.

Jeff Westbrook achieved an Erdös-Bacon number of 6 by earning an Erdös number of 3 through computer science co-authorships and a Bacon number of 3 through an acting role in Master and Commander.

Sabermetrics in Baseball and Lisa Simpson

Sabermetrics applies empirical and objective mathematical analysis to baseball statistics to challenge traditional folk wisdom. Amateur statisticians like Bill James pioneered the field, and professional teams later adopted it to replace misleading metrics like fielding errors with advanced statistical frameworks to identify undervalued players. Bill James published only 75 copies of his 1978 Baseball Abstract, up from 250 copies of the 1977 edition.

Billy Beane used sabermetric principles and Harvard economics graduate Paul DePodesta's data analysis to lead the low-budget Oakland Athletics to a twenty-game winning streak in 2002. The New York Yankees held a payroll of $125 million in 2001, while the Oakland A's operated on just $40 million.

Lisa Simpson applies sabermetrics to manage a Little League team successfully.

Turning away from traditional coaching, Lisa uses spreadsheets, computer simulations, and statistical formulas to optimize her team's lineup and performance. In 'MoneyBART' (2010), Lisa surrounds herself with advanced math and baseball books, replaces traditional tactics with on-base percentage calculations, and transforms the Isotots into league contenders. The game culminates in a dramatic 11-10 score in the final inning of the Little League State Championship.

3. Set Theory, Game Theory, and Primes

High intelligence does not guarantee wise leadership, as illustrated when Springfield is briefly governed by Mensa members who implement absurd ideas like metric time. In the episode "They Saved Lisa's Brain," Mayor Quimby flees corruption charges, allowing local Mensa members to take control. Among their dysfunctional policies is a metric time system modeled after the 1793 French system, where a day has ten hours, each hour has one hundred minutes, and each minute has one hundred seconds.

Principal Skinner proudly announces on metric time: "Not only are the trains now running on time, they're running on metric time. Remember this moment, people: 80 past 2 on April 47th." The French abandoned metric time in 1805.

The historical struggles of women in mathematics are exemplified by Sophie Germain, who adopted a male pseudonym to study at the École Polytechnique.

Born in Paris in 1776, Germain was inspired by the story of Archimedes' fatal obsession with geometry. Because women were barred from the École Polytechnique, she obtained lecture notes and submitted observations under the male pseudonym Monsieur LeBlanc, eventually winning the respect of prominent mathematicians like Joseph-Louis Lagrange and Carl Friedrich Gauss. When Napoleon's army invaded Prussia in 1806, Germain arranged for military protection to ensure Carl Friedrich Gauss was kept safe, which ultimately revealed her true identity to him.

Stadium Numbers and Nontransitive Dice

Secret mathematical numbers—including Mersenne primes, perfect numbers, and narcissistic numbers—can be subtly embedded into popular media like sports stadium scoreboards. Following a visit by mathematics professors Sarah Greenwald and Andrew Nestler to a table-read, the writers of The Simpsons updated a multiple-choice crowd attendance question on the Jumbo-Vision screen to feature specialized mathematical numbers in honor of the professors' visit.

In "Marge and Homer Turn a Couple Play," the stadium screen displays 8,191 (a Mersenne prime), 8,128 (a perfect number), and 8,208 (a narcissistic number). A Mersenne prime is generated when p equals 13. A narcissistic number equals the sum of each of its digits raised to the power of the number of digits.

Game theory analyzes how competitors behave in conflict. While rock is statistically the most popular throw, sophisticated players account for this bias. Furthermore, expanding the game requires an odd number of options to balance wins and losses, and using nontransitive dice creates scenarios where die A beats B, B beats C, but C beats A. Warren Buffett frequently uses a trick with nontransitive dice, allowing his opponent to choose first so he can select the mathematically superior die in response. The expanded game RPS-101 features 101 hand gestures. Warren Buffett has an approximate net worth of 50 billion dollars. A winning die has an average win rate of 56 percent against a losing die in the nontransitive dice set.

Hilbert's Hotel and Math Clubs

Georg Cantor's revolutionary ideas about infinity can be understood through David Hilbert's conceptual model of an infinite hotel. Hilbert's Hotel demonstrates that an infinite hotel with all rooms occupied can still accommodate new guests by shifting every existing guest to the next room, proving counterintuitive mathematical truths about infinite sets. Georg Cantor was born in St. Petersburg, Russia, in 1845 and died in 1918.

When Homer and Ned Flanders argue about infinity, shouting "infinity plus one!", mathematical principles show that infinity plus one equals infinity, rendering Ned's attempt to trump Homer invalid.

The writing staff of The Simpsons features an unusually high concentration of academically trained mathematicians and scientists who maintain an active intellectual community called Math Club. Conceived by Roni Brunn and Matt Warburton, Math Club brought together show writers, teachers, and researchers in Los Angeles to deliver university-level lectures on topics like surreal numbers, graph theory, and pancake sorting. The first Math Club meeting took place in 2002. Upper-limit pancake sorting calculations used 1,000 pancakes.

Writer David S. Cohen published an academic paper on the burnt pancake problem, only to discover that fellow writer Ken Keeler had also published research in the exact same journal, Discrete Applied Mathematics.

4. Cosmology, Paradoxes, and Constants

Background gags and mathematical constants introduce cosmology, geometric errors, statistical paradoxes, and compound interest to attentive viewers.

Cosmologists take seriously the mathematical possibility that the universe is shaped like a hollow doughnut. By taking a two-dimensional sheet representing the cosmos, joining its long edges to form a cylinder, and then connecting the ends, space becomes a hollow doughnut where travelers can loop back to their starting point, similar to the video game Asteroids.

In the episode They Saved Lisa's Brain, Professor Stephen Hawking chats with Homer in Moe's Tavern and tells him that his theory of a doughnut-shaped universe is intriguing and that he might steal it.

Doughnut Universes and Simpson's Paradox

The writers of The Simpsons recycled a deliberate mathematical error from The Wizard of Oz known as the Scarecrow conjecture. When Homer acquires Henry Kissinger's lost glasses in a washroom, he temporarily gains intellectual confidence and mistakenly states that the sum of the square roots of any two sides of an isosceles triangle equals the square root of the remaining side.

In $pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling), Homer puts on Henry Kissinger's spectacles found in a toilet and misquotes the Pythagorean theorem using isosceles triangles and square roots.

Simpson's paradox occurs when a statistical trend appears in different groups of data but reverses or disappears when these groups are combined. Named after Edward H. Simpson, who studied statistics at Bletchley Park, this baffling statistical phenomenon means that a subgroup trend can completely contradict the aggregate trend due to a lurking variable.

In the voting records for the 1964 Civil Rights Act, Democrats outvoted Republicans in both northern and southern states individually, but Republicans outvoted Democrats when the northern and southern data were combined. In those records, 94 percent of northern Democrats voted for the act compared to 85 percent of northern Republicans, while 7 percent of southern Democrats voted for the act compared to 0 percent of southern Republicans. Nationally, 80 percent of Republicans voted for the act compared to 61 percent of Democrats combined.

Freeze-Frame Gags and the Constant e

The development of home video recording enabled The Simpsons to pioneer the use of freeze-frame gags containing obscure mathematical and literary references. By 1989, 65 percent of American households owned a video cassette recorder, and more than 10 percent of households had a home computer. Writers packed background books, signs, and scrolling text with niche jokes meant to be caught only by viewers who paused the show or shared discoveries on early internet forums.

In Homer Badman, an investigative show called Rock Bottom issues a rapid scrolling apology containing thirty-four freeze-frame gags in four seconds, including lines targeting viewers and politics.

The fundamental mathematical constant e naturally emerges from calculating compound interest compounded at every possible infinitesimally small moment. When investigating how investment returns grow when interest is calculated more and more frequently throughout the year, the resulting limit as the number of time increments approaches infinity settles at an irrational number starting with 2.718, or more precisely $2.71828182845... Google celebrated e by announcing plans to raise exactly $2,718,281,828 during its stock sale in 2004 and posting a billboard featuring a mathematical puzzle to recruit engineers.

You can explore probability using a standard deck of cards by following these exact steps:

  • Take two decks of cards and shuffle each separately to randomize them.
  • Place the two decks side by side and turn over cards one at a time from the top of each deck.
  • Count a match if both cards share the exact same suit and rank.
  • Repeat the process to observe that the probability of zero matches approaches 1 over e.

5. Higher Dimensions, Ciphers, and Infinities

Spin-off shows and futuristic settings feature higher dimensions, cryptographic alien ciphers, taxicab numbers, and Cantor's diagonal infinities.

David S. Cohen wrote "Homer 3" in 1995 where Homer falls through a bookcase portal into a three-dimensional world. Pacific Data Images volunteered the expensive CGI production, which later led to Antz and Shrek. Professor Frink explains the dimension jump on a blackboard by showing how extending a square along a z-axis forms a cube.

Homer crosses into a 3D space and exclaims about his protruding stomach, while Professor Frink uses a blackboard to demonstrate moving from a zero-dimensional point to a 3D cube. David S. Cohen created the near-miss equation 1,782 to the 12th plus 1,841 to the 12th equaling 1,922 to the 12th. It matches for the first nine digits, achieving a discrepancy of just 0.00000003 percent.

Alien Ciphers and Ramanujan Tributes

P stands for polynomial time problems that are easy to solve, while NP stands for nondeterministic polynomial problems that are hard to solve but easy to check, such as factoring large numbers. The Clay Mathematics Institute offered a $1 million reward for solving whether P equals NP. David S. Cohen placed P=NP behind Homer because he suspects such problems might be easier than currently thought.

Jeff Westbrook invented an autokey cipher based on Girolamo Cardano's historical methods. It assigns numbers to letters, computes running totals of letter values up to that point, and translates numbers above 25 modulo 26 into custom alien characters, making encoded phrases extremely difficult for fans to decode.

You can decode alien symbols by following these exact steps:

  • Assign numbers to letters from A equals 0 to Z equals 25.
  • Replace each letter with the numerical total of all letters in all words up to and including that letter.
  • Reduce numbers greater than 25 by subtracting 26 repeatedly until they fall between 0 and 25.
  • Map the resulting numbers to their corresponding alien symbols.

Cantor's Infinities and Geometric Architecture

Writers Ken Keeler and J. Stewart Burns spent hours experimenting with paper cubes to determine if an exotic cross section was possible. They discovered that making a single precise slice through a cube at an angle yields a regular hexagon because the plane intersects all six faces.

You can construct a regular hexagon by following these exact steps:

  • Draw a line between the midpoints of two adjacent edges of a cube.
  • Draw a dotted line across the opposite corner of the opposite face.
  • Take a slice from the dashed line through to the dotted line to reveal a regular hexagonal cross section.

The number 1,729 appears as the registry number of the starship Nimbus, Bender's serial number, and a parallel universe label. Georg Cantor proved that the infinity of decimals is uncountably infinite and strictly larger than the countably infinite set of counting numbers.

You can verify Cantor's diagonal argument by following these exact steps:

  • Make a side-by-side list matching counting numbers with decimal numbers between 0 and 1.
  • Construct a new decimal number by taking the nth digit of the nth decimal number and adding 1 to each digit.
  • Verify that this newly constructed number cannot exist anywhere on the supposedly complete list.

6. Topology and the Futurama Theorem

Advanced topology creates one-sided surfaces and flat worlds, while a formal mathematical proof resolves complex mind-switching conundrums.

Möbius Strips and Klein Bottles

A Möbius strip is a continuous loop with a half twist that possesses only a single surface and a single edge. You can construct one yourself using simple household items.

  • Take a strip of paper and sticky tape
  • Twist one end of the strip through half a turn
  • Tape the two ends together to create the loop

Drawing a line along it reveals that it takes two complete circuits to cover every section and return to the start. In the Futurama episode "2-D Blacktop", Professor Farnsworth and Leela race on a Möbius drag strip where drivers must complete two full laps to return to their starting position.

A Klein bottle is a closed, one-sided surface that can only be fully constructed without self-intersection in a four-dimensional space. When built in three dimensions, a pseudo-Klein bottle must intersect itself by passing a cylinder through its own wall. In the Futurama episode "The Route of All Evil", a convenience store sells a brew called Klein's housed in a strange flask shaped like a Klein bottle.

Felix Klein was born on April 25, 1849, where each element is the square of a prime number.

The Futurama Theorem and Mind-Swapping

Any conceivable mind-switching muddle among any number of individuals can always be completely undone by introducing exactly two fresh people. When the mind-switcher machine prevents a pair of bodies from swapping minds a second time, Ken Keeler proved mathematically that adding two unswapped auxiliary characters provides the necessary routing paths to restore everyone to their original bodies.

In the Futurama episode "The Prisoner of Benda", the Harlem Globetrotters Sweet Clyde Dixon and Ethan "Bubblegum" Tate use this mathematical proof to untangle the crew's swapped minds. Two fresh people represent the maximum number of extra characters required to untangle any mind-swapping muddle.

10 Key Ideas

  1. Mainstream television writers with advanced degrees in mathematics and physics successfully integrate rigorous theorems, paradoxes, and equations into animated sitcoms.
  2. Writers incorporated advanced academic training and classic number theory into early episodes, using clever gags to introduce prime numbers, proofs, and calculus jokes.
  3. Network connections and mathematical humor unite in the writers' room.
  4. Lisa Simpson applies sabermetrics to manage a Little League team successfully.
  5. The historical struggles of women in mathematics are exemplified by Sophie Germain, who adopted a male pseudonym to study at the École Polytechnique.
  6. Background gags and mathematical constants introduce cosmology, geometric errors, statistical paradoxes, and compound interest to attentive viewers.
  7. Spin-off shows and futuristic settings feature higher dimensions, cryptographic alien ciphers, taxicab numbers, and Cantor's diagonal infinities.
  8. David S. Cohen created the near-miss equation 1,782 to the 12th plus 1,841 to the 12th equaling 1,922 to the 12th.
  9. Advanced topology creates one-sided surfaces and flat worlds, while a formal mathematical proof resolves complex mind-switching conundrums.
  10. Any conceivable mind-switching muddle among any number of individuals can always be completely undone by introducing exactly two fresh people.

A summary is an independent retelling, not the text of the book.

Cover of the summary of “The Last Whalers” 20 min read

The Last Whalers

Doug Bock Clark
Cover of the summary of “Confess” 21 min read

Confess

Rob Halford
Cover of the summary of “Toast” 17 min read

Toast

Nigel Slater
Cover of the summary of “Ace Voices” 24 min read

Ace Voices

Eris Young
Cover of the summary of “For Small Creatures Such as We” 17 min read
Cover of the summary of “Two Trees Make a Forest” 16 min read
Cover of the selected audiobook Choose a chapter The player is ready
0:00 0:00

Volume