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 : ax^3+bx^2+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 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 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 from the
real numbers to the real numbers by : f(x) = x^2+\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 : \sum_{i=1}^n i = \frac{n^2+n}2 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
coefficients (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, PV = Nk_\text{B}T. 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, P(V, N, T) = \frac{Nk_\text{B}T}{V}. 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 P: \mathbb{R}_{>0} \times \mathbb{N} \times \mathbb{R}_{>0} \rightarrow \mathbb{R}. 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 P(T) = \frac{Nk_\text{B}T}{V}, 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 P(V, N, T, k_\text{B}) = \frac{Nk_\text{B}T}{V}. == Moduli spaces ==