Home Algebra

Lesson 1 – What is a Variable?

Lexicon  ›  Mathematics  ›  Algebra  ›  Stage I — Foundations
Lesson 1 of 100 1% complete
Stage I — Foundations
LESSON 01 / 100

What is a Variable?

The single most important idea in all of algebra — and simpler than you think.


Before you can solve a single equation, you need to understand what algebra actually is. Algebra is the mathematics of unknowns — a tool for describing relationships and finding missing values. And the key that makes all of it possible is a single idea: the variable.

A variable is a symbol — almost always a letter — that stands in place of a number we either don’t know yet, or a number that can change. That’s it. One letter, standing in for a number.

x A variable. The most common one. But it could be any letter: a, b, n, t, y …

You’ve been working with the concept of variables your entire life without realising it. Every time you’ve asked “how much do I still need?” or “what’s the missing piece?” — that missing piece was a variable.

Analogy — An Empty Box

Imagine a box sitting on a table. You know the box contains some number of items, but you can’t see inside. In everyday language you’d say “some number of items.” In algebra, you give that mystery number a name — you call it x. The box is x. When you eventually open the box and count 7 items, you’ve solved for x. x = 7.

Letters let us write general rules that work for any number, not just one specific case. Consider this fact about numbers: any number plus zero equals itself. You could write that for specific cases forever:

5 + 0 = 5   |   100 + 0 = 100   |   3,847 + 0 = 3,847 We could list these forever and never cover every number.

Or, with a variable, we write it once and cover every possible number simultaneously:

x + 0 = x True for every number that x could represent. One statement, infinite cases.

This is the power of variables — they let us make statements about all numbers at once.

Any letter works as a variable, but mathematics has developed conventions — informal rules — about which letters tend to be used in which contexts. Knowing these makes reading algebra much less confusing.

Variable Typical Use Example
x, y, z General unknowns — the most common in equations Solve for x in: x + 5 = 12
a, b, c Constants or coefficients (numbers attached to variables) ax² + bx + c = 0 (the quadratic formula)
n, k Counting numbers — whole number quantities “n objects in the sequence”
t Time Distance = speed × t
r Rate or radius Interest = principal × r
P, V, T Physical quantities (Pressure, Volume, Temperature) PV = nRT (ideal gas law)
Important Note These are conventions, not laws. A variable is whatever letter you define it to be. The letter itself has no meaning — only the meaning you assign it.

Two types of quantities exist in algebra. It’s essential to distinguish them from the very start.

Variable A symbol representing a quantity that is unknown or can change. Its value is what we’re often trying to find. Written as a letter: x, y, n …
Constant A fixed, known value that does not change. Written as a number: 3, −7, 0.5, π …

In the expression 2x + 5, the 2 and 5 are constants (fixed values), while x is the variable (the unknown).

So far we’ve talked about variables as unknowns we need to find. But variables can also represent quantities that naturally vary — values that change depending on the situation. Consider the cost of buying apples:

Cost = 3 × n Here n is the number of apples. It’s not unknown — it changes depending on how many you buy.

If you buy 1 apple: Cost = 3 × 1 = R3. If you buy 4: Cost = 3 × 4 = R12. The variable n takes different values in different situations. This is the idea behind functions, which we’ll reach in Lesson 39.

✦ Example 1 — Identifying Variables & Constants

In each expression, identify the variable(s) and the constants.

4x + 7 Variable: x  |  Constants: 4 and 7 (the 4 is attached to x, the 7 stands alone)
a + b − 3 Variables: a and b  |  Constant: −3  |  Two variables in one expression — both are unknown
100 No variables. Just a constant. This is a simple number, not an algebraic expression.
5t − 2s + 9 Variables: t and s  |  Constants: 5, 2, and 9
✦ Example 2 — Translating Words into Variables

Assign a variable to represent the unknown quantity in each sentence.

“A number increased by 8 equals 15.” Let x = the unknown number. We can write: x + 8 = 15. (We’ll solve this in Lesson 17.)
“Leila earns R250 per shift. How much does she earn in n shifts?” Let n = number of shifts. Earnings = 250n. The variable n can be any positive whole number.
“The temperature dropped by some degrees and is now 4°C.” Let d = the unknown drop. If the original was T, then T − d = 4. Two variables — one for each unknown.
— ✦ —
✦ Practice Exercises — Lesson 01 ★☆☆ Beginner
1.1 Is x a variable or a constant? What about 12? What about π?
x → variable (it represents an unknown number)
12 → constant (it is a fixed, known value)
π → constant (≈ 3.14159… — it never changes, even though it looks like a letter)
1.2 In the expression 7y − 4, identify: (a) the variable, (b) the constant, (c) the number attached to the variable.
(a) Variable: y
(b) Constant (standing alone): −4
(c) The number attached to y is 7 (this is called the coefficient — we’ll cover it fully in Lesson 2)
1.3 List all variables and constants in: 3a + 2b − c + 10
Variables: a, b, c
Constants: 3 (attached to a), 2 (attached to b), 1 (attached to c — hidden, means “one c”), 10 (standalone)
1.4 Choose a variable and write an expression for: “A number multiplied by 5.”
Let n = the number
Expression: 5n  (or 5 × n — in algebra we usually drop the × sign) Any letter works here. 5x, 5k, 5t — all equally correct.
1.5 A parking lot charges R15 per hour. Write an expression for the total cost after h hours.
Cost = 15h
h is the variable (changes based on how long you park). 15 is the constant (fixed rate).
1.6 True or false: The variable x always represents the same number in every equation.
FALSE. x is just a label. In one equation x = 3; in another x = −7. The value of a variable depends entirely on the specific problem or equation.
1.7 ★ Challenge: Write a real-life situation that could be represented by the expression 50 − x. Describe what x means in your context.
Many valid answers. Example: “You start with R50 in your wallet. You spend x rands. The amount remaining is 50 − x.”
x here represents an unknown spending amount. The expression models a real situation using a variable.
What You Learned in Lesson 1
  • A variable is a letter that represents an unknown or changing number
  • A constant is a fixed, known value that does not change
  • Variables allow us to write rules that apply to all numbers simultaneously
  • Any letter can be a variable — the convention depends on the context
  • Variables can represent unknowns to solve for, or quantities that naturally vary
  • Writing an expression is the first step to translating real-world problems into algebra
Up Next Lesson 02 — Constants & Coefficients
“`
Next Lesson →
Lesson 2 - Constants & Coefficients