# Abu Ja'far Muhammad ibn Musa Al-Khwarizmi

### Born: about 780 in possibly Baghdad (now in Iraq)

Died: about 850

**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:-

However, Rashed [7], put a rather different interpretation on the same words by Al-Tabari:-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.

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.... 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.

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]):-

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]:-... 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.

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 wasWhen 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.

*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:

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}.

*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 and10roots are equal to39units. 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 of39? 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 are10. Therefore take5, which multiplied by itself gives25, an amount which you add to39giving64. Having taken then the square root of this which is8, subtract from it half the roots,5leaving3. The number three therefore represents one root of this square, which itself, of course is9. 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 10*x* 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 ^{5}/_{2} × ^{5}/_{2} = ^{25}/_{4}. Hence the outside square in Fig 3 has area 4 × ^{25}/_{4} + 39 = 25 + 39 = 64. The side of the square is therefore 8. But the side is of length ^{5}/_{2} + *x* + ^{5}/_{2} 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]:-

Rashed [9] writes that al-Khwarizmi's:-... 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".

However, Gandz in [6] (see also [23]), argues for a very different view:-... treatment was very probably inspired by recent knowledge of the "Elements".

I [EFR] think that it is clear that whether or not al-Khwarizmi had studied Euclid'sEuclid'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.

*Elements*, he was influenced by other geometrical works. As Parshall writes in [35]:-

Al-Khwarizmi continues his study of algebra in... because his treatment of practical geometry so closely followed that of the Hebrew text, Mishnat ha Middot, which dated from around150AD, the evidence of Semitic ancestry exists.

*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*)

If this interpretation is correct, then al-Khwarizmi was as Sarton writes:-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...

In a similar vein Rashed writes [9]:-... the greatest mathematician of the time, and if one takes all the circumstances into account, one of the greatest of all time....

but a different view is taken by Crossley who writes [4]:-It is impossible to overstress the originality of the conception and style of al-Khwarizmi's algebra...

[and Toomer who writes in [1]:-Al-Khwarizmi]may not have been very original...

In [23] Gandz gives this opinion of al-Khwarizmi's algebra:-... Al-Khwarizmi's scientific achievements were at best mediocre.

The next part of al-Khwarizmi'sAl-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.

*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]:-

Seven twelfth century Latin treatises based on this lost Arabic treatise by al-Khwarizmi on arithmetic are discussed in [17].... 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.

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]:-

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... as opposed to most later Islamic astronomical handbooks, which utilised the Greek planetary models laid out in Ptolemy's "Almagest"...

*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]:-

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'sIt 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.

*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...

**Article by:** *J J O'Connor* and *E F Robertson*

**July 1999**

**MacTutor History of Mathematics**

[http://www-history.mcs.st-andrews.ac.uk/Biographies/Al-Khwarizmi.html]