Overview

A variable is a symbol or name used to represent a quantity that can vary or whose specific value is not fixed. In broad use it serves as a placeholder that may stand for an unknown, a measurable quantity, or a value that changes over time. For concise introductions and definitions see further reading on variables.

Characteristics and notation

Variables are typically represented by letters such as x, y, t or descriptive names in programming. They can be:

  • Unknowns in algebraic equations (e.g., x in x + 2 = 5).
  • Parameters that index a family of objects (e.g., n in a sequence).
  • Independent and dependent variables in functions and experiments, where one affects the other.
  • Random variables in probability, which map outcomes to numbers.

Historical and conceptual background

The use of symbols to represent unknowns grew out of early algebraic practice and the development of symbolic notation. Over time, different disciplines adopted tailored conventions: mathematics emphasizes symbolic manipulation, statistics focuses on distributions, and programming treats variables as named storage locations with types and scopes. For discussions of specific conceptual uses see related resources.

Uses and examples

Variables appear in many contexts:

  1. Algebra: solve for x in equations.
  2. Calculus: use variables like t to express changing quantities and derivatives.
  3. Statistics: denote sample values or random variables such as X and Y.
  4. Computer science: variables hold values in memory and can be typed, local or global.
  5. Experiments: independent variables are manipulated to observe effects on dependent variables.

Variables are contrasted with constants, which have fixed values. In formal logic and programming one also distinguishes free versus bound variables: a bound variable is tied to a quantifier or local scope, while a free variable is not. In applied work it is important to specify domain, units, and whether a variable is continuous or discrete. For a brief note on constants see constant definitions.

Although the general idea is simple, the precise meaning of "variable" depends on context: a physicist, a statistician and a programmer may each emphasize different properties of the same symbol. Understanding those differences helps avoid confusion when moving between fields.