No history yet

Understanding Variables

Meet the Variable

In math, we often work with numbers we know. For example, $2 + 2 = 4$. But what if we don't know a number yet? Or what if we want to write a rule that works for any number?

This is where variables come in. A variable is a letter or symbol that acts as a placeholder for a value. Think of it like a labeled box. You can put different numbers in the box, but the label—the variable—stays the same.

variable

noun

A symbol, usually a letter, that represents a quantity that can change or is unknown.

We use variables to turn specific statements into general rules. Instead of just saying that a square with sides of length 3 has a perimeter of 3+3+3+3=123+3+3+3 = 12, we can create a general formula for the perimeter of any square.

If we let the letter ss represent the side length, the perimeter is always s+s+s+ss+s+s+s, or more simply, 4×s4 \times s. Now, no matter what the side length is, we have a rule that works.

Variables let us write rules and formulas that apply to many different situations, not just one.

From Words to Expressions

A mathematical expression is a combination of numbers, variables, and operations like addition, subtraction, multiplication, and division. An expression doesn't have an equals sign; it just represents a value.

For example, x+7x + 7 is an expression. It means "a number plus seven." The value of this expression depends entirely on the value of xx. This process of building expressions is a core part of algebra.

Verbal PhraseAlgebraic Expression
A number increased by fiven+5n + 5
The product of three and a number3y3y
Ten less than a numberx10x - 10
A number divided by twoa/2a / 2 or a2\frac{a}{2}

Notice that in algebra, we often write multiplication by placing a number and a variable next to each other, like 3y3y, instead of using a multiplication sign (3×y3 \times y). This is to avoid confusion, since the letter 'x' is a very common variable.

Evaluating Expressions

Once you have an expression with a variable, you can find its value if you know what number the variable stands for. This is called substituting a value into the variable and then evaluating the expression.

Let's take our expression, x+7x + 7. What is its value if x=3x = 3?

To find out, we replace every instance of xx with the number 3.

x+7substitute x=33+7x + 7 \quad \xrightarrow{\text{substitute } x=3} \quad 3 + 7

Now it's just a simple arithmetic problem. 3+7=103 + 7 = 10. So, when x=3x=3, the expression x+7x+7 evaluates to 10.

Let's try another one. Evaluate the expression 4s4s (which means 4×s4 \times s) when s=5s=5.

  1. Substitute: Replace ss with 5. The expression becomes 4×54 \times 5.
  2. Evaluate: Calculate the result. 4×5=204 \times 5 = 20.

The power of this is that we can use the same expression for any value of ss. If the side of our square was 10 inches (s=10s=10), the perimeter would be 4×10=404 \times 10 = 40 inches. If it was 2.5 feet (s=2.5s=2.5), the perimeter would be 4×2.5=104 \times 2.5 = 10 feet. The expression 4s4s is a general tool, and substitution is how we use it for a specific case.

Let's see what you've learned about variables and expressions.

Quiz Questions 1/5

In mathematics, what is a variable?

Quiz Questions 2/5

Which of the following is a mathematical expression?