# Abu Ja'far Muhammad ibn Musa Al-Khwarizmi

### Quick Info

Born
Died

Summary
Al'Khwarizmi was an Islamic mathematician who wrote on Hindu-Arabic numerals. The word algorithm derives from his name. His algebra treatise Hisab al-jabr w'al-muqabala gives us the word algebra and can be considered as the first book to be written on algebra.

### Biography

We know few details of Abu Ja'far Muhammad ibn Musa al-Khwarizmi's life. One unfortunate effect of this lack of knowledge seems to be the temptation to make guesses based on very little evidence. In [1] Toomer suggests that the name al-Khwarizmi may indicate that he came from Khwarizm south of the Aral Sea in central Asia. He then writes:-
But the historian al-Tabari gives him the additional epithet "al-Qutrubbulli", indicating that he came from Qutrubbull, a district between the Tigris and Euphrates not far from Baghdad, so perhaps his ancestors, rather than he himself, came from Khwarizm ... Another epithet given to him by al-Tabari, "al-Majusi", would seem to indicate that he was an adherent of the old Zoroastrian religion. ... the pious preface to al-Khwarizmi's "Algebra" shows that he was an orthodox Muslim, so Al-Tabari's epithet could mean no more than that his forebears, and perhaps he in his youth, had been Zoroastrians.
However, Rashed [7], put a rather different interpretation on the same words by Al-Tabari:-
... Al-Tabari's words should read: "Muhammad ibn Musa al-Khwarizmi and al-Majusi al-Qutrubbulli ...", (and that there are two people al-Khwarizmi and al-Majusi al-Qutrubbulli): the letter "wa" was omitted in the early copy. This would not be worth mentioning if a series of conclusions about al-Khwarizmi's personality, occasionally even the origins of his knowledge, had not been drawn. In his article ([1]) G J Toomer, with naive confidence, constructed an entire fantasy on the error which cannot be denied the merit of making amusing reading.
This is not the last disagreement that we shall meet in describing the life and work of al-Khwarizmi. However before we look at the few facts about his life that are known for certain, we should take a moment to set the scene for the cultural and scientific background in which al-Khwarizmi worked.

Harun al-Rashid became the fifth Caliph of the Abbasid dynasty on 14 September 786, about the time that al-Khwarizmi was born. Harun ruled, from his court in the capital city of Baghdad, over the Islam empire which stretched from the Mediterranean to India. He brought culture to his court and tried to establish the intellectual disciplines which at that time were not flourishing in the Arabic world. He had two sons, the eldest was al-Amin while the younger was al-Mamun. Harun died in 809 and there was an armed conflict between the brothers.

Al-Mamun won the armed struggle and al-Amin was defeated and killed in 813. Following this, al-Mamun became Caliph and ruled the empire from Baghdad. He continued the patronage of learning started by his father and founded an academy called the House of Wisdom where Greek philosophical and scientific works were translated. He also built up a library of manuscripts, the first major library to be set up since that at Alexandria, collecting important works from Byzantium. In addition to the House of Wisdom, al-Mamun set up observatories in which Muslim astronomers could build on the knowledge acquired by earlier peoples.

Al-Khwarizmi and his colleagues the Banu Musa were scholars at the House of Wisdom in Baghdad. Their tasks there involved the translation of Greek scientific manuscripts and they also studied, and wrote on, algebra, geometry and astronomy. Certainly al-Khwarizmi worked under the patronage of Al-Mamun and he dedicated two of his texts to the Caliph. These were his treatise on algebra and his treatise on astronomy. The algebra treatise Hisab al-jabr w'al-muqabala was the most famous and important of all of al-Khwarizmi's works. It is the title of this text that gives us the word "algebra" and, in a sense that we shall investigate more fully below, it is the first book to be written on algebra.

