Chapter 8 Intermediate 18 min read Updated 2026-11-28

Introduction to Algebra

Practice Questions →

In This Chapter

What Is It?

What Is Algebra?

Algebra is the part of maths where letters stand for numbers. Instead of saying "some number we do not know yet", we write a letter such as x or n. The letter is a placeholder, like an empty box with a label on it, waiting for a number to be put inside.

A letter that stands for a number is called a variable, because the number it stands for can vary (change). In a formula such as "cost = 3 × number of pens", the number of pens can be 1, 5 or 20, and the cost changes with it. When a letter stands for one particular number that we are trying to find, it is often called an unknown.

Algebra is really arithmetic written in general. You already know that 3 + 3 + 3 + 3 = 4 × 3, and that 5 + 5 + 5 + 5 = 4 × 5. Algebra lets us say this once for every number: n + n + n + n = 4n. One short line now covers millions of facts.

In this chapter you will learn the language of algebra (terms, expressions and coefficients), how to write expressions from words, how to tidy them up by collecting like terms, how to expand and factorise brackets, and how to substitute numbers into an expression to find its value. These skills are the toolkit for solving equations in the next chapter and for almost everything in secondary school maths after that.

Why Does It Matter?

Why Does It Matter?

Algebra can look like a page of letters with no purpose, but it is the tool that turns a one-off calculation into a rule that works every time.

Money and Phone Plans

Suppose a phone plan costs £10 a month plus £2 for every gigabyte of extra data. Rather than working out every possible bill, you can write one rule: cost = 10 + 2g, where g is the number of extra gigabytes. Any bill can now be found in seconds, and two plans can be compared fairly.

Spreadsheets and Coding

A spreadsheet formula such as =B2*C2+5 is algebra: B2 and C2 are variables whose values can change. In programming, a variable such as score or lives holds a number that changes as a game is played. Every app on your phone is built on this idea.

Cooking and Scaling Recipes

If a recipe for 4 people uses 300 g of flour, then for p people it uses 75p grams. Chefs, bakers and food factories scale recipes up and down with exactly this kind of expression.

Science and Engineering

Science is full of formulas written in algebra: distance = speed × time, or d = st; area of a circle = πr². Engineers designing bridges, aircraft and phones substitute measured values into these formulas thousands of times a day.

Sport

Football leagues award 3 points for a win and 1 for a draw, so a team's points are 3w + d. Coaches and fans use rules like this to work out what results a team needs, and sports analysts use far bigger formulas to rate players.

Thinking Clearly

Algebra also trains you to spot patterns and explain why they always work. With algebra you can prove that the sum of three consecutive whole numbers is always a multiple of 3, instead of just testing a few examples and hoping.

Detailed Explanation

Algebra Explained Step by Step

1. Letters Stand for Numbers

Imagine a bag of marbles. You cannot see inside, so you do not know how many marbles it holds. Call that number m. If you add 3 more marbles, there are now m + 3 marbles. If you have two bags the same, there are 2m marbles altogether. You can describe the situation exactly, even though you do not know m.

This is the heart of algebra. The letter is not a word or an object: m does not mean "marbles", it means "the number of marbles". Keeping that idea clear prevents many mistakes later.

Any letter can be used, but some are traditional: x and y for unknowns, n for a whole number, t for time and r for a radius. Letters are written in italics in printed maths so that the variable a is not confused with the word "a".

2. The Vocabulary of Algebra

A few words appear again and again. Learning them now makes every later explanation easier to follow.

WordMeaningExample
TermA single number, letter, or numbers and letters multiplied together5, x, 4y, 3ab, 2x²
ExpressionOne or more terms joined by + or −, with no equals sign4y + 3x − 7
CoefficientThe number in front of a letter in a termIn 4y, the coefficient is 4
ConstantA term with no letter, so its value never changesIn 4y − 7, the constant is −7
EquationTwo expressions joined by =, true only for certain values2x + 1 = 9 (true only when x = 4)
FormulaA rule linking two or more variablesA = lw (area of a rectangle)
IdentityA statement true for every value of the letter, sometimes written with ≡3(x + 2) ≡ 3x + 6

