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.

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'."^{[1]} 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.^{[2]}

See also: Timeline of algebra |

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:^{[3]}

**Rhetorical algebra**, in which equations are written in full sentences. For example, the rhetorical form of 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 and are positive.
This trichotomy comes about because quadratic equations of the form with and positive, have no positive roots.^{[4]}

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 was solved by finding the side of a square of area

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:^{[5]}^{[non-primary source needed]}

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

See also: Babylonian mathematics |

The origins of algebra can be traced to the ancient Babylonians,^{[6]} 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.^{[7]} 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.^{[8]}

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.^{[7]} 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.^{[7]} They were familiar with many simple forms of factoring,^{[7]} three-term quadratic equations with positive roots,^{[9]} and many cubic equations,^{[10]} although it is not known if they were able to reduce the general cubic equation.^{[10]}

See also: Egyptian mathematics |

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.^{[7]}

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.^{[11]} It is the most extensive ancient Egyptian mathematical document known to historians.^{[12]} The Rhind Papyrus contains problems where linear equations of the form and are solved, where and are known and which is referred to as "aha" or heap, is the unknown.^{[13]} 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.^{[13]}

See also: Greek mathematics |

It is sometimes alleged that the Greeks had no algebra, but this is disputed.^{[15]} 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,^{[16]} usually lines, that had letters associated with them,^{[17]} 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".^{[16]} "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 The ancient Greeks would solve this equation by looking at it as an equality of areas rather than as an equality between the ratios and The Greeks would construct a rectangle with sides of length and then extend a side of the rectangle to length and finally they would complete the extended rectangle so as to find the side of the rectangle that is the solution.^{[16]}

Iamblichus in *Introductio arithmatica* says that Thymaridas (c. 400 BCE – c. 350 BCE) worked with simultaneous linear equations.^{[18]} 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 quantities be given, and also the sum of every pair containing a particular quantity, then this particular quantity is equal to of the difference between the sums of these pairs and the first given sum.

^{[19]}

or using modern notation, the solution of the following system of linear equations in unknowns,^{[18]}

is,

Iamblichus goes on to describe how some systems of linear equations that are not in this form can be placed into this form.^{[18]}

Euclid (Greek: Εὐκλείδης) was a Greek mathematician who flourished in Alexandria, Egypt, almost certainly during the reign of Ptolemy I (323–283 BCE).^{[20]}^{[21]} Neither the year nor place of his birth^{[20]} 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.^{[20]} 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.^{[22]} 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.^{[23]}

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.^{[15]} 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.^{[15]}

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, ; and in Books V and VII of the *Elements* the commutative and associative laws for multiplication are demonstrated.^{[15]}

Many basic equations were also proved geometrically. For instance, proposition 5 in Book II proves that ^{[24]} and proposition 4 in Book II proves that ^{[15]}

Furthermore, there are also geometric solutions given to many equations. For instance, proposition 6 of Book II gives the solution to the quadratic equation and proposition 11 of Book II gives a solution to ^{[25]}

