The Caliph al-Mamun, seventh of the Abbasid caliphs, sat in the House of Wisdom in Baghdad around the year 830 CE. He was one of the great patrons of Islamic learning. He had inherited a project his grandfather al-Mansur had begun and his father Harun al-Rashid had continued: the systematic translation of the whole knowledge of the ancient world into Arabic. The House of Wisdom was the center of that project. It housed translators, mathematicians, astronomers, geographers, physicians, and philosophers. Its library contained works in Greek, Syriac, Pahlavi, Sanskrit, and Aramaic. Its scholars translated them into Arabic.
At the House of Wisdom worked a mathematician named Muhammad ibn Musa al-Khwarizmi. He came originally from Khwarezm in Central Asia, near the Aral Sea. He had risen to the highest ranks of the Bayt al-Hikma. His work was mathematics and astronomy.
Al-Mamun gave him a commission. He asked al-Khwarizmi to write a practical book on calculation. The Islamic empire had inherited from the ancient world a jumble of methods: the Greek geometrical approach, the Egyptian arithmetic tradition, the Indian numerical system, the Babylonian sexagesimal tables. Merchants used one method for inheritance division. Astronomers used another for planetary tables. Land surveyors used a third for property boundaries. Al-Mamun wanted a unified textbook.
Al-Khwarizmi wrote it. The book was called Kitab al-Mukhtasar fi Hisab al-Jabr wa'l-Muqabala, the Compendious Book on Calculation by Completion and Balancing. The Arabic word al-jabr, in that title, meant completion. It described a specific technique. If you had an equation with a subtraction on one side, al-jabr was moving the subtracted quantity to the other side as an addition, so that both sides now had only additions. This was completion, the making-whole. Al-muqabala, balancing, was cancellation of equal terms from both sides.
Al-Khwarizmi laid out the methods systematically. He classified linear and quadratic equations into six standard types, based on which terms were present. He gave a step-by-step algorithm for solving each type. He gave worked examples. He showed how to translate a real-world problem (inheritance, land division, commerce) into an equation. He showed how to solve the equation. He gave a geometrical proof of why the technique worked, so that a reader would trust it.
The book was written for merchants and administrators, not mathematicians. It assumed no prior knowledge. It was clear. It became the standard textbook in the Islamic world within a generation of its writing.
Three hundred years later, in the twelfth century, Christian scholars in Toledo began translating Arabic scientific works into Latin. Al-Khwarizmi's book was among the first translated. Robert of Chester rendered the Arabic title into Latin as Liber algebrae et almucabola. The Arabic al-jabr, completion, became the Latin algebra. As the book was studied in the medieval European universities, the word algebra came to mean the entire discipline of solving equations, not just the technique of completion. The name of a single Arabic step became the name of a whole modern science.
Al-Khwarizmi wrote another book. This one described the use of the Indian numerals: 1, 2, 3, 4, 5, 6, 7, 8, 9, and a small circle representing nothing. The Arabs called them al-arqam al-Hindiyya, the Indian digits. Al-Khwarizmi explained how to write numbers of any size using them, how to add, subtract, multiply, and divide with them, and how the digit representing nothing, sifr, functioned as a placeholder.
This second book was translated into Latin as Algoritmi de numero Indorum, the book of Algoritmi (al-Khwarizmi's Latinized name) on Indian numbers. The Latin word algoritmi entered Europe as the name of the technique. Over time it became the word for any step-by-step numerical procedure. By the modern era, it had come to mean any systematic procedure for solving a problem. Today, algorithm, from the Latinized name of a Muslim mathematician who worked in Baghdad in the ninth century, is the word for the procedures that run every computer program in the world.
Al-Khwarizmi did not know his name would become the name of the technique. He wrote practical books to serve the Caliph's project of unifying knowledge for the whole ummah. But his books traveled. They traveled through the Islamic Mediterranean to Sicily, then into Toledo, then into Paris and Oxford, then into modern mathematics and modern computer science, and finally into the vocabulary of everyone using a phone.
What the story teaches. A technique named accurately becomes a discipline. Al-Khwarizmi named the completion step al-jabr, and the name stuck. It stuck across an ocean, across a language, across a religion, and across a millennium. It stuck because the technique was correct. What a scholar of the House of Wisdom in Baghdad did in the ninth century, with an ink pot and a manuscript, is now the substrate of the technological civilization the whole world lives in. The lesson is that clear, careful, generous scholarship travels, and the further it travels the more it stays yours because your name is on it.