In mathematics, a variable (from Latin variabilis 'changeable') is a symbol, typically a letter, that refers to an unspecified mathematical object. One says colloquially that the variable represents or denotes the object, and that any valid candidate for the object is the value of the variable. The values a variable can take are usually of the same kind, often numbers. More specifically, the values involved may form a set, such as the set of real numbers. The object may not always exist, or it might be uncertain whether any valid candidate exists or not. For example, one could represent two integers by the variables p and q and require that the value of the square of p is twice the square of q, which in algebraic notation can be written p2 = 2 q2. A definitive proof that this relationship is impossible to satisfy when p and q are restricted to nonzero integers isn't obvious, but it has been known since ancient times and has had a big influence on mathematics ever since. Originally, the term variable was used primarily for the argument of a function, in which case its value could be thought of as varying within the domain of the function. This is the motivation for the choice of the term. Also, variables are used for denoting values of functions, such as the symbol y in the equation y = f(x), where x is the argument and f denotes the function itself. A variable may represent an unspecified number that remains fixed during the resolution of a problem; in which case, it is often called a parameter. A variable may denote an unknown number that has to be determined; in which case, it is called an unknown; for example, in the quadratic equation ax2 + bx + c = 0, the variables a, b, c are parameters, and x is the unknown. Sometimes the same symbol can be used to denote both a variable and a constant, that is a well defined mathematical object. For example, the Greek letter π generally represents the number π, but has also been used to denote a projection. Similarly, the letter e often denotes Euler's number, but has been used to denote an unassigned coefficient for quartic function and higher degree polynomials. Even the symbol 1 has been used to denote an identity element of an arbitrary field. These two notions are used almost identically, therefore one usually must be told whether a given symbol denotes a variable or a constant. Variables are often used for representing matrices, functions, their arguments, sets and their elements, vectors, spaces, etc. In mathematical logic, a variable is a symbol that either represents an unspecified constant of the theory, or is being quantified over.
History
Early history
The earliest uses of an "unknown quantity" date back to at least the Ancient Egyptians with the Moscow Mathematical Papyrus (c. 1500 BC) which described problems with unknowns rhetorically, called the "Aha problems". The "Aha problems" involve finding unknown quantities (referred to as aha, "stack") if the sum of the quantity and part(s) of it are given (The Rhind Mathematical Papyrus also contains four of these types of problems). For example, problem 19 asks one to calculate a quantity taken 1+1⁄2 times and added to 4 to make 10. In modern mathematical notation: 3/2x + 4 = 10. Around the same time in Mesopotamia, mathematics of the Old Babylonian period (c. 2000 BC – 1500 BC) was more advanced, also studying quadratic and cubic equations.
In works of ancient Greece such as Euclid's Elements (c. 300 BC), mathematics was described geometrically. For example, The Elements, proposition 1 of Book II, Euclid includes the proposition: "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 corresponds to the algebraic identity a(b + c) = ab + ac (distributivity), but is described entirely geometrically. Euclid, and other greek geometers, also used single letters refer to geometric points and shapes. This kind of algebra is now sometimes called Greek geometric algebra. Diophantus of Alexandria, pioneered a form of syncopated algebra in his Arithmetica (c. 200 AD), which introduced symbolic manipulation of expressions with unknowns and powers, but without modern symbols for relations (such as equality or inequality) or exponents. An unknown number was called ζ. The square of ζ was Δv; the cube was Kv; the fourth power was ΔvΔ; and the fifth power was ΔKv. So for example, what would be written in modern notation as: x3−2x2+10x−1, would be written in Diophantus's syncopated notation as: Kυα‾ζι‾⋔Δυβ‾Mα‾ In the 7th century BC, Brahmagupta used different colours to represent the unknowns in algebraic equations in the Brāhmasphuṭasiddhānta. One section of this book is called "Equations of Several Colours". Greek and other ancient mathematical advances, were often trapped in long periods of stagnation, and so there were few revolutions in notation, but this began to change by the early modern period.
… excerpt ends here. Continue reading the full article.

