History of algebra

Algebra can essentially be considered as doing computations similar to those of arithmetic but with non-numerical mathematical objects. However, until the 19th century, algebra consisted essentially of the theory of equations. For example, the fundamental theorem of algebra belongs to the theory of equations and is not, nowadays, considered as belonging to algebra (in fact, every proof must use the completeness of the real numbers, which is not an algebraic property).

This article describes the history of the theory of equations, called here "algebra", from the origins to the emergence of algebra as a separate area of mathematics.

Etymology
The word "algebra" is derived from the Arabic word الجبر al-jabr, and this comes from the treatise written in the year 830 by the medieval Persian mathematician, Al-Khwārizmī, whose Arabic title, Kitāb al-muḫtaṣar fī ḥisāb al-ğabr wa-l-muqābala, can be translated as The Compendious Book on Calculation by Completion and Balancing. The treatise provided for the systematic solution of linear and quadratic equations. According to one history, "[i]t is not certain just what the terms al-jabr and muqabalah mean, but the usual interpretation is similar to that implied in the previous translation. The word 'al-jabr' presumably meant something like 'restoration' or 'completion' and seems to refer to the transposition of subtracted terms to the other side of an equation; the word 'muqabalah' is said to refer to 'reduction' or 'balancing'—that is, the cancellation of like terms on opposite sides of the equation. Arabic influence in Spain long after the time of al-Khwarizmi is found in Don Quixote, where the word 'algebrista' is used for a bone-setter, that is, a 'restorer'." The term is used by al-Khwarizmi to describe the operations that he introduced, "reduction" and "balancing", referring to the transposition of subtracted terms to the other side of an equation, that is, the cancellation of like terms on opposite sides of the equation.

Algebraic expression
Algebra did not always make use of the symbolism that is now ubiquitous in mathematics; instead, it went through three distinct stages. The stages in the development of symbolic algebra are approximately as follows:


 * Rhetorical algebra, in which equations are written in full sentences. For example, the rhetorical form of $$x + 1 = 2$$ is "The thing plus one equals two" or possibly "The thing plus 1 equals 2". Rhetorical algebra was first developed by the ancient Babylonians and remained dominant up to the 16th century.


 * Syncopated algebra, in which some symbolism is used, but which does not contain all of the characteristics of symbolic algebra. For instance, there may be a restriction that subtraction may be used only once within one side of an equation, which is not the case with symbolic algebra. Syncopated algebraic expression first appeared in Diophantus' Arithmetica (3rd century AD), followed by Brahmagupta's Brahma Sphuta Siddhanta (7th century).
 * Symbolic algebra, in which full symbolism is used. Early steps toward this can be seen in the work of several Islamic mathematicians such as Ibn al-Banna (13th–14th centuries) and al-Qalasadi (15th century), although fully symbolic algebra was developed by François Viète (16th century). Later, René Descartes (17th century) introduced the modern notation (for example, the use of x—see below) and showed that the problems occurring in geometry can be expressed and solved in terms of algebra (Cartesian geometry).

Equally important as the use or lack of symbolism in algebra was the degree of the equations that were addressed. Quadratic equations played an important role in early algebra; and throughout most of history, until the early modern period, all quadratic equations were classified as belonging to one of three categories. where $$p$$ and $$q$$ are positive. This trichotomy comes about because quadratic equations of the form $$x^2 + px + q = 0,$$with $$p$$ and $$q$$ positive, have no positive roots.
 * $$x^2 + px = q$$
 * $$x^2 = px + q$$
 * $$x^2 + q = px$$

In between the rhetorical and syncopated stages of symbolic algebra, a geometric constructive algebra was developed by classical Greek and Vedic Indian mathematicians in which algebraic equations were solved through geometry. For instance, an equation of the form $$x^2 = A$$ was solved by finding the side of a square of area $$A.$$

Conceptual stages
In addition to the three stages of expressing algebraic ideas, some authors recognized four conceptual stages in the development of algebra that occurred alongside the changes in expression. These four stages were as follows:


 * Geometric stage, where the concepts of algebra are largely geometric. This dates back to the Babylonians and continued with the Greeks, and was later revived by Omar Khayyám.
 * Static equation-solving stage, where the objective is to find numbers satisfying certain relationships. The move away from the geometric stage dates back to Diophantus and Brahmagupta, but algebra didn't decisively move to the static equation-solving stage until Al-Khwarizmi introduced generalized algorithmic processes for solving algebraic problems.
 * Dynamic function stage, where motion is an underlying idea. The idea of a function began emerging with Sharaf al-Dīn al-Tūsī, but algebra did not decisively move to the dynamic function stage until Gottfried Leibniz.
 * Abstract stage, where mathematical structure plays a central role. Abstract algebra is largely a product of the 19th and 20th centuries.

Babylon
The origins of algebra can be traced to the ancient Babylonians, who developed a positional number system that greatly aided them in solving their rhetorical algebraic equations. The Babylonians were not interested in exact solutions, but rather approximations, and so they would commonly use linear interpolation to approximate intermediate values. One of the most famous tablets is the Plimpton 322 tablet, created around 1900–1600 BC, which gives a table of Pythagorean triples and represents some of the most advanced mathematics prior to Greek mathematics.