Notice that each term carries the sign in front of it. In 4y − 7, the terms are +4y and −7. When you move terms around, the sign must travel with its term.

3. Writing Algebra the Short Way

Algebra has its own shorthand, which keeps expressions short and clear:

  • Leave out the × sign. 3 × n is written 3n, and a × b is written ab.
  • Put the number first. n × 3 is also written 3n, never n3.
  • Letters usually go in alphabetical order. b × a × 2 is written 2ab.
  • Do not write a 1. 1 × x is just x, and −1 × x is just −x.
  • Repeated letters become powers. x × x = x² (x squared), and y × y × y = y³.
  • Division is written as a fraction. a ÷ 4 is written a/4 (or a over 4).

Be careful: 2x means 2 × x, so when x = 5, 2x is 10, not 25. The digits are not stuck together like a two-digit number.

Also, x² and 2x are different. x² is x × x, while 2x is x + x. When x = 3, x² = 9 but 2x = 6.

4. Writing Expressions from Words

Many problems start in words, so you need to translate words into algebra. Imagine you are a translator turning a sentence into a short code. Here are the most common phrases, using n for the number:

WordsAlgebra
5 more than nn + 5
3 less than nn − 3
n less than 1010 − n
twice n, or double n2n
n multiplied by 7, then 4 added7n + 4
4 added to n, then multiplied by 77(n + 4)
half of nn/2
n squaredn²

Watch the order in "less than". "3 less than n" means start with n and take 3 away, so it is n − 3. Writing 3 − n is a very common slip. Test it with a real number: 3 less than 10 is 7, and 10 − 3 = 7.

The order of the steps also matters. "Multiply by 7, then add 4" is 7n + 4, but "add 4, then multiply by 7" needs brackets: 7(n + 4). This links directly to the order of operations from the previous chapter.

5. Collecting Like Terms

Imagine a fruit bowl with 3 apples and 2 bananas. Someone adds 4 apples and 1 banana. You now have 7 apples and 3 bananas. You would never say "10 apple-bananas", because apples and bananas are different things.

Algebra works the same way. Like terms have exactly the same letters raised to exactly the same powers. Only like terms can be added or subtracted, and you do it by adding or subtracting their coefficients.

3a + 2b + 4a + b = 7a + 3b

Pair of termsLike terms?Why
5x and −2xYesSame letter, same power: 5x − 2x = 3x
3ab and 4baYesab and ba are the same, because a × b = b × a
4x and 4yNoDifferent letters
x² and xNoSame letter but different powers
7 and 7xNoOne is a constant, the other has a letter

A tidy method is to underline or circle each set of like terms, taking the sign in front of each term with it. For 6x − 2y − x + 5y + 3:

  • x terms: 6x − x = 5x
  • y terms: −2y + 5y = 3y
  • constants: 3

So 6x − 2y − x + 5y + 3 simplifies to 5x + 3y + 3. This is called simplifying the expression. It has the same value as before for every x and y; it is just shorter.

6. Multiplying and Dividing Terms

Multiplying terms is different from adding them: you do not need like terms. Multiply the numbers, then multiply the letters.

  • 3a × 4b = (3 × 4) × a × b = 12ab
  • 2x × 5x = 10 × x × x = 10x²
  • −4p × 3q = −12pq (use the sign rules from the previous chapter)
  • x² × x³ = (x × x) × (x × x × x) = x⁵

The last example shows a useful rule: when you multiply powers of the same letter, add the powers. x² × x³ = x2+3 = x⁵.

