# Variable (mathematics) explained

In mathematics, a variable (from Latin variabilis, "changeable") is a symbol and placeholder for any mathematical object. In particular, a variable may represent a number, a vector, a matrix, a function, the argument of a function, a set, or an element of a set.

Algebraic computations with variables as if they were explicit numbers solve a range of problems in a single computation. For example, the quadratic formula solves any quadratic equation by substituting the numeric values of the coefficients of that equation for the variables that represent them in the quadratic formula. In mathematical logic, a variable is either a symbol representing an unspecified term of the theory (a meta-variable), or a basic object of the theory that is manipulated without referring to its possible intuitive interpretation.

## History

In ancient works such as Euclid's Elements, single letters refer to geometric points and shapes. In the 7th century, 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".

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 "invented the convention of representing unknowns in equations by x, y, and z, and knowns by a, b, and c". Contrarily to Viète's convention, Descartes' is still commonly in use. The history of the letter x in math was discussed in a 1887 Scientific American article.

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 variable quantity 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 for a function, its variable and its value . 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 varies and tends toward, then tends toward ", without any accurate definition of "tends". Weierstrass replaced this sentence by the formula

(\forall\epsilon>0)(\existsη>0)(\forallx)|x-a|<η|L-f(x)|<\epsilon,

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), another variable, a word or abbreviation of a word or a mathematical expression . 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 a, b, c are commonly used for known values and parameters, and letters at the end of the alphabet such as (x, y, z) are commonly used for unknowns and variables of functions. In printed mathematics, the norm is to set variables and constants in an italic typeface.

For example, a general quadratic function is conventionally written as $a x^2 + b x + c\,$, where a, b and c are parameters (also called constants, because they are constant functions), while x is the variable of the function. A more explicit way to denote this function is $x\mapsto a x^2 + b x + c \,$, which clarifies the function-argument status of x and the constant status of a, b and c. Since c occurs in a term that is a constant function of x, 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 x, y, and z. 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 X, Y, Z for the names of random variables, keeping x, y, z for variables representing corresponding better-defined values.

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

ax3+bx2+cx+d=0,

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 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", " 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 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 the strong relationship between polynomials and polynomial function, the term "constant" is often used to denote the coefficients of a polynomial, which are constant functions of the indeterminates.

This use of "constant" as an abbreviation of "constant function" must be distinguished from the normal meaning of the word in mathematics. A constant, or mathematical constant is a well and unambiguously defined number or other mathematical object, as, for example, the numbers 0, 1, and the identity element of a group. Since a variable may represent any mathematical object, a letter that represents a constant is often called a variable. This is, in particular, the case of and, even when they represents Euler's number and

Other specific names for variables are:

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

See main article: 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 .

### Examples

If one defines a function f from the real numbers to the real numbers by

f(x)=x2+\sin(x+4)

then x is a variable standing for the argument of the function being defined, which can be any real number.

In the identity

 n \sum i=1

i=

 n2+n 2

the variable i is a summation variable which designates in turn each of the integers 1, 2, ..., n (it is also called index because its variation is over a discrete set of values) while n 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 + c, where a, b and c are called coefficients (they are assumed to be fixed, i.e., parameters of the problem considered) while x is called a variable. When studying this polynomial for its polynomial function this x stands for the function argument. When studying the polynomial as an object in itself, x 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, $PV = Nk_BT.$This equation would generally be interpreted to have four variables, and one constant. The constant is

kB

, the Boltzmann constant. One of the variables,

N

, the number of particles, is a positive integer (and therefore a discrete variable), while the other three,

P,V

and

T

, for pressure, volume and temperature, are continuous variables.

One could rearrange this equation to obtain

P

as a function of the other variables,$P(V, N, T) = \frac.$Then

P

, as a function of the other variables, is the dependent variable, while its arguments,

V,N

and

T

, are independent variables. One could approach this function more formally and think about its domain and range: in function notation, here

P

is a function

P:R>0 x N x R>0R

.

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

T

. This gives a function$P(T) = \frac,$where now

N

and

V

are also regarded as constants. Mathematically, this constitutes a partial application of the earlier function

P

.

This illustrates how independent variables and constants are largely dependent on the point of view taken. One could even regard

kB

as a variable to obtain a function $P(V, N, T, k_B) = \frac.$

## Moduli spaces

Considering constants and variables can lead to the concept of moduli spaces. For illustration, consider the equation for a parabola, $y = ax^2 + bx + c,$where

a,b,c,x

and

y