Babylonian algebra was much more advanced than the Egyptian algebra of the time; whereas the Egyptians were mainly concerned with linear equations the Babylonians were more concerned with quadratic and cubic equations. The Babylonians had developed flexible algebraic operations with which they were able to add equals to equals and multiply both sides of an equation by like quantities so as to eliminate fractions and factors. They were familiar with many simple forms of factoring, three-term quadratic equations with positive roots, and many cubic equations, although it is not known if they were able to reduce the general cubic equation.

Ancient Egypt


Ancient Egyptian algebra dealt mainly with linear equations while the Babylonians found these equations too elementary, and developed mathematics to a higher level than the Egyptians.

The Rhind Papyrus, also known as the Ahmes Papyrus, is an ancient Egyptian papyrus written c. 1650 BC by Ahmes, who transcribed it from an earlier work that he dated to between 2000 and 1800 BC. It is the most extensive ancient Egyptian mathematical document known to historians. The Rhind Papyrus contains problems where linear equations of the form $$x + ax = b$$ and $$x + ax + bx = c$$ are solved, where $$a, b,$$ and $$c$$ are known and $$x,$$ which is referred to as "aha" or heap, is the unknown. The solutions were possibly, but not likely, arrived at by using the "method of false position", or regula falsi, where first a specific value is substituted into the left hand side of the equation, then the required arithmetic calculations are done, thirdly the result is compared to the right hand side of the equation, and finally the correct answer is found through the use of proportions. In some of the problems the author "checks" his solution, thereby writing one of the earliest known simple proofs.

Greek mathematics
It is sometimes alleged that the Greeks had no algebra, but this is disputed. By the time of Plato, Greek mathematics had undergone a drastic change. The Greeks created a geometric algebra where terms were represented by sides of geometric objects, usually lines, that had letters associated with them, and with this new form of algebra they were able to find solutions to equations by using a process that they invented, known as "the application of areas". "The application of areas" is only a part of geometric algebra and it is thoroughly covered in Euclid's Elements.

An example of geometric algebra would be solving the linear equation $$ax = bc.$$ The ancient Greeks would solve this equation by looking at it as an equality of areas rather than as an equality between the ratios $$a : b$$ and $$c : x.$$ The Greeks would construct a rectangle with sides of length $$b$$ and $$c,$$ then extend a side of the rectangle to length $$a,$$ and finally they would complete the extended rectangle so as to find the side of the rectangle that is the solution.

Bloom of Thymaridas
Iamblichus in Introductio arithmatica says that Thymaridas (c. 400 BCE – c. 350 BCE) worked with simultaneous linear equations. In particular, he created the then famous rule that was known as the "bloom of Thymaridas" or as the "flower of Thymaridas", which states that: "If the sum of $n$ quantities be given, and also the sum of every pair containing a particular quantity, then this particular quantity is equal to $1/(n - 2)$ of the difference between the sums of these pairs and the first given sum." or using modern notation, the solution of the following system of $$n$$ linear equations in $$n$$ unknowns, $$x + x_1 + x_2 + \cdots + x_{n-1} = s$$

$$x + x_1 = m_1$$

$$x + x_2 = m_2$$

$$\vdots$$

$$x + x_{n-1} = m_{n-1}$$ is, "$x = \cfrac{(m_1 + m_2 + ... + m_{n-1}) - s}{n-2} = \cfrac{ (\sum_{i=1}^{n-1} m_i) - s}{n-2}.$"

Iamblichus goes on to describe how some systems of linear equations that are not in this form can be placed into this form.

Euclid of Alexandria
Euclid (Greek: Εὐκλείδης) was a Greek mathematician who flourished in Alexandria, Egypt, almost certainly during the reign of Ptolemy I (323–283 BCE). Neither the year nor place of his birth have been established, nor the circumstances of his death.

Euclid is regarded as the "father of geometry". His Elements is the most successful textbook in the history of mathematics. Although he is one of the most famous mathematicians in history there are no new discoveries attributed to him; rather he is remembered for his great explanatory skills. The Elements is not, as is sometimes thought, a collection of all Greek mathematical knowledge to its date; rather, it is an elementary introduction to it.

Elements
The geometric work of the Greeks, typified in Euclid's Elements, provided the framework for generalizing formulae beyond the solution of particular problems into more general systems of stating and solving equations.

