Two words in everyday scientific English come from the same ninth century scholar working in Baghdad. One of them is algebra, from the Arabic al-jabr, the title of his most famous book. The other is algorithm, which is a mangled Latin transcription of his name. Not many people leave that kind of fingerprint on a language.
Muhammad ibn Musa al-Khwarizmi was born around 780, probably in Khwarazm, south of the Aral Sea, and spent his working life at the House of Wisdom in Baghdad under the caliph al-Mamun. He was an astronomer and a geographer as well as a mathematician. But the book that changed everything was a practical manual about solving equations, and its importance has almost nothing to do with the equations themselves.
What the Book Actually Was
The full title translates roughly as The Compendious Book on Calculation by Completion and Balancing, written around 820. The two operations in the title are the whole method.
Al-jabr, completion or restoration, means moving a subtracted quantity to the other side of the equation so that it becomes an addition. If you have “forty minus a thing equals ten”, you restore the thing to the left side and add it to the right. Al-muqabala, balancing, means cancelling equal quantities that appear on both sides. Anyone who has ever rearranged an equation on a whiteboard has done both, probably without ever wondering what to call them.
Al-Khwarizmi did not invent either operation. Babylonian scribes were solving quadratics more than a thousand years earlier, and Diophantus of Alexandria had worked on equations in the third century. What Al-Khwarizmi did was different in kind. He set out a complete, systematic procedure that would solve any quadratic equation whatsoever, sorted into cases, with a proof for each case and worked examples. It was not a collection of clever solutions to particular puzzles. It was a method.
Six Cases and No Negative Numbers
A modern reader is immediately struck by something odd: he lists six types of equation where we would list one. We write every quadratic as ax² + bx + c = 0 and let the coefficients be positive, negative, or zero as needed. Al-Khwarizmi could not do that, because negative quantities were not accepted as legitimate objects. An equation had to have positive terms on both sides.
So he was forced to enumerate the possibilities:
- squares equal roots
- squares equal a number
- roots equal a number
- squares and roots equal a number
- squares and a number equal roots
- roots and a number equal squares
“Squares” means what we call x², “roots” means x, and a “number” is a constant. The six cases exhaust every quadratic that can be written with positive coefficients. Once you have the recipe for each, you have solved the general problem, and he proves each recipe rather than asserting it.
There is a second surprise. There is not a single symbol in the book. No x, no plus sign, no equals sign, none of which existed yet. Everything is written out in ordinary sentences: a square and ten roots are equal to thirty nine dirhams, and so on. This is what historians call rhetorical algebra, and it makes the achievement stranger rather than less impressive. He was reasoning about general quantities with no notation to hold them still.
Completing the Square, Literally
His proofs are geometric, and they are lovely. Take his standard example: a square plus ten roots equals thirty nine.
Draw a square whose side is the unknown. Its area is the square term. Now attach four rectangles to its four sides, each with width two and a half, which is ten divided by four. The total area of the square plus the four rectangles is thirty nine. To make the whole figure into a larger square you need to fill in the four small corner squares, each of area two and a half squared, so six and a quarter each, twenty five in total. The big square therefore has area thirty nine plus twenty five, which is sixty four, so its side is eight. Subtract the two overhangs of two and a half and the original unknown is three.
That is the procedure every schoolchild learns as completing the square, and in Al-Khwarizmi’s hands the phrase is not a metaphor. He is completing an actual square drawn on a page. The geometric heritage is Greek, and the debt to Euclidean geometry as a system of proof is obvious throughout. What is new is that the geometry has been demoted. It is no longer the subject. It is the justification for an arithmetic recipe that you can then apply without drawing anything at all.
Half the Book Is About Inheritance
The section that gets reproduced in textbooks is only the opening. A large part of the work deals with practical problems: surveying, trade, digging canals, and above all the division of estates under Islamic inheritance law, which involves fractional shares that interact in genuinely complicated ways.
This matters for understanding why the book was written. Al-Khwarizmi says in his introduction that he aimed at what people constantly need in cases of inheritance, legacies, partition, lawsuits, and trade. It is a work of applied mathematics commissioned in a working administrative capital, not a treatise for specialists. That practicality is exactly why it spread.
The Other Book, and a Word
Al-Khwarizmi wrote a second work that may have mattered even more, on calculation with the Hindu numerals. The Arabic original is lost. It survives only in a twelfth century Latin translation that begins with the words Algoritmi dicit, meaning “Al-Khwarizmi says”. Medieval readers took Algoritmi to be the name of the method rather than the man, and the word algorithm entered European languages sideways, through a scribe’s misunderstanding.
That book carried the decimal place value system, including the zero, out of India and into the Arabic speaking world in a form Europeans could eventually read. The story of how zero became a number rather than a gap runs straight through it, and so does the eventual replacement of Roman numerals in European commerce, which took another few centuries and was finally pushed through by Fibonacci’s Liber Abaci in 1202.
Who Is the Father of Algebra?
It is a contested title and it is worth being precise about it. Diophantus, writing around 250, worked with symbols of a sort and solved harder individual problems, some of them indeterminate. Brahmagupta in seventh century India handled negative numbers and gave a general solution to the quadratic centuries before Baghdad. Neither of those claims is in doubt.
What distinguishes Al-Khwarizmi is the shape of the work. Diophantus solved problems. Al-Khwarizmi built a classification, gave a universal procedure for each class, proved it, and presented the result as a self contained discipline with its own objects and operations. Algebra as a subject, rather than algebra as a collection of tricks, starts there. It is also simply true that the European tradition descends from his book and not from the others, because his is the one that got translated in Toledo in 1145 and taught.
From Words to Symbols
The tradition he started took a long time to acquire the notation we now think of as inseparable from it. Islamic mathematicians such as al-Karaji and Omar Khayyam extended the work to cubics and to polynomial arithmetic. In sixteenth century Europe, François Viète introduced letters for known and unknown quantities, which made it possible to state a general result in a single line. Descartes then fixed the notation into something a modern reader can follow without a translator, and connected algebra back to geometry from the opposite direction, using equations to describe curves.
Al-Khwarizmi’s other career deserves a mention here too. He compiled astronomical tables, the Zij al-Sindhind, drawing on Indian and Greek sources, and wrote on the astrolabe and on the geography of the known world, correcting Ptolemy’s coordinates. That combination of computation and observation is the same one that runs through the whole later history of astronomy, and the works where it culminates are collected in our six book pack on the history of astronomy, from Copernicus and Kepler to Brahe.
A Method, Not a Trick
The lasting lesson of Al-Khwarizmi is about generality. Before him, solving an equation was an act of ingenuity: you looked at the numbers and found the move. After him, it was the application of a procedure that works every time, requires no inspiration, and can be taught to someone who does not understand why it works.
That is precisely what an algorithm is, and it is why the accidental naming turned out to be so appropriate. Every piece of software running anywhere today is an inheritance from a book written to help Baghdad’s lawyers divide estates fairly, by a man who could not write an equals sign.