Jump to content

Expression (mathematics)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 103.255.4.83 (talk) at 12:12, 9 May 2017 (Syntax). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

Examples

The use of expressions ranges from the simple:

  (linear polynomial)
  (quadratic polynomial)
  (rational fraction)

to the complex:

Forms

Forms of mathematical expressions include arithmetic expressions, polynomials, algebraic expressions, closed-form expressions, and analytical expressions. The table below illustrates the elements these forms may contain.

Arithmetic expressions Polynomial expressions Algebraic expressions Closed-form expressions Analytic expressions Mathematical expressions
Constant Yes Yes Yes Yes Yes Yes
Elementary arithmetic operation Yes Addition, subtraction, and multiplication only Yes Yes Yes Yes
Finite sum Yes Yes Yes Yes Yes Yes
Finite product Yes Yes Yes Yes Yes Yes
Finite continued fraction Yes No Yes Yes Yes Yes
Variable No Yes Yes Yes Yes Yes
Integer exponent No Yes Yes Yes Yes Yes
Integer nth root No No Yes Yes Yes Yes
Rational exponent No No Yes Yes Yes Yes
Integer factorial No No Yes Yes Yes Yes
Irrational exponent No No No Yes Yes Yes
Exponential function No No No Yes Yes Yes
Logarithm No No No Yes Yes Yes
Trigonometric function No No No Yes Yes Yes
Inverse trigonometric function No No No Yes Yes Yes
Hyperbolic function No No No Yes Yes Yes
Inverse hyperbolic function No No No Yes Yes Yes
Root of a polynomial that is not an algebraic solution No No No No Yes Yes
Gamma function and factorial of a non-integer No No No No Yes Yes
Bessel function No No No No Yes Yes
Special function No No No No Yes Yes
Infinite sum (series) (including power series) No No No No Convergent only Yes
Infinite product No No No No Convergent only Yes
Infinite continued fraction No No No No Convergent only Yes
Limit No No No No No Yes
Derivative No No No No No Yes
Integral No No No No No Yes

Syntax versus semantics

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

x 3 is well-formed, but the following expression is not:

.

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 x 3 can have different values (mathematically 7, but also 9), depending on the order of operations implied by the context (See Order of 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 to designate an internal direct sum.

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).

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 value assigned the free variables and whose output is the resulting value of the expression.[citation needed]

For example, the expression

evaluated for x = 10, y = 5, will give 2; but it is undefined for 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

has free variable x, bound variable n, constants 1, 2, and 3, two occurrences of an implicit multiplication operator, and a summation operator. The expression is equivalent to the simpler expression 12x. The value for x = 3 is 36.

See also

Notes

References