Expressions and Variables
Understand what a variable is, translate words into expressions, combine like terms and use the distributive property to simplify.
Welcome back!
Step 1 of 13Learn
A variable is just a number in disguise
Algebra scares many adults, but you've been doing it for years. A gym charges a $25 sign-up fee plus $30 a month. What does it cost for a year? You think: 25 + 30 × 12 = $385. If someone asks about any number of months, you'd say "25 plus 30 times the number of months." Algebra just writes that more compactly:
cost = 25 + 30m
Here m is a variable, a letter standing for a number that can change or that we don't know yet. The 30 in front of m is its coefficient. 25 + 30m is an expression: a recipe for a number. Plug in m = 6 and you get 25 + 180 = $205.
A few writing conventions:
- 30m means 30 × m. Letters next to numbers (or each other) are multiplied: ab means a × b.
- m/4 means m ÷ 4.
- m2 means m × m.
- Order of operations still applies: in 25 + 30m, multiply before adding.
Translating words into expressions is a key skill:
- "5 more than a number": n + 5
- "Twice a number, minus 3": 2n − 3
- "A number divided among 4 people": n/4
- "15% of a price p": 0.15p
- "The total cost of x tickets at $12 each plus a $4 fee": 12x + 4
Watch out for "less than." "7 less than a number" is n − 7, not 7 − n.
Step 2 of 13Practice · Diagram
Anatomy of an expression: 25 + 30m
Which part tells you how fast the cost grows each month?
Tap the shape that answers the question, then press Check.
- 25 + 30m
- 25: constant
A fixed number: the sign-up fee never changes.
- 30: coefficient
The number multiplying the variable: $30 per month.
- m: variable
Stands for the number of months, which can change.
- 30m: a term
Coefficient and variable together mean 30 × m.
Step 3 of 13Practice · Match the pairs
Match each phrase to its expression.
Tap an answer, then tap the place where it belongs (or drag it there).
- Three times a number, plus 4
- 4 less than three times a number
- A number plus 4, then tripled
- A number divided by 3, plus 4
Step 4 of 13Practice · Work it out
Evaluate 4x2 − 3x + 7 when x = 3.
Step 5 of 13Learn
Combining like terms
Like terms have exactly the same variable part. 5x and −2x are like terms; so are 3y2 and 8y2. But 4x and 4x2 are not, and neither are 7a and 7b.
You can combine like terms by adding their coefficients, the same way 5 apples plus 3 apples is 8 apples:
5x + 3x = 8x 7y − 2y + y = 6y (y means 1y)
Unlike terms can't be combined, just as 5 apples plus 3 oranges isn't 8 of anything. So 4x + 3y stays as it is.
To simplify a longer expression, group the like terms together:
6a + 4b − 2a + 9 − b + 3 = (6a − 2a) + (4b − b) + (9 + 3) = 4a + 3b + 12
Keep each term's sign attached to it when you move it around. In the expression above, −2a and −b carry their minus signs with them.
Why bother simplifying? Because a simpler expression is easier to evaluate and easier to reason about. If a weekly budget is food f, plus rent r, plus food again for guests f, minus a refund of 20, writing it as 2f + r − 20 makes it obvious what drives the cost.
Step 6 of 13Practice · Sort into groups
Which pairs are like terms that can be combined?
Tap an item, then tap its group (or drag it there).
Step 7 of 13Diagram
Grouping like terms in 6a + 4b − 2a + 9 − b + 3
Sort every term into its family, carrying its sign, then combine each family.
Tap a shape with to see more.
- 6a + 4b − 2a + 9 − b + 3
- a terms → 4a
6a − 2a = 4a
- b terms → 3b
4b − b = 3b (b means 1b)
- Numbers → 12
9 + 3 = 12
- 6a
- −2a
- 4b
- −b
- 9
- 3
Step 8 of 13Learn
The distributive property
The distributive property says that multiplying a sum by a number multiplies each part of the sum:
a(b + c) = ab + ac
You use it in mental math all the time. 6 × 47 = 6 × (40 + 7) = 240 + 42 = 282. Buying 4 lunches at $8 plus a $2 drink each costs 4(8 + 2) = 32 + 8 = $40.
In algebra, it lets you remove parentheses:
3(x + 5) = 3x + 15 −2(4y − 3) = −8y + 6
That second one hides the most common mistake: when you multiply by a negative number, every term inside changes sign. −2 times −3 is +6, not −6.
Going the other way is called factoring: pulling out a common factor. 12x + 18 = 6(2x + 3). It's useful when solving equations and simplifying fractions.
A full simplification often combines both skills:
4(2x − 1) − 3(x − 5) = 8x − 4 − 3x + 15 = 5x + 11
Here, the −3 multiplies both x and −5: −3 × x = −3x and −3 × −5 = +15. Forgetting to distribute the negative to the second term is the classic slip.
Step 9 of 13Try the calculator
Check a simplification by substitution
The read simplified 4(2x − 1) − 3(x − 5) to 5x + 11. Try any value of x: if both outputs always match, the simplification is right. Try a wrong version in your head, such as 5x − 19, and see how quickly a test value exposes it.
- Original: 4(2x − 1) − 3(x − 5)
- 16
- Simplified: 5x + 11
- 16
- Wrong version: 5x − 19 (forgot to distribute the −3)
- -14
Step 10 of 13Practice · Spot the mistake
Ivan simplified 5(x + 2) − 2(x − 4). Tap the line that contains his mistake.
Step 11 of 13Note
Step 12 of 13Practice · True or false
The expression 3(2x + 4) simplifies to 6x + 4.
Step 13 of 13Practice · Choose one
Simplify 7a − 3(a − 2) + 1.
Lesson complete!