const { useState: useStateE } = React;

const FOOTNOTES = {
  1: { cite: 'Romanoff, A. L., & Romanoff, A. J.', work: 'The Avian Egg', pub: 'Wiley, 1949.' },
  2: { cite: 'Thompson, D. W.', work: 'On Growth and Form', pub: 'Cambridge University Press, 1917.' },
  3: { cite: 'Lamé, G.', work: 'Examen des différentes méthodes employées pour résoudre les problèmes de géométrie', pub: 'Paris, 1818.' },
  4: { cite: 'Gardner, M.', work: '"Piet Hein\'s Superellipse"', pub: 'Mathematical Carnival, 1977.' },
  5: { cite: 'Gielis, J., Haesen, S., & Verstraelen, L.', work: '"From the Supereggs of Piet Hein to the Cosmic Egg"', pub: 'Kragujevac Journal of Mathematics, 2005.' },
  6: { cite: 'Hügelschäffer, F.', work: 'Zur Theorie der eiförmigen Kurven', pub: 'Ingenieur-Archiv, 1948.' },
  7: { cite: 'Petrović, M., Obradović, M., & Mijailović, R.', work: '"Suitability Analysis of Hügelschäffer\'s Egg Curve"', pub: '2011.' },
  8: { cite: 'Petrović et al.', work: '2011; Regueiro-Picallo et al.', pub: 'Water, 2016.' },
  9: { cite: 'Preston, F. W.', work: '"The Shapes of Birds\' Eggs"', pub: 'The Auk, 70, 1953.' },
  10: { cite: 'Mallock, A.', work: '"The Shapes of Birds\' Eggs"', pub: 'Nature, 1925.' },
  11: { cite: 'Biggins, J. D. et al.', work: 'Ornithology', pub: '2022.' },
  12: { cite: 'Stoddard, M. C. et al.', work: '"Avian Egg Shape"', pub: 'Science, 2017.' },
  13: { cite: 'Biggins, J. D. et al.', work: 'Ecology and Evolution', pub: '2018.' },
  14: { cite: 'Lian, M. et al.', work: '"Comparison of Egg-Shape Equations"', pub: 'Poultry Science, 2024.' },
  15: { cite: 'Narushin, V. G., Romanov, M. N., & Griffin, D. K.', work: '"Egg and Math"', pub: 'Annals of the NY Academy of Sciences, 2021.' },
  16: { cite: 'University of Kent', work: 'Press Release', pub: '2021.' },
  17: { cite: 'Nishiyama, Y.', work: '"The Mathematics of Egg Shape"', pub: 'Int. Journal of Pure and Applied Mathematics, 2012.' },
};

function Fn({ n }) {
  const note = FOOTNOTES[n];
  return (
    <span className="fn" tabIndex="0">
      <sup>[{n}]</sup>
      <span className="fn-pop">
        <span className="fn-num">[{n}]</span>
        <span className="fn-cite">{note.cite}</span>
        <span className="fn-work"> {note.work}.</span>
        <span className="fn-pub"> {note.pub}</span>
      </span>
    </span>
  );
}

function HoverNote({ children, label, img, imgAlt }) {
  return (
    <span className="hover-note" tabIndex="0">
      <span className="hover-note-anchor">{label}</span>
      <span className="hover-note-pop">
        {img && (
          <span className="hover-note-img">
            <img src={img} alt={imgAlt || ''} onError={(e) => { e.target.style.opacity = 0.2; }} />
          </span>
        )}
        <span className="hover-note-body">{children}</span>
      </span>
    </span>
  );
}

function ImageFig({ src, alt, caption, w, frame = true }) {
  return (
    <figure className={`essay-fig ${frame ? '' : 'no-frame'}`} style={w ? { maxWidth: w } : null}>
      <span className="essay-fig-img">
        <img
          src={src}
          alt={alt || ''}
          onError={(e) => {
            const fig = e.target.closest('.essay-fig-img');
            if (fig && !fig.dataset.fallback) {
              fig.dataset.fallback = '1';
              fig.innerHTML = `<span class="essay-fig-missing"><span>image not yet on disk</span><code>${src}</code></span>`;
            }
          }}
        />
      </span>
      {caption && <figcaption>{caption}</figcaption>}
    </figure>
  );
}

function Epigraph({ text, cite, n }) {
  return (
    <blockquote className="epigraph">
      <span className="epigraph-mark">“</span>
      <p>{text}</p>
      <cite>— {cite}{n && <> <Fn n={n} /></>}</cite>
    </blockquote>
  );
}

function Chapter({ num, title, sub }) {
  return (
    <header className="chapter">
      <div className="chapter-num">{num}</div>
      <h2 className="chapter-title">{title}</h2>
      {sub && <div className="chapter-sub">{sub}</div>}
      <div className="chapter-rule">
        <span>✦</span>
      </div>
    </header>
  );
}