Dividing works like simplifying a fraction: divide the numbers and cancel letters that appear on both top and bottom.

  • 12xy ÷ 4x = (12 ÷ 4) × (xy ÷ x) = 3y
  • 15a² ÷ 5a = 3 × (a × a) ÷ a = 3a

7. Expanding Single Brackets

Imagine a rectangle 3 units tall and (x + 4) units wide. You can split it into two smaller rectangles: one 3 by x, with area 3x, and one 3 by 4, with area 12. The total area is the same either way, so 3(x + 4) = 3x + 12.

Expanding (also called multiplying out) means removing brackets by multiplying the term outside by every term inside.

  • 5(2y − 3) = 5 × 2y − 5 × 3 = 10y − 15
  • a(a + 6) = a × a + a × 6 = a² + 6a
  • −2(x − 5) = (−2) × x + (−2) × (−5) = −2x + 10

The last one is where most errors happen. The −2 multiplies both terms, and (−2) × (−5) is +10 because the signs are the same. Draw arrows from the outside term to each inside term if it helps you remember to reach every one.

8. Expanding and Simplifying, and Double Brackets

Often you expand two or more brackets and then collect like terms. Do it in two clear stages.

4(x + 2) − 3(x − 1)

  1. Expand: 4x + 8 − 3x + 3 (note that −3 × −1 = +3).
  2. Collect like terms: 4x − 3x = x and 8 + 3 = 11.
  3. Answer: x + 11.

When two brackets are multiplied together, such as (x + 2)(x + 3), every term in the first bracket must multiply every term in the second. A grid makes sure nothing is missed, and it is the rectangle picture again:

×x+3
xx²3x
+22x6

Add the four boxes: x² + 3x + 2x + 6 = x² + 5x + 6. Check by putting x = 1 into both forms: (1 + 2)(1 + 3) = 12 and 1 + 5 + 6 = 12. They match, which is good evidence that the expansion is right. Expressions like x² + 5x + 6 are called quadratic expressions, and you will meet them again in the Quadratic Equations chapter.

9. Factorising: Expanding in Reverse

Factorising means putting brackets back in. It is expanding run backwards. Picture the rectangle again: you know its total area, 6x + 15, and want to find a height and width that give it.

  1. Find the highest common factor (HCF) of all the terms. For 6x and 15, the HCF of 6 and 15 is 3. (HCF is covered in the Factors, Multiples and Prime Numbers chapter.)
  2. Write the HCF outside a bracket: 3( ).
  3. Divide each term by the HCF to find what goes inside: 6x ÷ 3 = 2x and 15 ÷ 3 = 5.
  4. Answer: 6x + 15 = 3(2x + 5).

The HCF can include letters. In 8x² + 20x, both terms contain 4 and x, so the HCF is 4x and 8x² + 20x = 4x(2x + 5).

"Factorise fully" means take out the highest common factor, not just any common factor. 8x² + 20x = 2(4x² + 10x) is true but not fully factorised, because the bracket still has a common factor of 2x.

Always check by expanding your answer. If you get back to the original expression, you are right.

10. Substitution: Putting Numbers In

Substitution means replacing each letter with a given number and working out the value. Imagine opening the labelled boxes and dropping the numbers in.

A safe method: rewrite the expression with each letter replaced by its number in brackets, then use BIDMAS.

Find 3a + 2b when a = 4 and b = 5: 3(4) + 2(5) = 12 + 10 = 22.

Brackets matter most with negative numbers and powers. Find 2x² − 3x when x = −3:

  • Write it as 2 × (−3)² − 3 × (−3).
  • Indices: (−3)² = 9, so 2 × 9 − 3 × (−3).
  • Multiply: 18 − (−9).
  • Answer: 18 + 9 = 27.

In 2x², only the x is squared, not the 2. So you square first and then multiply by 2. If you wanted the 2 squared as well, the expression would have to be written (2x)².

Substitution is also how formulas are used in real life. The formula for converting temperatures is F = 1.8C + 32. For C = 25, F = 1.8 × 25 + 32 = 45 + 32 = 77, so 25 °C is 77 °F.

