Last visit was: 23 Apr 2026, 14:31 It is currently 23 Apr 2026, 14:31
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [72]
6
Kudos
Add Kudos
66
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [27]
7
Kudos
Add Kudos
20
Bookmarks
Bookmark this Post
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [16]
4
Kudos
Add Kudos
12
Bookmarks
Bookmark this Post
General Discussion
avatar
rsamant
Joined: 30 Jun 2012
Last visit: 08 Jun 2015
Posts: 8
Own Kudos:
Posts: 8
Kudos: 6
Kudos
Add Kudos
Bookmarks
Bookmark this Post
when -5<x< 5

Why do you multiply I X-5 I by -1 ? ? I am trying to understand the logic behind this calculation
When -5<x<5, then |x+5|=x+5 and |x-5|=-(x-5)=5-x.
avatar
sidagar
Joined: 04 Aug 2014
Last visit: 09 Mar 2018
Posts: 16
Own Kudos:
4
 [1]
Given Kudos: 4
GMAT 1: 620 Q47 V28
GPA: 3.2
Products:
GMAT 1: 620 Q47 V28
Posts: 16
Kudos: 4
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
hi brunel
when x>5, y = 10
when x<5, y = -10
when -5<x<5, y= 2x...These 3 steps are clear to me.But my concern is as per your solution you have taken the following range:

Therefore for this range −10<(y=2x)<10.- still not clear with this part as why we are taking value from -10 to 10.What is the logic behind this
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
810,855
 [4]
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [4]
4
Kudos
Add Kudos
Bookmarks
Bookmark this Post
sidagar
hi brunel
when x>5, y = 10
when x<5, y = -10
when -5<x<5, y= 2x...These 3 steps are clear to me.But my concern is as per your solution you have taken the following range:

Therefore for this range −10<(y=2x)<10.- still not clear with this part as why we are taking value from -10 to 10.What is the logic behind this

For \(-5 < x < 5\) range and we got \(y=2x\). Multiply \(-5 < x < 5\) by 2 to get \(-10 < 2x < 10\). Substitute 2x with y to get \(-10 < y< 10\).
avatar
gleshem
Joined: 12 Aug 2017
Last visit: 30 Aug 2017
Posts: 1
Posts: 1
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I think this is a poor-quality question and I don't agree with the explanation. possible mistake? in the range of -5<x<5, according to the explanation, y can get 19 values.
however, if we assign x= 4,3,2,1,0,-1,-2,-3,-4 it results return exactly 9 options. respectively y=2x as mentioned.
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
810,855
 [5]
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [5]
4
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
gleshem
I think this is a poor-quality question and I don't agree with the explanation. possible mistake? in the range of -5<x<5, according to the explanation, y can get 19 values.
however, if we assign x= 4,3,2,1,0,-1,-2,-3,-4 it results return exactly 9 options. respectively y=2x as mentioned.

You should read the question more carefully. We are not told that x is an integer so there are more integer values of y possible when x is not integer.
avatar
pantera07
Joined: 08 Aug 2017
Last visit: 01 Dec 2019
Posts: 21
Own Kudos:
16
 [1]
Given Kudos: 7
Products:
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Hi Bunuel

I have a doubt.
I took the three conditions as:
1. x<5
2. -5<=x<=5
3. x>5

As a result for the second condition i got y Ranging from -10 to 10 (Total of 21 integers), so my overall total was 23 instead of 21. I am struggling with the "equal to" sign, how do we know in which condition we place the "equal to" sign? In few problems that I solved before, I thought it does not really matter, however in this problem, it seems it does matter. I need to clear my concept. Thanks in advance for your kind help.
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
810,855
 [1]
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
pantera07
Hi Bunuel

I have a doubt.
I took the three conditions as:
1. x<5
2. -5<=x<=5
3. x>5

As a result for the second condition i got y Ranging from -10 to 10 (Total of 21 integers), so my overall total was 23 instead of 21. I am struggling with the "equal to" sign, how do we know in which condition we place the "equal to" sign? In few problems that I solved before, I thought it does not really matter, however in this problem, it seems it does matter. I need to clear my concept. Thanks in advance for your kind help.

You are right, it does not matter where you place = sign as long as it's there somewhere. The point is that since x could be both -5 and 5, you should include both these values in either of the ranges. You'll get the same answer no matter where you place = sign. For example:

1. x < 5 --> y = -10 --> one value.

2. -5 <= x <= 5 --> y = 2x --> -10 < (y = 2x) < 10 --> 19 values (from -9 to 9).

3. x > 5 --> y = 10 --> one value.

