In an alternative history of the world, perhaps quantum mechanics could have been discovered by chemists following up on the theories of two mathematicians from the late 1800s: Sylvester, and Gordan.

Both are famous for their work on invariant theory, which we would now call part of group representation theory. For example, we now use the Clebsch–Gordan coefficients to understand the funny way angular momentum ‘adds’ when we combine two quantum systems. This plays a significant role in physical chemistry, though Gordan never lived to see that.

But Sylvester already wanted to connect chemistry to invariant theory back in 1878! He published a paper on it, in the first issue of a journal he himself founded:

• James Joseph Sylvester, On an application of the new atomic theory to the graphical representation of the invariants and covariants of binary quantics, with three appendices, *American Journal of Mathematics* **1** (1878), 64–104. (Available on JSTOR.)

The title suggests he is applying ideas from chemistry to invariant theory, rather than the other way around! I haven’t absorbed the paper, but this impression is somewhat confirmed by these passages:

To those unacquainted with the laws of atomicity I recommend Dr. Frankland’s

Lecture Notes for Chemical Students, vols. 1 and 2, London (Van Voorst), a perfect storehouse of information on the subject arranged in the most handy order and put together and explained with true scientific accuracy and precision.

and then:

The more I study Dr. Frankland’s wonderfully beautiful little treatise the more deeply I become impressed with the harmony or homology (I might call it, rather than analogy) which exists between the chemical and algebraical theories. In travelling my eye up and down the illustrated pages of “the Notes,” I feel as Aladdin might have done in walking in the garden where every tree was laden with precious stones, or as Caspar Hauser when first brought out of his dark cellar to contemplate the glittering heavens on a starry night. There is an untold treasure of hoarded algebraical wealth potentially contained in the results achieved by the patient and long continued labor of our unconscious and unsuspected chemical fellow-workers.

So, he thinks the chemists may have found an ‘untold treasure of algebraical wealth’. What is this?

First he notes that you can use graphs to describe molecules: vertices represent atoms, and edges represent bonds.

This idea, utterly commonplace now, may have been only four years old when Sylvester published his work, since Wikipedia credits the use of graphs for describing molecules to this paper:

• Arthur Cayley, On the mathematical theory of isomers, *Philosophical Magazine* **47** (1874), 444–446.

Surely it’s not a complete coincidence that Sylvester was friends with Cayley, and that Sylvester was the first to use the term ‘graph’ to mean a bunch of vertices connected by edges!

But Sylvester noticed you can also use graphs to describe ways of building scalars from tensors: a vertex with *n* edges coming out is a tensor with *n* indices, and an edge between vertices means you sum over a repeated index, as in the ‘Einstein summation convention’. This idea is often attributed to Penrose, who explained it more clearly much later:

Still later, Penrose’s spin networks and the theory of Feynman diagrams were unified via ‘string diagrams’ in category theory. I explain the story and the math here:

• John Baez and Aaron D. Lauda, A prehistory of *n*-categorical physics, in *Deep Beauty: Mathematical Innovation and the Search for an Underlying Intelligibility of the Quantum World*, ed. Hans Halvorson, Cambridge U. Press, Cambridge, 2011, pp. 13–128.

So, we can think of Sylvester’s chemistry-inspired work as another obscure chapter in the prehistory of *n*-categorical physics!

To be precise, in Sylvester’s setup a vertex with *n* edges out represents an atom with *n* bonds coming out, but also a **binary quantic**, meaning an element of where is a 2-dimensional vector space with an inner product on it. He notes that hydrogen, chlorine, bromine, and potassium have *n* = 1, oxygen, zinc, and magnesium have *n* = 2, and so on.

The inner product on lets us raise or lower indices in tensors, so we don’t have to worry about which indices are superscripts and which are subscripts, which is usually a major aspect of the Einstein summation convention. In other words, it lets us identify with its dual , so we don’t have to worry about the difference between covariant and contravariant tensors.

It seems that by this method, Sylvester was able to see diagrams of molecules as recipes for building scalars from tensors! Here’s a nice page containing 45 separate figures explained in his paper:

But it wasn’t just Sylvester. Clifford, famous for inventing Clifford algebras, *also* thought about chemistry and invariant theory. In fact he wrote a letter about it to Sylvester! Sylvester published part of this along with his own work in the first issue of his journal:

• William Kingdon Clifford, Extract of a letter to Mr. Sylvester from Prof. Clifford of University College, London, *American Journal of Mathematics* **1** (1878), 126–128. (Available on JSTOR.)

Sylvester was so excited that he published this without Clifford’s permission, writing:

The subjoined matter is so exceedingly interesting and throws such a flood of light on the chemico-algebraical theory, that I have been unable to resist the temptation to insert it in the Journal, without waiting to obtain the writer’s permission to do so, for which there is not time available between the date of its receipt and my proximate departure for Europe. It is written from Gibraltar, whither Professor Clifford has been ordered to recruit his health, a treasure which he ought to feel bound to guard as a sacred trust for the benefit of the whole mathematical world.