Worked Examples

Writing an Expression from Words

Concert tickets cost £8 each, and there is one £3 booking fee per order. (a) Write an expression for the cost, in pounds, of n tickets. (b) Use it to find the cost of 5 tickets.

  1. Each ticket costs 8, so n tickets cost 8 × n = 8n.

  2. The booking fee is added once: 8n + 3.

  3. Substitute n = 5: 8 × 5 + 3 = 40 + 3 = 43.

Answer

(a) 8n + 3 pounds; (b) £43

Test the expression with a small number you can check in your head: 1 ticket should cost £8 + £3 = £11, and 8(1) + 3 = 11.

Collecting Like Terms

Simplify 5a + 3b − 2a + 4b − b.

  1. Group the a terms, keeping each sign: 5a − 2a = 3a.

  2. Group the b terms: 3b + 4b − b = 6b (remember −b means −1b).

  3. Write the result: 3a + 6b.

Answer

3a + 6b

Check by choosing values, say a = 1 and b = 1: the original gives 5 + 3 − 2 + 4 − 1 = 9, and 3 + 6 = 9.

Like Terms with Powers

Simplify 4x² + 3x − x² + 5 − 7x.

  1. x² terms: 4x² − x² = 3x².

  2. x terms: 3x − 7x = −4x.

  3. Constants: 5.

  4. Write the answer with the highest power first: 3x² − 4x + 5.

Answer

3x² − 4x + 5

x² and x are not like terms, so they stay separate. Writing powers from highest to lowest is the usual convention and makes answers easy to compare.

Multiplying and Dividing Terms

Simplify (a) 3p × 4q and (b) 20m²n ÷ 5m.

  1. (a) Multiply the numbers: 3 × 4 = 12. Multiply the letters: p × q = pq. So 12pq.

  2. (b) Divide the numbers: 20 ÷ 5 = 4.

  3. m² ÷ m = (m × m) ÷ m = m, and the n stays. So 4mn.

Answer

(a) 12pq; (b) 4mn

Unlike adding, multiplying and dividing do not need like terms.

Expanding and Simplifying Two Brackets

Expand and simplify 5(2x − 3) − 2(x − 4).

  1. Expand the first bracket: 5 × 2x = 10x and 5 × (−3) = −15, giving 10x − 15.

  2. Expand the second with −2: (−2) × x = −2x and (−2) × (−4) = +8, giving −2x + 8.

  3. Put them together: 10x − 15 − 2x + 8.

  4. Collect like terms: 10x − 2x = 8x and −15 + 8 = −7.

Answer

8x − 7

Check with x = 1: 5(−1) − 2(−3) = −5 + 6 = 1, and 8(1) − 7 = 1. The two forms agree.

Factorising Fully

Factorise fully (a) 12y − 18 and (b) 8x² + 20x.

  1. (a) The HCF of 12 and 18 is 6. 12y ÷ 6 = 2y and 18 ÷ 6 = 3. So 6(2y − 3).

  2. (b) The HCF of 8 and 20 is 4, and both terms contain x, so the HCF is 4x.

  3. 8x² ÷ 4x = 2x and 20x ÷ 4x = 5. So 4x(2x + 5).

Answer

(a) 6(2y − 3); (b) 4x(2x + 5)

Check by expanding: 6 × 2y − 6 × 3 = 12y − 18, and 4x × 2x + 4x × 5 = 8x² + 20x.

Substitution with a Negative Number

Find the value of 2a² − 5b + ab when a = 4 and b = −3.

  1. Rewrite with brackets: 2 × (4)² − 5 × (−3) + (4) × (−3).

  2. Indices: 4² = 16, so 2 × 16 − 5 × (−3) + 4 × (−3).

  3. Multiply: 32 − (−15) + (−12).

  4. Replace touching signs: 32 + 15 − 12 = 35.

