Last visit was: 04 Sep 2026, 13:03 It is currently 04 Sep 2026, 13:03
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
dave13
Joined: 09 Mar 2016
Last visit: 10 Jul 2026
Posts: 1,081
Own Kudos:
Given Kudos: 3,851
Posts: 1,081
Kudos: 1,161
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
BrentGMATPrepNow
User avatar
Major Poster
Joined: 12 Sep 2015
Last visit: 31 Oct 2025
Posts: 6,727
Own Kudos:
37,232
 [1]
Given Kudos: 799
Location: Canada
Expert
Expert reply
Posts: 6,727
Kudos: 37,232
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
BrushMyQuant
Joined: 05 Apr 2011
Last visit: 09 Aug 2026
Posts: 2,286
Own Kudos:
2,763
 [1]
Given Kudos: 100
Status:Tutor - BrushMyQuant
Location: India
Concentration: Finance, Marketing
Schools: XLRI (A)
GMAT 1: 700 Q51 V31
GPA: 3
WE:Information Technology (Computer Software)
Expert
Expert reply
Schools: XLRI (A)
GMAT 1: 700 Q51 V31
Posts: 2,286
Kudos: 2,763
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
shaurya_gmat
Joined: 05 Jun 2023
Last visit: 20 Jan 2026
Posts: 65
Own Kudos:
Given Kudos: 133
GPA: 3
Products:
Posts: 65
Kudos: 35
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel,

Generally while solving such question, I'll consider the following ranges-
X<-5
-5<= X <5
X>= 5

I solved this question using the above mentioned ranges and the answer I got is 22.
Is is wrong for me to consider ranges in this generic manner.. I notice you've considered the first range as X<= -5 and so forth. While taking ranges do you always check the infliction point and a value on the other side of the range to decide whether you consider the = sign ?



Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 04 Sep 2026
Posts: 113,146
Own Kudos:
839,113
 [1]
Given Kudos: 111,327
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 113,146
Kudos: 839,113
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
shaurya_gmat
Bunuel,

Generally while solving such question, I'll consider the following ranges-
X<-5
-5<= X <5
X>= 5

I solved this question using the above mentioned ranges and the answer I got is 22.
Is is wrong for me to consider ranges in this generic manner.. I notice you've considered the first range as X<= -5 and so forth. While taking ranges do you always check the infliction point and a value on the other side of the range to decide whether you consider the = sign ?



Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png

When determining the intervals around the critical points, it's important to include each critical point in one of the intervals. It doesn't matter which interval includes the equal sign for a critical point, as long as all critical points are accounted for. Whether you write the intervals as x < -5, -5 ≤ x < 5, and x ≥ 5, or x ≤ -5, -5 < x ≤ 5, and x > 5, the solution will be the same. The key is to ensure every critical point is included without any gaps or overlaps.

Thus, as long as you include the equal sign at each critical point, it doesn't matter which interval it’s assigned to.
User avatar
Joaquinramirez7
Joined: 20 Aug 2019
Last visit: 04 Jan 2026
Posts: 3
Posts: 3
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Could you give me a X value (in the range -5<X<5) that makes Y take one of following values ? (-9,-7,-5,-3,-1,1,3,5,7,9)

Thanks

Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 04 Sep 2026
Posts: 113,146
Own Kudos:
Given Kudos: 111,327
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 113,146
Kudos: 839,113
Kudos
Add Kudos
Bookmarks
Bookmark this Post
-9 = |x + 5| - |x - 5|

x = -4.5

Joaquinramirez7
Could you give me a X value (in the range -5<X<5) that makes Y take one of following values ? (-9,-7,-5,-3,-1,1,3,5,7,9)

Thanks

Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png
User avatar
Chahel
Joined: 28 Jan 2024
Last visit: 17 Jun 2026
Posts: 2
Given Kudos: 14
Location: India
Posts: 2
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
How do we arrive at -10 < (y=2x) < 10? In the second case, -10 is still understandable since we got y=-10 when x<-5, but how did we arrive at the 10. I'm also confused as to how you came to the conclusion that there are 19 integers that can assume that value, since the equation that you derived -> -10 < (y=2x) < 10 if x is 9 or -9 or in fact even 8 or -8 we'd end up by y=2x = 9*2 = 18 > 10 not <10. Could you please break it down for me?I'm very lost. Hope I could explain my query.
Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 04 Sep 2026
Posts: 113,146
Own Kudos:
Given Kudos: 111,327
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 113,146
Kudos: 839,113
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Chahel
How do we arrive at -10 < (y=2x) < 10? In the second case, -10 is still understandable since we got y=-10 when x<-5, but how did we arrive at the 10. I'm also confused as to how you came to the conclusion that there are 19 integers that can assume that value, since the equation that you derived -> -10 < (y=2x) < 10 if x is 9 or -9 or in fact even 8 or -8 we'd end up by y=2x = 9*2 = 18 > 10 not <10. Could you please break it down for me?I'm very lost. Hope I could explain my query.
Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png

1. Why is it -10 < y = 2x < 10?
Because in the second case we have -5 < x < 5, so multiplying both sides by 2 gives -10 < (2x = y) < 10.

2. Why are there 19 integer values?
These are the integers strictly between -10 and 10, which means from -9 to 9 inclusive, making 19 values.

