← All guided lessons

Cambridge O Level · Mathematics 4024

Algebraic manipulation

Build fluent control of algebraic expressions by collecting like terms, expanding products, factorising fully and completing the square. This original practice pack targets Cambridge O Level Mathematics 4024 section 2.2 only; algebraic fractions, equation solving and graph work are outside its scope.

2025 / 2026 / 2027 · Academic review not recorded · Published 2026-09-08

AI-assisted practice — not independently academically reviewed. Answers may contain errors; check important results against your course materials.

Guided tutorial

Learn the topic

21 lesson sections

What you will learn

  • Identify terms, coefficients and like terms, including terms with more than one variable.
  • Simplify expressions by collecting like terms without combining unlike powers or variable parts.
  • Expand a single bracket and products of two or more brackets using the distributive law.
  • Track negative signs and combine like terms after expansion.
  • Factorise fully by extracting the greatest common numerical and algebraic factor.
  • Factorise four-term expressions by grouping into a common binomial factor.
  • Recognise and factorise differences of two squares and perfect-square trinomials.
  • Factorise monic and non-monic quadratic trinomials.
  • Factorise cubic expressions by first extracting a common factor and then factorising the remaining quadratic.
  • Complete the square for quadratic expressions with positive or negative leading coefficients.
  • Check an algebraic rewrite by expanding it back to the original expression.

Explanation

Read the structure before calculating

An expression is built from terms separated by addition or subtraction signs. In 7x^2 - 3xy + 5, the terms are 7x^2, -3xy and 5; their numerical coefficients are 7, -3 and 5. Keeping the sign with each term prevents many errors.

Like terms have exactly the same variable part, including the same powers. For example, 4x^2y and -9x^2y are like terms, but x^2y, xy^2 and x^2 are unlike. Only coefficients of like terms may be added or subtracted.

Worked example

Worked example: collect like terms

Simplify 5a^2 - 3ab + 4 + 2a^2 + 8ab - 9. Group matching variable parts: (5a^2 + 2a^2) + (-3ab + 8ab) + (4 - 9).

The result is 7a^2 + 5ab - 5. A useful check is to substitute simple values, such as a = 2 and b = 1: both the original and simplified expressions equal 33.

Explanation

Expansion uses the distributive law

Expanding removes brackets without changing the value. Every term outside a bracket multiplies every term inside it: k(a + b - c) = ka + kb - kc. The multiplier includes its sign, so a negative multiplier reverses the signs inside.

For two or more brackets, form every possible product by choosing one term from each bracket, then collect like terms. Writing products in an organised order makes omitted terms and sign errors easier to spot.

Worked example

Worked example: expand one bracket

Expand -4x(3x^2 - 2xy + 5). Multiply -4x by each of the three terms: (-4x)(3x^2), (-4x)(-2xy) and (-4x)(5).

This gives -12x^3 + 8x^2y - 20x. The middle term is positive because a negative multiplied by a negative is positive, and the powers of x multiply as x times x = x^2.

Worked example

Worked example: expand two brackets

Expand (2x - 3)(x + 5). The four products are 2x times x = 2x^2, 2x times 5 = 10x, -3 times x = -3x and -3 times 5 = -15.

Collect the two linear terms to obtain 2x^2 + 7x - 15. Expanding the answer is already complete because x^2, x and the constant are unlike terms.

Worked example

Worked example: expand three brackets

Expand (x - 2)(x + 1)(x + 4). First multiply a convenient pair: (x - 2)(x + 1) = x^2 - x - 2.

Now multiply by x + 4: (x^2 - x - 2)(x + 4) = x^3 + 4x^2 - x^2 - 4x - 2x - 8 = x^3 + 3x^2 - 6x - 8. A degree-three answer is expected from three linear factors.

Explanation

Factorisation reverses expansion

To factorise is to rewrite a sum or difference as a product. Start by checking every term for a greatest common numerical factor and for variables common to all terms. Extracting less than the greatest common factor may leave the answer only partly factorised.

A factorisation is reliable when expanding it reproduces the original expression exactly. This reverse check tests coefficients, powers and signs at once and is especially valuable after several factorisation stages.

Worked example

Worked example: extract the greatest common factor

Factorise fully 18x^3y - 12x^2y^2 + 6x^2y. The greatest common numerical factor is 6, and every term contains x^2y.

Extracting 6x^2y gives 6x^2y(3x - 2y + 1). Expanding back produces all three original terms, and the bracket has no factor common to every term.

Worked example

Worked example: factorise by grouping

Factorise ax + bx + 4ay + 4by. Group the x-terms and y-terms: x(a + b) + 4y(a + b).

Both groups contain the binomial a + b, so the full factorisation is (a + b)(x + 4y). Expanding the two factors returns ax + bx + 4ay + 4by.

Explanation