Answer

35

Writing every substituted number in brackets stops the minus sign in −3 from getting lost.

Expanding Double Brackets

Expand and simplify (x + 5)(x − 2).

  1. Use a grid with x and +5 down the side and x and −2 across the top.

  2. The four boxes are: x × x = x², x × (−2) = −2x, 5 × x = 5x, and 5 × (−2) = −10.

  3. Add them: x² − 2x + 5x − 10.

  4. Collect the x terms: −2x + 5x = 3x.

Answer

x² + 3x − 10

Check with x = 1: (1 + 5)(1 − 2) = 6 × (−1) = −6, and 1 + 3 − 10 = −6. A grid guarantees all four products are included.

Common Mistakes

Adding unlike terms together

Wrong3x + 2y = 5xy
Right3x + 2y cannot be simplified

Students feel an answer should be a single term. But x and y are different unknowns, like apples and bananas. Only like terms (same letters, same powers) can be added. Test it with x = 2 and y = 1: 3x + 2y = 6 + 2 = 8, but 5xy = 5 × 2 × 1 = 10, so they are not the same.

Multiplying only the first term in a bracket

Wrong3(x + 4) = 3x + 4
Right3(x + 4) = 3x + 12

The number outside multiplies every term inside. Picture the rectangle: 3 by (x + 4) splits into 3 by x and 3 by 4, so both parts are multiplied by 3. Drawing an arrow to each term inside is a good habit.

Losing the sign when a negative multiplies a bracket

Wrong−2(x − 5) = −2x − 10
Right−2(x − 5) = −2x + 10

The −2 multiplies −5 as well, and (−2) × (−5) = +10 because the signs are the same. Write each multiplication out separately until this becomes automatic.

Reading 2x as a two-digit number

WrongIf x = 5, then 2x = 25
RightIf x = 5, then 2x = 2 × 5 = 10

In algebra, a number next to a letter means multiply. Always put the substituted value in brackets, 2(5), so the multiplication is visible.

Thinking x × x = 2x

Wrongx × x = 2x
Rightx × x = x², while x + x = 2x

Adding a number to itself doubles it, but multiplying it by itself squares it. Check with x = 3: 3 × 3 = 9, which is 3², not 2 × 3 = 6.

Squaring a negative without brackets

WrongIf x = −4, then x² = −16
RightIf x = −4, then x² = (−4)² = 16

When the whole value −4 replaces x, the whole value is squared. Typing −4² into a calculator gives −16, so always substitute with brackets: (−4)².

Summary

  • In algebra a letter, called a variable, stands for a number that can change or is not yet known.
  • A term is a number, a letter, or numbers and letters multiplied together; an expression is terms joined by + and −.
  • The coefficient is the number in front of a letter, and a constant is a term with no letter.
  • We write 3 × n as 3n, a × b as ab, x × x as x², and a ÷ 4 as a/4.
  • Like terms have exactly the same letters and powers, and only like terms can be added or subtracted.
  • When multiplying terms, multiply the numbers and then the letters; powers of the same letter are added, so x² × x³ = x⁵.
  • To expand a bracket, multiply the term outside by every term inside, taking care with negative signs.
  • To expand double brackets, multiply every term in one bracket by every term in the other, using a grid if it helps.
  • Factorising is the reverse of expanding: take the highest common factor outside the bracket and check by expanding.
  • To substitute, replace each letter with its value in brackets and then follow BIDMAS.

Ready to Practice?

Test your understanding with 40 practice questions on this topic, each with a hint and a full solution.

Go to Practice Questions
Learn it live

Want a teacher to take you further than Introduction to Algebra?

Notes explain the idea. A live teacher checks how you think, spots the exact step that slips, and moves at your pace, in a small group or 1-on-1, at a time that suits your time zone.

Keep exploring Modern Age Coders

More chapters

Learn more

From the blog

Start here