GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
AptitudeQuantitative aptitude · Algebra

Algebra and Equations

Naming the unknown and balancing both sides to solve linear and simultaneous equations, quadratics (factorisation, the formula, the discriminant and Vieta's formulas), and the standard algebraic identities.

6 min read 45 questions
Practice questions
4x + 11 = 31x = 5

On this page

1/10
  1. 011. Why algebra sits at the centre
  2. 022. Linear equations in one variable
  3. 033. Two equations, two unknowns
  4. 044. Quadratic equations
  5. 055. Sum and product; building a quadratic
  6. 066. The identities worth memorising
  7. 077. The a + 1/a trick
  8. 088. Common traps
  9. 099. Revision sheet
  10. 10Practice
Back to top

1. Why algebra sits at the centre

Almost every quantitative question is algebra in disguise: you name the unknown, turn each sentence into an equation, and solve. Tests ask algebra directly too — linear and simultaneous equations, quadratics, and the standard identities — because a candidate who is fluent here is fast everywhere else. The whole subject rests on one habit: let the unknown be a letter, write what the problem says as an equation, and keep both sides balanced while you simplify.

An equation is a statement that two expressions are equal. Whatever you do to one side — add, subtract, multiply, divide — you must do to the other, which is how you isolate the unknown. A linear equation has the unknown only to the first power (3x + 5 = 20); a quadratic has it squared (x² − 5x + 6 = 0). Those two shapes, plus a short list of identities, cover the bulk of what placement papers test.

2. Linear equations in one variable

To solve ax + b = c, move the number term to the right and divide by the coefficient of x: x = (c − b)/a. The only skill is doing the same operation to both sides, in the right order — undo addition before you undo multiplication.

Solve for x3x + 5 = 20
Subtract 5 from both sides (3x = 15), then divide by 3 to get x = 5.

Word problems become linear equations once you name the unknown. "A number multiplied by 4, plus 7, is 35" is 4x + 7 = 35, so x = 7. When the unknown appears on both sides, as in 5x + 4 = 2x + 19, gather the x terms on one side first: 3x = 15, x = 5. Consecutive-integer problems use n, n + 1, n + 2 (or n, n + 2 for even/odd); their sum sets up a single equation in n.

3. Two equations, two unknowns

When a problem has two unknowns it needs two equations. Solve them together by elimination — scale one equation so a variable cancels when you add or subtract — or by substitution. Take 2x + 3y = 13 and 4x − y = 5:

Solve the pair2x + 3y = 134x − y = 5
Add three times the second to the first to clear y, then back-substitute.

From 4x − y = 5, y = 4x − 5; put that into the first equation and you get x = 2, then y = 3. The classic word form is two baskets of goods at two totals: "2 pens and 3 books cost ₹130; 4 pens and 1 book cost ₹110" becomes 2p + 3q = 130 and 4p + q = 110, which solve to a clean pen and book price. Sum-and-difference problems are the same idea: larger = (sum + difference)/2.

4. Quadratic equations

A quadratic ax² + bx + c = 0 has two roots. Two tools find them. Factorisation: write it as (x − p)(x − q) = 0 by finding two numbers that multiply to c/a and add to −b/a; the roots are p and q. The formula: x = [−b ± √(b² − 4ac)] / 2a, which always works.

Factorisex² − 5x + 6 = 0
Two numbers that multiply to 6 and add to 5 are 2 and 3, so (x − 2)(x − 3) = 0 and x = 2 or 3.

The quantity b² − 4ac is the discriminant D, and its sign tells you the nature of the roots without solving: D > 0 gives two real, distinct roots; D = 0 gives two real, equal roots; D < 0 gives no real roots. For x² − 5x + 6 the roots are 2 and 3. Two shortcuts from the coefficients, Vieta's formulas, save time: the sum of the roots is −b/a and the product is c/a. So you can read the sum and product straight off the equation, and build an equation from them.

5. Sum and product; building a quadratic

Vieta's formulas run both ways. Given an equation you read off the sum and product of its roots; given a sum S and product P you build the equation x² − Sx + P = 0. If the roots are 2 and 3, then S = 5 and P = 6, so the equation is x² − 5x + 6 = 0 — exactly the one above.

From the equation ax² + bx + c = 0Value
Sum of roots α + β−b/a
Product of roots αβc/a
1/α + 1/β(α + β)/(αβ) = −b/c
Reciprocal roots ⇒ equationcx² + bx + a = 0

To make a quadratic whose roots are the reciprocals of a given one, just reverse the coefficients: ax² + bx + c becomes cx² + bx + a.

6. The identities worth memorising

A handful of identities turn long expansions into one line. Know them cold, both to expand and to read backwards.

IdentityExpansion
(a + b)²a² + 2ab + b²
(a − b)²a² − 2ab + b²
a² − b²(a + b)(a − b)
(a + b)³a³ + 3a²b + 3ab² + b³
a³ + b³(a + b)(a² − ab + b²)
a³ − b³(a − b)(a² + ab + b²)

The real power is the derived forms. a² + b² = (a + b)² − 2ab, so if a + b = 7 and ab = 12 then a² + b² = 7² − 2(12) = 25. Likewise (a − b)² = (a + b)² − 4ab, and a³ + b³ = (a + b)³ − 3ab(a + b). You rarely need to find a and b themselves — the symmetric combination is enough.

7. The a + 1/a trick

A favourite hard question gives a + 1/a and asks for a² + 1/a² or a³ + 1/a³. Square the given: (a + 1/a)² = a² + 2 + 1/a², so a² + 1/a² = (a + 1/a)² − 2. Cube it for the next step: a³ + 1/a³ = (a + 1/a)³ − 3(a + 1/a). If a + 1/a = 3, then a² + 1/a² = 3² − 2 = 7, and a³ + 1/a³ = 3³ − 3(3) = 18.

One given, two answersa + 1/a = 3a² + 1/a² = 7a³ + 1/a³ = 18
Each power comes from the one before by squaring or cubing the original — never solve for a itself.

The same moves work for a − 1/a: a² + 1/a² = (a − 1/a)² + 2. Watch the sign of the +2 or −2, which is the only thing that changes.

8. Common traps

  • Reading "the larger is twice the smaller plus 3" as 2(x + 3) instead of 2x + 3.
  • Dropping a sign when moving a term across the equals sign.
  • Factoring a quadratic with the wrong signs — always check your two numbers multiply to c and add to −b.
  • Swapping sum and product of roots: sum = −b/a, product = c/a.
  • In a + 1/a problems, forgetting the −2 (for a + 1/a) or +2 (for a − 1/a) when you square.
  • Answering for the wrong unknown in a two-variable word problem — read what is asked.

9. Revision sheet

  • Linear: ax + b = c ⇒ x = (c − b)/a; gather x-terms first if they appear on both sides.
  • Two unknowns need two equations; eliminate or substitute, then back-substitute.
  • Quadratic roots: factorise, or x = [−b ± √(b² − 4ac)]/2a.
  • Discriminant D = b² − 4ac: > 0 distinct, = 0 equal, < 0 none.
  • Vieta: sum of roots = −b/a, product = c/a; build with x² − Sx + P = 0.
  • Identities: a² + b² = (a+b)² − 2ab; a² + 1/a² = (a + 1/a)² − 2; a³ ± b³ factor forms.

Practice

45 questions in 3 sets. Every answer comes with its explanation, and each question you get right earns XP.

  • Easy · 15
  • Medium · 15
  • Hard · 15
Start practising
PreviousProgressions (AP and GP)NextLogarithms
Log inStart free