Skills101

AdvancedQuantitative Aptitude · Lesson 23 of 25 · Updated ·

Inequalities and Quadratic Comparison — Solve, Compare and Decide x vs y

An inequality compares two quantities using <, >, ≤ (less than or equal to) or ≥ (greater than or equal to). Instead of one answer, it usually has a whole range of answers.

This lesson covers three things placement and bank-style tests ask: solving linear inequalities, solving quadratic inequalities, and the popular question type "Two equations are given. Find the relation between x and y."

1. Linear inequalities and the sign flip

You can solve an inequality like an equation — add, subtract, multiply or divide both sides — with one extra rule:

When you multiply or divide both sides by a negative number, flip the sign.

Why? 2 < 5 is true. Multiply both sides by −1: −2 and −5. Now −2 is bigger than −5, so the sign must turn around: −2 > −5. Multiplying by a negative number reverses the order of numbers on the number line.

Example 1

Solve −2x + 7 > 1.

−2x > −6. Divide by −2 and flip: x < 3.

Example 2 (two conditions)

Find the integers that satisfy both 3x − 5 < 2x + 4 and 2x + 1 > −7.

First: x < 9. Second: 2x > −8 → x > −4. Both together: −4 < x < 9, so the integers are −3, −2, …, 8 (12 integers).

2. Modulus inequalities

|x| means the distance of x from 0 on the number line. So |x − 3| is the distance of x from 3.

  • |x − a| < k means x is within k of a: a − k < x < a + k
  • |x − a| > k means x is more than k away: x < a − k or x > a + k

Example 3

Solve |x − 3| < 5.

x is within 5 of 3: −2 < x < 8. The integers are −1 to 7, which is 9 integers.

Example 4

How many integers satisfy |2x − 1| ≤ 7?

−7 ≤ 2x − 1 ≤ 7 → −6 ≤ 2x ≤ 8 → −3 ≤ x ≤ 4. That is 8 integers.

3. Quadratic inequalities with a sign chart

To solve something like (x − 2)(x − 5) < 0:

  1. Find the roots, 2 and 5. They cut the number line into three regions.
  2. Test one number in each region.
  3. Pick the regions with the sign you want.

Number line cut at 2 and 5: the product (x − 2)(x − 5) is positive to the left of 2, negative between 2 and 5, and positive to the right of 5

For an expression x² + bx + c (with a positive x² term), the pattern is always the same:

  • < 0 between the roots
  • > 0 outside the roots

Example 5

Solve x² − x − 12 ≤ 0.

x² − x − 12 = (x − 4)(x + 3). Roots −3 and 4. "≤ 0" means between them, including the ends: −3 ≤ x ≤ 4.

4. Finding roots fast

For ax² + bx + c = 0, the two roots satisfy:

sum of roots = −b/a, product of roots = c/a

So for x² − 7x + 12 = 0 you need two numbers with sum 7 and product 12: 3 and 4. No formula needed.

Sign shortcut (when a = 1):

Signs of b and cRoots are
b −, c +both positive
b +, c +both negative
c −one positive, one negative

For x² + 5x + 6 = 0: b and c are both positive, so both roots are negative: −2 and −3.

If the numbers do not come quickly, use the formula x = [−b ± √(b² − 4ac)] / 2a.

5. The "x vs y" question (bank and placement tests)

You get two equations, one in x and one in y. The options are usually:

  • x > y, x < y, x ≥ y, x ≤ y, or x = y or no relation can be found

Method: solve both, put all four roots on one number line, and compare every x with every y.

Example 6

I. x² − 7x + 12 = 0 II. y² − 9y + 20 = 0

x = 3 or 4. y = 4 or 5.

Number line with x roots 3 and 4 above it and y roots 4 and 5 below it; every x is less than or equal to every y, so x ≤ y

Every x is at most every y, and x = y = 4 is possible. Answer: x ≤ y.

Example 7

I. x² − 8x + 15 = 0 II. y² − 3y + 2 = 0

x = 3 or 5. y = 1 or 2. Every x is bigger than every y: x > y.

Example 8

I. x² + 5x + 6 = 0 II. y² − y − 12 = 0

x = −3 or −2. y = −3 or 4. Compare: x = −2 is bigger than y = −3, but smaller than y = 4. The order changes, so no relation can be established.

Example 9 (a common trap)

I. x = √1764 II. y² = 1764

√ means the positive square root only, so x = 42. But y² = 1764 gives y = 42 or −42. So x ≥ y.

Quick rules for the comparison:

SituationAnswer
Smallest x > largest yx > y
Smallest x = largest yx ≥ y
Largest x < smallest yx < y
Largest x = smallest yx ≤ y
The ranges overlapno relation

Common mistakes

  • Forgetting to flip the sign after dividing by a negative number.
  • Treating √1764 as ±42. The √ sign gives only the positive root; it is y² = 1764 that has two answers.
  • Comparing only one pair of roots. Check the extreme pairs: smallest x with largest y, and largest x with smallest y.
  • Writing x² < 9 as x < 3. The correct answer is −3 < x < 3.
  • Dividing both sides by x when you do not know the sign of x.

Quick recap

  • Multiply or divide by a negative → flip the sign.
  • |x − a| < k → a − k < x < a + k. |x − a| > k → outside that range.
  • Quadratic (positive x²): < 0 between roots, > 0 outside.
  • Sum of roots = −b/a, product = c/a. Use the sign table to guess signs.
  • x vs y: put all roots on one number line. Overlap means no relation.
🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →

Practice what you learned

📝 Quiz: Inequalities and Quadratic Comparison5 questions · instant answers & explanations · +10 XP · counts towards your free certificateTake the quiz →