Book II of the Elements contains fourteen propositions, which in Euclid's time were extremely significant for doing geometric algebra. These propositions and their results are the geometric equivalents of our modern symbolic algebra and trigonometry. Today, using modern symbolic algebra, we let symbols represent known and unknown magnitudes (i.e. numbers) and then apply algebraic operations on them, while in Euclid's time magnitudes were viewed as line segments and then results were deduced using the axioms or theorems of geometry. "Book II of the Elements is a short one, containing only fourteen propositions, not one of which plays any role in modern textbooks; yet in Euclid's day this book was of great significance. This sharp discrepancy between ancient and modern views is easily explained—today we have symbolic algebra and trigonometry that have replaced the geometric equivalents from Greece. For instance, Proposition 1 of Book II states that "If there be two straight lines, and one of them be cut into any number of segments whatever, the rectangle contained by the two straight lines is equal to the rectangles contained by the uncut straight line and each of the segments." This theorem, which asserts (Fig. 7.5) that AD (AP + PR + RB) = AD·AP + AD·PR + AD·RB, is nothing more than a geometric statement of one of the fundamental laws of arithmetic known today as the distributive law: $$a (b + c + d) = ab + ac + ad.$$ In later books of the Elements (V and VII) we find demonstrations of the commutative and associative laws for multiplication. Whereas in our time magnitudes are represented by letters that are understood to be numbers (either known or unknown) on which we operate with algorithmic rules of algebra, in Euclid's day magnitudes were pictured as line segments satisfying the axions and theorems of geometry. It is sometimes asserted that the Greeks had no algebra, but this is patently false. They had Book II of the Elements, which is geometric algebra and served much the same purpose as does our symbolic algebra. There can be little doubt that modern algebra greatly facilitates the manipulation of relationships among magnitudes. But it is undoubtedly also true that a Greek geometer versed in the fourteen theorems of Euclid's "algebra" was far more adept in applying these theorems to practical mensuration than is an experienced geometer of today. Ancient geometric "algebra" was not an ideal tool, but it was far from ineffective. Euclid's statement (Proposition 4), "If a straight line be cut at random, the square on the whole is equal to the squares on the segments and twice the rectangle contained by the segments, is a verbose way of saying that $$(a + b)^2 = a^2 + 2ab + b^2$$,"

Many basic laws of addition and multiplication are included or proved geometrically in the Elements. For instance, proposition 1 of Book II states:


 * If there be two straight lines, and one of them be cut into any number of segments whatever, the rectangle contained by the two straight lines is equal to the rectangles contained by the uncut straight line and each of the segments.

But this is nothing more than the geometric version of the (left) distributive law, $$a(b + c + d) = ab + ac + ad$$; and in Books V and VII of the Elements the commutative and associative laws for multiplication are demonstrated.

Many basic equations were also proved geometrically. For instance, proposition 5 in Book II proves that $$a^2 - b^2 = (a + b)(a - b),$$ and proposition 4 in Book II proves that $$(a + b)^2 = a^2 + 2ab + b^2.$$

Furthermore, there are also geometric solutions given to many equations. For instance, proposition 6 of Book II gives the solution to the quadratic equation $$ax + x^2 = b^2,$$ and proposition 11 of Book II gives a solution to $$ax + x^2 = a^2.$$

Data
Data is a work written by Euclid for use at the schools of Alexandria and it was meant to be used as a companion volume to the first six books of the Elements. The book contains some fifteen definitions and ninety-five statements, of which there are about two dozen statements that serve as algebraic rules or formulas. Some of these statements are geometric equivalents to solutions of quadratic equations. For instance, Data contains the solutions to the equations $$d x^2 - adx + b^2c = 0$$ and the familiar Babylonian equation $$xy = a^2, x \pm y = b.$$

Conic sections
A conic section is a curve that results from the intersection of a cone with a plane. There are three primary types of conic sections: ellipses (including circles), parabolas, and hyperbolas. The conic sections are reputed to have been discovered by Menaechmus (c. 380 BC – c. 320 BC) and since dealing with conic sections is equivalent to dealing with their respective equations, they played geometric roles equivalent to cubic equations and other higher order equations.

Menaechmus knew that in a parabola, the equation $$y^2 = l x$$ holds, where $$l$$ is a constant called the latus rectum, although he was not aware of the fact that any equation in two unknowns determines a curve. He apparently derived these properties of conic sections and others as well. Using this information it was now possible to find a solution to the problem of the duplication of the cube by solving for the points at which two parabolas intersect, a solution equivalent to solving a cubic equation.

We are informed by Eutocius that the method he used to solve the cubic equation was due to Dionysodorus (250 BC – 190 BC). Dionysodorus solved the cubic by means of the intersection of a rectangular hyperbola and a parabola. This was related to a problem in Archimedes' On the Sphere and Cylinder. Conic sections would be studied and used for thousands of years by Greek, and later Islamic and European, mathematicians. In particular Apollonius of Perga's famous Conics deals with conic sections, among other topics.

China
Chinese mathematics dates to at least 300 BC with the Zhoubi Suanjing, generally considered to be one of the oldest Chinese mathematical documents.

Nine Chapters on the Mathematical Art
Chiu-chang suan-shu or The Nine Chapters on the Mathematical Art, written around 250 BC, is one of the most influential of all Chinese math books and it is composed of some 246 problems. Chapter eight deals with solving determinate and indeterminate simultaneous linear equations using positive and negative numbers, with one problem dealing with solving four equations in five unknowns.

Sea-Mirror of the Circle Measurements
Ts'e-yuan hai-ching, or Sea-Mirror of the Circle Measurements, is a collection of some 170 problems written by Li Zhi (or Li Ye) (1192 – 1279 CE). He used fan fa, or Horner's method, to solve equations of degree as high as six, although he did not describe his method of solving equations.

Mathematical Treatise in Nine Sections
Shu-shu chiu-chang, or Mathematical Treatise in Nine Sections, was written by the wealthy governor and minister Ch'in Chiu-shao (c. 1202 – c. 1261). With the introduction of a method for solving simultaneous congruences, now called the Chinese remainder theorem, it marks the high point in Chinese.

