rohitgoel15
If x is an integer, what is the value of x?
1) |x - |x2|| = 2
2) |x2 - |x|| = 2
I saw the solution and I think i cant even get close. On the test, I would prefer not to solve this question. But is there a short way to make an educated guess.

Answer is not E as given in above posts, it's C. Also note that 1 and -1 does not satisfy statement (2).
If x is an integer, what is the value of x?(1) |x - |x^2|| = 2. First of all: \(|x^2|=x^2\) (as \(x^2\) is a non-negative value). Square both sides: \((x-x^2)^2=4\) --> factor out \(x\):
\(x^2*(1-x)^2=4\) --> as \(x\) is an integer then \(x=2\) or \(x=-1\) (by trial and error: the product of two perfect square is 4: 1*4=4 or 4*1=4). Not sufficient.
(2) |x2 - |x|| = 2 --> square both sides: \((x^2-|x|)^2=4\) --> factor out
\(|x|\): \(x^2*(|x|-1)^2=4\) --> as \(x\) is an integer then \(x=2\) or \(x=-2\). Not sufficient.
(1)+(2) Intersection of the values from (1) and (2) is \(x=2\). Sufficient.
Answer: C.
Hope it's clear.
Thanks for the reply Bunuel. I didnt understand the factorization part in your post. It would be great if you can simplify the parts.
a.
squaring both sides we get
x^2 + x^4 - 2x* x^2 = 4
meaning, x^2 (x-1)^2 = 4
thus x = 2 | -1 not sufficient.
b same process and we get x = 2| -2
not sufficient.
a+b gives x = 2.
thus C it is.
Now take 1) |x - |x2|| = 2
|x2| is always positive. |x - |x2|| is negative since x^2>x
x^2-x=2.The value of X can be obtained as 2,-1.
Statement alone is not sufficient
From 2) Similarly we get 2 equations x^2-x=2 and x^2+x=2 depeding upon whether X is positive or negative respectively which we dont know .
Statement 2 alone is not sufficient .