Expression (mathematics)

In mathematics, an expression or mathematical expression is a finite combination of symbols that is well-formed according to rules that depend on the context. Mathematical symbols can designate numbers (constants), variables, operations, functions, brackets, punctuation, and grouping to help determine order of operations and other aspects of logical syntax.

Many authors distinguish an expression from a formula, the former denoting a mathematical object, and the latter denoting a statement about mathematical objects. For example, 8 x − 5 8x - 5 8x5 is an expression, while 8 x − 5 ≥ 5 x − 8 8x - 5 \geq 5x - 8 8x55x8 is a formula. However, in modern mathematics, and in particular in computer algebra, formulas are viewed as expressions that can be evaluated to true or false, depending on the values that are given to the variables occurring in the expressions. For example 8 x − 5 ≥ 5 x − 8 8x - 5 \geq 5x - 8 8x55x8 takes the value false is x x x is given a value less than − 1 -1 1, and the value true otherwise.

1 Examples


The use of expressions ranges from the simple:
3 + 8 {\displaystyle 3+8} 3+8
8 x − 5 8x-5 8x5 (linear polynomial)
7 x 2 + 4 x − 10 7{{x}^{2}}+4x-10 7x2+4x10 (quadratic polynomial)
x − 1 x 2 + 12 \displaystyle {\frac {x-1}{{{x}^{2}}+12}} x2+12x1 (rational fraction)

to the complex:
f ( a ) + ∑ k = 1 n 1 k ! d k d t k ∣ t = 0 f ( u ( t ) ) + ∫ 0 1 ( 1 − t ) n n ! d n + 1 d t n + 1 f ( u ( t ) )   d t . \displaystyle f(a)+\sum _{k=1}^{n}\left.{\frac {1}{k!}}{\frac {d^{k}}{dt^{k}}}\right|_{t=0}f(u(t))+\int _{0}^{1}{\frac {(1-t)^{n}}{n!}}{\frac {d^{n+1}}{dt^{n+1}}}f(u(t))\,dt. f(a)+k=1nk!1dtkdk t=0f(u(t))+01n!(1t)ndtn+1dn+1f(u(t))dt.

2 Syntax versus semantics


2.1 Syntax


An expression is a syntactic construct. It must be well-formed: the allowed operators must have the correct number of inputs in the correct places, the characters that make up these inputs must be valid, have a clear order of operations, etc. Strings of symbols that violate the rules of syntax are not well-formed and are not valid mathematical expressions.

For example, in the usual notation of arithmetic, the expression 1 + 2 ∗ 3 1 + 2 * 3 1+23 is well-formed, but the following expression is not: × 4 ) x + , / y . \times 4)x+,/y. ×4)x+,/y.

2.2 Semantics


Semantics is the study of meaning. Formal semantics is about attaching meaning to expressions.

In algebra, an expression may be used to designate a value, which might depend on values assigned to variables occurring in the expression. The determination of this value depends on the semantics attached to the symbols of the expression. The choice of semantics depends on the context of the expression. The same syntactic expression 1 + 2 ∗ 3 1 + 2 * 3 1+23 can have different values (mathematically 7, but also 9), depending on the order of operations implied by the context (See also Operations § Calculators).

The semantic rules may declare that certain expressions do not designate any value (for instance when they involve division by 0); such expressions are said to have an undefined value, but they are well-formed expressions nonetheless. In general the meaning of expressions is not limited to designating values; for instance, an expression might designate a condition, or an equation that is to be solved, or it can be viewed as an object in its own right that can be manipulated according to certain rules. Certain expressions that designate a value simultaneously express a condition that is assumed to hold, for instance those involving the operator ⊕ {\displaystyle \oplus } to designate an internal direct sum.

2.3 Formal languages and lambda calculus


Formal languages allow formalizing the concept of well-formed expressions.

in the 1930s, a new type of expressions, called lambda expressions, were introduced by Alonzo Church and Stephen Kleene for formalizing functions and their evaluation. They form the basis for lambda calculus, a formal system used in mathematical logic and the theory of programming languages.

The equivalence of two lambda expressions is undecidable. This is also the case for the expressions representing real numbers, which are built from the integers by using the arithmetical operations, the logarithm and the exponential (Richardson’s theorem).

3 Variables


Many mathematical expressions include [variables]( . Any variable can be classified as being either a free variable or a bound variable.

For a given combination of values for the free variables, an expression may be evaluated, although for some combinations of values of the free variables, the value of the expression may be undefined. Thus an expression represents a function whose inputs are the values assigned to the free variables and whose output is the resulting value of the expression.

For example, the expression x y \frac{x}{y} yx evaluated for x = 10 , y = 5 x = 10, y = 5 x=10,y=5, will give 2 2 2; but it is undefined for y = 0 y = 0 y=0.

The evaluation of an expression is dependent on the definition of the mathematical operators and on the system of values that is its context.

Two expressions are said to be equivalent if, for each combination of values for the free variables, they have the same output, i.e., they represent the same function. Example:
The expression ∑ n = 1 3 ( 2 n x ) \sum _{n=1}^{3}(2nx) n=13(2nx) has free variable x x x, bound variable n n n, constants 1 , 2 , 3 1, 2,3 1,2,3, two occurrence of an implicit multiplication operator, and a summation operator. The expression is equivalent to the simpler expression 12 x 12x 12x. The value for x = 3 x = 3 x=3 is 36 36 36.

4 See also


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值