1 + 19 + 1 = 21.
avatar
Shri15kumar
Joined: 14 Jun 2018
Last visit: 26 Jan 2019
Posts: 39
Own Kudos:
Given Kudos: 26
Location: India
Concentration: International Business, Marketing
Posts: 39
Kudos: 15
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
rsamant
when -5<x< 5

Why do you multiply I X-5 I by -1 ? ? I am trying to understand the logic behind this calculation
When -5<x<5, then |x+5|=x+5 and |x-5|=-(x-5)=5-x.

Absolute value properties:

When \(x \le 0\) then \(|x|=-x\), or more generally when \(\text{some expression} \le 0\) then \(|\text{some expression}| = -(\text{some expression})\). For example: \(|-5|=5=-(-5)\);

When \(x \ge 0\) then \(|x|=x\), or more generally when \(\text{some expression} \ge 0\) then \(|\text{some expression}| = \text{some expression}\). For example: \(|5|=5\).

Therefore, when -5 < x < 5, then x + 5 > 0 and x - 5 < 0, thus |x + 5| = x + 5 and |x - 5| = -(x - 5) = 5 - x.


Hope it helps.

Hello Bunuel,

Can you please share some similar OG questions? Link or any tags?
thank you!
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
810,855
 [7]
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
 [7]
1
Kudos
Add Kudos
6
Bookmarks
Bookmark this Post
Shri15kumar
Bunuel
rsamant
when -5<x< 5

Why do you multiply I X-5 I by -1 ? ? I am trying to understand the logic behind this calculation
When -5<x<5, then |x+5|=x+5 and |x-5|=-(x-5)=5-x.

Absolute value properties:

When \(x \le 0\) then \(|x|=-x\), or more generally when \(\text{some expression} \le 0\) then \(|\text{some expression}| = -(\text{some expression})\). For example: \(|-5|=5=-(-5)\);

When \(x \ge 0\) then \(|x|=x\), or more generally when \(\text{some expression} \ge 0\) then \(|\text{some expression}| = \text{some expression}\). For example: \(|5|=5\).

Therefore, when -5 < x < 5, then x + 5 > 0 and x - 5 < 0, thus |x + 5| = x + 5 and |x - 5| = -(x - 5) = 5 - x.


Hope it helps.

Hello Bunuel,

Can you please share some similar OG questions? Link or any tags?
thank you!

Similar questions to practice:


https://gmatclub.com/forum/for-how-many ... 33947.html
https://gmatclub.com/forum/for-how-many ... 33945.html
https://gmatclub.com/forum/if-x-is-an-i ... 46499.html
https://gmatclub.com/forum/how-many-pos ... 28782.html
https://gmatclub.com/forum/how-many-int ... 10427.html
https://gmatclub.com/forum/how-many-int ... 36656.html
https://gmatclub.com/forum/if-y-x-5-x-5 ... 73626.html
https://gmatclub.com/forum/for-how-many ... 31928.html
https://gmatclub.com/forum/for-how-many ... 31929.html
https://gmatclub.com/forum/how-many-val ... 52859.html
https://gmatclub.com/forum/for-how-many ... 31930.html
https://gmatclub.com/forum/for-how-many ... 03766.html
https://gmatclub.com/forum/for-what-val ... 48561.html
https://gmatclub.com/forum/how-many-dif ... 75948.html
https://gmatclub.com/forum/how-many-roo ... 79379.html
https://gmatclub.com/forum/how-many-int ... 88429.html
https://gmatclub.com/forum/if-y-2-x-2-x ... 98566.html
https://gmatclub.com/forum/how-many-pos ... 12418.html
https://gmatclub.com/forum/if-x-is-any- ... 27794.html
https://gmatclub.com/forum/for-how-many ... 31930.html
https://gmatclub.com/forum/for-how-many ... 68675.html
https://gmatclub.com/forum/if-x-and-y-a ... 01766.html
https://gmatclub.com/forum/how-many-val ... 52859.html
avatar
sarthak952
Joined: 16 Feb 2020
Last visit: 10 Sep 2022
Posts: 8
Own Kudos:
Given Kudos: 249
Posts: 8
Kudos: 6
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I think this is a high-quality question and I agree with explanation. Amazing Question! We always think about whether Y would take integral values or not, but forget the same about X! Loved it!
User avatar
BrentGMATPrepNow
User avatar
Major Poster
Joined: 12 Sep 2015
Last visit: 31 Oct 2025
Posts: 6,733
Own Kudos:
36,451
 [4]
Given Kudos: 799
Location: Canada
Expert
Expert reply
Posts: 6,733
Kudos: 36,451
 [4]
4
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
If \(y=|x+5|-|x-5|\), then \(y\) can take how many integer values?