I have not managed to understand Clifford’s ideas yet, but they may have been better than Sylvester’s—though unfortunately not developed, due to Clifford’s untimely death one year later in 1879. Olver and Shakiban write:

Although Sylvester envisioned his theory as the future of chemistry, it is Clifford’s graph theory that, with one slight but important modification, could have become a useful tool in computational invariant theory. The algebro-chemical theory reduces computations of invariants to methods of graph theory. Our thesis is that the correct framework for the subject is to use digraphs or “directed molecules” as the fundamental objects. One can ascribe both a graph theoretical as well as a chemical interpretation.

This is from here:

• Peter J. Olver and Cherzhad Shakiban, Graph theory and classical invariant theory, *Advances in Mathematics* **75** (1989), 212–245.

It sounds like what Clifford realized is that by using a directed graph we get a better theory that lets us drop the inner product on Having graphs with directed edges lets the graphical notation distinguish between covariant and contravariant tensors.

Now let’s jump forward a decade or two! At some point Paul Gordan read the work of Clifford and Sylvester and concluded that invariant theory could contribute to the understanding of chemical valence. But his own ideas were somewhat different. In 1900 he and his student W. Alexejeff wrote an article about this:

• Paul Gordan and W. Alexejeff, Übereinstimmung der Formeln der Chemie und der Invariantentheorie, *Zeitschrift für Physikalische Chemie*, **35** (1900), 610–633.

In 2006, Wormer and Paldus wrote:

The origins of the coupling problem for angular momenta can be traced back to the early—purely mathematical—work on invariant theory by (Rudolf Friedrich) Alfred Clebsch (1833–1872) and Paul (Albert) Gordan (1837–1912), see Section 2.5. Even before the birth of quantum mechanics the formal analogy between chemical valence theory and binary invariant theory was recognized by eminent mathematicians as Sylvester, Clifford, and Gordan and Alexejeff. The analogy, lacking a physical basis at the time, was criticised heavily by the mathematician E. Study and ignored completely by the chemistry community of the 1890s. After the advent of quantum mechanics it became clear, however, that chemical valences arise from electron–spin couplings … and that electron spin functions are, in fact, binary forms of the type studied by Gordan and Clebsch.

I learned of this quote from James Dolan, who happened to be studying the work of Eduard Study, who is mostly famous for his work on the so-called dual numbers, the free algebra on one generator that squares to zero. The paper by Wormer and Paldus is here:

• Paul E. S. Wormer and Josef Paldus, Angular momentum diagrams, *Advances in Quantum Chemistry* **51** (2006), 51–124.

Here’s another paper I should read:

• Karen Hunger Parshall, Chemistry through invariant theory? James Joseph Sylvester’s mathematization of the atomic theory, in *Experiencing Nature: Proceedings of a Conference in Honor of Allen G. Debus*, Springer, Berlin, 1997.

Sylvester was a colorful and fascinating character. For example, he entered University College London at the age of 14. But after just five months, he was accused of threatening a fellow student with a knife in the dining hall! His parents took him out of college and waited for him to grow up a bit more.

He began studies in Cambridge at 17. Despite being ill for 2 years, he came in second in the big math exam called the tripos. But he couldn’t get a degree… because he was Jewish.

In 1841, he was awarded a BA and an MA by Trinity College Dublin. In the same year he moved to the United States to become a professor of mathematics at the University of Virginia.

After just a few months, a student reading a newspaper in one of Sylvester’s lectures insulted him. Sylvester struck him with a sword stick. The student collapsed in shock. Sylvester thought he’d killed the guy! He fled to New York where one of his brothers was living.

Later he came back to Virginia. But according an online biography, “the abuse suffered by Sylvester from this student got worse after this”. Soon he quit his job.

He returned to England and took up a job at a life insurance company. He needed a law degree for this job, and in his studies he met another mathematician, five years younger, studying law: Cayley! They worked together on matrices and invariant theory.

Sylvester only got another math job in 1855, at the Royal Military Academy of Woolwich. He was 41. At age 55 they made him retire—that was the rule—but for some reason the school refused to pay his pension!

The Royal Military Academy only relented and paid Sylvester his pension after a prolonged public controversy, during which he took his case to the letters page of The Times.

When he was 58, Cambridge University finally gave him his BA and MA.

At age 62, Sylvester went back to the United States to become the first professor of mathematics at the newly founded Johns Hopkins University in Baltimore, Maryland. His salary was $5,000—quite generous for the time.

He demanded to be paid in gold.

They wouldn’t pay him in gold, but he took the job anyway. At age 64, he founded the American Journal of Mathematics. At 69, he was invited back to England to become a professor at Oxford. He worked there until his death at age 83.

One thing I’ve always liked about Sylvester is that he invented lots of terms for mathematical concepts. Some of them have caught on: matrix, discriminant, invariant, totient, and Jacobian! Others have not: cyclotheme, meicatecticizant, tamisage and dozens more.

But only now am I realizing how Sylvester’s fertile imagination, inspired by chemistry, connected graph theory and invariant theory in ways that would later become crucial for physics.