Rosen's translation of al-Khwarizmi's own words describing the purpose of the book tells us that al-Khwarizmi intended to teach [11] (see also [1]):-
... what is easiest and most useful in arithmetic, such as men constantly require in cases of inheritance, legacies, partition, lawsuits, and trade, and in all their dealings with one another, or where the measuring of lands, the digging of canals, geometrical computations, and other objects of various sorts and kinds are concerned.
This does not sound like the contents of an algebra text and indeed only the first part of the book is a discussion of what we would today recognise as algebra. However it is important to realise that the book was intended to be highly practical and that algebra was introduced to solve real life problems that were part of everyday life in the Islam empire at that time. Early in the book al-Khwarizmi describes the natural numbers in terms that are almost funny to us who are so familiar with the system, but it is important to understand the new depth of abstraction and understanding here [11]:-
When I consider what people generally want in calculating, I found that it always is a number. I also observed that every number is composed of units, and that any number may be divided into units. Moreover, I found that every number which may be expressed from one to ten, surpasses the preceding by one unit: afterwards the ten is doubled or tripled just as before the units were: thus arise twenty, thirty, etc. until a hundred: then the hundred is doubled and tripled in the same manner as the units and the tens, up to a thousand; ... so forth to the utmost limit of numeration.
Having introduced the natural numbers, al-Khwarizmi introduces the main topic of this first section of his book, namely the solution of equations. His equations are linear or quadratic and are composed of units, roots and squares. For example, to al-Khwarizmi a unit was a number, a root was $x$, and a square was $x^{2}$. However, although we shall use the now familiar algebraic notation in this article to help the reader understand the notions, Al-Khwarizmi's mathematics is done entirely in words with no symbols being used.

He first reduces an equation (linear or quadratic) to one of six standard forms:
1. Squares equal to roots.
2. Squares equal to numbers.
3. Roots equal to numbers.
4. Squares and roots equal to numbers; e.g. $x^{2} + 10 x = 39$.
5. Squares and numbers equal to roots; e.g. $x^{2} + 21 = 10 x$.
6. Roots and numbers equal to squares; e.g. $3 x + 4 = x^{2}$.
The reduction is carried out using the two operations of al-jabr and al-muqabala. Here "al-jabr" means "completion" and is the process of removing negative terms from an equation. For example, using one of al-Khwarizmi's own examples, "al-jabr" transforms $x^{2} = 40 x - 4 x^{2}$ into $5 x^{2} = 40 x$. The term "al-muqabala" means "balancing" and is the process of reducing positive terms of the same power when they occur on both sides of an equation. For example, two applications of "al-muqabala" reduces $50 + 3 x + x^{2} = 29 + 10 x$ to $21 + x^{2} = 7 x$ (one application to deal with the numbers and a second to deal with the roots).

Al-Khwarizmi then shows how to solve the six standard types of equations. He uses both algebraic methods of solution and geometric methods. For example to solve the equation $x^{2} + 10 x = 39$ he writes [11]:-
... a square and 10 roots are equal to 39 units. The question therefore in this type of equation is about as follows: what is the square which combined with ten of its roots will give a sum total of 39? The manner of solving this type of equation is to take one-half of the roots just mentioned. Now the roots in the problem before us are 10. Therefore take 5, which multiplied by itself gives 25, an amount which you add to 39 giving 64. Having taken then the square root of this which is 8, subtract from it half the roots, 5 leaving 3. The number three therefore represents one root of this square, which itself, of course is 9. Nine therefore gives the square.

The geometric proof by completing the square follows. Al-Khwarizmi starts with a square of side $x$, which therefore represents $x^{2}$ (Figure 1). To the square we must add $10x$ and this is done by adding four rectangles each of breadth 10/4 and length $x$ to the square (Figure 2). Figure 2 has area $x^{2} + 10 x$ which is equal to 39. We now complete the square by adding the four little squares each of area $\large\frac{5}{2}\normalsize \times \large\frac{5}{2}\normalsize = \large\frac{25}{4}\normalsize$. Hence the outside square in Fig 3 has area $4 \times \large\frac{25}{4}\normalsize + 39 = 25 + 39 = 64$. The side of the square is therefore 8. But the side is of length $\large\frac{5}{2}\normalsize + x + \large\frac{5}{2}\normalsize$ so $x + 5 = 8$, giving $x = 3$.

