No. 034 · Curves in 10 seconds

One equation draws a butterfly

Temple Fay's butterfly curve, traced for t from 0 to 12π. Without the cos 4t term there are no wings.

ρ = e^(cos t) − 2·cos 4t − sin⁵(t/12)

One equation, traced as t runs from 0 to 12π, draws a butterfly:

x = sin t · ρ, y = cos t · ρ, with ρ = e^(cos t) − 2·cos 4t − sin⁵(t/12)

It's the butterfly curve, found by Temple H. Fay in 1989.

What each part does

  • e^(cos t) alone draws a round, egg-like loop: the body of the picture.
  • −2·cos 4t pulls the loop out four times per turn. Those bulges are the wings.
  • sin⁵(t/12) changes very slowly, over all 12π, so each of the six turns lands a little differently. That's why the wings have several edges, like the veins of a real wing.

Without the wings

After drawing the curve, the video slides the 2 in front of cos 4t down to 0 and back. At 0 the wings are gone and only nested loops are left. Bring the term back and the butterfly returns.

Part of Curves in 10 seconds (3 videos): Famous curves from a single equation.

Use this picture

SVGJPG

Free to reuse, also commercially, under CC BY 4.0. Credit “What Math Means” with a link to whatmathmeans.dev/v/one-equation-draws-a-butterfly.