Variable (mathematics)
Template:Short description Script error: No such module "Distinguish". Script error: No such module "Unsubst". In mathematics, a variable (from Latin Template:Wikt-lang Template:Gloss) is a symbol, typically a letter, that refers to an unspecified mathematical object.[1][2][3] 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 Template:Mvar and Template:Mvar and require that the value of the square of Template:Mvar is twice the square of Template:Mvar, which in algebraic notation can be written p2 = 2 q2Script error: No such module "Check for unknown parameters".. A definitive proof that this relationship is impossible to satisfy when Template:Mvar and Template:Mvar are restricted to integer numbers 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 yScript error: No such module "Check for unknown parameters". in the equation y = f(x)Script error: No such module "Check for unknown parameters"., where Template:Mvar is the argument and Template:Mvar 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 = 0Script error: No such module "Check for unknown parameters"., the variables aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters"., cScript error: No such module "Check for unknown parameters". are parameters, and xScript error: No such module "Check for unknown parameters". 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 πScript error: No such module "Check for unknown parameters". generally represents the number πScript error: No such module "Check for unknown parameters"., but has also been used to denote a projection. Similarly, the letter eScript error: No such module "Check for unknown parameters". often denotes Euler's number, but has been used to denote an unassigned coefficient for quartic function and higher degree polynomials. Even the symbol 1Script error: No such module "Check for unknown parameters". 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.[4]
Variables are often used for representing matrices, functions, their arguments, sets and their elements, vectors, spaces, etc.[5]
In mathematical logic, a variable is a symbol that either represents an unspecified constant of the theory, or is being quantified over.[6][7][8]
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 <templatestyles src="Fraction/styles.css" />1+1⁄2 times and added to 4 to make 10.[9] In modern mathematical notation: Template:Sfracx + 4 = 10Script error: No such module "Check for unknown parameters".. 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.[10]
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 + acScript error: No such module "Check for unknown parameters". (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.[10]
Diophantus of Alexandria,[11] 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.[12] An unknown number was called .[13] The square of was ; the cube was ; the fourth power was ; and the fifth power was .[14] So for example, what would be written in modern notation as: would be written in Diophantus's syncopated notation as:
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".[15] 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.
Early modern period
At the end of the 16th century, François Viète introduced the idea of representing known and unknown numbers by letters, nowadays called variables, and the idea of computing with them as if they were numbers—in order to obtain the result by a simple replacement. Viète's convention was to use consonants for known values, and vowels for unknowns.[16]
In 1637, René Descartes "invented the convention of representing unknowns in equations by xScript error: No such module "Check for unknown parameters"., yScript error: No such module "Check for unknown parameters"., and zScript error: No such module "Check for unknown parameters"., and knowns by aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters"., and cScript error: No such module "Check for unknown parameters".".[17] Contrarily to Viète's convention, Descartes' is still commonly in use. The history of the letter x in math was discussed in an 1887 Scientific American article.[18]
Starting in the 1660s, Isaac Newton and Gottfried Wilhelm Leibniz independently developed the infinitesimal calculus, which essentially consists of studying how an infinitesimal variation of a time-varying quantity, called a Fluent, induces a corresponding variation of another quantity which is a function of the first variable. Almost a century later, Leonhard Euler fixed the terminology of infinitesimal calculus, and introduced the notation y = f(x)Script error: No such module "Check for unknown parameters". for a function fScript error: No such module "Check for unknown parameters"., its variable xScript error: No such module "Check for unknown parameters". and its value yScript error: No such module "Check for unknown parameters".. Until the end of the 19th century, the word variable referred almost exclusively to the arguments and the values of functions.
In the second half of the 19th century, it appeared that the foundation of infinitesimal calculus was not formalized enough to deal with apparent paradoxes such as a nowhere differentiable continuous function. To solve this problem, Karl Weierstrass introduced a new formalism consisting of replacing the intuitive notion of limit by a formal definition. The older notion of limit was "when the variable xScript error: No such module "Check for unknown parameters". varies and tends toward aScript error: No such module "Check for unknown parameters"., then f(x)Script error: No such module "Check for unknown parameters". tends toward LScript error: No such module "Check for unknown parameters".", without any accurate definition of "tends". Weierstrass replaced this sentence by the formula
in which none of the five variables is considered as varying.
This static formulation led to the modern notion of variable, which is simply a symbol representing a mathematical object that either is unknown, or may be replaced by any element of a given set (e.g., the set of real numbers).
Notation
Variables are generally denoted by a single letter, most often from the Latin alphabet and less often from the Greek, which may be lowercase or capitalized. The letter may be followed by a subscript: a number (as in x2Script error: No such module "Check for unknown parameters".), another variable (xiScript error: No such module "Check for unknown parameters".), a word or abbreviation of a word as a label (xtotalScript error: No such module "Check for unknown parameters".) or a mathematical expression (x2i+1Script error: No such module "Check for unknown parameters".). Under the influence of computer science, some variable names in pure mathematics consist of several letters and digits. Following René Descartes (1596–1650), letters at the beginning of the alphabet such as aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters"., cScript error: No such module "Check for unknown parameters". are commonly used for known values and parameters, and letters at the end of the alphabet such as xScript error: No such module "Check for unknown parameters"., yScript error: No such module "Check for unknown parameters"., zScript error: No such module "Check for unknown parameters". are commonly used for unknowns and variables of functions.[19] In printed mathematics, the norm is to set variables and constants in an italic typeface.[20]
For example, a general quadratic function is conventionally written as ax2 + bx + cScript error: No such module "Check for unknown parameters"., where aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters". and cScript error: No such module "Check for unknown parameters". are parameters (also called constants, because they are constant functions), while xScript error: No such module "Check for unknown parameters". is the variable of the function. A more explicit way to denote this function is x ↦ ax2 + bx + cScript error: No such module "Check for unknown parameters"., which clarifies the function-argument status of xScript error: No such module "Check for unknown parameters". and the constant status of aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters". and cScript error: No such module "Check for unknown parameters".. Since cScript error: No such module "Check for unknown parameters". occurs in a term that is a constant function of xScript error: No such module "Check for unknown parameters"., it is called the constant term.[21]
Specific branches and applications of mathematics have specific naming conventions for variables. Variables with similar roles or meanings are often assigned consecutive letters or the same letter with different subscripts. For example, the three axes in 3D coordinate space are conventionally called xScript error: No such module "Check for unknown parameters"., yScript error: No such module "Check for unknown parameters"., and zScript error: No such module "Check for unknown parameters".. In physics, the names of variables are largely determined by the physical quantity they describe, but various naming conventions exist. A convention often followed in probability and statistics is to use XScript error: No such module "Check for unknown parameters"., YScript error: No such module "Check for unknown parameters"., ZScript error: No such module "Check for unknown parameters". for the names of random variables, keeping xScript error: No such module "Check for unknown parameters"., yScript error: No such module "Check for unknown parameters"., zScript error: No such module "Check for unknown parameters". for variables representing corresponding better-defined values.
Conventional variable names
- aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters"., cScript error: No such module "Check for unknown parameters"., dScript error: No such module "Check for unknown parameters". (sometimes extended to eScript error: No such module "Check for unknown parameters"., fScript error: No such module "Check for unknown parameters".) for parameters or coefficients
- a0Script error: No such module "Check for unknown parameters"., a1Script error: No such module "Check for unknown parameters"., a2Script error: No such module "Check for unknown parameters"., ... for situations where distinct letters are inconvenient
- aiScript error: No such module "Check for unknown parameters". or uiScript error: No such module "Check for unknown parameters". for the iScript error: No such module "Check for unknown parameters".th term of a sequence or the iScript error: No such module "Check for unknown parameters".th coefficient of a series
- fScript error: No such module "Check for unknown parameters"., gScript error: No such module "Check for unknown parameters"., hScript error: No such module "Check for unknown parameters". for functions (as in f(x)Script error: No such module "Check for unknown parameters".)
- iScript error: No such module "Check for unknown parameters"., jScript error: No such module "Check for unknown parameters"., kScript error: No such module "Check for unknown parameters". (sometimes lScript error: No such module "Check for unknown parameters". or hScript error: No such module "Check for unknown parameters".) for varying integers or indices in an indexed family, or unit vectors
- lScript error: No such module "Check for unknown parameters". and wScript error: No such module "Check for unknown parameters". for the length and width of a figure
- lScript error: No such module "Check for unknown parameters". also for a line, or in number theory for a prime number not equal to pScript error: No such module "Check for unknown parameters".
- nScript error: No such module "Check for unknown parameters". (with mScript error: No such module "Check for unknown parameters". as a second choice) for a fixed integer, such as a count of objects or the degree of a polynomial
- pScript error: No such module "Check for unknown parameters". for a prime number or a probability
- qScript error: No such module "Check for unknown parameters". for a prime power or a quotient
- rScript error: No such module "Check for unknown parameters". for a radius, a remainder or a correlation coefficient
- tScript error: No such module "Check for unknown parameters". for time
- xScript error: No such module "Check for unknown parameters"., yScript error: No such module "Check for unknown parameters"., zScript error: No such module "Check for unknown parameters". for the three Cartesian coordinates of a point in Euclidean geometry or the corresponding axes
- zScript error: No such module "Check for unknown parameters". for a complex number, or in statistics a normal random variable
- αScript error: No such module "Check for unknown parameters"., βScript error: No such module "Check for unknown parameters"., γScript error: No such module "Check for unknown parameters"., θScript error: No such module "Check for unknown parameters"., φScript error: No such module "Check for unknown parameters". for angle measures
- εScript error: No such module "Check for unknown parameters". (with δScript error: No such module "Check for unknown parameters". as a second choice) for an arbitrarily small positive number
- λScript error: No such module "Check for unknown parameters". for an eigenvalue
- ΣScript error: No such module "Check for unknown parameters". (capital sigma) for a sum, or σScript error: No such module "Check for unknown parameters". (lowercase sigma) in statistics for the standard deviation[22]
- μScript error: No such module "Check for unknown parameters". for a mean
Specific kinds of variables
It is common for variables to play different roles in the same mathematical formula, and names or qualifiers have been introduced to distinguish them. For example, the general cubic equation
is interpreted as having five variables: four, a, b, c, dScript error: No such module "Check for unknown parameters"., which are taken to be given numbers and the fifth variable, x,Script error: No such module "Check for unknown parameters". is understood to be an unknown number. To distinguish them, the variable xScript error: No such module "Check for unknown parameters". is called an unknown, and the other variables are called parameters or coefficients, or sometimes constants, although this last terminology is incorrect for an equation, and should be reserved for the function defined by the left-hand side of this equation.
In the context of functions, the term variable refers commonly to the arguments of the functions. This is typically the case in sentences like "function of a real variable", "xScript error: No such module "Check for unknown parameters". is the variable of the function f : x ↦ f(x)Script error: No such module "Check for unknown parameters".", "fScript error: No such module "Check for unknown parameters". is a function of the variable xScript error: No such module "Check for unknown parameters"." (meaning that the argument of the function is referred to by the variable xScript error: No such module "Check for unknown parameters".).
In the same context, variables that are independent of xScript error: No such module "Check for unknown parameters". define constant functions and are therefore called constant. For example, a constant of integration is an arbitrary constant function that is added to a particular antiderivative to obtain the other antiderivatives. Because of the strong relationship between polynomials and polynomial functions, the term "constant" is often used to denote the coefficients of a polynomial, which are constant functions of the indeterminates.
Other specific names for variables are:
- An unknown is a variable in an equation which has to be solved for.
- An indeterminate is a symbol, commonly called variable, that appears in a polynomial or a formal power series. Formally speaking, an indeterminate is not a variable, but a constant in the polynomial ring or the ring of formal power series. However, because of the strong relationship between polynomials or power series and the functions that they define, many authors consider indeterminates as a special kind of variables.
- A parameter is a quantity (usually a number) which is a part of the input of a problem, and remains constant during the whole solution of this problem. For example, in mechanics the mass and the size of a solid body are parameters for the study of its movement. In computer science, parameter has a different meaning and denotes an argument of a function.
- Free variables and bound variables
- A random variable is a kind of variable that is used in probability theory and its applications.
All these denominations of variables are of semantic nature, and the way of computing with them (syntax) is the same for all.
Dependent and independent variables
Script error: No such module "Labelled list hatnote". In calculus and its application to physics and other sciences, it is rather common to consider a variable, say yScript error: No such module "Check for unknown parameters"., whose possible values depend on the value of another variable, say xScript error: No such module "Check for unknown parameters".. In mathematical terms, the dependent variable yScript error: No such module "Check for unknown parameters". represents the value of a function of xScript error: No such module "Check for unknown parameters".. To simplify formulas, it is often useful to use the same symbol for the dependent variable yScript error: No such module "Check for unknown parameters". and the function mapping xScript error: No such module "Check for unknown parameters". onto yScript error: No such module "Check for unknown parameters".. For example, the state of a physical system depends on measurable quantities such as the pressure, the temperature, the spatial position, ..., and all these quantities vary when the system evolves, that is, they are function of the time. In the formulas describing the system, these quantities are represented by variables which are dependent on the time, and thus considered implicitly as functions of the time.
Therefore, in a formula, a dependent variable is a variable that is implicitly a function of another (or several other) variables. An independent variable is a variable that is not dependent.[23]
The property of a variable to be dependent or independent depends often of the point of view and is not intrinsic. For example, in the notation f(x, y, z)Script error: No such module "Check for unknown parameters"., the three variables may be all independent and the notation represents a function of three variables. On the other hand, if yScript error: No such module "Check for unknown parameters". and zScript error: No such module "Check for unknown parameters". depend on xScript error: No such module "Check for unknown parameters". (are dependent variables) then the notation represents a function of the single independent variable xScript error: No such module "Check for unknown parameters"..[24]
Examples
If one defines a function fScript error: No such module "Check for unknown parameters". from the real numbers to the real numbers by
then x is a variable standing for the argument of the function being defined, which can be any real number.
In the identity
the variable iScript error: No such module "Check for unknown parameters". is a summation variable which designates in turn each of the integers 1, 2, ..., nScript error: No such module "Check for unknown parameters". (it is also called index because its variation is over a discrete set of values) while nScript error: No such module "Check for unknown parameters". is a parameter (it does not vary within the formula).
In the theory of polynomials, a polynomial of degree 2 is generally denoted as ax2 + bx + cScript error: No such module "Check for unknown parameters"., where aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters". and cScript error: No such module "Check for unknown parameters". are called coefficients (they are assumed to be fixed, i.e., parameters of the problem considered) while xScript error: No such module "Check for unknown parameters". is called a variable. When studying this polynomial for its polynomial function this xScript error: No such module "Check for unknown parameters". stands for the function argument. When studying the polynomial as an object in itself, xScript error: No such module "Check for unknown parameters". is taken to be an indeterminate, and would often be written with a capital letter instead to indicate this status.
Example: the ideal gas law
Consider the equation describing the ideal gas law, This equation would generally be interpreted to have four variables, and one constant. The constant is kBScript error: No such module "Check for unknown parameters"., the Boltzmann constant. One of the variables, NScript error: No such module "Check for unknown parameters"., the number of particles, is a positive integer (and therefore a discrete variable), while the other three, PScript error: No such module "Check for unknown parameters"., VScript error: No such module "Check for unknown parameters". and TScript error: No such module "Check for unknown parameters"., for pressure, volume and temperature, are continuous variables.
One could rearrange this equation to obtain PScript error: No such module "Check for unknown parameters". as a function of the other variables, Then PScript error: No such module "Check for unknown parameters"., as a function of the other variables, is the dependent variable, while its arguments, VScript error: No such module "Check for unknown parameters"., NScript error: No such module "Check for unknown parameters". and TScript error: No such module "Check for unknown parameters"., are independent variables. One could approach this function more formally and think about its domain and range: in function notation, here PScript error: No such module "Check for unknown parameters". is a function .
However, in an experiment, in order to determine the dependence of pressure on a single one of the independent variables, it is necessary to fix all but one of the variables, say TScript error: No such module "Check for unknown parameters".. This gives a function where now NScript error: No such module "Check for unknown parameters". and VScript error: No such module "Check for unknown parameters". are also regarded as constants. Mathematically, this constitutes a partial application of the earlier function PScript error: No such module "Check for unknown parameters"..
This illustrates how independent variables and constants are largely dependent on the point of view taken. One could even regard kBScript error: No such module "Check for unknown parameters". as a variable to obtain a function
Moduli spaces
Script error: No such module "Labelled list hatnote".
Considering constants and variables can lead to the concept of moduli spaces. For illustration, consider the equation for a parabola, where aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters"., cScript error: No such module "Check for unknown parameters"., xScript error: No such module "Check for unknown parameters". and yScript error: No such module "Check for unknown parameters". are all considered to be real. The set of points (x, y)Script error: No such module "Check for unknown parameters". in the 2D plane satisfying this equation trace out the graph of a parabola. Here, aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters". and cScript error: No such module "Check for unknown parameters". are regarded as constants, which specify the parabola, while xScript error: No such module "Check for unknown parameters". and yScript error: No such module "Check for unknown parameters". are variables.
Then instead regarding aScript error: No such module "Check for unknown parameters"., bScript error: No such module "Check for unknown parameters". and cScript error: No such module "Check for unknown parameters". as variables, we observe that each set of 3-tuples (a, b, c)Script error: No such module "Check for unknown parameters". corresponds to a different parabola. That is, they specify coordinates on the 'space of parabolas': this is known as a moduli space of parabolas.
See also
References
<templatestyles src="Reflist/styles.css" />
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Stover & Weisstein.
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Clagett, Marshall. 1999. Ancient Egyptian Science: A Source Book. Volume 3: Ancient Egyptian Mathematics. Memoirs of the American Philosophical Society 232. Philadelphia: American Philosophical Society. Template:ISBN
- ↑ a b Script error: No such module "citation/CS1".
- ↑ Diophantine Equations. Submitted by: Aaron Zerhusen, Chris Rakes, & Shasta Meece. MA 330-002. Dr. Carl Eberhart. 16 February 1999.
- ↑ Boyer (1991). "Revival and Decline of Greek Mathematics". p. 178. "The chief difference between Diophantine syncopation and the modern algebraic notation is the lack of special symbols for operations and relations, as well as of the exponential notation."
- ↑ A History of Greek Mathematics: From Aristarchus to Diophantus. By Sir Thomas Little Heath. Pg 456
- ↑ A History of Greek Mathematics: From Aristarchus to Diophantus. By Sir Thomas Little Heath. Pg 458
- ↑ Script error: No such module "Footnotes"..
- ↑ Script error: No such module "Footnotes"..
- ↑ Script error: No such module "Footnotes"..
- ↑ Script error: No such module "citation/CS1".
- ↑ Edwards Art. 4
- ↑ Script error: No such module "Footnotes".
- ↑ Script error: No such module "Footnotes"..
- ↑ Script error: No such module "citation/CS1".
- ↑ Edwards Art. 5
- ↑ Edwards Art. 6
Script error: No such module "Check for unknown parameters".
Bibliography
<templatestyles src="Refbegin/styles.css" />
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "anchor".Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".