Magic squares
The earliest known magic squares appeared in China. In Nine Chapters the author solves a system of simultaneous linear equations by placing the coefficients and constant terms of the linear equations into a magic square (i.e. a matrix) and performing column reducing operations on the magic square. The earliest known magic squares of order greater than three are attributed to Yang Hui (fl. c. 1261 – 1275), who worked with magic squares of order as high as ten.

Precious Mirror of the Four Elements
Ssy-yüan yü-chien《四元玉鑒》, or Precious Mirror of the Four Elements, was written by Chu Shih-chieh in 1303 and it marks the peak in the development of Chinese algebra. The four elements, called heaven, earth, man and matter, represented the four unknown quantities in his algebraic equations. The Ssy-yüan yü-chien deals with simultaneous equations and with equations of degrees as high as fourteen. The author uses the method of fan fa, today called Horner's method, to solve these equations.

The Precious Mirror opens with a diagram of the arithmetic triangle (Pascal's triangle) using a round zero symbol, but Chu Shih-chieh denies credit for it. A similar triangle appears in Yang Hui's work, but without the zero symbol.

There are many summation equations given without proof in the Precious mirror. A few of the summations are:


 * $$1^2 + 2^2 + 3^2 + \cdots + n^2 = {n(n + 1)(2n + 1)\over 3!}$$
 * $$1 + 8 + 30 + 80 + \cdots + {n^2(n + 1)(n + 2)\over 3!} = {n(n + 1)(n + 2)(n + 3)(4n + 1)\over 5!}$$

Diophantus
Diophantus was a Hellenistic mathematician who lived c. 250 CE, but the uncertainty of this date is so great that it may be off by more than a century. He is known for having written Arithmetica, a treatise that was originally thirteen books but of which only the first six have survived. Arithmetica is the earliest extant work present that solve arithmetic problems by algebra. Diophantus however did not invent the method of algebra, which existed before him. Algebra was practiced and diffused orally by practitioners, with Diophantus picking up techniques to solve problems in arithmetic.

In modern algebra a polynomial is a linear combination of variable x that is built of exponentiation, scalar multiplication, addition, and subtraction. The algebra of Diophantus, similar to medieval arabic algebra is an aggregation of objects of different types with no operations present

For example, in Diophantus a polynomial "6 4 inverse Powers, 25 Powers lacking 9 units", which in modern notation is $$6\tfrac14x^{-1} +25x^2 - 9$$ is a collection of $$6\tfrac14$$ object of one kind with 25 object of second kind which lack 9 objects of third kind with no operation present.

Similar to medieval Arabic algebra Diophantus uses three stages to solve a problem by Algebra:

1) An unknown is named and an equation is set up

2) An equation is simplified to a standard form( al-jabr and al-muqābala in arabic)

3) Simplified equation is solved

Diophantus does not give a classification of equations in six types like Al-Khwarizmi in extant parts of Arithmetica. He does say that he would give solution to three terms equations later, so this part of the work is possibly just lost

In Arithmetica, Diophantus is the first to use symbols for unknown numbers as well as abbreviations for powers of numbers, relationships, and operations; thus he used what is now known as syncopated algebra. The main difference between Diophantine syncopated algebra and modern algebraic notation is that the former lacked special symbols for operations, relations, and exponentials.

So, for example, what we would write as


 * $$x^3 - 2x^2 + 10x -1 = 5,$$

which can be rewritten as


 * $$\left({x^3}1 + {x}10\right) - \left({x^2}2 + {x^0}1\right) = {x^0}5,$$

would be written in Diophantus's syncopated notation as


 * $$\Kappa^{\upsilon} \overline{\alpha} \; \zeta \overline{\iota} \;\, \pitchfork \;\, \Delta^{\upsilon} \overline{\beta} \; \Mu \overline{\alpha} \,\;$$ἴ$$\sigma\;\, \Mu \overline{\varepsilon}$$

where the symbols represent the following:

Unlike in modern notation, the coefficients come after the variables and that addition is represented by the juxtaposition of terms. A literal symbol-for-symbol translation of Diophantus's syncopated equation into a modern symbolic equation would be the following:


 * $${x^3}1 {x}10 - {x^2}2 {x^0}1 = {x^0}5$$

where to clarify, if the modern parentheses and plus are used then the above equation can be rewritten as:


 * $$\left({x^3}1 + {x}10\right) - \left({x^2}2 + {x^0}1\right) = {x^0}5$$

However the distinction between "rhetorical algebra", "syncopated algebra" and "symbolic algebra" is considered outdated by Jeffrey Oaks and Jean Christianidis. The problems were solved on dust-board using some notation, while in books solution were written in "rhetorical style".

Arithmetica also makes use of the identities:


 * {| styles="background:none;"


 * $$(a^2 + b^2)(c^2 + d^2)$$
 * $$= (ac + db)^2 + (bc - ad)^2$$
 * $$= (ad + bc)^2 + (ac - bd)^2$$
 * }
 * $$= (ad + bc)^2 + (ac - bd)^2$$
 * }
 * }

India
The Indian mathematicians were active in studying about number systems. The earliest known Indian mathematical documents are dated to around the middle of the first millennium BC (around the 6th century BC).