*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.^{[26]} Some of these statements are geometric equivalents to solutions of quadratic equations.^{[26]} For instance, *Data* contains the solutions to the equations and the familiar Babylonian equation ^{[26]}

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^{[27]} (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 holds, where is a constant called the latus rectum, although he was not aware of the fact that any equation in two unknowns determines a curve.^{[28]} 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.^{[28]}

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.

See also: Chinese mathematics |

Chinese mathematics dates to at least 300 BC with the *Zhoubi Suanjing*, generally considered to be one of the oldest Chinese mathematical documents.^{[29]}

*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.^{[29]}

*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.^{[30]}

*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 indeterminate analysis^{[clarification needed]}.^{[30]}

The earliest known magic squares appeared in China.^{[31]} 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.^{[31]} 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.^{[32]}

*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.^{[33]}

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.^{[34]}

There are many summation equations given without proof in the *Precious mirror*. A few of the summations are:^{[34]}

See also: Diophantine equation and Arithmetica |

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.^{[35]} *Arithmetica* is the earliest extant work present that solve arithmetic problems by algebra. Diophantus however did not invented method of algebra, which existed before him.^{[36]} Algebra was practiced and diffused orally by practitioners, with Diophantus picking up technique to solve problems in arithmetic.^{[37]}

In modern algebra polynomial is linear combination of variable x that is build of exponentiation, scalar multiplication, addition, and subtraction. Algebra of Diophantus, similar to medieval arabic algebra is aggregation of objects of different types with no operations present^{[38]}

For example Diophantus Polynomial "6 4′ inverse Powers, 25 Powers lacking 9 units", which in modern notation is is a collection of object of one kind with 25 object of second kind which lack 9 objects of third kind with no operation present.^{[39]}

Similar to medieval Arabic algebra Diophantus uses three stages to solution of 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^{[40]}

Diophantus does not give classification of equations in six types like Al-Khwarizmi in extant parts of Arithmetica. He does says that he would give solution to three terms equations later, so this part of work is possibly just lost^{[37]}

In *Arithmetica*, Diophantus is the first to use symbols for unknown numbers as well as abbreviations for powers of numbers, relationships, and operations;^{[41]} 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.^{[42]}

So, for example, what we would write as

which can be rewritten as

would be written in Diophantus's syncopated notation as

- ἴ

where the symbols represent the following:^{[43]}^{[44]}

Symbol | What it represents |
---|---|

1 | |

2 | |

5 | |

10 | |

ἴσ | "equals" (short for ἴσος) |

represents the subtraction of everything that follows up to ἴσ | |

the zeroth power (i.e. a constant term) | |

the unknown quantity (because a number raised to the first power is just this may be thought of as "the first power") | |

the second power, from Greek δύναμις, meaning strength or power | |

the third power, from Greek κύβος, meaning a cube | |

the fourth power | |

the fifth power | |

the sixth power |

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:^{[43]}

where to clarify, if the modern parentheses and plus are used then the above equation can be rewritten as:^{[43]}

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".^{[45]}

*Arithmetica* also makes use of the identities:^{[46]}

See also: Indian mathematics |

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).^{[47]}

The recurring themes in Indian mathematics are, among others, determinate and indeterminate linear and quadratic equations, simple mensuration, and Pythagorean triples.^{[48]}

Aryabhata (476–550) was an Indian mathematician who authored *Aryabhatiya*. In it he gave the rules,^{[49]}

and

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.^{[50]} In indeterminate analysis Brahmagupta gives the Pythagorean triads but this is a modified form of an old Babylonian rule that Brahmagupta may have been familiar with.^{[51]} He was the first to give a general solution to the linear Diophantine equation where and 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.^{[52]}

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.^{[52]} 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.^{[52]}

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.^{[52]} He is the author of *Lilavati* and *Vija-Ganita*, which contain problems dealing with determinate and indeterminate linear and quadratic equations, and Pythagorean triples^{[48]} and he fails to distinguish between exact and approximate statements.^{[53]} 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.^{[53]}

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

Bhaskara would have written as

- . _ .

*ya*1*ru*1- .

*ya*2*ru*8- .

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

See also: Islamic mathematics |

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.^{[54]} 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.^{[54]} Many of these Greek works were translated by Thabit ibn Qurra (826–901), who translated books written by Euclid, Archimedes, Apollonius, Ptolemy, and Eutocius.^{[55]}

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.^{[56]} 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.^{[57]}

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^{[55]} 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.

See also: The Compendious Book on Calculation by Completion and Balancing |

The Muslim^{[58]} Persian mathematician Muhammad ibn Mūsā al-Khwārizmī, described as the father^{[59]}^{[60]}^{[61]} or founder^{[62]}^{[63]} 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.^{[54]} 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.^{[64]} 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*.^{[65]} 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."^{[66]}

*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 the second chapter deals with squares equal to number the third chapter deals with roots equal to a number the fourth chapter deals with squares and roots equal a number the fifth chapter deals with squares and number equal roots and the sixth and final chapter deals with roots and number equal to squares ^{[67]}

In *Al-Jabr*, al-Khwarizmi uses geometric proofs,^{[17]} he does not recognize the root ^{[67]} and he only deals with positive roots.^{[68]} He also recognizes that the discriminant must be positive and described the method of completing the square, though he does not justify the procedure.^{[69]} The Greek influence is shown by *Al-Jabr'*s geometric foundations^{[57]}^{[70]} and by one problem taken from Heron.^{[71]} 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.^{[17]}

Al-Khwarizmi most likely did not know of Diophantus's *Arithmetica*,^{[72]} which became known to the Arabs sometime before the 10th century.^{[73]} 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.^{[72]} So, for example, what we would write as

Diophantus would have written as^{[74]}

