1. Home
  2. Numberphile

Apr 20, 2025

The math behind the heart shape in your coffee mug

21 min → 1:50

Overview

The host explains the physics and mathematics behind the heart-shaped light patterns formed inside a coffee mug, and how a light's distance changes the shape from a cardioid to a nephroid.

3 things to know

Numberphile: Curved surfaces focus light rays into bright patterns

Numberphile explains that caustics are bright patterns created when a curved surface reflects or bends light rays, causing them to gather in specific areas.

▶ Watch at 0:51

Many reflected light rays touch to form one curve

Numberphile explains that the bright pattern is an envelope curve, meaning it is a single curve that just touches each of the individual reflected light rays.

More

A curve that is tangent to each member of a family of other curves.

▶ Watch at 4:38

Parallel light rays inside a circle make kidney shapes

Numberphile shows that when parallel light rays reflect off the inside of a circle, the resulting bright pattern forms a kidney-shaped curve called a nephroid.

More

A specific kidney-shaped mathematical curve.

▶ Watch at 0:33

Also in this episode

Light on a circle's edge makes a heart shape

Numberphile notes that placing a light source right on the edge of a reflecting circle creates a heart-shaped mathematical curve known as a cardioid.

One angle can set every point on a curve

Numberphile describes how parametric equations define a curve by using a single value, such as an angle, to find the horizontal and vertical positions of each point.

Quotes

“This curve does not exist other than it's where a lot of the straight lines overlap... it's sort of an artifact of the fact that all the straight lines are doing what they're doing.”

▶ Watch at 4:38

“Uh, I'm going to say maybe a heart shape for for sort of like repeatability, but definitely there's a bum crack there.”

▶ Watch at 0:33

“These shapes you're seeing are called caustics. I'd like to talk about the maths of these shapes.”

▶ Watch at 0:51

Full summary

Episode Overview

  • The episode explores the heart-shaped light pattern, known as a "caustic," that appears inside a coffee mug when light shines into it.
  • Using computer simulations, the host demonstrates how these patterns are formed by the reflection of light rays off the curved interior of the mug.
  • The discussion reveals that the specific shape of the caustic depends on the light source's distance: a distant source (like the sun) creates a "nephroid," while a closer source creates a "cardioid."
  • The host breaks down the underlying physics and mathematics, showing how the collection of reflected light rays forms an "envelope" that creates the illusion of a solid, curved line.

Key Concepts

  • Caustics: The bright patterns formed by light rays that are reflected or refracted by a curved surface, causing them to concentrate in certain areas.
  • Nephroid: A specific kidney-shaped mathematical curve. In this context, it is the caustic formed by parallel light rays reflecting off the inside of a circle.
  • Cardioid: A heart-shaped mathematical curve formed when the light source is located on the edge of the reflecting circle.
  • Envelope Curve: A curve that is tangent to each member of a family of other curves. The caustic is the envelope of the family of reflected light rays.
  • Parametric Equations: A method of defining a curve using a single parameter (like an angle) to determine the x and y coordinates of points along the curve.

Quotes

  • At 00:33 - "Uh, I'm going to say maybe a heart shape for for sort of like repeatability, but definitely there's a bum crack there." - The initial, informal observation of the caustic pattern inside the mug, highlighting its distinct and recognizable shape.
  • At 00:51 - "These shapes you're seeing are called caustics. I'd like to talk about the maths of these shapes." - Introducing the scientific term for the light pattern and setting up the mathematical exploration of the phenomenon.
  • At 04:38 - "This curve does not exist other than it's where a lot of the straight lines overlap... it's sort of an artifact of the fact that all the straight lines are doing what they're doing." - Explaining the concept of an envelope curve, where the visible shape is an emergent property created by the collection of many individual lines.

Takeaways

  • Look for math in everyday life; the simple light pattern in a coffee mug is a complex and well-defined mathematical curve.
  • The bright caustic shapes we see are not physical lines but rather an optical illusion created by the high density of overlapping reflected light rays.
  • The geometry of light reflection can be modeled precisely with mathematics, proving that a phenomenon in physics can be described by an elegant geometric curve.
  • The specific type of curve formed by caustics (e.g., nephroid vs. cardioid) is determined by the position of the light source relative to the reflective surface.

Watch the full episode 21 min

Read along with the audio summary

A simple heart shaped pattern of light inside a coffee mug is actually a complex, well defined mathematical curve. In this episode that came out on April 20, 2025, the host explores the physics and mathematics behind the everyday phenomenon of light shining into a cup. By the end, you will understand how straight rays of light reflection create the optical illusion of a solid, curved line.

Discover the hidden science of caustics inside your morning cup.

When light shines into a coffee mug, it creates a distinct, recognizable pattern that an initial informal observation describes as a heart shape, or even a bum crack. In science, these bright patterns are called caustics. Using computer simulations, the host demonstrates how caustics form when light rays are reflected or refracted by a curved surface, such as the interior of a mug, causing the rays to concentrate in specific areas.

This concentration of light can take on specific geometric forms, which brings us to how distant light creates a kidney shaped curve known as a nephroid.

The exact shape of the caustic depends on the distance of the light source relative to the reflective surface. When a light source is distant, like the sun, the light rays enter as parallel lines. As these parallel rays reflect off the inside of a circle, they form a nephroid, which is a specific kidney shaped mathematical curve.

Move the light source closer, and the geometry transforms into a heart shaped cardioid.

While a distant source makes a nephroid, bringing the light source right to the edge of the reflecting circle changes the reflection pattern entirely. When the light sits on the edge of that circle, the concentrated rays form a heart shaped mathematical curve called a cardioid.

Whether you see a nephroid or a cardioid, the glowing line itself is an optical illusion explained by the concept of an envelope curve.

As the host points out, this curve does not actually exist on its own. Instead, it is an artifact of where a lot of straight lines overlap. In mathematics, this is called an envelope curve, which is a curve that is tangent to, or just touches, each member of a family of other curves. Inside the mug, the collection of individual reflected light rays acts as that family of straight lines, and their high density of overlap creates an envelope that gives the illusion of a solid, curved line.

You can model this physical phenomenon with complete precision using parametric equations.

Because the geometry of light reflection follows strict rules, this phenomenon in physics can be described by an elegant geometric curve. Mathematicians define these curves using parametric equations. This method uses a single parameter, like an angle, to determine the exact x and y coordinates of points all along the curve.

Look for math in everyday life, because the geometry of light reflection inside a simple coffee mug can be modeled precisely with mathematics, depending on where the light source sits. The bright caustic shapes we see are not physical lines, they are an optical illusion created by the high density of overlapping reflected light rays. This curve does not exist other than it's where a lot of the straight lines overlap, it's sort of an artifact of the fact that all the straight lines are doing what they're doing.

More from Numberphile

Related Episodes