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.[1]

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.

Contents

  • 1 History
  • 2 Notation
  • 3 Specific kinds of variables
    • 3.1 Dependent and independent variables
    • 3.2 Examples
      • 3.2.1 Example: the ideal gas law
  • 4 Moduli spaces
  • 5 Conventional variable names
  • 6 See also

1 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”.[2]

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.[3]

In 1637, René Descartes “invented the convention of representing unknowns in equations by x, y, and z, and knowns by a, b, and c”.[4] 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.[5]

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 y = f(x) for a function f, its variable x and its value y. 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 x varies and tends toward a, then f(x) tends toward L”, without any accurate definition of “tends”. Weierstrass replaced this sentence by the formula

{\displaystyle (\forall \epsilon >0)(\exists \eta >0)(\forall x);|x-a|<\eta \Rightarrow |L-f(x)|<\epsilon ,}(\forall \epsilon >0) (\exists \eta >0) (\forall x) ;|x-a|<\eta \Rightarrow |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).

2 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 x2), another variable (xi), a word or abbreviation of a word (xtotal) or a mathematical expression (x2i + 1). 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.[6] In printed mathematics, the norm is to set variables and constants in an italic typeface.[7]

For example, a general quadratic function is conventionally written as {\textstyle ax^{2}+bx+c,}{\textstyle ax^{2}+bx+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 {\textstyle x\mapsto ax^{2}+bx+c,}{\textstyle x\mapsto ax^{2}+bx+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.[8]

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.

3 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

{\displaystyle ax{3}+bx{2}+cx+d=0,}ax3+bx2+cx+d=0,
is interpreted as having five variables: four, a, b, c, d, which are taken to be given numbers and the fifth variable, x, is understood to be an unknown number. To distinguish them, the variable x 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”, “x is the variable of the function f: x ↦ f(x)”, “f is a function of the variable x” (meaning that the argument of the function is referred to by the variable x).

In the same context, variables that are independent of x 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 e and π, even when they represents Euler’s number and 3.14159…

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.

3.1 Dependent and independent variables

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 y, whose possible values depend on the value of another variable, say x. In mathematical terms, the dependent variable y represents the value of a function of x. To simplify formulas, it is often useful to use the same symbol for the dependent variable y and the function mapping x onto y. 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.[9]

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), the three variables may be all independent and the notation represents a function of three variables. On the other hand, if y and z depend on x (are dependent variables) then the notation represents a function of the single independent variable x.[10]

3.2 Examples

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

{\displaystyle f(x)=x^{2}+\sin(x+4)}{\displaystyle 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

{\displaystyle \sum _{i=1}^{n}i={\frac {n^{2}+n}{2}}}{\displaystyle \sum _{i=1}^{n}i={\frac {n^{2}+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.

3.2.1 Example: the ideal gas law

Consider the equation describing the ideal gas law,

{\displaystyle PV=Nk_{B}T.}{\displaystyle PV=Nk_{B}T.}
This equation would generally be interpreted to have four variables, and one constant. The constant is {\displaystyle k_{B}}k_{B}, the Boltzmann constant. One of the variables, {\displaystyle N}N, the number of particles, is a positive integer (and therefore a discrete variable), while the other three, {\displaystyle P,V}{\displaystyle P,V} and {\displaystyle T}T, for pressure, volume and temperature, are continuous variables.
One could rearrange this equation to obtain {\displaystyle P}P as a function of the other variables,

{\displaystyle P(V,N,T)={\frac {Nk_{B}T}{V}}.}{\displaystyle P(V,N,T)={\frac {Nk_{B}T}{V}}.}
Then {\displaystyle P}P, as a function of the other variables, is the dependent variable, while its arguments, {\displaystyle V,N}{\displaystyle V,N} and {\displaystyle T}T, are independent variables. One could approach this function more formally and think about its domain and range: in function notation, here {\displaystyle P}P is a function {\displaystyle P:\mathbb {R} _{>0}\times \mathbb {N} \times \mathbb {R} _{>0}\rightarrow \mathbb {R} }{\displaystyle 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 {\displaystyle T}T. This gives a function

{\displaystyle P(T)={\frac {Nk_{B}T}{V}},}{\displaystyle P(T)={\frac {Nk_{B}T}{V}},}
where now {\displaystyle N}N and {\displaystyle V}V are also regarded as constants. Mathematically, this constitutes a partial application of the earlier function {\displaystyle P}P.
This illustrates how independent variables and constants are largely dependent on the point of view taken. One could even regard {\displaystyle k_{B}}k_{B} as a variable to obtain a function

{\displaystyle P(V,N,T,k_{B})={\frac {Nk_{B}T}{V}}.}{\displaystyle P(V,N,T,k_{B})={\frac {Nk_{B}T}{V}}.}

4 Moduli spaces

See also: moduli spaces
Considering constants and variables can lead to the concept of moduli spaces. For illustration, consider the equation for a parabola,

{\displaystyle y=ax^{2}+bx+c,}{\displaystyle y=ax^{2}+bx+c,}
where {\displaystyle a,b,c,x}{\displaystyle a,b,c,x} and {\displaystyle y}y are all considered to be real. The set of points {\displaystyle (x,y)}(x,y) in the 2D plane satisfying this equation trace out the graph of a parabola. Here, {\displaystyle a,b}a,b and {\displaystyle c}c are regarded as constants, which specify the parabola, while {\displaystyle x}x and {\displaystyle y}y are variables.
Then instead regarding {\displaystyle a,b}a,b and {\displaystyle c}c as variables, we observe that each set of 3-tuples {\displaystyle (a,b,c)}(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.

5 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 {\displaystyle f(x)}f(x))
i for the imaginary unit
i, j, k (sometimes l or h) for varying integers or indices in an indexed family, or unit vectors
l and w for the length and width of a figure
l also for a line, or in number theory for a prime number not equal to p
n (with m as a second choice) for a fixed integer, such as a count of objects or the degree of an equation
p for a prime number or a probability
q for a prime power or a quotient
r for a radius, a remainder or a correlation coefficient
t for time
x, y, z for the three Cartesian coordinates of a point in Euclidean geometry or the corresponding axes
z for a complex number, or in statistics a normal random variable
α, β, γ, θ, φ for angle measures
ε (with δ as a second choice) for an arbitrarily small positive number
λ for an eigenvalue
Σ (capital sigma) for a sum, or σ (lowercase sigma) in statistics for the standard deviation[11]
μ for a mean

6 See also

Lambda calculus
Observable variable
Physical constant
Propositional variable

Variable (mathematics)相关推荐

  1. Abraham Robinson and Nonstandard Analysis: History, Philosophy, and Foundations of Mathematics

    Abraham Robinson and Nonstandard Analysis: History, Philosophy, and Foundations of Mathematics Mathe ...

  2. Mathematics English Vocabulary (Cited)

    一般词汇 数学 mathematics, maths(BrE), math(AmE) 公理 axiom 定理 theorem 计算 calculation 运算 operation 证明 prove ...

  3. TENSORFLOW变量作用域(VARIABLE SCOPE)

    举例说明 TensorFlow中的变量一般就是模型的参数.当模型复杂的时候共享变量会无比复杂. 官网给了一个case,当创建两层卷积的过滤器时,每输入一次图片就会创建一次过滤器对应的变量,但是我们希望 ...

  4. TF.VARIABLE和TENSOR的区别(转)

    刷课过程中思考到Variable和Tensor之间的区别,尝试发现在如下代码中: a = tf.Variable(tf.ones(1)) b = tf.add(a,tf.ones(1)) 1 2 a是 ...

  5. pytorch之Tensor与Variable的区别

    首先在变量的操作上: Tensor对象支持在原对象内存区域上修改数据,通过"+="或者torch.add()方法 而Variable不支持在原对象内存区域上修改数据 Variabl ...

  6. pytorch: Variable detach 与 detach_

    pytorch 的 Variable 对象中有两个方法,detach和 detach_ 本文主要介绍这两个方法的效果和 能用这两个方法干什么. detach 官方文档中,对这个方法是这么介绍的. 返回 ...

  7. error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. 的解决方法

    vs2013编译出错信息:错误    1    error C4996: 'fopen': This function or variable may be unsafe. Consider usin ...

  8. 【cs229-Lecture2】Linear Regression with One Variable (Week 1)(含测试数据和源码)

    从Ⅱ到Ⅳ都在讲的是线性回归,其中第Ⅱ章讲得是简单线性回归(simple linear regression, SLR)(单变量),第Ⅲ章讲的是线代基础,第Ⅳ章讲的是多元回归(大于一个自变量). 本文的 ...

  9. python中tensor与variable_NLP实战篇之tf2中tensor、variable、gradient、ops

    本文是基于tensorflow2.2.0版本,介绍了tf中变量.张量的概念,tf中梯度的计算方式和tensor相关的操作. 实战系列篇章中主要会分享,解决实际问题时的过程.遇到的问题或者使用的工具等等 ...

最新文章

  1. 大数据中用到的新的数据类型bigint、decimal、smallint、tinyint
  2. mac 下如何使用lrzsz 上传下载文件
  3. EasyUI中Panel面板的简单使用
  4. android判断银行卡号格式不正确的是什么意思,android银行卡号验证算法详解
  5. [剑指offer] 矩阵覆盖
  6. Android 4.4(KitKat)中的设计模式-Graphics子系统
  7. P3899 [湖南集训]谈笑风生(线段树合并)
  8. nosql的数据服务_使用NoSQL实现实体服务–第2部分:合同优先
  9. webapi自宿主设置本地端口使用https协议
  10. theano 0.7 版本降到0.6 版本
  11. Oracle 无备份情况下的恢复--密码文件/参数文件
  12. c语言else语句,C# if…else 语句 | 菜鸟教程
  13. Wireless工具配置
  14. 特征探索性分析Exploring_features
  15. 基于51单片机的智能花盆测控(温湿度、光照)【仿真资料-126】
  16. LR关联知识点详解(精品总结)一定要看
  17. dna编码库_DNA编码化合物库,新药筛选划时代的变革
  18. linux系统克隆后eth0不见了(IP地址没有了)
  19. 手环服务器维修,智能手环解决方案
  20. java MySQL所有语句

热门文章

  1. 何为智能家居上游产业?对其发展有何影响
  2. Postgres 数据存储位置
  3. 微软推出超强关键词分析工具
  4. Git submodule 采坑
  5. C语言-密码2,输入一行电报文字,将字母变成其下一字母(如’a’变成’b’……’z’变成’a’其它字符不变)。
  6. 算法学习之“Big Oh Notation”
  7. CSU 1726: 你经历过绝望吗?两次!
  8. 记录第一次出差的经历
  9. EtherCAT理论学习笔记【二】——寻址服务与FMMU
  10. MIT线性代数笔记四 矩阵的LU分解