const IMG = 'essay-images/';

window.Essay = function Essay() {
  return (
    <article className="essay">
      <header className="masthead">
  <div className="masthead-kicker">
    <a href="https://otherstuff.lol">← otherstuff</a>
  </div>
        <h1 className="masthead-title" aria-label="ab ovo">
          ab ov<window.MorphingO />
        </h1>
        <div className="masthead-sub">
          <em>oomorphology</em> and how to draw eggs
        </div>
        <div className="masthead-figures">
          <OrnamentalPlate />
        </div>
      </header>

      <section className="prose">
        <Epigraph
          text="The numerous variations in the contour of individual eggs obviously cannot be expressed in mathematical terms."
          cite="Romanoff & Romanoff, 1949"
          n={1}
        />
        <p className="drop"><span className="drop-cap">E</span>ggs are tough to crack.</p>
        <p>Not <em>an</em> egg. Bird eggs are, generally speaking, pretty easy to crack. Perhaps you know this because you yourself have dabbled in omelette making, or at least are familiar with the 1990s <em>this is your brain on drugs</em> PSA, in which Rachel Leigh Cook taught us 1) that eggs crack easily, and that 2) despite her name, she is a <em>very</em> <em>bad</em> cook.</p>

        <ImageFig
          src={IMG + 'rachel.png'}
          alt="Rachel Leigh Cook smashing a frying pan into a kitchen counter in the 'this is your brain on drugs' PSA."
          caption={<em>rachel, you have severely misunderstood how to operate a frying pan</em>}
        />

        <p>Yes, eggs plural are easy to crack, but <em>The Egg</em> presents a problem that has challenged Serious People for well over a century.</p>
        <p>A while back, I sat down to code a simple egg simulator. It was supposed to be a quick, goofy distraction to send to my co-founder William and the founders in our current Restless Egg cohort, where you could tweak a few parameters and make a cute little eggmoji to use as an avi. Just a lil cutesy <em>hehe an egg</em> <em>sim</em> gag, a fun distraction for me, and a fun way to distract William from the fact that I was behind on actual work.</p>

        <ImageFig
          src={IMG + 'sim-screenshot.png'}
          alt="Early screenshot of the egg simulator."
        />

        <p>Like many seemingly straightforward endeavors, it quickly went from an afternoon procrastination to a deep rabbit hole that derailed my entire week.</p>
        <p>The problem, I learned, is that The Egg is one of those forms that we think we know well just because we’re so <em>familiar</em> with it, like your own face, or the moon. It should be simple to quantify the shape of an egg, but it’s surprisingly evasive. Every mathematical formula has some caveat, every <em>egg</em>quation (sry) that produces an el<em>egg</em>ant (i’m trying to stop) curve has some special <em>egg</em>ception (i’m not well) where the curve fails to fit the egg of some pick-me freak shorebird.</p>
        <p>In other words, much like my brain, an egg looks smooth and simple. But unlike my brain, its appearance belies its complexity.</p>
        <p>This is the story of that pursuit: the search for a universal equation of the egg, a shape so familiar it disappears, so slippery that mathematicians, engineers, ornithologists, and poultry scientists have spent the better part of 200 years trying to pin it down.</p>
        <p>This is the brief history of <strong>oomorphology:</strong> the scientific study of egg shapes.</p>
        <p>Oomorphology! This is a real word, folks. And a real <em>world</em>, full of history, and full of obsessives who have devoted their lives to one absurdly specific question. These are eggfolk. My folk, apparently.</p>
      </section>

      <section className="prose">
        <Chapter num="§ 0" title="why is an egg so hard to describe?" />
        <p>At first glance, an egg looks like an oval. And an oval seems like the type of thing the brain trust over at Math Inc. should have solved a long time ago. We have circles, we have ellipses. We have dropdown menus with those PLUS the much more edgy and seemingly complex arrow and speech bubble. The quotidian egg demands more?</p>
        <p>The trouble is, a bird’s egg isn’t a symmetrical oval like the ones drawing tools make. One end is rounder and fatter, the other end narrower and pointier. It’s not simply elongated—it is <em>biased</em>. It has a point of view. Rotate an ellipse 180º and passersby are none the wiser. Rotate an egg 180º and everyone can tell. Classic OG shapes like the circle or ellipse are too well behaved, too symmetrical to capture this. In math terms, an egg is an <em>asymmetric</em> <em>curve</em>.</p>
        <p>In biological terms, it’s a product of compromise<em>,</em> produced by the pressures of an oviduct, the needs of the embryo, the behavior of a nest, the muscles that make wings flap, the physics of rolling, the material constraints of calcium carbonate, and whatever evolutionary bargain a given bird has made with the world.</p>
        <p>D’Arcy Wentworth Thompson, the eminent biologist and author of the foundational <em>shape-of-stuff-in-nature </em>tome <em>On Growth and Form </em>(1917), saw the egg as an ideal case for asking what shape is actually made of. He was, diplomatically, skeptical of the easy adaptation stories that naturalists liked to tell after the fact: the guillemot egg does not become pointed simply because a naturalist has noticed that pointed things roll in tighter circles and thus are less likely to roll off of cliffs. He ascribed this explanation to “very hasty logic…by dipshit naturalists who wouldn’t know a syrinx from a cloaca.” Paraphrasing a bit, but more or less the gist.</p>
        <p>For Thompson, the egg was a mechanical consequence: an incompressible fluid enclosed in a deformable membrane, pressed by the muscular tube of the oviduct before the shell hardened. The blunt end, the pointed end, the fact that eggs are prolate rather than flattened—these were not separate curiosities, but outcomes of pressure, tension, curvature, friction, and timing. He even wrote an equilibrium relation between external pressure, membrane tension, internal fluid pressure, and the radii of curvature, then made the baller claim that, suitably generalized, it was “the equation of all eggs in the universe.”<Fn n={2} /></p>
        <p>This is both grander and less convenient than a formula you can drop into a simulator. Thompson’s conception of an egg was not a mathematical generalization of form so much as an argument that form is a diagram of force. He takes us, as he says, as far as one can safely go without actual quantitative measurements of the forces in each particular case. Beautiful, yes. Useful, debatably. But not as easily programmable as a tidy parametric curve that lets you slide Pointiness from 0.12 to 0.87 and summon a guillemot.</p>
        <p>Still, Thompson’s mechanical account did not immediately settle the more practical problem of describing an egg’s visible outline. Even as engineers and mathematicians began proposing particular egg-like curves, some biologists remained skeptical that the actual contour of a bird egg could be captured in any useful general way. In 1949, the husband-and-wife ornithologist duo of Alexis and Anastasia Romanoff wrote in their canonical text, <em>The Avian Egg,</em> that egg contours “obviously cannot be expressed in mathematical terms.” <Fn n={1} /> <HoverNote
          label="✦"
          img={IMG + 'romanoff-quote.png'}
          imgAlt="Scanned quote from Alexis Romanoff: 'Would take time from study of egg. Impossible, my dear. Egg is all.'"
        >Alexis was so devoted to eggs that when his wife suggested they buy a house, he replied that they could not, because it “Would take time from study of egg. Impossible, my dear. Egg is all.”</HoverNote></p>

        <ImageFig
          src={IMG + 'romanoff-portrait.png'}
          alt="Illustrated portrait of Alexis Romanoff by Abe Birnbaum, from a 1953 New Yorker profile."
          caption={<>portrait of Alexis Romanoff from a wonderful 1953 New Yorker profile of the egg expert. Illustration by Abe Birnbaum.</>}
        />

        <p>This is a beautiful sentence, partly because it is wrong. But it is wrong in the way good wrong sentences often are wrong. It names the difficulty, allows a horizon beyond which the beauty of the natural world cannot be reduced. It says, here is where the wildness of nature slips through the net.</p>
        <p>Which is extremely charming as a poetic position, and extremely annoying if you happen to be mathematically inclined and fixated on egg shapes (greetings, howdy, a pleasure).</p>
        <p>So people kept trying.</p>
        <p>Over the decades, a parade of enthusiasts, some driven by the mathematical curiosity, some by biological interest, some by the commercial need to understand shells, volumes, airflow, packaging, incubation, structural strength or other practical <em>applied egg</em> matters. Each privileged and offered differing philosophies of form: some valued elegant simplicity, others demanded accuracy and universality. Some wanted a model with inputs you could measure with calipers, rather than more complex means or abstractions.</p>
        <p>The history of the egg equation is therefore also a history of what it means to describe anything<em> </em>real. How simple can a model be before it’s too broad to be representational? How complex can it be before it becomes too specific to be utile?</p>
      </section>

      <section className="prose">
        <Chapter num="§ 1" title="lamé's elegant oval: the superellipse" sub="Paris, 1818 — the ancestor of all egg equations" />
        <p>Our first stop is <strong>Paris, 1818,</strong> where we meet <strong>Gabriel Lamé</strong>, a French mathematician and engineer. Lamé was not, as far as I can tell, scheming on bird eggs. He was doing math. Nevertheless, he laid the groundwork for all future egg describers by generalizing the equation of an ellipse.</p>
        <p>The standard ellipse is familiar enough. It is the circle asked to stuff itself into a suitcase. Lamé extended this into with a whole family of oval curves defined by an equation of the form:</p>
        <div className="equation">
          |x/a|<sup>n</sup> &nbsp; + &nbsp; |y/b|<sup>n</sup> &nbsp; = &nbsp; 1
        </div>
        <p>where <em>a</em> and <em>b</em> set the half length and half width, and <em>n</em> is an exponent that tunes the shape<Fn n={3} />. If <em>n = 2</em>, you get a standard ellipse; if a and b are equal, it becomes a circle. Change <em>n</em> and the shape transforms. Higher <em>n </em>values make it more rectangular and architectural, and lower <em>n</em> values make it more pointed or diamond like. The result is what became known as a <strong>superellipse</strong>, or a <strong>Lamé curve.</strong></p>
        <p>This is an elegant idea: you get a nice sense of the character of ovals when you can adjust the transform via a knob. You’re basically controlling how rectangular the suitcase is.</p>

        <window.FigureLame />

        <p>Lamé’s discovery lived a mostly quiet life in math books until over a century later, when the Danish poet, inventor, and designer <strong>Piet Hein</strong> popularized the superellipse as an aesthetic form. Hein first used it in a design competition for a roundabout around a rectangular plaza, and it soon became an inexhaustible motif in his work, applying it in everything from an astronomical calendar, to book cover designs, to furniture<Fn n={4} />. He even created an object called the “superegg” by rotating a superellipse around its long axis into three dimensions, which he manufactured and sold a miniature brass version of as a novelty toy for 1960s executives to place on their teak Danish desks, possibly between a decorative chrome table lighter and an 11:00AM tumbler of scotch.<Fn n={5} /></p>
        <p>The superegg’s schtick was that it could stand upright on a flat surface, which is the type of neat parlor trick that seems inconsequential until you remember that the rise of entire civilizations has been predicated on objects that can stand upright on flat surfaces.</p>
        <p>The appeal of the superellipse to Hein makes sense when placed into the Danish modern design milieu he was working in. It’s neither hard and rectilinear, nor soft and bloblike, but something intentional and in between: modern, minimalist, human, pleasingly referential but not pastiche.</p>
        <p>But as egg equations go, aye, therein lies the superllipse’s critical inadequacy: it is much too fair. Too balanced, too symmetrical. It appeals to a designer like Hein because it is eggy <em>enough</em>, but without the egg’s essential bias. A real egg does not<em> </em>stand upright <HoverNote
          label="✦"
        >ed note: this is a lie, it’s pretty trivial to balance chicken eggs on their fat end (<a href="https://en.wikipedia.org/wiki/Egg_balancing" target="_blank" rel="noreferrer">egg balancing</a>), but just rock with me for the sake of the piece.</HoverNote>. It has a blunt end and a pointy end, for which it will never apologize.</p>
        <p>Lamé gave us a very expressive oval. But he did not give us an egg.</p>

        <ImageFig
          src={IMG + 'boiled-egg-beijing.png'}
          alt="The National Centre for the Performing Arts in Beijing, a superellipse-shaped building."
          caption={<>China’s <em>National Centre for the Performing Arts</em> in Beijing, aka “The Boiled Egg” is a superellipse sliced on its long axis. Note the perfect symmetry illustrated by its reflection.</>}
        />
      </section>

      <section className="prose">
        <Chapter num="§ 2" title="the engineer who bent the ellipse: hügelschäffer's egg" sub="Germany, 1944 — the first asymmetric oval" />
        <p>Fast forward to the 1940s, and the scene shifts to wartime Germany and <strong>Fritz Hügelschäffer</strong>, a German engineer whose name lives somewhat improbably in the annals of egg geometry.</p>
        <p>I don’t have much biographical information on Fritz, which is probably fortunate for him, given the time, place, and aviation related context of his work. But we know from patent applications that his egg work was motivated by a practical application: <strong>aerodynamics</strong>. In 1944, in the midst of designing streamlined forms (sure, perhaps for Luftwaffe airplanes or bombs, but maybe just for fun!), Hügelschäffer introduced what he called an <em>“oviform”</em> curve—essentially <strong>an ellipse that’s been nudged off-center to make one end fatter than the other</strong><Fn n={6} />. This was maybe the first mathematical formula explicitly for an egg shape.</p>
        <p>Hügelschäffer’s construction is v pleasingly simple in concept. Imagine two circles on a flat plane: one circle is centered at the origin, and the second circle is shifted a bit to the side (along the horizontal axis). If the two circles were on top of each other (concentric), we’d just get a regular ellipse by the classical paper-and-string method. But Hügelschäffer moved one circle slightly off the other. By following a particular geometric logic, he traced a curve that starts at one circle and ends on the other<Fn n={7} />. The result is an <strong>asymmetric oval</strong>, wider on one side, just like an egg when you view it from the side<Fn n={6} />.</p>
        <div className="equation">
          2·w·x·y² &nbsp;+&nbsp; b²x² &nbsp;+&nbsp; (a² + w²)·y² &nbsp;−&nbsp; a²b² &nbsp;=&nbsp; 0
        </div>
        <p>If you set <em>w = 0</em> (no offset), the equation reduces to a plain ellipse<Fn n={6} />. But with <em>w &gt; 0</em>, the symmetry breaks, and the widest part of the curve shifts away from the middle.</p>

        <window.FigureHugel />

        <p>There is something vaguely comic about the modesty of the move. The whole big egg problem, or at least one version of it, begins with a lil nudge. There is nothing flashy or complex here, just: what if the center were like…not quite in the center?</p>
        <p>For me, this was the point in my egg simulator rabbit hole where the egg shape problem became interesting as an idea. The aha moment was less about ellipses themselves, and more realizing how many different agendas were hiding inside the shape. To the mathematician, it’s a question of symmetry; to the aerospace engineer, it’s a problem of drag; to the birder, it’s a signature of life. The value of going down rabbit holes like this is that it forces you to inhabit all of those perspectives at once, which is a skill worth honing even if there’s no obvious end goal.</p>
        <p>The Hügelschäffer egg curve turned out to have some useful properties. It keeps a nice continuous curvature, which makes it attractive in applications involving airflow and other fluid movement. It’s found use in airplane fuselages and automotive design, but also civil engineering where egg shaped sewer pipes manage flow behavior better than circular ones.</p>

        <div className="essay-fig-row">
          <ImageFig
            src={IMG + 'hugel-application-1.png'}
            alt="London City Hall, an egg-shaped glass building on the south bank of the Thames."
            frame={false}
            caption={<>london’s city hall, an egg in glass</>}
          />
          <ImageFig
            src={IMG + 'hugel-application-2.png'}
            alt="A large egg-shaped concrete sewer pipe being lowered into a trench."
            frame={false}
            caption={<>an egg-shaped sewer pipe — better flow at low volumes than a circle</>}
          />
          <ImageFig
            src={IMG + 'hugel-construction.gif'}
            alt="Animated geometric construction of a Hügelschäffer egg curve from two offset circles."
            frame={false}
            caption={<>hügelschäffer’s construction in motion: two circles, one nudged off-center, trace the oviform</>}
          />
        </div>

        <p>Hügelschäffer’s work proved that a pretty good egg shape <em>could</em> be captured by a fairly tidy equation. This was a big leap from the days of “it cannot be expressed in math.”</p>
        <p>However, the Hügelschäffer egg, while more flexible than a superellipse, is still fairly limited in the scope of natural eggs it can fit. Essentially, it introduced <em>one</em> asymmetry parameter (the offset <em>w</em>). Nature’s eggs are far more morphologically diverse<strong>.</strong> Some are almost spherical, some quite elongated, some gently ovoid, and some extremely pointy (the very cool <strong>pyriform</strong> or pear-shaped eggs of shorebirds like the guillemot, which almost look like a different genre of object entirely).</p>

        <ImageFig
          src={IMG + 'guillemot.jpg'}
          alt="A clutch of pyriform (pear-shaped) guillemot eggs."
          caption={<>the pyriform eggs of the guillemot. naturalists argue their shape is owed to evolutionary pressures, while thompson argued it was owed to pressures of big strong wing flapping muscles</>}
        />

        <p>With just three parameters (<em>a</em>, <em>b</em>, and <em>w</em>), Hügelschäffer’s model could handle many oval shapes, but the most extreme conical eggs aren’t well fit, and thus the hunt for the universal egg formula continued.</p>
      </section>

      <section className="prose">
        <Chapter num="§ 3" title="the ornithologist's approach: preston's four-parameter egg" sub="Pennsylvania, 1953 — the first truly flexible model" />
        <p>Across the ocean around the same time, and in the decade after WWII, eggs attracted the attention of a British-born scientist named <strong>Frank W. Preston</strong>. We’ve got quite a bit more biographical info on Preston, and he was a fascinating character.</p>
        <p>His main work was in glass technology: he founded Preston Laboratories and became a leading expert on glass breakage, melting, and industrial glass processes.</p>
        <p>In his spare time, he led a second life as an amateur ornithologist and ecologist, and here in the avian field was also quite prolific. Egg shapes weren’t even his primary interest, but he published a pioneering study <em>“The Shapes of Birds’ Eggs”</em> in 1953<Fn n={9} />. In contrast to Hügelschäffer’s engineering angle, Preston was driven by biological curiosity: <em>why</em> are eggs shaped the way they are, and how might that shape relate to the birds that laid them?</p>
        <p>Preston approached the problem like a true scientist. First, he acknowledged the biological stakes while throwing a bit of shade at pure maths dorks: “This investigation was not undertaken primarily as a mathematical amusement,” he wrote, hoping it would shed light on the biology and ecology of bird eggs<Fn n={9} />. He speculated that the egg’s shape might reflect the forces in the <em>oviduct</em> as the eggshell forms, in line with earlier ideas by Mallock (1925) and D’Arcy Thompson<Fn n={10} />. But before one can connect shape to biology, one needs a way to <em>quantify</em> shape. And so, Preston set about formulating a more generalizable egg curve.</p>
        <p>His approach was essentially to <strong>start with an ellipse and then allow it to deform</strong> in a flexible way. In his 1953 paper, he described the egg profile in terms of what he called “circles of derivation”—an iterative geometric construction—that we can simplify like this: he came up with a <strong>parametric equation</strong> for the egg’s outline, with <strong>four parameters</strong> to tweak:</p>
        <div className="equation">
          y &nbsp;=&nbsp; b · sin&thinsp;θ · ( 1 &nbsp;+&nbsp; c₁·cos&thinsp;θ &nbsp;+&nbsp; c₂·cos²&thinsp;θ &nbsp;+&nbsp; c₃·cos³&thinsp;θ )
        </div>
        <p>Here, θ is an angle parameter running from 0 to π (top to bottom of the egg). If you ignore the <em>c₁, c₂, c₃</em> terms, <em>x = b·cosθ</em> and <em>y = a·sinθ</em> would just trace an ellipse. But Preston added those extra sinusoidal terms, each with a coefficient that can be tuned<Fn n={9} />. These extra terms allow the curve to bulge out more on one side and taper more on the other, essentially capturing <strong>asymmetry</strong> and different degrees of “pointiness.”</p>

        <window.FigurePreston />

        <p>The beauty of Preston’s formula was that it could fit <strong>almost any bird egg</strong> with remarkable accuracy. Fat round owl eggs? <em>Hoo</em> are you kidding, quick work. Sleek symmetrical emu eggs? Not <em>emu</em>ne to description. Off-center ovoid like a song thrush’s? Not even that could <em>thrush</em>trate Preston. Super-pointy guillemot egg? Well well well, uhh…hmm…running out of bird puns, this is getting <em>auk</em>ward [the crowd goes absolutely nuclear as I pull this one off].</p>
        <p>Indeed, Preston demonstrated that with four judiciously chosen parameters, <strong>the entire spectrum of avian eggs</strong> could be described<Fn n={9} />. This was essentially a <em>universal mathematical model</em> for eggs, at least in an empirical sense.</p>
        <p>There was, however, a catch: the parameters in Preston’s model, while powerful, weren’t very <strong>user-friendly</strong>. They didn’t correspond to simple intuitive traits like “pointiness” or “skinniness” directly; instead they were coefficients in an equation that one usually had to obtain by fitting the formula to a traced outline of an egg.</p>
        <p>Preston himself later defined some derived indices—<strong>elongation, asymmetry,</strong> and what he called <strong>“bicone”</strong> (referring to how tapered the ends are)—to help interpret egg shapes<Fn n={9} />.</p>
        <p>But those indices required measuring curvature at the egg’s tip with a special device and never caught on widely. Which is surprising to me, since I’m always looking for an excuse to bust out my “Optical Spherometer for Measuring Curvatures of the Ends of Relatively Small or Frail Birds’ Eggs.”<Fn n={11} /></p>

        <ImageFig
          src={IMG + 'spherometer.png'}
          alt="Diagram of an optical spherometer for measuring curvatures of birds' eggs."
        />

        <p>Nevertheless, Preston’s work was hugely influential. He showed definitively that <strong>egg shape <em>is</em> describable in mathematical terms</strong>, you just need the right parameters. For decades, his four-parameter equation was the gold standard for quantitative egg shape analysis<Fn n={12} />. Later researchers, armed with computers, applied his formula to thousands of egg specimens<Fn n={13} />, confirming that it was <em>uncannily accurate</em>. In fact, only very recently did anyone improve significantly on the precision of Preston’s model, and it’s still considered one of the best representations of an egg’s silhouette<Fn n={14} />.</p>
        <p>By the 2010s, then, the state of eggfairs was: <strong>we had a great mathematical description (Preston’s) that works, but is a bit unwieldy</strong>, and several ad hoc measures that are user-friendly but fail on some eggs. The holy grail remained a formula both <em>universal and simple</em>. And that’s what our final protagonist claimed to find in 2021.</p>
      </section>

      <section className="prose">
        <Chapter num="§ 4" title="one formula to rule them all: narushin's universal egg" sub="Kent & Ukraine, 2021 — closing the book (?)" />
        <p>In August 2021, news broke that a team of researchers from the University of Kent and colleagues in Ukraine had done it: a <strong>“universal equation for the shape of an egg.”</strong> <Fn n={15} /></p>
        <p>I would like to take a moment to talk about the lead author, <strong>Dr. Valeriy Narushin.</strong> From what I can gather, Narushin is the <em>Lebron</em> of the egg shape equation world. The man has published a heroic amount of work on egg shapes, egg volumes, egg densities, egg parameters, poultry science, and in 2016 he came back from a 3-1 deficit to lead the Cleveland Cavaliers to an NBA championship. I can only assume that when he steps into the poultry science conference, he is swarmed by hordes of rabid bird scientists holding up their eggs for autographs.</p>
        <p>There are also a handful of videos on Youtube with him from the past few years, and he seems a charming man, both surprised and chuffed that anyone outside of the poultry science world cares about his oomorphology work.</p>
        <p>Anyway, the 2021 paper received unusually broad attention because it made a plain, irresistible claim: after centuries of partial solutions, they had devised a formula that could describe <em>all</em> natural bird egg shapes.</p>
        <p>Narushin’s team built upon the foundation of earlier work (they do cite the likes of Hügelschäffer and Preston in their paper). The key innovation was to incorporate the <strong>pyriform (pear-shaped) eggs</strong> into a single analytical formula<Fn n={15} />.</p>
        <p>Remember: the sphere, ellipsoid, and ovoid shapes already had formulas; it was those most difficult, markedly asymmetrical, <strong>c</strong>onical shorebird eggs of guillemots and murres that lacked a simple equation<Fn n={12} />.</p>
        <p>Narushin solved this by taking an existing ovoid formula and introducing an extra term, essentially a <em>function that adds a tapered tail</em> to the oval<Fn n={15} />. This produced a new curve that they described as “the last stage in the evolution of the sphere-ellipsoid,” completing the continuum of egg shapes.</p>

        <window.FigureNarushin />

        <p>Crucially, Narushin’s formula uses <strong>four parameters that are all easily measurable</strong> from an actual egg<Fn n={15} />. In their formulation, those parameters are: the egg’s <strong>length</strong> (<em>L</em>, from pole to pole), its <strong>maximum breadth</strong> (<em>B</em>, the diameter at the widest part), the <strong>offset</strong> of the widest part from the midpoint (<em>w</em>), and the <strong>diameter at one-quarter of the egg’s length</strong> (<em>D<sup>¹ᐟ⁴</sup></em>, essentially how wide the egg is halfway between the tip and the middle).</p>
        <p>If you’ve ever held an egg, you can intuit these: <em>L</em> and <em>B</em> are obvious; the shift tells you if the fat end is towards one side, and the quarter-diameter captures how quickly the egg tapers toward the pointy end. Despite obsolescing my Optical Spherometer for Measuring Curvatures of the Ends of Relatively Small or Frail Birds’ Eggs, I must admit there are practical advantages of the Narushin formula.</p>
        <p>The actual equation is a bit long. The team even noted it <em>looks</em> intimidating—it took a full paragraph in their paper. But the point is, it’s one unified formula that you plug those four numbers into, and out comes a smooth curve. With different parameter sets, it can mimic a spherical egg, a normal chicken egg, or a pyriform egg, all by tuning <em>L</em>, <em>B</em>, <em>w</em>, <em>D<sup>¹ᐟ⁴</sup></em>. In tests, it fit real egg profiles extremely well<Fn n={14} />.</p>
        <p>The authors were justifiably excited. They called it the <strong>first truly universal egg shape formula</strong>, filling the gap left after all those years of pretty-good-but-not-universal-solutions. It’s elegant in concept because <strong>each parameter ties to a real physical dimension</strong> of the egg, so a farmer or biologist could, in theory, measure an egg with calipers and then use this formula to compute volume, surface area, or curvature.<Fn n={16} /></p>
        <p>But the formula has a stranger appeal that exceeds utility too. There is a certain <strong>philosophical satisfaction</strong> here. One of Narushin’s co-authors remarked on the <em>“philosophical harmony between mathematics and biology”</em> embodied in an egg<Fn n={15} />.</p>
        <p>It is hard not to feel that tug. The egg is one of the oldest human symbols: world egg, cosmic egg, the primordial Ur-thing from which difference emerges. Creation myths understood long before mathematics did that the egg is not merely a shape, but a proposition.</p>
        <p>The proposition is this: form precedes emergence; a whole world can begin as a curve.</p>
        <p>What makes the universal equation beautiful is not that it reveals to us the one perfect egg floating beyond space and time. It is almost the opposite. It suggests that eggedness is not a single fixed ideal, but a family resemblance, a grammar capacious enough to hold the sphere, the ellipse, the ovoid, and the pear. The perfect egg, if such a thing exists, is not the egg that excludes all the others. It is the form that can contain their differences.</p>
        <p>That feels right, and extremely comforting to me. Also, importantly, it solves my egg simulator thing.</p>
      </section>

      <section className="prose">
        <Chapter num="§ 5" title="more than just math: cracking the meaning of the egg" sub="coda" />
        <p>As my elliptical jaunt came to its end and back to its origin, my little egg simulator no longer felt like a <em>hehe</em> little joke. Or rather, it still felt like a joke (and one that sincerely distracted me from so much actual work that I’m realizing right now I still haven’t done, fuck, jesus christ, ahhhhhHHHHHH), but one that has opened me to new and valuable questions.</p>
        <p>The egg had become a way for me to think about form itself: the struggle between simplicity and specificity, between a clean model and the weirdness of the actual thing. Nature so rarely gives us the Platonic object. Instead, it gives us the thing that’s a little screwy, a little random, a little too messy to simulate.</p>
        <p>Like so much else organic and natural, the egg is a story of adaptations and trade offs: an egg must be big enough to nourish a chick, but not so big that the mama bird can’t lay it; it needs to be strong enough to survive incubation under a hen, yet fragile enough to be broken from the inside by a teeny beak; it needs to roll in a circle, not off a cliff.<Fn n={17} /> It is not designed for a single purpose, but negotiated among many.</p>
        <p>No wonder its geometry is special.</p>
        <p>The history of egg equations follows a similar logic. Mathematicians begin with an ideal, then approach the complexity by <strong>layering simple ideas</strong>: a circle (too simple) grows into an ellipse; an ellipse skewed by a circle gives an ovoid; an ovoid tweaked by one more function yields a pyriform. Each leap—Lamé, Hügelschäffer, Preston, Narushin—added a parameter or a term, making the formula <em>less simple</em> but <em>more encompassing</em>.</p>
        <p>This has also had the surprising effect of complicating my operating bias toward minimalism. Sometimes the most elegant truth of a thing is not revealed by stripping it to its most spartan form, but by giving it just enough freedom to become itself.</p>
        <p>The “perfect” mathematical egg turned out to require the <strong>messy collaboration of many minds</strong> over time, each building on the last, from pure math to engineering to biology and back.</p>
        <p>Now, it’s your turn to enjoy the eggs of their labor. Below, you’ll get to <strong>design your own egg</strong>. Slide the parameters and see how each tweak channels one of these historical approaches, from a superellipse’s symmetry to a Hügelschäffer’s lopsidedness or a Narushin pear-shape. As you do, remember: you’re not just drawing an oval, you’re participating in a story that started with the cosmic egg, and egg by egg, continues to this day.</p>
        <p className="envoi">Happy egg shaping. May you find your own perfect egg, or at least enjoy the obsessive, absurd journey of looking for it.</p>
      </section>

      <section className="prose">
        <div className="envoi-rule">
          <span>✦</span>
          <span>finis</span>
          <span>✦</span>
        </div>
      </section>

      <section className="designer-wrap">
        <Chapter num="the instrument" title="the egg designer" sub="four formulas · four centuries of argument · one oval of your own" />
        <window.Designer />

        <ImageFig
          src={IMG + 'gallery.png'}
          alt="A grid of eggs designed with the simulator."
          caption={<em>jk, please download to your heart’s content, share your beautiful eggs far and wide</em>}
        />
      </section>