The recurring themes in Indian mathematics are, among others, determinate and indeterminate linear and quadratic equations, simple mensuration, and Pythagorean triples.

Aryabhata
Aryabhata (476–550) was an Indian mathematician who authored Aryabhatiya. In it he gave the rules,
 * $$1^2 + 2^2 + \cdots + n^2 = {n(n + 1)(2n + 1) \over 6}$$

and
 * $$1^3 + 2^3 + \cdots + n^3 = (1 + 2 + \cdots + n)^2$$

Brahma Sphuta Siddhanta
Brahmagupta (fl. 628) was an Indian mathematician who authored Brahma Sphuta Siddhanta. In his work Brahmagupta solves the general quadratic equation for both positive and negative roots. In indeterminate analysis Brahmagupta gives the Pythagorean triads $$m, \frac{1}{2}\left({m^2\over n} - n\right),$$ $$\frac{1}{2}\left({m^2\over n} + n\right),$$ but this is a modified form of an old Babylonian rule that Brahmagupta may have been familiar with. He was the first to give a general solution to the linear Diophantine equation $$ax + by = c,$$ where $$a, b,$$ and $$c$$ are integers. Unlike Diophantus who only gave one solution to an indeterminate equation, Brahmagupta gave all integer solutions; but that Brahmagupta used some of the same examples as Diophantus has led some historians to consider the possibility of a Greek influence on Brahmagupta's work, or at least a common Babylonian source.

Like the algebra of Diophantus, the algebra of Brahmagupta was syncopated. Addition was indicated by placing the numbers side by side, subtraction by placing a dot over the subtrahend, and division by placing the divisor below the dividend, similar to our modern notation but without the bar. Multiplication, evolution, and unknown quantities were represented by abbreviations of appropriate terms. The extent of Greek influence on this syncopation, if any, is not known and it is possible that both Greek and Indian syncopation may be derived from a common Babylonian source.

Bhāskara II
Bhāskara II (1114 – c. 1185) was the leading mathematician of the 12th century. In Algebra, he gave the general solution of Pell's equation. He is the author of Lilavati and Vija-Ganita, which contain problems dealing with determinate and indeterminate linear and quadratic equations, and Pythagorean triples and he fails to distinguish between exact and approximate statements. Many of the problems in Lilavati and Vija-Ganita are derived from other Hindu sources, and so Bhaskara is at his best in dealing with indeterminate analysis.

Bhaskara uses the initial symbols of the names for colors as the symbols of unknown variables. So, for example, what we would write today as


 * $$( -x - 1 ) + ( 2x - 8 ) = x - 9$$

Bhaskara would have written as
 * .   _.
 * ya 1 ru 1
 * ya 2 ru 8
 * Sum ya 1 ru 9
 * Sum ya 1 ru 9
 * Sum ya 1 ru 9

where ya indicates the first syllable of the word for black, and ru is taken from the word species. The dots over the numbers indicate subtraction.

Islamic world


The first century of the Islamic Arab Empire saw almost no scientific or mathematical achievements since the Arabs, with their newly conquered empire, had not yet gained any intellectual drive and research in other parts of the world had faded. In the second half of the 8th century, Islam had a cultural awakening, and research in mathematics and the sciences increased. The Muslim Abbasid caliph al-Mamun (809–833) is said to have had a dream where Aristotle appeared to him, and as a consequence al-Mamun ordered that Arabic translation be made of as many Greek works as possible, including Ptolemy's Almagest and Euclid's Elements. Greek works would be given to the Muslims by the Byzantine Empire in exchange for treaties, as the two empires held an uneasy peace. Many of these Greek works were translated by Thabit ibn Qurra (826–901), who translated books written by Euclid, Archimedes, Apollonius, Ptolemy, and Eutocius.

Arabic mathematicians established algebra as an independent discipline, and gave it the name "algebra" (al-jabr). They were the first to teach algebra in an elementary form and for its own sake. There are three theories about the origins of Arabic Algebra. The first emphasizes Hindu influence, the second emphasizes Mesopotamian or Persian-Syriac influence and the third emphasizes Greek influence. Many scholars believe that it is the result of a combination of all three sources.

Throughout their time in power, the Arabs used a fully rhetorical algebra, where often even the numbers were spelled out in words. The Arabs would eventually replace spelled out numbers (e.g. twenty-two) with Arabic numerals (e.g. 22), but the Arabs did not adopt or develop a syncopated or symbolic algebra until the work of Ibn al-Banna, who developed a symbolic algebra in the 13th century, followed by Abū al-Hasan ibn Alī al-Qalasādī in the 15th century.

Al-jabr wa'l muqabalah
The Muslim Persian mathematician Muhammad ibn Mūsā al-Khwārizmī, described as the father or founder  of algebra, was a faculty member of the "House of Wisdom" (Bait al-Hikma) in Baghdad, which was established by Al-Mamun. Al-Khwarizmi, who died around 850 CE, wrote more than half a dozen mathematical and astronomical works. One of al-Khwarizmi's most famous books is entitled Al-jabr wa'l muqabalah or The Compendious Book on Calculation by Completion and Balancing, and it gives an exhaustive account of solving polynomials up to the second degree. The book also introduced the fundamental concept of "reduction" and "balancing", referring to the transposition of subtracted terms to the other side of an equation, that is, the cancellation of like terms on opposite sides of the equation. This is the operation which Al-Khwarizmi originally described as al-jabr. The name "algebra" comes from the "al-jabr" in the title of his book.

