Lably
Skip to content

Expression (mathematics)

Symbolic description of a mathematical object

  • 16 min read
  • 6 chapters
  • 4 labs on Lably

Learn it on Lably

Expressions are commonly distinguished from formulas: expressions usually denote mathematical objects, whereas formulas are statements about mathematical objects, such as an equality. This is analogous to natural language, where a noun phrase refers to an object, and a whole sentence refers to a fact. For example, 8x−5 and 3 are both expressions, while the inequality 8x−5≥3 is a formula. However, formulas are often considered as expressions that can be evaluated to the Boolean values true or false.

To evaluate an expression means to find a numerical value equivalent to the expression. Expressions can be evaluated or simplified by replacing operations that appear in them with their result. For example, the expression 8×2−5 simplifies to 16−5, and evaluates to 11.

An expression is often used to define a function, by taking the variables to be arguments, or inputs, of the function, and assigning the output to be the evaluation of the resulting expression. For example, x↦x2+1 and f(x)=x2+1 define the function that associates to each number its square plus one. An expression with no variables would define a constant function. Usually, two expressions are considered equal or equivalent if they define the same function; such an equality is called a "semantic equality", that is, both expressions "mean the same thing."

Elementary mathematics

Variables and evaluation

In elementary algebra, a variable in an expression is a letter that represents a number whose value may change. To evaluate an expression with a variable means to find the value of the expression when the variable is substituted with given number. Expressions can be simplified by replacing operations that appear in them with their result, or by combining like-terms. The evaluation of an expression consists of repeating simplification steps until getting eventually a single number.

For example, take the expression 4x2+8; it can be evaluated for x = 3 in the following steps:

4⋅32+8, (replace x with 3)

4⋅9+8 (evaluate the square)

36+8 (evaluate the multiplication)

44 (evaluate the addition)

A term is a constant or the product of a constant and one or more variables. Some examples include 7,5x,13x2y,4b The constant of the product is called the coefficient. Terms that are either constants or have the same variables raised to the same powers are called like terms. If there are like terms in an expression, one can simplify the expression by combining the like terms. One adds the coefficients and keeps the same variable.

4x+7x+2x=13x

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 an operation over constants and free variables and whose output is the resulting value of the expression.

For a non-formalized language, that is, in most mathematical texts outside of mathematical logic, for an individual expression it is not always possible to identify which variables are free and bound. For example, in ∑i<kaik, depending on the context, the variable i can be free and k bound, or vice-versa, but they cannot both be free. Determining which value is assumed to be free depends on context and semantics.

Equivalence

An expression is often used to define a function, or denote compositions of functions, by taking the variables to be arguments, or inputs, of the function, and assigning the output to be the evaluation of the resulting expression. For example, x↦x2+1 and f(x)=x2+1 define the function that associates to each number its square plus one. An expression with no variables would define a constant function. In this way, 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. The equivalence between two expressions is called an identity and is sometimes denoted with ≡.

For example, in the expression ∑n=13(2nx), the variable n is bound, and the variable x is free. This expression is equivalent to the simpler expression 12 x; that is ∑n=13(2nx)≡12x. The value for x = 3 is 36, which can be denoted ∑n=13(2nx)|x=3=36.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Topics in mathematics