If \(x\) and \(y\) are both integers and if \((x-y)^2 + 2(y^2) = 27\), which of the following could be the value of x?
a. -2
b. -1
c. 3
d. 4
e. 5
This question could seem impossible to answer since we have just one equation and two variables. However, we have two additional constraints.
The first is that \(x\) and \(y\) must both be integers.
The second is that the possible values of \(x\) are limited to the set of answer choices.
So, since this is a GMAT Quant question, we'll know that we'll be able to answer it by using those constraints.
Given that \(x\) and \(y\) are integers and that \((x-y)^2 + 2(y^2) = 27\), what we have are one times one perfect square + two times a second perfect square adding up to \(27\). So, one way we can answer this question is to simply consider all the perfect squares that are less than \(27\), identify which ones add up to \(27\) and find a value of \(x\) that works.
It's not a super elegant way of answering the question, but it demonstrates a key GMAT Quant characteristic, which is that GMAT Quant questions are designed to test our skill in simply finding a way to get to an answer. So, if you don't quickly see an elegant mathematical way to answer a question, it's likely that you'll be fine just using a brute force method to get it done.
There are six perfect squares less than \(27\): \(0\), \(1\), \(4\), \(9\), \(16\), \(25\).
Scanning them, we quickly see that only \(0\), \(1\), \(4\), and \(9\) can be doubled since \(2\) x \(16\) and \(2\) x \(25\) are greater than \(27\).
Then, considering possible ways of getting to \(27\), we see that there are only two: \(25 + 2(1) = 27\) and \(9 + 2(9) = 27\).
In the first case, \(y^2 = 1\). So, \(y\) must be \(1\) or \(-1\). Then, for \((x - y)^2\) to equal \(25\), \(x - y\) must be \(5\) or \(-5\).
So, if \(y = 1\), then \(x\) must be \(6\)\(\) or \(-4\). Since neither \(6\) nor \(-4\) are among the answer choices, this path to \(27\) won't work.
If \(y = -1\), then for \(x - y\) to equal \(5\) or \(-5\), x can be \(4\) or \(-6\).
We see that \(4\) is among the answer choices.
So, the correct answer is (D).