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:
| Step | Stands for |
|---|---|
| P | Parentheses |
| E | Exponents |
| MD | Multiplication and Division (left to right) |
| AS | Addition and Subtraction (left to right) |
Example: evaluate 2 + 3 Γ (4 β 1)Β².
- Parentheses: (4 β 1) = 3 β 2 + 3 Γ 3Β²
- Exponent: 3Β² = 9 β 2 + 3 Γ 9
- Multiplication: 3 Γ 9 = 27 β 2 + 27
- 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.
- Group like terms: (5x + 3x) + (2 β 6)
- Combine: 8x + (β4)
- 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.
- Subtract 5 from both sides: 2x = 12
- 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.
Substitute x = 4: 2(4) + 5 = 8 + 5 = 13.
Simplify 7a + 3b β 2a.
Combine like terms: 7a β 2a = 5a. The 3b has no like term, so the result is 5a + 3b.
Solve x + 7 = 12.
Subtract 7 from both sides: x = 12 β 7 = 5.
Using PEMDAS, what is 3 + 4 Γ 2?
Multiplication comes before addition: 4 Γ 2 = 8, then 3 + 8 = 11.
Solve 3x = 21.
Divide both sides by 3: x = 21 Γ· 3 = 7.
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.
Keep exploring
More in Math