R. Rashed and Angela Armstrong write:

"'Al-Khwarizmi's text can be seen to be distinct not only from the Babylonian tablets, but also from Diophantus' Arithmetica. It no longer concerns a series of problems to be resolved, but an exposition which starts with primitive terms in which the combinations must give all possible prototypes for equations, which henceforward explicitly constitute the true object of study. On the other hand, the idea of an equation for its own sake appears from the beginning and, one could say, in a generic manner, insofar as it does not simply emerge in the course of solving a problem, but is specifically called on to define an infinite class of problems.'"

Al-Jabr is divided into six chapters, each of which deals with a different type of formula. The first chapter of Al-Jabr deals with equations whose squares equal its roots $$\left(ax^2 = bx\right),$$ the second chapter deals with squares equal to number $$\left(ax^2 = c\right),$$ the third chapter deals with roots equal to a number $$\left(bx = c\right),$$ the fourth chapter deals with squares and roots equal a number $$\left(ax^2 + bx = c\right),$$ the fifth chapter deals with squares and number equal roots $$\left(ax^2 + c = bx\right),$$ and the sixth and final chapter deals with roots and number equal to squares $$\left(bx + c = ax^2\right).$$ In Al-Jabr, al-Khwarizmi uses geometric proofs, he does not recognize the root $$x = 0,$$ and he only deals with positive roots. He also recognizes that the discriminant must be positive and described the method of completing the square, though he does not justify the procedure. The Greek influence is shown by Al-Jabr's geometric foundations and by one problem taken from Heron. He makes use of lettered diagrams but all of the coefficients in all of his equations are specific numbers since he had no way of expressing with parameters what he could express geometrically; although generality of method is intended.

Al-Khwarizmi most likely did not know of Diophantus's Arithmetica, which became known to the Arabs sometime before the 10th century. And even though al-Khwarizmi most likely knew of Brahmagupta's work, Al-Jabr is fully rhetorical with the numbers even being spelled out in words. So, for example, what we would write as


 * $$x^2 + 10x = 39$$

Diophantus would have written as


 * $$\Delta^{\Upsilon} \overline{\alpha} \varsigma \overline{\iota} \,\;$$ἴ$$\sigma\;\, \Mu \lambda \overline{\theta}$$

And al-Khwarizmi would have written as
 * One square and ten roots of the same amount to thirty-nine dirhems; that is to say, what must be the square which, when increased by ten of its own roots, amounts to thirty-nine?

Logical Necessities in Mixed Equations
'Abd al-Hamīd ibn Turk authored a manuscript entitled Logical Necessities in Mixed Equations, which is very similar to al-Khwarzimi's Al-Jabr and was published at around the same time as, or even possibly earlier than, Al-Jabr. The manuscript gives exactly the same geometric demonstration as is found in Al-Jabr, and in one case the same example as found in Al-Jabr, and even goes beyond Al-Jabr by giving a geometric proof that if the discriminant is negative then the quadratic equation has no solution. The similarity between these two works has led some historians to conclude that Arabic algebra may have been well developed by the time of al-Khwarizmi and 'Abd al-Hamid.

Abu Kamil and al-Karaji
Arabic mathematicians treated irrational numbers as algebraic objects. The Egyptian mathematician Abū Kāmil Shujā ibn Aslam (c. 850–930) was the first to accept irrational numbers in the form of a square root or fourth root as solutions to quadratic equations or as coefficients in an equation. He was also the first to solve three non-linear simultaneous equations with three unknown variables.

Al-Karaji (953–1029), also known as Al-Karkhi, was the successor of Abū al-Wafā' al-Būzjānī (940–998) and he discovered the first numerical solution to equations of the form $$ax^{2n} + bx^n = c.$$ Al-Karaji only considered positive roots. He is also regarded as the first person to free algebra from geometrical operations and replace them with the type of arithmetic operations which are at the core of algebra today. His work on algebra and polynomials gave the rules for arithmetic operations to manipulate polynomials. The historian of mathematics F. Woepcke, in Extrait du Fakhri, traité d'Algèbre par Abou Bekr Mohammed Ben Alhacan Alkarkhi (Paris, 1853), praised Al-Karaji for being "the first who introduced the theory of algebraic calculus". Stemming from this, Al-Karaji investigated binomial coefficients and Pascal's triangle.

Omar Khayyám, Sharaf al-Dīn al-Tusi, and al-Kashi


Omar Khayyám (c. 1050 – 1123) wrote a book on Algebra that went beyond Al-Jabr to include equations of the third degree. Omar Khayyám provided both arithmetic and geometric solutions for quadratic equations, but he only gave geometric solutions for general cubic equations since he mistakenly believed that arithmetic solutions were impossible. His method of solving cubic equations by using intersecting conics had been used by Menaechmus, Archimedes, and Ibn al-Haytham (Alhazen), but Omar Khayyám generalized the method to cover all cubic equations with positive roots. He only considered positive roots and he did not go past the third degree. He also saw a strong relationship between geometry and algebra.