A. 5
B. 10
C. 11
D. 20
E. 21

Here's how I'd handle the question:

Test a big number, like x = 100
We get: y = |100 + 5| - |100 - 5|
= |105| - |95|
= 105 - 95
= 10

Test another big number, like x = 10000
We get: y = |10000 + 5| - |10000 - 5|
= |10005| - |9995|
= 10005 - 9995
= 10

So, it seems that \(10\) is the greatest possible value of y.

Now test a small number, like x = -100
We get: y = |-100 + 5| - |-100 - 5|
= |-95| - |-105|
= 95 - 105
= -10
So, it seems that \(-10\) is the smallest possible value of y.


Now test a number between -100 and 100, like x = 0
We get: y = |0 + 5| - |0 - 5|
= |5| - |-5|
= 5 - 5
= 0

So it seems that the value of y ranges from -10 to 10, inclusive.

There are 21 such integers

Answer: E
User avatar
Krishna7568
Joined: 02 Aug 2021
Last visit: 14 Feb 2024
Posts: 15
Own Kudos:
Given Kudos: 229
Location: Taiwan
GPA: 3.73
Posts: 15
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I think this is a high-quality question and I agree with explanation.
User avatar
Stanindaw
Joined: 11 Dec 2020
Last visit: 18 Apr 2026
Posts: 127
Own Kudos:
Given Kudos: 73
Location: India
Concentration: Operations, Economics
GMAT Focus 1: 615 Q80 V80 DI77
GPA: 3.7
Products:
GMAT Focus 1: 615 Q80 V80 DI77
Posts: 127
Kudos: 55
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
If \(y=|x+5|-|x-5|\), then \(y\) can take how many integer values?

A. 5
B. 10
C. 11
D. 20
E. 21


I did it in this way:
If we get the range of y on number line we can definitely get the integer values.
For getting the range:
Max value of y would be when mode of x-5 will be zero or minimum.
x-5 will be zero when x is 5
this gives y= 10

Similarily for getting the minimum value of y, mode of x+5 should be made zero or minimum possible
we can make it zero by having the value of x as -5
this gives minimum value of y as -10
therefore the range of y is -10 to 10 inclusive
hence the number of integer values that y can take is 21
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I have edited the question and the solution by adding more details to enhance its clarity. I hope it is now easier to understand.
User avatar
BottomJee
User avatar
Retired Moderator
Joined: 05 May 2019
Last visit: 09 Jun 2025
Posts: 994
Own Kudos:
Given Kudos: 1,009
Affiliations: GMAT Club
Location: India
GMAT Focus 1: 645 Q82 V81 DI82
GMAT 1: 430 Q31 V19
GMAT 2: 570 Q44 V25
GMAT 3: 660 Q48 V33
GPA: 3.26
WE:Engineering (Manufacturing)
Products:
GMAT Focus 1: 645 Q82 V81 DI82
GMAT 3: 660 Q48 V33
Posts: 994
Kudos: 1,457
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I think this is a high-quality question and I agree with explanation.
User avatar
varad98
Joined: 06 Aug 2022
Last visit: 02 Mar 2025
Posts: 60
Own Kudos:
Given Kudos: 35
GMAT Focus 1: 645 Q86 V81 DI79
GMAT 1: 690 Q50 V34
GPA: 3.8
Products:
GMAT Focus 1: 645 Q86 V81 DI79
GMAT 1: 690 Q50 V34
Posts: 60
Kudos: 27
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
Official Solution:

If \(y=|x+5|-|x-5|\), then \(y\) can take how many integer values?

A. 5
B. 10
C. 11
D. 20
E. 21


Considering that the transition points for \(|x+5|\) and \(|x-5|\) are -5 and 5, respectively, let's examine the function \(y=|x+5|-|x-5|\) for the following three ranges

When \(x\leq{-5}\), then \(|x+5|=-(x+5)=-x-5\) and \(|x-5|=-(x-5)=5-x\). In this case, \(y=|x+5|-|x-5|=-x-5-(5-x)=-10\). This implies that when \(x\leq{-5}\), \(y\) can take only 1 integer value, which is -10.

When \(-5 < x < 5\), then \(|x+5|=x+5\) and \(|x-5|=-(x-5)=5-x\). In this case, \(y=|x+5|-|x-5|=x+5-(5-x)=2x\). For this range, \(-10 < (y=2x) < 10\). This implies that when \(-5 < x < 5\), \(y\) can take 19 integer values, ranging from -9 to 9, inclusive.

When \(x\geq{5}\), then \(|x+5|=x+5\) and \(|x-5|=x-5\). In this case, \(y=|x+5|-|x-5|=x+5-(x-5)=10\). This implies that when \(x\geq{5}\), \(y\) can take only 1 integer value, which is 10.