<section className="prose">
  <p className="colophon">
    <a href="https://otherstuff.lol">← back to otherstuff</a>
  </p>
</section>
      <section className="prose refs">
        <Chapter num="§§" title="references" />
        <ol>
          {Object.entries(FOOTNOTES).map(([n, note]) => (
            <li key={n} id={`ref-${n}`}>
              <span className="ref-cite">{note.cite}</span>{' '}
              <span className="ref-work">{note.work}.</span>{' '}
              <span className="ref-pub">{note.pub}</span>
            </li>
          ))}
        </ol>
        <p className="colophon">
          <em>ab ovo usque ad mala.</em>
        </p>
      </section>
    </article>
  );
};

function OrnamentalPlate() {
  const species = ['hummingbird', 'robin', 'song_thrush', 'chicken', 'guillemot', 'owl', 'emu', 'ostrich'];
  return (
    <div className="ornamental">
      {species.map((k, i) => {
        const s = window.SPECIES[k];
        const pts = window.narushinEgg(s.params);
        return (
          <div key={k} className="orn-cell">
            <window.EggSVG
              points={pts}
              width={72}
              height={96}
              shell={{ base: s.shell.base, accent: s.shell.accent || '#281b11', speckles: s.shell.speckles }}
              speckleSeed={7 + i}
              padding={5}
              rotate={-90}
            />
            <div className="orn-num">{i + 1}.</div>
          </div>
        );
      })}
    </div>
  );
}

window.Essay = window.Essay;
