0580 · Extended · For exams 2028–2030

E2.2 (part B) Algebra and graphs

Algebraic manipulation B: factorising and completing the square (المعالجة الجبرية (ب))

Syllabus aims: factorise expressions of the form a²x² − b²y², a² + 2ab + b², ax² + bx + c and ax³ + bx² + cx, and complete the square for ax² + bx + c.

1. The idea

Difference of two squares (الفرق بين مربعين): a²x² − b²y² = (ax − by)(ax + by). Perfect square (مربع كامل): a² + 2ab + b² = (a + b)².

Quadratic ax² + bx + c: find two numbers that multiply to give a × c and add to give b. Split the middle term with them, then group. If there is no common x term to start with, take out x first for ax³ + bx² + cx = x(ax² + bx + c).

Completing the square (إكمال المربع): x² + bx + c = (x + b2)² − (b2)² + c. For ax² + bx + c, take out a from the x terms first.

2. Worked examples (أمثلة محلولة)

Example 1 (difference of squares and common x)

(a) Factorise 25x² − 4y². (b) Factorise fully 2x³ + 5x² − 3x.

Step 1. (a) 25x² = (5x)² and 4y² = (2y)². So (5x − 2y)(5x + 2y).

Step 2. (b) Take out x: x(2x² + 5x − 3).

Step 3. For 2x² + 5x − 3: a × c = −6, and 6 and −1 add to 5. 2x² + 6x − x − 3 = 2x(x + 3) − (x + 3) = (2x − 1)(x + 3). Answer x(2x − 1)(x + 3).

Check: put x = 1: left 2 + 5 − 3 = 4. Right 1 × 1 × 4 = 4. ✓

Example 2 (quadratics)

Factorise (a) x² − 5x − 14 and (b) 6x² + 7x − 3.

Step 1. (a) Two numbers that multiply to −14 and add to −5: −7 and 2. So (x − 7)(x + 2).

Step 2. (b) a × c = −18. Numbers that multiply to −18 and add to 7: 9 and −2.

Step 3. 6x² + 9x − 2x − 3 = 3x(2x + 3) − (2x + 3) = (3x − 1)(2x + 3).

Check: expand (3x − 1)(2x + 3) = 6x² + 9x − 2x − 3 = 6x² + 7x − 3. ✓

Example 3 (completing the square)

Write (a) x² + 6x + 2 and (b) 2x² − 12x + 5 in completed square form.

Step 1. (a) Half of 6 is 3. x² + 6x = (x + 3)² − 9.

Step 2. So x² + 6x + 2 = (x + 3)² − 9 + 2 = (x + 3)² − 7.

Step 3. (b) Take out 2 from the x terms: 2(x² − 6x) + 5. Then x² − 6x = (x − 3)² − 9, so 2[(x − 3)² − 9] + 5 = 2(x − 3)² − 18 + 5 = 2(x − 3)² − 13.

Check: put x = 0 in (b): 5 on the left, and 2 × 9 − 13 = 5 on the right. ✓

3. Practice (أسئلة متدرجة)

Try each question first. Tap to see the answer.

Q1 (easy). Factorise x² + 7x + 12.

Answer

Numbers that multiply to 12 and add to 7: 3 and 4. (x + 3)(x + 4).

Q2 (easy). Factorise 16x² − 9y².

Answer

(4x)² − (3y)². (4x − 3y)(4x + 3y).

Q3 (medium). Factorise 9x² + 12x + 4.

Answer

(3x)² + 2 × 3x × 2 + 2². (3x + 2)².

Q4 (medium). Factorise 2x² + x − 6.

Answer

a × c = −12, numbers 4 and −3: 2x² + 4x − 3x − 6 = 2x(x + 2) − 3(x + 2) = (2x − 3)(x + 2).

Q5 (harder). Write 2x² + 8x + 1 in the form a(x + p)² + q.

Answer

2(x² + 4x) + 1 = 2[(x + 2)² − 4] + 1 = 2(x + 2)² − 8 + 1 = 2(x + 2)² − 7.

4. Summary (ملخص)