These geometrical proofs are a matter of disagreement between experts. The question, which seems not to have an easy answer, is whether al-Khwarizmi was familiar with Euclid's Elements. We know that he could have been, perhaps it is even fair to say "should have been", familiar with Euclid's work. In al-Rashid's reign, while al-Khwarizmi was still young, al-Hajjaj had translated Euclid's Elements into Arabic and al-Hajjaj was one of al-Khwarizmi's colleagues in the House of Wisdom. This would support Toomer's comments in [1]:-
... in his introductory section al-Khwarizmi uses geometrical figures to explain equations, which surely argues for a familiarity with Book II of Euclid's "Elements".
Rashed [9] writes that al-Khwarizmi's:-
... treatment was very probably inspired by recent knowledge of the "Elements".
However, Gandz in [6] (see also [23]), argues for a very different view:-
Euclid's "Elements" in their spirit and letter are entirely unknown to [al-Khwarizmi]. Al-Khwarizmi has neither definitions, nor axioms, nor postulates, nor any demonstration of the Euclidean kind.
I [EFR] think that it is clear that whether or not al-Khwarizmi had studied Euclid's Elements, he was influenced by other geometrical works. As Parshall writes in [35]:-
... because his treatment of practical geometry so closely followed that of the Hebrew text, Mishnat ha Middot, which dated from around 150 AD, the evidence of Semitic ancestry exists.
Al-Khwarizmi continues his study of algebra in Hisab al-jabr w'al-muqabala by examining how the laws of arithmetic extend to an arithmetic for his algebraic objects. For example he shows how to multiply out expressions such as
$(a + b x) (c + d x)$
although again we should emphasise that al-Khwarizmi uses only words to describe his expressions, and no symbols are used. Rashed [9] sees a remarkable depth and novelty in these calculations by al-Khwarizmi which appear to us, when examined from a modern perspective, as relatively elementary. He writes [9]:-
Al-Khwarizmi's concept of algebra can now be grasped with greater precision: it concerns the theory of linear and quadratic equations with a single unknown, and the elementary arithmetic of relative binomials and trinomials. ... The solution had to be general and calculable at the same time and in a mathematical fashion, that is, geometrically founded. ... The restriction of degree, as well as that of the number of unsophisticated terms, is instantly explained. From its true emergence, algebra can be seen as a theory of equations solved by means of radicals, and of algebraic calculations on related expressions...
If this interpretation is correct, then al-Khwarizmi was as Sarton writes:-
... the greatest mathematician of the time, and if one takes all the circumstances into account, one of the greatest of all time....
In a similar vein Rashed writes [9]:-
It is impossible to overstress the originality of the conception and style of al-Khwarizmi's algebra...
but a different view is taken by Crossley who writes [4]:-
[Al-Khwarizmi] may not have been very original...
and Toomer who writes in [1]:-
... Al-Khwarizmi's scientific achievements were at best mediocre.
In [23] Gandz gives this opinion of al-Khwarizmi's algebra:-
Al-Khwarizmi's algebra is regarded as the foundation and cornerstone of the sciences. In a sense, al-Khwarizmi is more entitled to be called "the father of algebra" than Diophantus because al-Khwarizmi is the first to teach algebra in an elementary form and for its own sake, Diophantus is primarily concerned with the theory of numbers.
The next part of al-Khwarizmi's Algebra consists of applications and worked examples. He then goes on to look at rules for finding the area of figures such as the circle and also finding the volume of solids such as the sphere, cone, and pyramid. This section on mensuration certainly has more in common with Hindu and Hebrew texts than it does with any Greek work. The final part of the book deals with the complicated Islamic rules for inheritance but require little from the earlier algebra beyond solving linear equations.

Al-Khwarizmi also wrote a treatise on Hindu-Arabic numerals. The Arabic text is lost but a Latin translation, Algoritmi de numero Indorum in English Al-Khwarizmi on the Hindu Art of Reckoning gave rise to the word algorithm deriving from his name in the title. Unfortunately the Latin translation (translated into English in [19]) is known to be much changed from al-Khwarizmi's original text (of which even the title is unknown). The work describes the Hindu place-value system of numerals based on 1, 2, 3, 4, 5, 6, 7, 8, 9, and 0. The first use of zero as a place holder in positional base notation was probably due to al-Khwarizmi in this work. Methods for arithmetical calculation are given, and a method to find square roots is known to have been in the Arabic original although it is missing from the Latin version. Toomer writes [1]:-
... the decimal place-value system was a fairly recent arrival from India and ... al-Khwarizmi's work was the first to expound it systematically. Thus, although elementary, it was of seminal importance.
Seven twelfth century Latin treatises based on this lost Arabic treatise by al-Khwarizmi on arithmetic are discussed in [17].

Another important work by al-Khwarizmi was his work Sindhind zij on astronomy. The work, described in detail in [48], is based in Indian astronomical works [47]:-
... as opposed to most later Islamic astronomical handbooks, which utilised the Greek planetary models laid out in Ptolemy's "Almagest" ...
The Indian text on which al-Khwarizmi based his treatise was one which had been given to the court in Baghdad around 770 as a gift from an Indian political mission. There are two versions of al-Khwarizmi's work which he wrote in Arabic but both are lost. In the tenth century al-Majriti made a critical revision of the shorter version and this was translated into Latin by Adelard of Bath. There is also a Latin version of the longer version and both these Latin works have survived. The main topics covered by al-Khwarizmi in the Sindhind zij are calendars; calculating true positions of the sun, moon and planets, tables of sines and tangents; spherical astronomy; astrological tables; parallax and eclipse calculations; and visibility of the moon. A related manuscript, attributed to al-Khwarizmi, on spherical trigonometry is discussed in [39].

