A 9th century scholar in Baghdad wrote a book meant to settle inheritance disputes, and in the process gave the world both algebra and the word algorithm.
Muhammad ibn Musa al-Khwarizmi was not chasing abstract glory when he sat down to write his most famous treatise. He was a working scholar at the House of Wisdom in Baghdad, capital of the Abbasid Caliphate, and his goal was practical: to give people reliable tools for solving everyday mathematical problems.
An astronomer, a librarian, and the father of algebra
Around 820, al-Khwarizmi held the position of astronomer and head of the library at the House of Wisdom. Between 813 and 833, encouraged by the caliph al-Ma’mun, he compiled a treatise known as the Al-Jabr, offering the first systematic solution to linear and quadratic equations.
He proved how to solve quadratic equations by completing the square, backing every step with a geometric justification rather than asking readers to simply trust the math. He also introduced the methods of reduction and rebalancing, moving subtracted terms from one side of an equation to the other, ideas that would eventually give algebra its structure as an independent field of study.
The everyday word that comes from his name, badly translated
Al-Khwarizmi also wrote a treatise on calculating with Hindu numerals, composed around 825, which played a major role in spreading the Hindu Arabic number system across the Middle East and eventually Europe. When that work was translated into Latin in the 12th century under the title Algoritmi de numero Indorum, his own Latinized name entered the western world permanently as the word algorithm.
He worked with no algebraic notation whatsoever. Every equation had to be written out in plain sentences, since the symbols and operation signs used in mathematics today simply did not exist yet.
Not just algebra: correcting the map of the ancient world
Al-Khwarizmi’s talents reached well beyond equations. He also revised Ptolemy’s Geography, correcting the coordinates for cities across the Mediterranean, Asia and Africa. He helped lead a project involving seventy geographers tasked with determining the circumference of the Earth and producing a new map of the known world for the caliph al-Ma’mun.
His geographical work, the Kitab Surat al-Ard, even preserved the oldest known map of the Nile. One of his more striking corrections fixed Ptolemy’s badly overstated length of the Mediterranean Sea, shrinking it from 63 degrees of longitude down to roughly 50, a remarkably accurate adjustment for the era.
More than a geometer in the Greek tradition
It would be easy to picture al-Khwarizmi as simply continuing Greek geometric tradition, but his real achievement was different. He built a unifying framework where rational numbers, irrational numbers and geometric quantities could all be treated as algebraic objects, a genuine break from how the Greeks had approached mathematics.
Historians increasingly argue that al-Khwarizmi deserves the title father of algebra more than Diophantus, since he was the first to teach algebra as a subject in its own right, rather than as a tool for solving isolated problems. A scholar working through inheritance law in 9th century Baghdad ended up reshaping how the entire world would calculate, centuries after his death.