In the 12th century, Sharaf al-Dīn al-Tūsī (1135–1213) wrote the Al-Mu'adalat (Treatise on Equations), which dealt with eight types of cubic equations with positive solutions and five types of cubic equations which may not have positive solutions. He used what would later be known as the "Ruffini-Horner method" to numerically approximate the root of a cubic equation. He also developed the concepts of the maxima and minima of curves in order to solve cubic equations which may not have positive solutions. He understood the importance of the discriminant of the cubic equation and used an early version of Cardano's formula to find algebraic solutions to certain types of cubic equations. Some scholars, such as Roshdi Rashed, argue that Sharaf al-Din discovered the derivative of cubic polynomials and realized its significance, while other scholars connect his solution to the ideas of Euclid and Archimedes.

Sharaf al-Din also developed the concept of a function. In his analysis of the equation $$x^3 + d = bx^2$$ for example, he begins by changing the equation's form to $$x^2(b - x) = d$$. He then states that the question of whether the equation has a solution depends on whether or not the "function" on the left side reaches the value $$d$$. To determine this, he finds a maximum value for the function. He proves that the maximum value occurs when $$x = \frac{2b}{3}$$, which gives the functional value $$\frac{4b^3}{27}$$. Sharaf al-Din then states that if this value is less than $$d$$, there are no positive solutions; if it is equal to $$d$$, then there is one solution at $$x = \frac{2b}{3}$$; and if it is greater than $$d$$, then there are two solutions, one between $$0$$ and $$\frac{2b}{3}$$ and one between $$\frac{2b}{3}$$ and $$b$$.

In the early 15th century, Jamshīd al-Kāshī developed an early form of Newton's method to numerically solve the equation $$x^P - N = 0$$ to find roots of $$N$$. Al-Kāshī also developed decimal fractions and claimed to have discovered it himself. However, J. Lennart Berggrenn notes that he was mistaken, as decimal fractions were first used five centuries before him by the Baghdadi mathematician Abu'l-Hasan al-Uqlidisi as early as the 10th century.

Al-Hassār, Ibn al-Banna, and al-Qalasadi
Al-Hassār, a mathematician from Morocco specializing in Islamic inheritance jurisprudence during the 12th century, developed the modern symbolic mathematical notation for fractions, where the numerator and denominator are separated by a horizontal bar. This same fractional notation appeared soon after in the work of Fibonacci in the 13th century.

Abū al-Hasan ibn Alī al-Qalasādī (1412–1486) was the last major medieval Arab algebraist, who made the first attempt at creating an algebraic notation since Ibn al-Banna two centuries earlier, who was himself the first to make such an attempt since Diophantus and Brahmagupta in ancient times. The syncopated notations of his predecessors, however, lacked symbols for mathematical operations. Al-Qalasadi "took the first steps toward the introduction of algebraic symbolism by using letters in place of numbers" and by "using short Arabic words, or just their initial letters, as mathematical symbols."

Europe and the Mediterranean region
Just as the death of Hypatia signals the close of the Library of Alexandria as a mathematical center, so does the death of Boethius signal the end of mathematics in the Western Roman Empire. Although there was some work being done at Athens, it came to a close when in 529 the Byzantine emperor Justinian closed the pagan philosophical schools. The year 529 is now taken to be the beginning of the medieval period. Scholars fled the West towards the more hospitable East, particularly towards Persia, where they found haven under King Chosroes and established what might be termed an "Athenian Academy in Exile". Under a treaty with Justinian, Chosroes would eventually return the scholars to the Eastern Empire. During the Dark Ages, European mathematics was at its nadir with mathematical research consisting mainly of commentaries on ancient treatises; and most of this research was centered in the Byzantine Empire. The end of the medieval period is set as the fall of Constantinople to the Turks in 1453.

Late Middle Ages
The 12th century saw a flood of translations from Arabic into Latin and by the 13th century, European mathematics was beginning to rival the mathematics of other lands. In the 13th century, the solution of a cubic equation by Fibonacci is representative of the beginning of a revival in European algebra.

As the Islamic world was declining after the 15th century, the European world was ascending. And it is here that algebra was further developed.

Symbolic algebra
Modern notation for arithmetic operations was introduced between the end of the 15th century and the beginning of the 16th century by Johannes Widmann and Michael Stifel. At the end of 16th century, François Viète introduced symbols, now called variables, for representing indeterminate or unknown numbers. This created a new algebra consisting of computing with symbolic expressions as if they were numbers.

Another key event in the further development of algebra was the general algebraic solution of the cubic and quartic equations, developed in the mid-16th century. The idea of a determinant was developed by Japanese mathematician Kowa Seki in the 17th century, followed by Gottfried Leibniz ten years later, for the purpose of solving systems of simultaneous linear equations using matrices. Gabriel Cramer also did some work on matrices and determinants in the 18th century.

The symbol x
By tradition, the first unknown variable in an algebraic problem is nowadays represented by the symbol x|$\mathit{x}$ and if there is a second or a third unknown, then these are labeled y|$\mathit{y}$ and z|$\mathit{z}$ respectively. Algebraic $$x$$ is conventionally printed in italic type to distinguish it from the sign of multiplication.

