← Latest papers
🔢 mathematics

Self-graphing equations

This paper critiques the popular concept of Tupper's self-referential formula for being typographically dependent and trivial, then resolves these issues by formalizing the problem and providing a general solution using computability theory.

Original authors: Samuel Allen Alexander

Published 2026-08-25
📖 4 min read🧠 Deep dive

Original authors: Samuel Allen Alexander

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where a mathematical formula, when drawn on a piece of paper, does not just describe a shape like a circle or a wave, but actually draws the very words that make up the formula itself. This is the strange and captivating idea of a "self-graphing equation." The concept gained widespread attention after a specific formula, known as Tupper's self-referential formula, went viral on the internet. That famous formula is capable of drawing any image of a certain size, including the text of the formula itself, but it relies on a specific, pre-chosen number to work. It is a clever trick of coordinates rather than a true self-reference. Mathematicians have long wondered if it is possible to create an equation that inherently contains the instructions to draw itself, without needing a secret code or a specific number to unlock the image. However, the question is tricky because it depends entirely on how we choose to write the letters and symbols. If the font changes, the drawing changes, and the equation might no longer match the picture. Furthermore, if one is allowed to use any function imaginable, the problem becomes trivial and meaningless, as one could simply define a function that draws whatever image they want, including the text of the function itself.

A researcher named Samuel Allen Alexander has now tackled these flaws by turning the problem into a rigorous mathematical question. Instead of focusing on a specific font or a specific set of allowed symbols, he created a general framework that defines what it means for an equation to be "self-graphing" in a way that works for any reasonable system of writing and drawing. He treated the alphabet of symbols, the way they are drawn as shapes, and the way they are interpreted as equations as a formal system. In this system, every string of symbols has a specific meaning as a drawing on a plane. The goal was to find a string of symbols that, when interpreted as a drawing, produces the exact same string of symbols. To solve this, Alexander did not rely on guessing or trial and error. Instead, he used a powerful tool from the field of computability theory, which studies what can and cannot be calculated by machines. He applied a famous result known as the recursion theorem. This theorem, originally used to prove that a computer program can print out its own source code, guarantees that under certain logical conditions, a system can refer to itself.

The paper demonstrates that if a system of equations is "self-constrained"—meaning it has a logical structure that allows it to translate the description of a drawing back into an equation that produces that drawing—then a self-graphing equation is guaranteed to exist. Alexander showed that this condition is met by a very practical system of writing equations. He constructed a specific example using a standard set of letters, numbers, and mathematical symbols, including special tools for handling infinite sums and products. In this system, the symbols are drawn as small, blocky shapes made of tiny pixels, much like letters on a digital screen. The researcher proved that within this system, there is a specific string of characters that, when graphed, draws the exact same string of characters. The proof relies on the fact that the system can express complex logical statements, including the ability to say "there exists" or "for all," which allows the equation to describe its own structure.

The finding is a definitive proof of existence, not a specific recipe for writing such an equation by hand. The paper does not provide the actual string of symbols that solves the problem, because the string would be incredibly long and complex, far beyond what a human could write or read. Instead, the work proves that such a string must exist within any system that meets the logical criteria Alexander established. The research effectively settles the debate about whether self-graphing equations are a meaningless curiosity or a trivial impossibility. It shows that they are neither. They are a genuine mathematical reality that arises naturally in systems capable of expressing their own logic. The work clarifies that the viral formula from the internet was not the only way to achieve this, nor was it a true self-reference in the strictest sense. By formalizing the rules of the game, Alexander has shown that the universe of mathematical equations is rich enough to contain its own image, provided the rules of the game are set up correctly. This result bridges the gap between abstract logic and visual representation, proving that a set of instructions can, in a very real sense, draw itself.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →