Skip to main contentSkip to solution

The number of distinct integer solutions (x,y)(x, y) of the equation ∣x+y∣+∣x−y∣=2|x + y| + |x - y| = 2, is

Entered answer:

Solution

✅ Correct Answer: 8

We need to find all integer pairs (x,y)(x, y) that satisfy this equation. The key insight is that absolute value expressions create different cases based on whether the expressions inside are positive or negative.


Since we have two absolute value expressions, we need to consider when each expression inside is positive or negative:

∣x+y∣|x + y| can be opened as positive (x+yx+y), or negative −(x+y)-(x+y)

∣x−y∣|x - y| can be opened as positive (x−yx - y), or negative −(x−y)-(x-y)

This creates 4 main cases to check. Let's work through each systematically.


Case 1: Both Positive ⇒\Rightarrow x+y≥0x + y \geq 0 and x−y≥0x - y \geq 0

Our equation becomes:

(x+y)+(x−y)=2(x + y) + (x - y) = 2

2x=22x = 2

x=1x = 1

Now we need to check which values of yy satisfy our conditions when x=1x = 1:

x+y≥0x + y \geq 0 means 1+y≥01 + y \geq 0, so y≥−1y \geq -1

x−y≥0x - y \geq 0 means 1−y≥01 - y \geq 0, so y≤1y \leq 1

Therefore: −1≤y≤1-1 \leq y \leq 1

Valid integer solutions when x=1x = 1: (1,−1),(1,0),(1,1)(1, -1), (1, 0), (1, 1)


Case 2: One Positive, One Negative ⇒\Rightarrow x+y≥0x + y \geq 0 and x−y<0x - y < 0:

∣x+y∣=x+y|x + y| = x + y and ∣x−y∣=−(x−y)=y−x|x - y| = -(x - y) = y - x

Our equation becomes:

(x+y)+(y−x)=2(x + y) + (y - x) = 2

2y=22y = 2

y=1y = 1

Checking conditions when y=1y = 1:

x+y≥0x + y \geq 0 means x+1≥0x + 1 \geq 0, so x≥−1x \geq -1

x−y<0x - y < 0 means x−1<0x - 1 < 0, so x<1x < 1

Therefore: −1≤x<1-1 \leq x < 1

Integer solutions: (−1,1),(0,1)(-1, 1), (0, 1)


Case 3: One Positive, One Negative ⇒x+y<0\Rightarrow x + y < 0 and x−y≥0x - y \geq 0:

∣x+y∣=−(x+y)|x + y| = -(x + y) and ∣x−y∣=x−y|x - y| = x - y

Our equation becomes:

−(x+y)+(x−y)=2-(x + y) + (x - y) = 2

−2y=2-2y = 2

y=−1y = -1

Checking conditions when y=−1y = -1:

x+y<0x + y < 0 means x−1<0x - 1 < 0, so x<1x < 1

x−y≥0x - y \geq 0 means x+1≥0x + 1 \geq 0, so x≥−1x \geq -1

Therefore: −1≤x<1-1 \leq x < 1

Integer solutions: (−1,−1),(0,−1)(-1, -1), (0, -1)


Case 4: Both Negative ⇒x+y<0\Rightarrow x + y < 0 and x−y<0x - y < 0:

Our equation becomes:

−(x+y)−(x−y)=2-(x + y) - (x - y) = 2

−2x=2-2x = 2

x=−1x = -1

Checking conditions when x=−1x = -1:

x+y<0x + y < 0 means −1+y<0-1 + y < 0, so y<1y < 1

x−y<0x - y < 0 means −1−y<0-1 - y < 0, so y>−1y > -1

Therefore: −1<y<1-1 < y < 1

Integer solutions: (−1,0)(-1, 0)


Combining all cases, the complete set of integer solutions is:

(1,−1),(1,0),(1,1),(−1,1),(0,1),(−1,−1),(0,−1),(−1,0)(1, -1), (1, 0), (1, 1), (-1, 1), (0, 1), (-1, -1), (0, -1), (-1, 0)


Graphical Approach (risky):

Modulus equations of the format ∣x+y∣+∣x−y∣=n|x+y|+|x-y|=n represents a square with the origin being the center (this function would make a square for any nn!

∣x+y∣+∣x−y∣=n|x+y|+|x-y|=n represents 4 cases. We have them from above:

Case 1: Both positive

x=1x=1

Case 2: One positive, one negative

y=−1y=-1

Case 3: One positive, one negative

y=1y=1

Case 4: Both negative

x=−1x=-1

These are four lines create a square, any point on this square, is the solution. Since we are only looking at integral solutions, we see that there are 88.

Solution figure for CAT 2024 QA question 2 (Algebra)

Understanding figures would have gotten you the answer in just 30 seconds!

The key insight is that the equation ∣x+y∣+∣x−y∣=2|x + y| + |x - y| = 2 geometrically represents points whose sum of distances to the lines x+y=0x + y = 0 and x−y=0x - y = 0 equals 22.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question