Recognise two important identities

A difference of squares follows A^2 - B^2 = (A - B)(A + B). It applies only to a subtraction of two square terms. For example, 16x^2 - 25 is (4x)^2 - 5^2, so its factors use 4x and 5.

Perfect-square trinomials follow A^2 + 2AB + B^2 = (A + B)^2 and A^2 - 2AB + B^2 = (A - B)^2. Check both square end terms and the signed middle term before using the pattern.

Worked example

Worked example: difference of two squares

Factorise 36p^2 - 49q^2. The two square terms are (6p)^2 and (7q)^2, and they are separated by subtraction.

Therefore 36p^2 - 49q^2 = (6p - 7q)(6p + 7q). The opposite middle products cancel when the factors are expanded.

Worked example

Worked example: perfect-square trinomial

Factorise 25m^2 - 30mn + 9n^2. The end terms are (5m)^2 and (3n)^2, while the middle term is -2(5m)(3n) = -30mn.

The expression is therefore (5m - 3n)^2. The negative sign belongs inside the repeated bracket because the middle term is negative but the final square term remains positive.

Explanation

Factorise quadratic trinomials systematically

For x^2 + bx + c, seek two integers whose product is c and whose sum is b. They become the constants in (x + r)(x + s). The signs of r and s must satisfy both conditions.

For ax^2 + bx + c with a not equal to 1, one dependable method is to split bx into two terms whose coefficients multiply to ac and add to b. Then factorise the resulting four terms by grouping.

Worked example

Worked example: factorise a monic quadratic

Factorise x^2 - 2x - 35. Two integers must multiply to -35 and add to -2. The pair -7 and 5 meets both conditions.

Thus x^2 - 2x - 35 = (x - 7)(x + 5). Expanding gives x^2 + 5x - 7x - 35, which simplifies back to the original expression.

Worked example

Worked example: factorise a non-monic quadratic

Factorise 6x^2 + 13x + 6. Since ac = 36, look for two integers with product 36 and sum 13: 9 and 4. Split the middle term to get 6x^2 + 9x + 4x + 6.

Group the terms: 3x(2x + 3) + 2(2x + 3) = (3x + 2)(2x + 3). Expanding the factors confirms the middle coefficient 9 + 4 = 13.

Explanation

Cubic expressions may need two stages

An expression of the form ax^3 + bx^2 + cx has x as a common factor. Extract it first, producing x(ax^2 + bx + c), and then inspect the quadratic factor for further factorisation.

Stopping after the common factor is incomplete when the quadratic can still be factorised. Conversely, do not invent real-number or fractional factors when the intended integer factorisation has already ended.

Worked example

Worked example: fully factorise a cubic

Factorise 3x^3 + 5x^2 - 2x. First extract x: x(3x^2 + 5x - 2). For the quadratic, ac = -6 and the integers 6 and -1 add to 5.

Split and group: x(3x^2 + 6x - x - 2) = x[3x(x + 2) - 1(x + 2)] = x(3x - 1)(x + 2). All three factors are required for a full factorisation.

Explanation

Completing the square reveals a shifted square

For x^2 + bx + c, half the coefficient of x and square it: x^2 + bx = (x + b/2)^2 - (b/2)^2. Then include c. The subtraction compensates for the extra square that was introduced.

When the coefficient of x^2 is not 1, factor it from the x^2 and x terms before completing the square inside the bracket. Keep any constant outside the bracket separate until the final simplification.

Worked example

Worked example: complete the square when a = 1

Rewrite x^2 + 10x - 3 by completing the square. Half of 10 is 5, so x^2 + 10x = (x + 5)^2 - 25.

Therefore x^2 + 10x - 3 = (x + 5)^2 - 28. Expanding the square gives x^2 + 10x + 25 - 28, which returns the original constant -3.

Worked example

Worked example: complete the square when a is not 1

Rewrite 2x^2 - 12x + 7. Factor 2 from the variable terms: 2(x^2 - 6x) + 7. Inside the bracket, half of -6 is -3, so x^2 - 6x = (x - 3)^2 - 9.

Substitute and simplify: 2[(x - 3)^2 - 9] + 7 = 2(x - 3)^2 - 11. The correction -9 is also multiplied by the outside factor 2.

Worked example

Worked example: complete the square with a negative leading term

Rewrite -3x^2 + 18x - 4. Factor -3 from the variable terms: -3(x^2 - 6x) - 4. Complete the square inside: x^2 - 6x = (x - 3)^2 - 9.

Then -3[(x - 3)^2 - 9] - 4 = -3(x - 3)^2 + 27 - 4 = -3(x - 3)^2 + 23. Expanding verifies both the positive 18x term and the constant -4.

Original practice, not an official examination paper. Readnary is not affiliated with the awarding body. Prepared with AI assistance.