Although his astronomical work is based on that of the Indians, and most of the values from which he constructed his tables came from Hindu astronomers, al-Khwarizmi must have been influenced by Ptolemy's work too [1]:-
It is certain that Ptolemy's tables, in their revision by Theon of Alexandria, were already known to some Islamic astronomers; and it is highly likely that they influenced, directly or through intermediaries, the form in which Al-Khwarizmi's tables were cast.
Al-Khwarizmi wrote a major work on geography which give latitudes and longitudes for 2402 localities as a basis for a world map. The book, which is based on Ptolemy's Geography, lists with latitudes and longitudes, cities, mountains, seas, islands, geographical regions, and rivers. The manuscript does include maps which on the whole are more accurate than those of Ptolemy. In particular it is clear that where more local knowledge was available to al-Khwarizmi such as the regions of Islam, Africa and the Far East then his work is considerably more accurate than that of Ptolemy, but for Europe al-Khwarizmi seems to have used Ptolemy's data.

A number of minor works were written by al-Khwarizmi on topics such as the astrolabe, on which he wrote two works, on the sundial, and on the Jewish calendar. He also wrote a political history containing horoscopes of prominent persons.

We have already discussed the varying views of the importance of al-Khwarizmi's algebra which was his most important contribution to mathematics. Let us end this article with a quote by Mohammad Kahn, given in [3]:-
In the foremost rank of mathematicians of all time stands Al-Khwarizmi. He composed the oldest works on arithmetic and algebra. They were the principal source of mathematical knowledge for centuries to come in the East and the West. The work on arithmetic first introduced the Hindu numbers to Europe, as the very name algorism signifies; and the work on algebra ... gave the name to this important branch of mathematics in the European world...

### References (show)

