Algebra Basics: Equations, Quadratics and Identities with Examples
Algebra uses letters to stand for unknown numbers so that a word problem can be written as an equation and solved step by step. Aptitude tests repeatedly ask for linear and simultaneous equations, the roots of quadratics, and quick values from identities such as (a + b)² and x + 1/x. Learn the methods and identities here and many questions turn into a single line of working.
Asked in: GAT, HAT, NTS, ISSB, SSC CGL, IBPS PO, CAT
Linear equations in one variable
A linear equation has the unknown only to the first power, such as 5(x − 2) = 3x + 8. Open brackets, move all x-terms to one side and numbers to the other, then divide by the coefficient of x.
Whatever you do to one side you must do to the other. If the equation contains fractions, multiply every term by the LCM of the denominators first to clear them.
- ax + b = c ⇒ x = (c − b) ÷ a
- Clear fractions by multiplying every term by the LCM of the denominators
Simultaneous equations in two variables
Two equations in x and y can be solved by elimination (multiply to make one coefficient equal, then add or subtract) or by substitution (express one variable from one equation and put it into the other).
For a₁x + b₁y = c₁ and a₂x + b₂y = c₂: if a₁/a₂ differs from b₁/b₂ there is exactly one solution. If all three ratios a₁/a₂, b₁/b₂, c₁/c₂ are equal there are infinitely many solutions; if the first two are equal but c₁/c₂ is different there is no solution (parallel lines).
- Unique solution: a₁/a₂ ≠ b₁/b₂
- Infinitely many: a₁/a₂ = b₁/b₂ = c₁/c₂
- No solution: a₁/a₂ = b₁/b₂ ≠ c₁/c₂
Quadratic equations
A quadratic has the form ax² + bx + c = 0 and at most two roots. The quickest method is factorisation: split the middle term into two numbers whose product is ac and whose sum is b.
If it does not factorise easily, use the quadratic formula. The discriminant D = b² − 4ac tells you the nature of the roots: two different real roots if D is positive, two equal roots if D = 0, and no real roots if D is negative.
- x = (−b ± √(b² − 4ac)) ÷ 2a
- D = b² − 4ac; D = 0 ⇒ equal roots
- Sum of roots α + β = −b/a, product αβ = c/a
Algebraic identities you must know
Identities are true for every value of the letters, so they let you skip long multiplication. They are especially useful for squares of numbers near a round figure: 103² = (100 + 3)².
Many questions give a + b and ab and ask for a² + b², (a − b)² or a³ + b³. Rewrite the target in terms of a + b and ab and substitute.
- (a + b)² = a² + 2ab + b²
- (a − b)² = a² − 2ab + b²
- a² − b² = (a + b)(a − b)
- (a + b)³ = a³ + b³ + 3ab(a + b)
- a³ + b³ = (a + b)(a² − ab + b²), a³ − b³ = (a − b)(a² + ab + b²)
- (a + b + c)² = a² + b² + c² + 2(ab + bc + ca)
The x + 1/x family
If x + 1/x = k, squaring gives x² + 2 + 1/x² = k², so x² + 1/x² = k² − 2. Cubing gives x³ + 1/x³ = k³ − 3k.
If instead x − 1/x = k, then x² + 1/x² = k² + 2. Watch the sign: the middle term is −2 when you square a difference.
- x + 1/x = k ⇒ x² + 1/x² = k² − 2
- x + 1/x = k ⇒ x³ + 1/x³ = k³ − 3k
- x − 1/x = k ⇒ x² + 1/x² = k² + 2
Turning word problems into equations
Choose a letter for the quantity asked, write every other quantity in terms of it, and translate each sentence into an equation. 'Three times as old' becomes 3s; 'in 12 years' adds 12 to every person's age.
For two-digit numbers write 10a + b, where a is the tens digit and b the units digit. Reversing the digits gives 10b + a, and the difference between the two numbers is always 9 times the difference of the digits.
- Two-digit number = 10a + b, reversed = 10b + a
- (10b + a) − (10a + b) = 9(b − a)
- Consecutive integers: n, n + 1; consecutive odd or even: n, n + 2
Solved examples
- Solve 5(x − 2) = 3x + 8.
- Open the bracket: 5x − 10 = 3x + 8.
- Move x-terms left and numbers right: 5x − 3x = 8 + 10, so 2x = 18.
- x = 9. Check: 5 × 7 = 35 and 3 × 9 + 8 = 35.
Answer: x = 9 - Solve the simultaneous equations 2x + 3y = 13 and 3x − y = 3.
- From the second equation, y = 3x − 3.
- Substitute into the first: 2x + 3(3x − 3) = 13, so 11x − 9 = 13.
- 11x = 22, so x = 2, and y = 3 × 2 − 3 = 3.
- Check: 2(2) + 3(3) = 13 and 3(2) − 3 = 3.
Answer: x = 2, y = 3 - Solve x² − 7x + 12 = 0 and verify using the sum and product of roots.
- Find two numbers with product 12 and sum −7: −3 and −4.
- x² − 7x + 12 = (x − 3)(x − 4) = 0, so x = 3 or x = 4.
- Check: sum = 7 = −b/a and product = 12 = c/a.
Answer: x = 3 or x = 4 - If a + b = 9 and ab = 14, find a² + b² and (a − b)².
- a² + b² = (a + b)² − 2ab = 81 − 28 = 53.
- (a − b)² = (a + b)² − 4ab = 81 − 56 = 25.
- Check: a and b are 7 and 2, and 49 + 4 = 53, (7 − 2)² = 25.
Answer: a² + b² = 53, (a − b)² = 25 - If x + 1/x = 4, find x² + 1/x² and x³ + 1/x³.
- Square: x² + 2 + 1/x² = 16, so x² + 1/x² = 14.
- Use the cube rule: x³ + 1/x³ = k³ − 3k with k = 4.
- x³ + 1/x³ = 64 − 12 = 52.
Answer: 14 and 52 - For a school play, Ayesha sells 40 tickets: adult tickets at Rs 500 and child tickets at Rs 300. She collects Rs 15,600 in total. How many adult tickets did she sell?
- Let the number of adult tickets be a; then child tickets = 40 − a.
- 500a + 300(40 − a) = 15,600, so 200a + 12,000 = 15,600.
- 200a = 3,600, giving a = 18 adult tickets and 22 child tickets.
- Check: 18 × 500 + 22 × 300 = 9,000 + 6,600 = 15,600.
Answer: 18 adult tickets (and 22 child tickets)
Exam shortcuts
- Substitute the options back into the equation; for many MCQs this is faster than solving.
- For a quadratic, check sum = −b/a and product = c/a against the options before factorising.
- Given a + b and ab, everything follows: a² + b² = (a + b)² − 2ab, (a − b)² = (a + b)² − 4ab, a³ + b³ = (a + b)³ − 3ab(a + b).
- Square numbers near 100 or 50 with (a ± b)²: 98² = 10000 − 400 + 4 = 9604.
- When two equations have swapped coefficients, such as 3x + 2y and 2x + 3y, add and subtract them to get x + y and x − y directly.
- In digit problems, a reversal difference is always 9 × (difference of digits); divide by 9 first.
Common mistakes
- Changing the sign of only one term when moving a bracket or a term across the equals sign.
- Writing (a + b)² as a² + b² and forgetting the 2ab term.
- Taking the sum of roots as +b/a instead of −b/a.
- Using k² − 2 for x² + 1/x² when the question gives x − 1/x; the correct value is k² + 2.
- Adding years to only one person's age in an age problem.
Practice MCQs
- Solve: 4x + 9 = 37.
A) x = 7
B) x = 11.5
C) x = 6
D) x = 8
Answer: A) x = 7 — 4x = 37 − 9 = 28, so x = 28 ÷ 4 = 7. (11.5 comes from adding 9 instead of subtracting.) - If x/3 + x/4 = 14, what is x?
A) 28
B) 12
C) 21
D) 24
Answer: D) 24 — Multiply both sides by 12: 4x + 3x = 168, so 7x = 168 and x = 24. - If x + y = 15 and x − y = 3, what is the value of xy?
A) 45
B) 36
C) 54
D) 60
Answer: C) 54 — Adding the equations: 2x = 18, so x = 9; then y = 6. Product xy = 54. Shortcut: 4xy = (x + y)² − (x − y)² = 225 − 9 = 216, so xy = 54. - The sum of two consecutive odd numbers is 64. What is the larger number?
A) 31
B) 33
C) 35
D) 32
Answer: B) 33 — Let the numbers be n and n + 2. Then 2n + 2 = 64, so n = 31 and the larger number is 33. - What are the roots of x² − 5x − 14 = 0?
A) −7 and 2
B) 7 and 2
C) 14 and −1
D) 7 and −2
Answer: D) 7 and −2 — Find two numbers with product −14 and sum −5: −7 and 2. So x² − 5x − 14 = (x − 7)(x + 2) = 0, giving x = 7 or x = −2. Check: the roots add to 5 and multiply to −14. - If a + b = 10 and ab = 21, what is (a − b)²?
A) 16
B) 58
C) 4
D) 79
Answer: A) 16 — (a − b)² = (a + b)² − 4ab = 100 − 84 = 16. (58 is a² + b².) - For what value of k do the equations 2x + 3y = 12 and 4x + 6y = k have infinitely many solutions?
A) 12
B) 6
C) 24
D) 36
Answer: C) 24 — The second equation must be an exact multiple of the first. The coefficients 4 and 6 are twice 2 and 3, so k must be twice 12, which is 24. Any other k gives parallel lines and no solution. - If α and β are the roots of 2x² − 9x + 4 = 0, what is 1/α + 1/β?
A) 4/9
B) 9/4
C) 9/2
D) 2
Answer: B) 9/4 — Sum of roots = 9/2 and product = 4/2 = 2. Then 1/α + 1/β = (α + β) ÷ αβ = (9/2) ÷ 2 = 9/4. - Using an algebraic identity, find 103².
A) 10609
B) 10069
C) 10600
D) 10906
Answer: A) 10609 — 103² = (100 + 3)² = 100² + 2 × 100 × 3 + 3² = 10000 + 600 + 9 = 10609. - For what positive value of k does x² + kx + 16 = 0 have two equal roots?
A) 4
B) 16
C) 32
D) 8
Answer: D) 8 — Equal roots need discriminant b² − 4ac = 0: k² − 64 = 0, so k = 8 (taking the positive value). - Tahir's father is three times as old as Tahir. In 12 years the father will be twice as old as Tahir. How old is Tahir now?
A) 24 years
B) 12 years
C) 36 years
D) 15 years
Answer: B) 12 years — Let Tahir be s. Then 3s + 12 = 2(s + 12) = 2s + 24, so s = 12 years. (36 is the father's age.) - If x − 1/x = 3, what is x² + 1/x²?
A) 9
B) 7
C) 11
D) 13
Answer: C) 11 — Square both sides: x² − 2 + 1/x² = 9, so x² + 1/x² = 11. (7 would follow from x + 1/x = 3.) - If a + b = 5 and ab = 6, what is a³ + b³?
A) 125
B) 35
C) 65
D) 215
Answer: B) 35 — a³ + b³ = (a + b)³ − 3ab(a + b) = 125 − 3 × 6 × 5 = 125 − 90 = 35. Check: a and b are 2 and 3, and 8 + 27 = 35. - The digits of a two-digit number add up to 9. When the digits are reversed, the number increases by 27. What is the number?
A) 36
B) 63
C) 45
D) 27
Answer: A) 36 — Let the number be 10a + b. Reversing gives 10b + a, and the increase is 9(b − a) = 27, so b − a = 3. With a + b = 9, we get b = 6 and a = 3, so the number is 36. - At a stationery shop, Neha pays Rs 190 for 3 pens and 2 notebooks, while Owais pays Rs 310 for 2 pens and 5 notebooks. What is the total cost of one pen and one notebook?
A) Rs 70
B) Rs 90
C) Rs 100
D) Rs 80
Answer: D) Rs 80 — 3p + 2n = 190 and 2p + 5n = 310. Multiply the first by 2 and the second by 3: 6p + 4n = 380 and 6p + 15n = 930. Subtract: 11n = 550, so n = 50 and p = (190 − 100) ÷ 3 = 30. One pen + one notebook = Rs 80.
Questions
What is the quickest way to solve a quadratic equation?
Try factorising first by splitting the middle term. If that fails, use x = (−b ± √(b² − 4ac)) ÷ 2a.
How do I know if two linear equations have a solution?
Compare the ratios of the coefficients. Different x and y ratios give one solution; all three ratios equal gives infinitely many; equal x and y ratios with a different constant ratio gives none.
What are the sum and product of the roots of ax² + bx + c = 0?
Sum = −b/a and product = c/a. For x² − 7x + 12 = 0 the roots 3 and 4 add to 7 and multiply to 12.
Which identities are most important for aptitude tests?
(a + b)², (a − b)², a² − b², (a + b)³ and a³ ± b³, plus the x + 1/x results.