Variable

Pre-Algebra

A variable is a letter or symbol used in algebra to represent an unknown or changing quantity.

Definition

A variable is a letter that stands in for a number we do not know yet. Just like a blank in a fill-in-the-blank question, the variable holds a spot for a value.

Example

In the expression $x + 5$, the letter $x$ is a variable. If $x = 3$, the expression equals $8$. If $x = 10$, the expression equals $15$.

Key Insight

Variables let us write one rule that works for many different numbers, instead of writing out every case separately.

Definition

A variable is a symbol (usually a letter such as $x$, $y$, or $n$) that represents a quantity whose value can change or is not yet determined. Variables can appear in expressions, equations, and formulas.

Example

In the equation $2x + 3 = 11$, $x$ is the variable. Solving gives $x = 4$. In the formula $A = lw$, both $l$ and $w$ are variables representing length and width.

Key Insight

A variable can act as an unknown (one fixed value to find) or as a placeholder that truly varies, as in a function rule like $y = 2x$.

Definition

Formally, a variable is a symbol bound to a domain of values within a given mathematical context. In logic and formal algebra, a free variable ranges over all elements of its domain, while a bound variable is quantified (e.g., in "for all $x$"). In ring theory, polynomial rings $R[x]$ treat $x$ as an indeterminate, which is distinct from a real-number variable.

Example

In the polynomial $f(x) = 3x^2 - x + 7$, $x$ is an indeterminate. The expression is defined for any value in the domain. Substituting $x = 2$ yields $f(2) = 12 - 2 + 7 = 17$.

Key Insight

The distinction between a variable as "unknown to solve for" versus "indeterminate in a ring" underpins the difference between solving equations and studying polynomial structure.