1. G J Toomer, Biography in Dictionary of Scientific Biography (New York 1970-1990).
2. Biography in Encyclopaedia Britannica.
http://www.britannica.com/biography/al-Khwarizmi
3. A A al'Daffa, The Muslim contribution to mathematics (London, 1978).
4. J N Crossley, The emergence of number (Singapore, 1980).
5. A F Faizullaev, The scientific heritage of Muhammad al-Khwarizmi (Russian) (Tashkent, 1983).
6. S Gandz (ed.), The geometry of al-Khwarizmi (Berlin, 1932).
7. E Grant (ed.), A source book in medieval science (Cambridge, 1974).
8. O Neugebauer, The exact sciences in Antiquity (New York, 1969).
9. R Rashed, The development of Arabic mathematics : between arithmetic and algebra (London, 1994).
10. R Rashed, Entre arithmétique et algèbre: Recherches sur l'histoire des mathématiques arabes (Paris, 1984).
11. F Rosen (trs.), Muhammad ibn Musa Al-Khwarizmi : Algebra (London, 1831).
12. K F Abdulla-Zade, al-Khwarizmi and the Baghdad astronomers (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 178-183.
13. M Abdullaev, al-Khwarizmi and scientific thought in Daghestan (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 228-232.
14. A Abdurakhmanov, al-Khwarizmi : great mathematician (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 149-151.
15. M A Akhadova, The mathematics of India and al-Khwarizmi (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 238-240.
16. S al-Khalidi, al-Khwarizmi : scholar of astronomical and mathematical geography (Arabic), in Proceedings of the Seventh Annual Conference on the History of Arabic Science (Arabic) (Aleppo, 1986), 55-63.
17. A Allard, La diffusion en occident des premières oeuvres latines issues de l'arithmétique perdue d'al-Khwarizmi, J. Hist. Arabic Sci. 9 (1-2) (1991), 101-105.
18. P G Bulgakov, al-Biruni and al-Khwarizmi (Russian), in Mathematics and astronomy in the works of scientists of the medieval East (Tashkent, 1977), 117-122, 140.
19. J N Crossley and A S Henry, Thus spake al-Khwarizmi : a translation of the text of Cambridge University Library ms. Ii.vi.5, Historia Math. 17 (2) (1990), 103-131.
20. Y Dold-Samplonius, Developments in the solution to the equation cx€ + bx = a from al-Khwarizmi to Fibonacci, in From deferent to equant (New York, 1987), 71-87.
21. R Z Du, al-Khwarizmi and his algebraic treatise (Chinese), Math. Practice Theory (1) (1987), 79-85.
22. K Fogel, How al-Khwarizmi became known in Germany (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 85-91.
23. S Gandz, The sources of al-Khwarizmi's algebra, Osiris, i (1936), 263-77.
24. J P Hogendijk, al-Khwarizmi's table of the 'sine of the hours' and the underlying sine table, Historia Sci. 42 (1991), 1-12.
25. B B Hughes, Robert of Chester's Latin translation of al-Khwarizmi's 'al-Jabr', Boethius : Texts and Essays on the History of the Exact Sciences XIV (Stuttgart, 1989).
26. D K Ibadov, The work of al-Khwarizmi in the estimation of Eastern encyclopedic scholars of the 10th - 16th centuries (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 265-268.
27. W Kaunzner, Über eine frühe lateinische Bearbeitung der Algebra al-Khwarizmis in MS Lyell 52 der Bodleian Library Oxford, Arch. Hist. Exact Sci. 32 (1) (1985), 1-16.
28. E S Kennedy, Al-Khwarizmi on the Jewish calendar, Scripta Math. 27 (1964), 55-59.
29. A S Kennedy and W Ukashah, al-Khwarizmi's planetary latitude tables, Centaurus 14 (1969), 86-96.
30. M M Khairullaev, al-Khwarizmi and his era (Russian), Voprosy Istor. Estestvoznan. i Tekhn. (3) (1983), 121-127.
31. P Kunitzsch, al-Khwarizmi as a source for the 'Sententie astrolabii', in From deferent to equant (New York, 1987), 227-236.
32. G P Matvievskaya, The algebraic treatise of al-Khwarizmi (Russian), in On the history of medieval Eastern mathematics and astronomy (Tashkent, 1983), 3-22.
33. G P Matvievskaya, History of the study of the scientific work of al-Khwarizmi (Russian),, in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 72-82.
34. C A Nallino, Al'Khuwarizimi e il suo rifacimento della Geografia di Tolomeo, Raccolta di scritti editie inediti V (Rome, 1944), 458-532.
35. K H Parshall, The art of algebra from al-Khwarizmi to Viète : a study in the natural selection of ideas, Hist. of Sci. 26 (72, 2) (1988), 129-164.
36. M A Pathan, Al-Khwarizmi, Math. Ed. 6 (2) (1989), 92-94.
37. D Pingree, al-Khwarizmi in Samaria, Arch. Internat. Hist. Sci. 33 (110) (1983), 15-21.
38. B A Rosenfeld, 'Geometric trigonometry' in treatises of al-Khwarizmi, al-Mahani and ibn al-Haytham, in Vestigia mathematica (Amsterdam, 1993), 305-308.
39. B A Rozenfeld, al-Khwarizmi's spherical trigonometry (Russian), Istor.-Mat. Issled. 32-33 (1990), 325-339.
40. B A Rozenfeld, Number theory, geometry and astronomy in al-Khwarizmi's 'Book of Indian arithmetic' (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 66-72.
41. B A Rozenfeld and N D Sergeeva, The astronomical treatises of al-Khwarizmi (Russian), Istor.-Astronom. Issled. 13 (1977), 201-218.
42. M M Rozhanskaya, The historical-astronomical value of al-Khwarizmi's 'zij' (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 158-165.
43. A S Sadykov, al-Khwarizmi : his era, life and work (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 8-13.
44. M Sani, The life and work of al-Khwarizmi, Menemui Mat. 4 (1) (1982), 1-9.
45. K S Siddikov, Muhammad al-Khwarizmi : creator of algebra (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 152-154.
46. S Kh Sirazhdinov and G P Matvievskaya, Muhammad ibn Musa al-Khwarizmi and his contribution to the history of science (Russian), Voprosy Istor. Estestvoznan. i Tekhn. (1) (1983), 108-119.
47. Z K Sokolovskaya, The 'pretelescopic' period of the history of astronomical instruments. al-Khwarizmi in the development of precision instruments in the Near and Middle East (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 165-178.
48. B van Dalen, Al'Khwarizmi's astronomical tables revisited : analysis of the equation of time, in From Baghdad to Barcelona (Barcelona, 1996), 195-252.
49. K Vogel, Wie wurden al-Khwarizmi s mathematische Schriften in Deutschland bekannt?, Sudhoffs Arch. 68 (2) (1984), 230-234.
50. A I Volodarskii, al-Khwarizmi and Indian mathematics (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 232-238.
51. E Yu Yusupov and M M Kharullaev, The creative legacy of al-Khwarizmi and his place in the history of science (Russian), Voprosy Filos. (8) (1983), 140-146, 174.
52. Kh Zemanek, Manuscripts of al-Khwarizmi's works (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 115-121.
53. V K Zharov, Instrumental counting in al-Khwarizmi's arithmetical treatise (Russian), in The great medieval scientist al-Khwarizmi (Tashkent, 1985), 154-157.