Total number of integer values for \(y\) = 1 + 19 + 1 = 21.

If you are interested, here is a graph of \(y=|x+5|−|x−5|:\)



As illustrated, \(y\) is a continuous function (its values change smoothly without any gaps when moving along the domain), ranging from -10 to 10, inclusive. Consequently, \(y\) can take 21 integer values from -10 to 10, inclusive.


Answer: E

Hello Bunuel,

When x<-5,
|x+5|=-x-5 & |x-5|=-x+5 which gives one unique value for y.

When [color=#ffff00]-5<=x<5,
|x+5|=x+5
|x-5|=-x+5
it gives, -10<=y(2x)<10

Providing 20 unique values.[/color]

When x>=5
All mod values turn positive to give one unique answer.

So total is 22.

My question is, why in first condition less than equal to was taken when mod value of |x+5|= x+5 (at x=-5)
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 23 Apr 2026
Posts: 109,785
Own Kudos:
Given Kudos: 105,853
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,785
Kudos: 810,855
Kudos
Add Kudos
Bookmarks
Bookmark this Post
varad98
Bunuel
Official Solution:

If \(y=|x+5|-|x-5|\), then \(y\) can take how many integer values?

A. 5
B. 10
C. 11
D. 20
E. 21


Considering that the transition points for \(|x+5|\) and \(|x-5|\) are -5 and 5, respectively, let's examine the function \(y=|x+5|-|x-5|\) for the following three ranges

When \(x\leq{-5}\), then \(|x+5|=-(x+5)=-x-5\) and \(|x-5|=-(x-5)=5-x\). In this case, \(y=|x+5|-|x-5|=-x-5-(5-x)=-10\). This implies that when \(x\leq{-5}\), \(y\) can take only 1 integer value, which is -10.

When \(-5 < x < 5\), then \(|x+5|=x+5\) and \(|x-5|=-(x-5)=5-x\). In this case, \(y=|x+5|-|x-5|=x+5-(5-x)=2x\). For this range, \(-10 < (y=2x) < 10\). This implies that when \(-5 < x < 5\), \(y\) can take 19 integer values, ranging from -9 to 9, inclusive.

When \(x\geq{5}\), then \(|x+5|=x+5\) and \(|x-5|=x-5\). In this case, \(y=|x+5|-|x-5|=x+5-(x-5)=10\). This implies that when \(x\geq{5}\), \(y\) can take only 1 integer value, which is 10.

Total number of integer values for \(y\) = 1 + 19 + 1 = 21.

If you are interested, here is a graph of \(y=|x+5|−|x−5|:\)



As illustrated, \(y\) is a continuous function (its values change smoothly without any gaps when moving along the domain), ranging from -10 to 10, inclusive. Consequently, \(y\) can take 21 integer values from -10 to 10, inclusive.


Answer: E

Hello Bunuel,

When x<-5,
|x+5|=-x-5 & |x-5|=-x+5 which gives one unique value for y.

When [color=#ffff00]-5<=x<5,
|x+5|=x+5
|x-5|=-x+5
it gives, -10<=y(2x)<10

Providing 20 unique values.[/color]

When x>=5
All mod values turn positive to give one unique answer.

So total is 22.

My question is, why in first condition less than equal to was taken when mod value of |x+5|= x+5 (at x=-5)

I'm having a hard time deciphering what you mean, but if we follow your approach, we'd get:

When \(x<-5\), then \(|x+5|=-(x+5)=-x-5\) and \(|x-5|=-(x-5)=5-x\). In this case, \(y=|x+5|-|x-5|=-x-5-(5-x)=-10\). This implies that when \(x<{-5}\), \(y\) can take only 1 integer value, which is -10.

When \(-5 \leq x \leq 5\), then \(|x+5|=x+5\) and \(|x-5|=-(x-5)=5-x\). In this case, \(y=|x+5|-|x-5|=x+5-(5-x)=2x\). For this range, \(-10 \leq (y=2x) \leq 10\). This implies that when \(-5 \leq x \leq 5\), \(y\) can take 21 integer values, ranging from -10 to 10, inclusive.

When \(x>{5}\), then \(|x+5|=x+5\) and \(|x-5|=x-5\). In this case, \(y=|x+5|-|x-5|=x+5-(x-5)=10\). This implies that when \(x>{5}\), \(y\) can take only 1 integer value, which is 10.

It's important to note an overlap in values, which are marked in red. Therefore, x can range from -10 to 10, resulting in a total of 21 distinct values.
 1   2   
Moderators:
Math Expert
109785 posts
Founder
43154 posts