are all considered to be real. The set of points

(x,y)

in the 2D plane satisfying this equation trace out the graph of a parabola. Here,

a,b

and

c

are regarded as constants, which specify the parabola, while

x

and

y

are variables.

a,b

and

c

as variables, we observe that each set of 3-tuples

(a,b,c)

corresponds to a different parabola. That is, they specify coordinates on the 'space of parabolas': this is known as a moduli space of parabolas.

## Conventional variable names

• a, b, c, d (sometimes extended to e, f) for parameters or coefficients
• a0, a1, a2, ... for situations where distinct letters are inconvenient
• ai or ui for the i-th term of a sequence or the i-th coefficient of a series
• e for Euler's number
• f, g, h for functions (as in

f(x)

)

## Bibliography

• Book: Edwards, Joseph . An Elementary Treatise on the Differential Calculus . MacMillan and Co. . London . 1892 . 2nd .
• Book: Foerster, Paul A. . Algebra and Trigonometry: Functions and Applications . classics . 2006 . 978-0-13-165711-3 . Prentice Hall . Upper Saddle River, NJ . registration .
• Book: Fraleigh, John B. . A First Course in Abstract Algebra . Addison-Wesley . 4th . 1989 . United States . 978-0-201-52821-3 . registration.
• Book: Hosch . William L. . The Britannica Guide to Algebra and Trigonometry . Britannica Educational Publishing . 2010 . 978-1-61530-219-2 .
• Menger . Karl . Karl Menger . On Variables in Mathematics and in Natural Science . The British Journal for the Philosophy of Science . University of Chicago Press . 5 . 18 . 134–142 . 1954 . 10.1093/bjps/V.18.134 . 685170.
• Book: Peregrin, Jaroslav . Jaroslav Peregrin . http://w.jarda.peregrin.cz/mybibl/PDFTxt/414.pdf . Variables in Natural Language: Where do they come from? . Böttner . Michael . Thümmel . Wolf . Variable-Free Semantics . 2000 . 46–65 . Osnabrück Secolo . 978-3-929979-53-4.
• Quine . Willard V. . Willard Van Orman Quine . Variables Explained Away . Proceedings of the American Philosophical Society . American Philosophical Society . 104 . 3 . 343–347 . 1960 . 985250.
• Book: Sorell, Tom . Tom Sorell . Descartes: A Very Short Introduction . 2000 . New York . Oxford University Press . 978-0-19-285409-4 .
• Encyclopedia: Stover . Christopher . Weisstein . Eric W. . Eric W. Weisstein . Weisstein . Eric W. . Variable . 2021-11-22 . Wolfram MathWorld . Wolfram Research.
• Book: Tabak, John . Algebra: Sets, Symbols, and the Language of Thought . 2014 . Infobase Publishing . 978-0-8160-6875-3 .

## Notes and References

1. [#SW|Stover & Weisstein]
2. .
3. .
4. .
5. Book: Scientific American. 1887-09-03. Munn & Company. 148. en.
6. Edwards Art. 4
7. .
8. Edwards Art. 5
9. Edwards Art. 6
10. Web site: Weisstein. Eric W.. Sum. 2022-02-14. mathworld.wolfram.com. en.
{"ft_lang_label":"__label__en","ft_lang_prob":0.915863,"math_prob":0.9783848,"size":9987,"snap":"2023-40-2023-50","text_gpt3_token_len":2121,"char_repetition_ratio":0.16948813,"word_repetition_ratio":0.012269938,"special_character_ratio":0.20406528,"punctuation_ratio":0.11524164,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9964099,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-22T11:29:20Z\",\"WARC-Record-ID\":\"<urn:uuid:b42e4f75-45b3-4625-bf7a-14393c9a6a89>\",\"Content-Length\":\"44946\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0b8bed9f-68f6-45a6-abd4-ae6aaed691ef>\",\"WARC-Concurrent-To\":\"<urn:uuid:f9200595-29f5-4958-8bf5-38c5ab62ad14>\",\"WARC-IP-Address\":\"85.25.210.18\",\"WARC-Target-URI\":\"http://everything.explained.today/Variable_(mathematics)/\",\"WARC-Payload-Digest\":\"sha1:3SVCODDLME6C6WUZZN4EI7KRK4X2WIZV\",\"WARC-Block-Digest\":\"sha1:44HM4R5IDO6AP4IOBVX5CPPIYFXKTCPL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506399.24_warc_CC-MAIN-20230922102329-20230922132329-00075.warc.gz\"}"}