- ἴ

And al-Khwarizmi would have written as^{[74]}

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

'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*.^{[73]} 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.^{[73]} 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.^{[73]}

Arabic mathematicians treated irrational numbers as algebraic objects.^{[75]} The Egyptian mathematician Abū Kāmil Shujā ibn Aslam (c. 850–930) was the first to accept irrational numbers (often in the form of a square root, cube root or fourth root) as solutions to quadratic equations or as coefficients in an equation.^{[76]} He was also the first to solve three non-linear simultaneous equations with three unknown variables.^{[77]}

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 ^{[78]} Al-Karaji only considered positive roots.^{[78]} 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.^{[79]}

Omar Khayyám (c. 1050 – 1123) wrote a book on Algebra that went beyond *Al-Jabr* to include equations of the third degree.^{[80]} 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.^{[80]} 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.^{[80]} He only considered positive roots and he did not go past the third degree.^{[80]} He also saw a strong relationship between geometry and algebra.^{[80]}

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.^{[81]} He understood the importance of the discriminant of the cubic equation and used an early version of Cardano's formula^{[82]} 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.^{[83]}

Sharaf al-Din also developed the concept of a function.^{[citation needed]} In his analysis of
the equation for example, he begins by changing the equation's form to . 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 . To determine this, he finds a maximum value for the function. He proves that the maximum value occurs when , which gives the functional value . Sharaf al-Din then states that if this value is less than , there are no positive solutions; if it is equal to , then there is one solution at ; and if it is greater than , then there are two solutions, one between and and one between and .^{[84]}

In the early 15th century, Jamshīd al-Kāshī developed an early form of Newton's method to numerically solve the equation to find roots of .^{[85]} 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.^{[77]}

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.^{[86]}

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.^{[87]} The syncopated notations of his predecessors, however, lacked symbols for mathematical operations.^{[42]} Al-Qalasadi "took the first steps toward the introduction of algebraic symbolism by using letters in place of numbers"^{[87]} and by "using short Arabic words, or just their initial letters, as mathematical symbols."^{[87]}

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".^{[88]} 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.

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.

This section is missing information about most important results in algebra that are more recent than 15th century, and are completely ignored. Please expand the section to include this information. Further details may exist on the talk page. (January 2017)

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.

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

Mathematical historians^{[89]} generally agree that the use of in algebra was introduced by René Descartes and was first published in his treatise *La Géométrie* (1637).^{[90]}^{[91]} In that work, he used letters from the beginning of the alphabet for known quantities, and letters from the end of the alphabet for unknowns.^{[92]} It has been suggested that he later settled on (in place of ) for the first unknown because of its relatively greater abundance in the French and Latin typographical fonts of the time.^{[93]}

Three alternative theories of the origin of algebraic were suggested in the 19th century: (1) a symbol used by German algebraists and thought to be derived from a cursive letter mistaken for ;^{[94]} (2) the numeral *1* with oblique strikethrough;^{[95]} 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 and as "free from tradition[,] and their choice purely arbitrary."^{[96]}

Nevertheless, the Hispano-Arabic hypothesis continues to have a presence in popular culture today.^{[97]} It is the claim that algebraic 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^{[98]} in which Spanish *cosa* ("thing") was paired with its Arabic equivalent, شىء (*shay ^{ʔ}*), transcribed as

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.^{[104]} 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.

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",^{[105]} 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 title of "the father of algebra" is frequently credited to the Persian mathematician Al-Khwarizmi,^{[106]}^{[107]}^{[108]} supported by historians of mathematics, such as Carl Benjamin Boyer,^{[106]} Solomon Gandz and Bartel Leendert van der Waerden.^{[109]} However, the point is debatable and the title is sometimes credited to the Hellenistic mathematician Diophantus.^{[106]}^{[110]} 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.^{[106]} However, the mathematics historian Kurt Vogel argues against Diophantus holding this title,^{[111]} as his mathematics was not much more algebraic than that of the ancient Babylonians.^{[112]}

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,^{[113]} 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.^{[56]} 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.^{[65]} 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".^{[66]} Victor J. Katz regards *Al-Jabr* as the first true algebra text that is still extant.^{[114]}

According to Jeffrey Oaks and Jean Christianidis neither Diophantus no Al-Khwarizmi should be called "father of algebra"^{[115]}^{[116]} .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 this method.^{[37]}