πŸ”£
MathπŸŽ“ Ages 14-18Intermediate 11 min read

Algebra Basics: Working with Variables

Learn algebra basics: what variables and expressions mean, combining like terms, the order of operations, and solving simple equations step by step.

Key takeaways

  • A variable is a letter that stands for an unknown or changing number
  • Like terms have the same variable part and can be combined: 3x + 2x = 5x
  • Follow the order of operations (PEMDAS) when evaluating expressions
  • Solve equations by doing the same operation to both sides to keep them balanced

From arithmetic to algebra

In arithmetic you work with fixed numbers like 3, 17, or 1/2. Algebra adds something powerful: variables. A variable is a letter β€” usually x, y, or n β€” that stands for a number we don't know yet, or a number that can change.

Algebra lets you write a single statement that captures a whole pattern. Instead of saying "double 3 is 6, double 5 is 10, double 8 is 16," you write 2x and it works for every value of x.

If you've worked through Introduction to Fractions, you'll recognise fractions appearing here as coefficients and answers.

Terms, coefficients, and expressions

An expression is a combination of numbers, variables, and operations, such as:

3x + 5

Let's name the parts:

  • 3x and 5 are terms (the pieces separated by + or βˆ’).
  • In the term 3x, the 3 is the coefficient (the number multiplying the variable).
  • 5 is a constant (a plain number with no variable).

A term like x by itself has a coefficient of 1, because x means 1 Β· x.

Evaluating an expression

To evaluate an expression, substitute a value for the variable and calculate.

Example: evaluate 4x βˆ’ 3 when x = 5.

$$ 4x - 3 = 4(5) - 3 = 20 - 3 = 17 $$

The same expression gives a different result for a different x. When x = 2, it becomes 4(2) βˆ’ 3 = 5.

Order of operations (PEMDAS)

When an expression mixes operations, follow a strict order so everyone gets the same answer:

StepStands for
PParentheses
EExponents
MDMultiplication and Division (left to right)
ASAddition and Subtraction (left to right)

Example: evaluate 2 + 3 Γ— (4 βˆ’ 1)Β².

  1. Parentheses: (4 βˆ’ 1) = 3 β†’ 2 + 3 Γ— 3Β²
  2. Exponent: 3Β² = 9 β†’ 2 + 3 Γ— 9
  3. Multiplication: 3 Γ— 9 = 27 β†’ 2 + 27
  4. Addition: 29

Combining like terms

Like terms have exactly the same variable part. You can add or subtract them by combining their coefficients.

  • 3x and 5x are like terms β†’ 3x + 5x = 8x
  • 4y and 7y are like terms β†’ 7y βˆ’ 4y = 3y
  • 3x and 5y are not like terms β†’ they stay separate

Example: simplify 5x + 2 + 3x βˆ’ 6.

  1. Group like terms: (5x + 3x) + (2 βˆ’ 6)
  2. Combine: 8x + (βˆ’4)
  3. Result: 8x βˆ’ 4

You cannot combine 8x and βˆ’4 because one has a variable and the other doesn't.

Solving simple equations

An equation says two expressions are equal, like x + 4 = 9. Solving means finding the value of the variable that makes it true.

The golden rule: whatever you do to one side, do to the other. This keeps the equation balanced, like a set of scales.

Example 1 β€” undo addition. Solve x + 4 = 9.

$$ x + 4 - 4 = 9 - 4 \quad\Rightarrow\quad x = 5 $$

Example 2 β€” undo multiplication. Solve 3x = 21.

$$ \frac{3x}{3} = \frac{21}{3} \quad\Rightarrow\quad x = 7 $$

Example 3 β€” two steps. Solve 2x + 5 = 17.

  1. Subtract 5 from both sides: 2x = 12
  2. Divide both sides by 2: x = 6

Always check your answer by substituting it back: 2(6) + 5 = 12 + 5 = 17. βœ“ It works.

Why this matters

Algebra is the language of patterns, science, and computing. Solving for an unknown is the same skill whether you're balancing a budget, predicting motion in physics, or writing a formula in a spreadsheet.

Practise the habit of doing the same thing to both sides, and always check by substitution. With those two ideas, you can solve a huge range of equations confidently.

Quick quiz

Test yourself and earn XP

Evaluate 2x + 5 when x = 4.

Simplify 7a + 3b βˆ’ 2a.

Solve x + 7 = 12.

Using PEMDAS, what is 3 + 4 Γ— 2?

Solve 3x = 21.

FAQ

Letters let us describe a rule or relationship that works for many numbers at once, and they let us represent an unknown value we are trying to find.