Question
Quantitative Aptitude Question on Algebra
The number of distinct integer solutions (x, y) of the equation |x + y| + |x - y| = 2, is
We are given the equation:
∣x+y∣+∣x−y∣=2
Case 1: x+y≥0 and x−y≥0. In this case, the equation becomes:
(x+y)+(x−y)=2⟹2x=2⟹x=1
Substitute x=1 into x+y≥0 and x−y≥0:
1+y≥0and1−y≥0
Solving these inequalities gives:
y≥−1andy≤1
Thus, y can be −1,0,1, giving 3 solutions for x=1.
Case 2: x+y≥0 and x−y≤0. In this case, the equation becomes:
(x+y)+(−x+y)=2⟹2y=2⟹y=1
Substitute y=1 into x+y≥0 and x−y≤0:
x+1≥0andx−1≤0
Solving these inequalities gives:
x≥−1andx≤1
Thus, x can be −1,0,1, giving 3 solutions for y=1.
Case 3: x+y≤0 and x−y≥0. In this case, the equation becomes:
(−x−y)+(x−y)=2⟹−2y=2⟹y=−1
Substitute y=−1 into x+y≤0 and x−y≥0:
x−1≤0andx+1≥0
Solving these inequalities gives:
x≤1andx≥−1
Thus, x can be −1,0,1, giving 3 solutions for y=−1.
Case 4: x+y≤0 and x−y≤0. In this case, the equation becomes:
(−x−y)+(−x+y)=2⟹−2x=2⟹x=−1
Substitute x=−1 into x+y≤0 and x−y≤0:
−1+y≤0and−1−y≤0
Solving these inequalities gives:
y≤1andy≥−1
Thus, y can be −1,0,1, giving 3 solutions for x=−1.
Conclusion: From all four cases, we get a total of 3+3+3+3=12 distinct integer solutions. Therefore, the correct answer is 12.
Solution
We are given the equation:
∣x+y∣+∣x−y∣=2
Case 1: x+y≥0 and x−y≥0. In this case, the equation becomes:
(x+y)+(x−y)=2⟹2x=2⟹x=1
Substitute x=1 into x+y≥0 and x−y≥0:
1+y≥0and1−y≥0
Solving these inequalities gives:
y≥−1andy≤1
Thus, y can be −1,0,1, giving 3 solutions for x=1.
Case 2: x+y≥0 and x−y≤0. In this case, the equation becomes:
(x+y)+(−x+y)=2⟹2y=2⟹y=1
Substitute y=1 into x+y≥0 and x−y≤0:
x+1≥0andx−1≤0
Solving these inequalities gives:
x≥−1andx≤1
Thus, x can be −1,0,1, giving 3 solutions for y=1.
Case 3: x+y≤0 and x−y≥0. In this case, the equation becomes:
(−x−y)+(x−y)=2⟹−2y=2⟹y=−1
Substitute y=−1 into x+y≤0 and x−y≥0:
x−1≤0andx+1≥0
Solving these inequalities gives:
x≤1andx≥−1
Thus, x can be −1,0,1, giving 3 solutions for y=−1.
Case 4: x+y≤0 and x−y≤0. In this case, the equation becomes:
(−x−y)+(−x+y)=2⟹−2x=2⟹x=−1
Substitute x=−1 into x+y≤0 and x−y≤0:
−1+y≤0and−1−y≤0
Solving these inequalities gives:
y≤1andy≥−1
Thus, y can be −1,0,1, giving 3 solutions for x=−1.
Conclusion: From all four cases, we get a total of 3+3+3+3=12 distinct integer solutions. Therefore, the correct answer is 12.