Please review the full discussion for better understanding. The solution is elaborated in several posts there.
User avatar
eps018us
Joined: 15 May 2022
Last visit: 15 Feb 2026
Posts: 6
Given Kudos: 658
Posts: 6
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Why does squaring everything not work? Thnx
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 04 Sep 2026
Posts: 113,146
Own Kudos:
839,113
 [2]
Given Kudos: 111,327
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 113,146
Kudos: 839,113
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
eps018us
y = |x + 5| - |x - 5|

Why does squaring everything not work? Thnx

Squaring is usually done to eliminate absolute values and simplify the inequality. But here, after squaring, the absolute values are still there, so squaring doesn't really help. Also, when squared, we get y^2 on the left-hand side, while we are asked to find the value that y can take, so this further complicates the matter. So, better to study several different approaches that work, as shown in the thread.
User avatar
Dipanshi_25
Joined: 19 May 2024
Last visit: 03 Sep 2026
Posts: 3
Own Kudos:
Given Kudos: 57
Location: India
Products:
Posts: 3
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
what if we square it on both sides, and take = y^2 = a^2 - b^2, a = x+5, b = x-5. Can we solve it like that? if not, then why not?
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

M30-21

Experience GMAT Club Test Questions
Yes, you've landed on a GMAT Club Tests question
Craving more? Unlock our full suite of GMAT Club Tests here
Want to experience more? Get a taste of our tests with our free trial today
Rise to the challenge with GMAT Club Tests. Happy practicing!
­
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 04 Sep 2026
Posts: 113,146
Own Kudos:
Given Kudos: 111,327
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 113,146
Kudos: 839,113
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Dipanshi_25
what if we square it on both sides, and take = y^2 = a^2 - b^2, a = x+5, b = x-5. Can we solve it like that? if not, then why not?
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

M30-21

Experience GMAT Club Test Questions
Yes, you've landed on a GMAT Club Tests question
Craving more? Unlock our full suite of GMAT Club Tests here
Want to experience more? Get a taste of our tests with our free trial today
Rise to the challenge with GMAT Club Tests. Happy practicing!
­

Squaring will not eliminate the square root sign, you'd get:

y^2 = 2x^2 - 2|x + 5| * |x - 5| + 50

So, no.
User avatar
KyleKouton
Joined: 16 Oct 2025
Last visit: 28 Feb 2026
Posts: 10
Own Kudos:
Given Kudos: 125
Location: India
Schools: HBS '26
GMAT Focus 1: 665 Q76 V88 DI85
GPA: 3.5
Schools: HBS '26
GMAT Focus 1: 665 Q76 V88 DI85
Posts: 10
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel, would you say that this is too difficult for GMAT level and should be tagged as such? Or is thsi difficulty possible on GMAT?

Bunuel
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.

Try NEW absolute value DS question.

Attachment:
WolframAlpha--yx5-x-5_--2014-07-08_0728.png
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 04 Sep 2026
Posts: 113,146
Own Kudos:
839,113
 [1]
Given Kudos: 111,327
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 113,146
Kudos: 839,113
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
KyleKouton
Bunuel, would you say that this is too difficult for GMAT level and should be tagged as such? Or is thsi difficulty possible on GMAT?



As the stats in the original post show, and as the difficulty tag indicates, this is an 805+ level question, so it’s very hard. But the underlying concepts are fully aligned with what GMAT tests, and something at this could appear on the exam.
User avatar
wickedvikram
Joined: 08 Jun 2008
Last visit: 21 Jul 2026
Posts: 198
Own Kudos:
Given Kudos: 101
Location: India
Concentration: Finance, General Management
GPA: 6.5
Products:
Posts: 198
Kudos: 107
Kudos
Add Kudos
Bookmarks
Bookmark this Post
This question got me too. It asks integer value of Y and not X. for values of X such as 4.5, 3.5 ..... -3.5, -4.5 , Y will still be integer :)

La1yaMalhotra
In the range -5<x<=5, there are only 11 integers. So, if we are solving for x using -10<=2x<10 and it gives us 20 integers,then only 11 of these are possible within the range -5<x<=5. Can someone please help me understand as to why we are going with 21 as the answer?
User avatar
Kinshook
User avatar
Major Poster
Joined: 03 Jun 2019
Last visit: 04 Sep 2026
Posts: 6,129
Own Kudos:
Given Kudos: 164
Location: India
GMAT 1: 690 Q50 V34
WE:Engineering (Transportation)
Products:
GMAT 1: 690 Q50 V34
Posts: 6,129
Kudos: 6,088
Kudos
Add Kudos
Bookmarks
Bookmark this Post
If \(y=|x+5|-|x-5|\), then \(y\) can take how many integer values?

y=|x+5|-|x-5|

Case 1: x <= -5
y = -x-5 - (5-x) = -x-5-5+x = -10

Case 2: -5 < x <= 5
y = x+5 - (5-x) = x+5-5+x = 2x
y = {-8,-6,-4,-2,0,2,4,6,8,10}

Case 3: x>5
y = x+5-(x-5) = x+5-x+5 = 10

Combining all above
y = {-10,-8,-6,-4,-2,0,2,4,6,8,10} : 21 values

IMO E
   1   2 
Moderator:
Math Expert
113146 posts