Mathematical historians generally agree that the use of $$x$$ in algebra was introduced by René Descartes and was first published in his treatise La Géométrie (1637). In that work, he used letters from the beginning of the alphabet $$(a, b, c, \ldots)$$ for known quantities, and letters from the end of the alphabet $$(z, y, x, \ldots)$$ for unknowns. It has been suggested that he later settled on $$x$$ (in place of $$z$$) for the first unknown because of its relatively greater abundance in the French and Latin typographical fonts of the time.

Three alternative theories of the origin of algebraic $$x$$ were suggested in the 19th century: (1) a symbol used by German algebraists and thought to be derived from a cursive letter $$r,$$ mistaken for $$x$$; (2) the numeral 1 with oblique strikethrough; and (3) an Arabic/Spanish source (see below). But the Swiss-American historian of mathematics Florian Cajori examined these and found all three lacking in concrete evidence; Cajori credited Descartes as the originator, and described his $$x, y,$$ and $$z$$ as "free from tradition[,] and their choice purely arbitrary."

Nevertheless, the Hispano-Arabic hypothesis continues to have a presence in popular culture today. It is the claim that algebraic $$x$$ is the abbreviation of a supposed loanword from Arabic in Old Spanish. The theory originated in 1884 with the German orientalist Paul de Lagarde, shortly after he published his edition of a 1505 Spanish/Arabic bilingual glossary in which Spanish cosa ("thing") was paired with its Arabic equivalent, شىء (shayʔ), transcribed as xei. (The "sh" sound in Old Spanish was routinely spelled $$x.$$) Evidently Lagarde was aware that Arab mathematicians, in the "rhetorical" stage of algebra's development, often used that word to represent the unknown quantity. He surmised that "nothing could be more natural" ("Nichts war also natürlicher...") than for the initial of the Arabic word—romanized as the Old Spanish $$x$$—to be adopted for use in algebra. A later reader reinterpreted Lagarde's conjecture as having "proven" the point. Lagarde was unaware that early Spanish mathematicians used, not a transcription of the Arabic word, but rather its translation in their own language, "cosa". There is no instance of xei or similar forms in several compiled historical vocabularies of Spanish.

Gottfried Leibniz
Although the mathematical notion of function was implicit in trigonometric and logarithmic tables, which existed in his day, Gottfried Leibniz was the first, in 1692 and 1694, to employ it explicitly, to denote any of several geometric concepts derived from a curve, such as abscissa, ordinate, tangent, chord, and the perpendicular. In the 18th century, "function" lost these geometrical associations.

Leibniz realized that the coefficients of a system of linear equations could be arranged into an array, now called a matrix, which can be manipulated to find the solution of the system, if any. This method was later called Gaussian elimination. Leibniz also discovered Boolean algebra and symbolic logic, also relevant to algebra.

Abstract algebra
The ability to do algebra is a skill cultivated in mathematics education. As explained by Andrew Warwick, Cambridge University students in the early 19th century practiced "mixed mathematics", doing exercises based on physical variables such as space, time, and weight. Over time the association of variables with physical quantities faded away as mathematical technique grew. Eventually mathematics was concerned completely with abstract polynomials, complex numbers, hypercomplex numbers and other concepts. Application to physical situations was then called applied mathematics or mathematical physics, and the field of mathematics expanded to include abstract algebra. For instance, the issue of constructible numbers showed some mathematical limitations, and the field of Galois theory was developed.

The father of algebra
The title of "the father of algebra" is frequently credited to the Persian mathematician Al-Khwarizmi, supported by historians of mathematics, such as Carl Benjamin Boyer, Solomon Gandz and Bartel Leendert van der Waerden. However, the point is debatable and the title is sometimes credited to the Hellenistic mathematician Diophantus. Those who support Diophantus point to the algebra found in Al-Jabr being more elementary than the algebra found in Arithmetica, and Arithmetica being syncopated while Al-Jabr is fully rhetorical. However, the mathematics historian Kurt Vogel argues against Diophantus holding this title, as his mathematics was not much more algebraic than that of the ancient Babylonians.

Those who support Al-Khwarizmi point to the fact that he gave an exhaustive explanation for the algebraic solution of quadratic equations with positive roots, and was the first to teach algebra in an elementary form and for its own sake, whereas Diophantus was primarily concerned with the theory of numbers. Al-Khwarizmi also introduced the fundamental concept of "reduction" and "balancing" (which he originally used the term al-jabr to refer to), referring to the transposition of subtracted terms to the other side of an equation, that is, the cancellation of like terms on opposite sides of the equation. Other supporters of Al-Khwarizmi point to his algebra no longer being concerned "with a series of problems to be resolved, but an exposition which starts with primitive terms in which the combinations must give all possible prototypes for equations, which henceforward explicitly constitute the true object of study." They also point to his treatment of an equation for its own sake and "in a generic manner, insofar as it does not simply emerge in the course of solving a problem, but is specifically called on to define an infinite class of problems". Victor J. Katz regards Al-Jabr as the first true algebra text that is still extant.

Pre-modern algebra was developed and used by merchants and surveyors as part of what Jens Høyrup called "subscientific" tradition. Diophantus used this method of algebra in his book, in particular for indeterminate problems, while Al-Khwarizmi wrote one of the first books in Arabic about the general method for solving equations.