Why Algebra Uses x and Where the Habit Came From
How x became the usual unknown, what Descartes contributed, and which popular origin stories remain unproven.
Key takeaways
- Descartes's 1637 La Géométrie helped establish x, y and z as unknowns and a, b and c as known quantities.
- Earlier algebra was often written mostly in words, and later in a mix of words and abbreviations.
- François Viète, in the late 1500s, used letters systematically for both unknown and given quantities, with a different scheme.
- The popular story that x comes from an Arabic word by way of Spanish is disputed and lacks firm support.
- The letter itself has no special power, and good notation is chosen to make a problem readable.
Algebra uses x mainly because of a notation choice that caught on in the seventeenth century. In La Géométrie, published in 1637, René Descartes used letters from the end of the alphabet, such as x, y and z, for unknown quantities and letters from the beginning, such as a, b and c, for known ones. His book was influential, and the habit spread.
Why x in particular came to lead the group is less certain. Several explanations circulate, and some are told with far more confidence than the evidence supports. Nothing mathematical requires x. Any symbol would do the same work.
Algebra before letters
People solved algebraic problems long before anyone wrote x. Babylonian clay tablets from roughly four thousand years ago contain problems that amount to quadratic equations, worked out as numerical procedures described in words.
In the ninth century, al-Khwarizmi, a scholar working in Baghdad, wrote an influential Arabic book on solving equations. The word "algebra" descends from al-jabr in its title, a term for one of his operations on equations. His text was written in words. The unknown was called by an Arabic word meaning "thing" or by a word meaning "root."
Historians often describe such writing as rhetorical algebra. A problem we would write as x² + 10x = 39 appeared as a sentence about a square and ten of its roots adding up to thirty-nine. Its positive solution is 3, since 9 + 30 = 39.
European writers who learned from Arabic sources carried the idea of "the thing" along. Latin texts used res and Italian ones cosa, and algebra was sometimes called the art of the coss.
Abbreviations arrive
Between pure words and modern symbols lies a middle stage, often called syncopated algebra, in which frequent words are shortened.
Diophantus, a Greek mathematician in Alexandria who is usually dated to around the third century, used a special sign for the unknown number. Mathematicians in India also developed compact notation, including using abbreviations of color names to distinguish different unknowns.
In Renaissance Europe, writers shortened words for the unknown and its powers, and signs such as + and - gradually came into print. The equals sign appears in Robert Recorde's 1557 book The Whetstone of Witte, where he used two parallel lines because, as he reasoned, no two things could be more equal.
These stages overlapped and varied from place to place. There was no single moment when words gave way to symbols.
Viète's letters
The French mathematician François Viète took a decisive step near the end of the sixteenth century. In work beginning with his 1591 introduction to the "analytic art," he used letters not only for unknown quantities but also for the known ones.
His scheme assigned vowels to unknowns and consonants to givens. The advance was enormous. When the givens are letters, you can solve a whole class of problems at once and see how the answer depends on each quantity.
Compare solving 3x = 12 with solving ax = b. The first gives one number, 4. The second gives x = b/a, valid whenever a ≠ 0, and covers every equation of that shape. That distinction between kinds of letters is the subject of unknowns, parameters and placeholders.
Viète's notation still relied on words for things such as powers, so a page of it looks quite unlike a modern textbook.
What Descartes changed
Descartes replaced the vowel and consonant scheme with an alphabetical one: early letters for knowns, late letters for unknowns. He also wrote powers with raised numerals, as in x³, although he commonly wrote a square as xx.
His notation looks strikingly familiar today. La Géométrie also linked algebra with geometry, representing curves through equations, which helped make the book widely read in its later Latin editions. Those symbols traveled with the ideas.
Why did x end up more common than y or z? One suggestion is practical: printers may have had more spare x type, since the letter is rare in French. This account is repeated often, but it is difficult to confirm. It is safest to treat the printer explanation as a possibility rather than an established fact.
The Arabic and Spanish story
A widely shared explanation says that Arabic writers called the unknown shay, meaning "thing"; that Spanish translators wrote this sound as xei because Spanish x once stood for a "sh" sound; and that xei was shortened to x.
Parts of this are plausible on their own. Shay was indeed used for the unknown in Arabic algebra, and older Spanish spelling did use x for a sound like "sh." The weak point is the chain connecting them to Descartes. Historians have not produced convincing documentary evidence of Spanish algebra texts passing an abbreviated x down to him, and his alphabetical pattern explains x, y and z together without it.
A fair summary is that the story is an interesting hypothesis that many historians of mathematics doubt. If you retell it, say so.
Other guesses, such as x as a crossed-out mark or a borrowed older symbol, have been proposed too. None settles the question.
One problem in three styles
Seeing a single problem written in different ways shows what symbols bought. Take this one: a number added to three times itself, plus four, makes twenty-four.
A rhetorical writer would carry the whole thing in sentences: take the thing, add three things to it, add four units, and the result equals twenty-four units. Every step of the solution would be narrated the same way.
A writer in the middle stage might shorten the repeated words, using an abbreviation for the unknown and another for units, while still joining them with words.
In modern notation it is one line.
x + 3x + 4 = 24
4x + 4 = 24 (combine x and 3x)
4x = 20 (subtract 4 from both sides)
x = 5 (divide both sides by 4) Check: 5 + 15 + 4 = 24.
The reasoning is the same in every style. Symbols make it shorter, make the structure visible at a glance, and let you manipulate expressions without rereading a paragraph. They also make it easier to notice that two problems about quite different things, say coins and distances, have identical forms.
Why the habit stuck
Conventions survive when they are useful and widely taught. Once influential books used x for the unknown, later writers followed so that readers would not have to relearn symbols with each author.
The letter then escaped mathematics. "X-rays" were named by Wilhelm Röntgen in 1895 to signal an unknown kind of radiation, and expressions such as "the x factor" borrow the same sense of something undetermined.
There is also a typographical side. In printed algebra, x is usually set in italics, which helps separate it from the multiplication sign ×. In handwriting many students draw the variable as two curves back to back for the same reason. Algebra writers also tend to drop the × sign altogether, writing 4x for four times x, or use a centered dot.
Choosing your own letters
You are not obliged to use x. Often a different letter makes work clearer: t for time, d for distance, n for a count, A for area.
Say a problem asks how many weeks it takes to save 150 dollars when you start with 30 and add 20 each week. Using w for weeks, 30 + 20w = 150, so 20w = 120 and w = 6. Checking, 30 + 20 × 6 = 150. The letter w reminds you what the 6 counts.
A few cautions help. Avoid o, which looks like zero. Watch l, which looks like 1. Remember that e, i and π commonly name particular numbers in later courses, so using them for something else can confuse a reader.
Whatever you choose, state it plainly: "Let w be the number of weeks." Advice on writing such statements appears in defining variables well, and the basic idea behind any letter is explained in what a variable is.
Common questions
Did one person invent x?
Descartes is the figure most responsible for popularizing x as an unknown, but he built on a long development of symbols by many people across several cultures. Crediting him with a convention is more accurate than crediting him with algebra or with the idea of an unknown.
Is x a number?
In an algebra problem, x stands for a number. It may be a specific one you are looking for, or any number from a permitted set.
Do other countries use x?
Mathematical notation is largely shared internationally, and x as an unknown or variable is very common in textbooks across many languages, even where the surrounding text uses a different alphabet. Local teaching habits can differ in details such as how multiplication or decimals are written.