A Handbook of Mathematical Discourse
bound variable
A variable is bound in a symbolic expression if it is within the scope of an operator that turns the symbolic expression into something referring collectively to all the values of the variable (perhaps within limits). The operator is said to bind the variable. The operators that can do this include the existential and universal quantifiers, the integral sign, the sum and product notations $\Sigma$ and $\Pi$, and various notations for functions. (See also bound identifier.) A variable that is not bound is free.
A key property of a bound variable is that one is not allowed to substitute for it (but see Example 3).

Example 1 In the expression $x^{2} + 1$, the $x$ is a free variable. You can substitute 4 for $x$ in this expression and the result is 17. However, in $\int_{3}^{5} x^{2} + 1\,dx$, $x$ is bound by the integral sign. If you substitute 4 for $x$ you get nonsense: $\int_{3}^{5} 4^{2} + 1\,d4$.
Example 2 In the symbolic assertion $x > 7$, $x$ is free. In $\forall x (x > 7)$ it is bound by the universal quantifier (resulting in a false statement).
Example 3 This example is more subtle. In the following sentence, intended to define a function,
“Let $f(x) = x^{2} + 1$.”
the variable $x$ is bound. It is true that one can substitute for the $x$ in the equation to get, for example $f(2) = 5$, but that substitution changes the character of the statement, from the defining equation of a function to a statement about one of its values. It is clearer that the variable $x$ is bound in this statement
“Let the function $f(x)$ be defined by $f(x) = x^{2} + 1$.”
which could not be transformed into
“Let the function $f(2)$ be defined by $f(2) = 2^{2} + 1$.”
These remarks apply also to the variables that occur in lambda notation, but see Example 2 under barred arrow notation.
Terminology Bound variables are also called dummy variables. The latter phrase has low status.
Difficulties Students find it difficult to learn how to use bound variables correctly.
- They may allow variable clash.
- They may not understand that the choice of bound variable does not matter (except for variable clash); thus $\int_{2}^{5} x^{2}\,dx$ and $\int_{2}^{5} t^{2}\,dt$ are the same by their form.
- They may move a bound variable out of its binder, for example changing $\sum_{i=1}^{n} i^{2}$ to $i\sum_{i=1}^{n} i$ (which makes it easy to “solve”!).
- They may substitute for it, although in my teaching experience that is uncommon.
Remark 1 The discussion in Remark 2 under free variable applies to bound variables as well.
Remark 2 Church [1942] defines “bound” as simply “not free”.
Pages 30–31 of the book (PDF).