ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude
Algebraic identities for quick calculation
Expand (a + b)^2, (a - b)^2 and (a + b)(a - b), use the cube identities, and turn awkward squares, products and given sums and products into quick mental calculations.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Expand (a + b)^2 and (a - b)^2 and use them to square numbers such as 103 or 997 quickly.
- Use the difference of squares identity to multiply numbers such as 47 x 53 quickly.
- Use the square identities to find a^2 + b^2 from the values of a + b or a - b and ab.
- Apply the cube identities to work out a^3 + b^3 or a^3 - b^3 without finding a and b.
Before you start
An identity is an equality that holds for every value of its letters. The statement 2(a + 3) = 2a + 6 is an identity, while 2a + 1 = 7 is an equation that is true only when a = 3. To expand two brackets, multiply each term in the first by each term in the second: (a + 2)(a + 5) = a^2 + 5a + 2a + 10 = a^2 + 7a + 10. A square such as (a + b)^2 simply means (a + b) x (a + b). Here a and b can stand for any numbers, and the sign x is used only for multiplication.
Squares of a sum and a difference
Expanding (a + b)(a + b) gives a^2 + ab + ab + b^2, so (a + b)^2 = a^2 + 2ab + b^2. In the same way, (a - b)^2 = a^2 - 2ab + b^2; the last term stays positive because (-b) x (-b) = b^2. These turn hard squares into easy ones. Split the number into a round part and a small part: 103^2 = (100 + 3)^2 = 10,000 + 600 + 9 = 10,609, and 98^2 = (100 - 2)^2 = 10,000 - 400 + 4 = 9,604. Read backwards, the same identities give a^2 + b^2 = (a + b)^2 - 2ab = (a - b)^2 + 2ab.
Difference of two squares
Multiplying a sum by the matching difference cancels the middle terms: (a + b)(a - b) = a^2 - ab + ab - b^2 = a^2 - b^2. This gives two shortcuts. For two numbers equally spaced around a round number, use the midpoint and the gap: 47 x 53 = (50 - 3)(50 + 3) = 2,500 - 9 = 2,491. For a difference of two squares, factorise before squaring: 65^2 - 35^2 = (65 + 35)(65 - 35) = 100 x 30 = 3,000. Adding and subtracting the two square identities also gives (a + b)^2 - (a - b)^2 = 4ab and (a + b)^2 + (a - b)^2 = 2(a^2 + b^2).
Cube identities
Multiplying (a + b)^2 by (a + b) once more gives (a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3, often written as a^3 + b^3 + 3ab(a + b). Likewise (a - b)^3 = a^3 - b^3 - 3ab(a - b). Sums and differences of cubes factorise as a^3 + b^3 = (a + b)(a^2 - ab + b^2) and a^3 - b^3 = (a - b)(a^2 + ab + b^2). Rearranged, these give cube totals without knowing a and b: a^3 + b^3 = (a + b)^3 - 3ab(a + b) and a^3 - b^3 = (a - b)^3 + 3ab(a - b). If a + b = 5 and ab = 6, then a^3 + b^3 = 125 - 90 = 35, which matches a = 2 and b = 3, since 8 + 27 = 35.
Common mistakes
Dropping the middle term: (a + b)^2 is not a^2 + b^2, since (3 + 4)^2 = 49 while 9 + 16 = 25. Ending (a - b)^2 with -b^2 instead of +b^2. Using ab in place of 2ab, which turns 105^2 into 10,525 instead of 11,025. Trying to split a^2 + b^2 into two brackets like those of a^2 - b^2; a sum of two squares has no such real factors. Mixing up the signs in the cube factors: (a^2 - ab + b^2) belongs with a^3 + b^3, and (a^2 + ab + b^2) with a^3 - b^3. Forgetting the 3ab(a + b) part when a sum is cubed.
Choosing an identity: a checklist
Look at the shape before you calculate. A number just above or below a round value, squared, calls for (a + b)^2 or (a - b)^2. Two numbers the same distance from a middle value, multiplied together, call for (a + b)(a - b). A difference of two squares is best factorised first. A question that gives a + b or a - b along with ab, and asks for a^2 + b^2 or a sum of cubes, needs the rearranged forms. Name a and b clearly, put each into the identity inside brackets, and finish with a quick test on small values such as a = 2 and b = 1.
Worked examples
Find 997^2 using an identity.
- 997 is 3 less than 1000, so take a = 1000 and b = 3 in (a - b)^2 = a^2 - 2ab + b^2.
- a^2 = 10,00,000, 2ab = 2 x 1000 x 3 = 6,000 and b^2 = 9.
- 997^2 = 10,00,000 - 6,000 + 9 = 9,94,009.
Answer: 997^2 = 9,94,009.
Work out 204 x 196 quickly.
- Both numbers are 4 away from 200: 204 = 200 + 4 and 196 = 200 - 4.
- So 204 x 196 = (200 + 4)(200 - 4) = 200^2 - 4^2.
- 200^2 - 4^2 = 40,000 - 16 = 39,984.
Answer: 204 x 196 = 39,984.
If a + b = 9 and ab = 20, find a^2 + b^2 and a^3 + b^3.
- a^2 + b^2 = (a + b)^2 - 2ab = 81 - 40 = 41.
- a^3 + b^3 = (a + b)^3 - 3ab(a + b) = 729 - 3 x 20 x 9 = 729 - 540 = 189.
- Check with actual numbers: a = 4 and b = 5 add to 9 and multiply to 20, and 4^3 + 5^3 = 64 + 125 = 189.
Answer: a^2 + b^2 = 41 and a^3 + b^3 = 189.
Practice checks
- Using (a + b)^2, the value of 105^2 is:
- The value of 67^2 - 33^2 is:
- If a - b = 4 and ab = 21, then a^2 + b^2 equals:
- If a + 1/a = 6, then a^2 + 1/a^2 equals:
- If a - b = 3 and ab = 10, then a^3 - b^3 equals:
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-I Quantitative Aptitude and Tier-II Mathematical Abilities (Basic algebraic identities of school algebra); not verified as the full 2026-cycle syllabus
- OpenStax, Intermediate Algebra 2e — Section 6.3, the perfect square trinomial pattern, the difference of squares pattern and the sum and difference of cubes pattern; mathematical relationships only