In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a variable (from
Latin
Latin ( or ) is a classical language belonging to the Italic languages, Italic branch of the Indo-European languages. Latin was originally spoken by the Latins (Italic tribe), Latins in Latium (now known as Lazio), the lower Tiber area aroun ...
) is a
symbol
A symbol is a mark, Sign (semiotics), sign, or word that indicates, signifies, or is understood as representing an idea, physical object, object, or wikt:relationship, relationship. Symbols allow people to go beyond what is known or seen by cr ...
, typically a letter, that refers to an unspecified
mathematical object
A mathematical object is an abstract concept arising in mathematics. Typically, a mathematical object can be a value that can be assigned to a Glossary of mathematical symbols, symbol, and therefore can be involved in formulas. Commonly encounter ...
. 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
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
, such as the set of
real numbers
In mathematics, a real number is a number that can be used to measurement, measure a continuous variable, continuous one-dimensional quantity such as a time, duration or temperature. Here, ''continuous'' means that pairs of values can have arbi ...
.
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 and and require that the value of the square of is twice the square of , which in algebraic notation can be written . A definitive proof that this relationship is impossible to satisfy when and 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 mathematics, an argument of a function is a value provided to obtain the function's result. It is also called an independent variable.
For example, the binary function f(x,y) = x^2 + y^2 has two arguments, x and y, in an ordered pair (x, y) ...
, 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 in the equation , where is the argument and 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 parameter (), generally, is any characteristic that can help in defining or classifying a particular system (meaning an event, project, object, situation, etc.). That is, a parameter is an element of a system that is useful, or critical, when ...
. A variable may denote an unknown number that has to be determined; in which case, it is called an
unknown
Unknown or The Unknown may refer to:
Film and television Film
* The Unknown (1915 comedy film), ''The Unknown'' (1915 comedy film), Australian silent film
* The Unknown (1915 drama film), ''The Unknown'' (1915 drama film), American silent drama ...
; for example, in the
quadratic equation
In mathematics, a quadratic equation () is an equation that can be rearranged in standard form as
ax^2 + bx + c = 0\,,
where the variable (mathematics), variable represents an unknown number, and , , and represent known numbers, where . (If and ...
, the variables , , are parameters, and 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
The Greek alphabet has been used to write the Greek language since the late 9th or early 8th century BC. It was derived from the earlier Phoenician alphabet, and is the earliest known alphabetic script to systematically write vowels as wel ...
generally represents the number
, but has also been used to denote a
projection. Similarly, the letter often denotes
Euler's number, but has been used to denote an unassigned
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
for
quartic function
In algebra, a quartic function is a function (mathematics), function of the form
:f(x)=ax^4+bx^3+cx^2+dx+e,
where ''a'' is nonzero,
which is defined by a polynomial of Degree of a polynomial, degree four, called a quartic polynomial.
A ''qu ...
and higher
degree polynomials. Even the symbol has been used to denote an
identity element
In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
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,
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
s and their
elements,
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
s,
space
Space is a three-dimensional continuum containing positions and directions. In classical physics, physical space is often conceived in three linear dimensions. Modern physicists usually consider it, with time, to be part of a boundless ...
s, etc.
In
mathematical logic
Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
, 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 times and added to 4 to make 10.
[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. ] In modern mathematical notation: . 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
Ancient Greece () was a northeastern Mediterranean civilization, existing from the Greek Dark Ages of the 12th–9th centuries BC to the end of classical antiquity (), that comprised a loose collection of culturally and linguistically r ...
such as
Euclid's ''Elements'' (c. 300 BC), mathematics was described
geometrically. For example, ''The Elements'', proposition 1 of Book II,
Euclid
Euclid (; ; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of geometry that largely domina ...
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 (
distributivity
In mathematics, the distributive property of binary operations is a generalization of the distributive law, which asserts that the equality
x \cdot (y + z) = x \cdot y + x \cdot z
is always true in elementary algebra.
For example, in elementary ...
), 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
Diophantus of Alexandria () (; ) was a Greek mathematician who was the author of the '' Arithmetica'' in thirteen books, ten of which are still extant, made up of arithmetical problems that are solved through algebraic equations.
Although Jose ...
of
Alexandria
Alexandria ( ; ) is the List of cities and towns in Egypt#Largest cities, second largest city in Egypt and the List of coastal settlements of the Mediterranean Sea, largest city on the Mediterranean coast. It lies at the western edge of the Nile ...
, pioneered a form of
syncopated algebra in his ''
Arithmetica
Diophantus of Alexandria () (; ) was a Greek mathematics, Greek mathematician who was the author of the ''Arithmetica'' in thirteen books, ten of which are still extant, made up of arithmetical problems that are solved through algebraic equations ...
'' (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.
[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."] An unknown number was called
. The square of
was
; the cube was
; the fourth power was
; and the fifth power was
. 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
Brahmagupta ( – ) was an Indian Indian mathematics, mathematician and Indian astronomy, astronomer. He is the author of two early works on mathematics and astronomy: the ''Brāhmasphuṭasiddhānta'' (BSS, "correctly established Siddhanta, do ...
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
The early modern period is a Periodization, historical period that is defined either as part of or as immediately preceding the modern period, with divisions based primarily on the history of Europe and the broader concept of modernity. There i ...
.
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.
In 1637,
René Descartes
René Descartes ( , ; ; 31 March 1596 – 11 February 1650) was a French philosopher, scientist, and mathematician, widely considered a seminal figure in the emergence of modern philosophy and Modern science, science. Mathematics was paramou ...
"invented the convention of representing unknowns in equations by , , and , and knowns by , , and ". 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
''Scientific American'', informally abbreviated ''SciAm'' or sometimes ''SA'', is an American popular science magazine. Many scientists, including Albert Einstein and Nikola Tesla, have contributed articles to it, with more than 150 Nobel Pri ...
article.
Starting in the 1660s,
Isaac Newton
Sir Isaac Newton () was an English polymath active as a mathematician, physicist, astronomer, alchemist, theologian, and author. Newton was a key figure in the Scientific Revolution and the Age of Enlightenment, Enlightenment that followed ...
and
Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz (or Leibnitz; – 14 November 1716) was a German polymath active as a mathematician, philosopher, scientist and diplomat who is credited, alongside Sir Isaac Newton, with the creation of calculus in addition to ...
independently developed the
infinitesimal calculus
Calculus is the mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizations of arithmetic operations.
Originally called infinitesimal calculus or "the calculus of ...
, which essentially consists of studying how an
infinitesimal
In mathematics, an infinitesimal number is a non-zero quantity that is closer to 0 than any non-zero real number is. The word ''infinitesimal'' comes from a 17th-century Modern Latin coinage ''infinitesimus'', which originally referred to the " ...
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
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
fixed the terminology of infinitesimal calculus, and introduced the notation for a function , its variable and its value . Until the end of the 19th century, the word ''variable'' referred almost exclusively to the
arguments
An argument is a series of sentences, statements, or propositions some of which are called premises and one is the conclusion. The purpose of an argument is to give reasons for one's conclusion via justification, explanation, and/or persua ...
and the
values
In ethics and social sciences, value denotes the degree of importance of some thing or action, with the aim of determining which actions are best to do or what way is best to live ( normative ethics), or to describe the significance of different a ...
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
In mathematics, a continuous function is a function such that a small variation of the argument induces a small variation of the value of the function. This implies there are no abrupt changes in value, known as '' discontinuities''. More preci ...
. To solve this problem,
Karl Weierstrass
Karl Theodor Wilhelm Weierstrass (; ; 31 October 1815 – 19 February 1897) was a German mathematician often cited as the " father of modern analysis". Despite leaving university without a degree, he studied mathematics and trained as a school t ...
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'' varies and tends toward , then tends toward ", 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
A mathematical object is an abstract concept arising in mathematics. Typically, a mathematical object can be a value that can be assigned to a Glossary of mathematical symbols, symbol, and therefore can be involved in formulas. Commonly encounter ...
that either is unknown, or may be replaced by any element of a given
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
(e.g., the set of
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s).
Notation
Variables are generally denoted by a single letter, most often from the
Latin alphabet
The Latin alphabet, also known as the Roman alphabet, is the collection of letters originally used by the Ancient Rome, ancient Romans to write the Latin language. Largely unaltered except several letters splitting—i.e. from , and from � ...
and less often from the
Greek, which may be lowercase or capitalized. The letter may be followed by a subscript: a number (as in ), another variable (), a word or abbreviation of a word as a label () or a
mathematical expression
In mathematics, an expression is a written arrangement of symbols following the context-dependent, syntactic conventions of mathematical notation. Symbols can denote numbers, variables, operations, and functions. Other symbols include punct ...
(). Under the influence of
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, some variable names in pure mathematics consist of several letters and digits. Following
René Descartes
René Descartes ( , ; ; 31 March 1596 – 11 February 1650) was a French philosopher, scientist, and mathematician, widely considered a seminal figure in the emergence of modern philosophy and Modern science, science. Mathematics was paramou ...
(1596–1650), letters at the beginning of the alphabet such as , , are commonly used for known values and parameters, and letters at the end of the alphabet such as , , are commonly used for unknowns and variables of functions.
[Edwards Art. 4] In printed mathematics, the norm is to set variables and constants in an italic typeface.
For example, a general
quadratic function
In mathematics, a quadratic function of a single variable (mathematics), variable is a function (mathematics), function of the form
:f(x)=ax^2+bx+c,\quad a \ne 0,
where is its variable, and , , and are coefficients. The mathematical expression, e ...
is conventionally written as , where , and are parameters (also called
constants, because they are
constant function
In mathematics, a constant function is a function whose (output) value is the same for every input value.
Basic properties
As a real-valued function of a real-valued argument, a constant function has the general form or just For example, ...
s), while is the variable of the function. A more explicit way to denote this function is , which clarifies the function-argument status of and the constant status of , and . Since occurs in a term that is a constant function of , it is called the
constant term.
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 , , and . In physics, the names of variables are largely determined by the
physical quantity
A physical quantity (or simply quantity) is a property of a material or system that can be Quantification (science), quantified by measurement. A physical quantity can be expressed as a ''value'', which is the algebraic multiplication of a ''nu ...
they describe, but various naming conventions exist. A convention often followed in
probability
Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
and
statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
is to use , , for the names of
random variable
A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
s, keeping , , for variables representing corresponding better-defined values.
Conventional variable names
* , , , (sometimes extended to , ) for parameters or
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s
* , , , ... for situations where distinct letters are inconvenient
* or for the th term of a
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
or the th coefficient of a
series
* , , for
functions (as in )
* , , (sometimes or ) for varying
integers
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
or indices in an
indexed family
In mathematics, a family, or indexed family, is informally a collection of objects, each associated with an index from some index set. For example, a family of real numbers, indexed by the set of integers, is a collection of real numbers, wher ...
, or
unit vectors
* and for the length and width of a figure
* also for a line, or in number theory for a prime number not equal to
* (with as a second choice) for a fixed integer, such as a count of objects or the
degree of a polynomial
In mathematics, the degree of a polynomial is the highest of the degrees of the polynomial's monomials (individual terms) with non-zero coefficients. The degree of a term is the sum of the exponents of the variables that appear in it, and thus ...
* for a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
or a
probability
Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
* for a
prime power or a
quotient
* for a
radius
In classical geometry, a radius (: radii or radiuses) of a circle or sphere is any of the line segments from its Centre (geometry), center to its perimeter, and in more modern usage, it is also their length. The radius of a regular polygon is th ...
, a
remainder
In mathematics, the remainder is the amount "left over" after performing some computation. In arithmetic, the remainder is the integer "left over" after dividing one integer by another to produce an integer quotient ( integer division). In a ...
or a
correlation coefficient
A correlation coefficient is a numerical measure of some type of linear correlation, meaning a statistical relationship between two variables. The variables may be two columns of a given data set of observations, often called a sample, or two c ...
* for
time
Time is the continuous progression of existence that occurs in an apparently irreversible process, irreversible succession from the past, through the present, and into the future. It is a component quantity of various measurements used to sequ ...
* , , for the three
Cartesian coordinates
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
of a point in
Euclidean geometry
Euclidean geometry is a mathematical system attributed to ancient Greek mathematics, Greek mathematician Euclid, which he described in his textbook on geometry, ''Euclid's Elements, Elements''. Euclid's approach consists in assuming a small set ...
or the corresponding
axes
* for a
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
, or in statistics a
normal random variable
* , , , , for
angle measures
* (with as a second choice) for an arbitrarily small positive number
* for an
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
* (capital sigma) for a sum, or (lowercase sigma) in statistics for the
standard deviation
In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
* for a
mean
A mean is a quantity representing the "center" of a collection of numbers and is intermediate to the extreme values of the set of numbers. There are several kinds of means (or "measures of central tendency") in mathematics, especially in statist ...
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
In algebra, a cubic equation in one variable is an equation of the form
ax^3+bx^2+cx+d=0
in which is not zero.
The solutions of this equation are called roots of the cubic function defined by the left-hand side of the equation. If all of th ...
:
is interpreted as having five variables: four, , which are taken to be given numbers and the fifth variable, is understood to be an ''unknown'' number. To distinguish them, the variable is called ''an unknown'', and the other variables are called ''parameters'' or ''
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s'', 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
In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function (mathematics), function whose domain of a function, domain is the real numbers \mathbb, or ...
", " is the variable of the function ", " is a function of the variable " (meaning that the argument of the function is referred to by the variable ).
In the same context, variables that are independent of define
constant function
In mathematics, a constant function is a function whose (output) value is the same for every input value.
Basic properties
As a real-valued function of a real-valued argument, a constant function has the general form or just For example, ...
s and are therefore called ''constant''. For example, a ''
constant of integration'' is an arbitrary constant function that is added to a particular
antiderivative
In calculus, an antiderivative, inverse derivative, primitive function, primitive integral or indefinite integral of a continuous function is a differentiable function whose derivative is equal to the original function . This can be stated ...
to obtain the other antiderivatives. Because of the strong relationship between
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s 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
In mathematics, an equation is a mathematical formula that expresses the equality of two expressions, by connecting them with the equals sign . The word ''equation'' and its cognates in other languages may have subtly different meanings; for ...
which has to be solved for.
* An
indeterminate is a symbol, commonly called variable, that appears in a
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
or a
formal power series
In mathematics, a formal series is an infinite sum that is considered independently from any notion of convergence, and can be manipulated with the usual algebraic operations on series (addition, subtraction, multiplication, division, partial su ...
. Formally speaking, an indeterminate is not a variable, but a
constant in the
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring formed from the set of polynomials in one or more indeterminates (traditionally also called variables) with coefficients in another ring, ...
or the ring of
formal power series
In mathematics, a formal series is an infinite sum that is considered independently from any notion of convergence, and can be manipulated with the usual algebraic operations on series (addition, subtraction, multiplication, division, partial su ...
. However, because of the strong relationship between polynomials or
power series
In mathematics, a power series (in one variable) is an infinite series of the form
\sum_^\infty a_n \left(x - c\right)^n = a_0 + a_1 (x - c) + a_2 (x - c)^2 + \dots
where ''a_n'' represents the coefficient of the ''n''th term and ''c'' is a co ...
and the
functions that they define, many authors consider indeterminates as a special kind of variables.
* A
parameter
A parameter (), generally, is any characteristic that can help in defining or classifying a particular system (meaning an event, project, object, situation, etc.). That is, a parameter is an element of a system that is useful, or critical, when ...
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
Mechanics () is the area of physics concerned with the relationships between force, matter, and motion among Physical object, physical objects. Forces applied to objects may result in Displacement (vector), displacements, which are changes of ...
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
A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
is a kind of variable that is used in probability theory and its applications.
All these denominations of variables are of semantics, semantic nature, and the way of computing with them (syntax (logic), syntax) is the same for all.
Dependent and independent variables
In calculus and its application to physics and other sciences, it is rather common to consider a variable, say , whose possible values depend on the value of another variable, say . In mathematical terms, the ''dependent'' variable represents the value of a
function of . To simplify formulas, it is often useful to use the same symbol for the dependent variable and the function mapping onto . 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.
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 , the three variables may be all independent and the notation represents a function of three variables. On the other hand, if and depend on (are ''dependent variables'') then the notation represents a function of the single ''independent variable'' .
[Edwards Art. 6]
Examples
If one defines a function from the
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s to the real numbers by
:
then ''x'' is a variable standing for the argument of a function, argument of the function being defined, which can be any real number.
In the identity
:
the variable is a summation variable which designates in turn each of the integers (it is also called index because its variation is over a discrete set of values) while is a parameter (it does not vary within the formula).
In the theory of polynomials, a polynomial of degree 2 is generally denoted as , where , and are called
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s (they are assumed to be fixed, i.e., parameters of the problem considered) while is called a variable. When studying this polynomial for its
polynomial function this stands for the function argument. When studying the polynomial as an object in itself, 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 , the Boltzmann constant. One of the variables, , the number of particles, is a positive integer (and therefore a discrete variable), while the other three, , and , for pressure, volume and temperature, are continuous variables.
One could rearrange this equation to obtain as a function of the other variables,
Then , as a function of the other variables, is the dependent variable, while its arguments, , and , are independent variables. One could approach this function more formally and think about its domain and range: in function notation, here 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 . This gives a function
where now and are also regarded as constants. Mathematically, this constitutes a partial application of the earlier function .
This illustrates how independent variables and constants are largely dependent on the point of view taken. One could even regard as a variable to obtain a function
Moduli spaces
Considering constants and variables can lead to the concept of moduli spaces. For illustration, consider the equation for a parabola,
where , , , and are all considered to be real. The set of points in the 2D plane satisfying this equation trace out the graph of a parabola. Here, , and are regarded as constants, which specify the parabola, while and are variables.
Then instead regarding , and as variables, we observe that each set of 3-tuples 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
* Lambda calculus
* Observable variable
* Physical constant
* Propositional variable
References
Bibliography
*
*
*
*
*
*
*
*
*
*
{{DEFAULTSORT:Variable (mathematics)
Variables (mathematics),
Algebra
Calculus
Elementary mathematics
Syntax (logic)
Mathematical logic