If k is a positive constant and y = |x - k| - |x + k|, what is the maximum value of y?
(1) x < 0
(2) k = 3
OA is B
Maximum value of y
This topic has expert replies
-
- Legendary Member
- Posts: 683
- Joined: Tue Jul 22, 2008 1:58 pm
- Location: Dubai
- Thanked: 73 times
- Followed by:2 members
Try to use Ian's number line method (or distance method) to solve absolute value questions. It'll be much simpler.
Y = lX-Kl + lX+Kl
In general, lA-Bl = distance between A and B.
lX-Kl = distance between X and K
lX+Kl = distance between X and -K. You write this as lX-(-K)l
So basically X is in between K and -K. Draw a number line with -K and K as end points and place X in between them.
-K-------X---------------K
Y is simply the sum of distances between X to -k and X to K or in other words Y = 2K. So we need to know only the value of K to find out value of Y.
St 1: Insuff
St 2: K= 3 Suff.
Answer is B.
Also check out Ians solution in the following post. Its a different question but the concept is the same.
https://www.beatthegmat.com/absolute-val ... 19267.html
Y = lX-Kl + lX+Kl
In general, lA-Bl = distance between A and B.
lX-Kl = distance between X and K
lX+Kl = distance between X and -K. You write this as lX-(-K)l
So basically X is in between K and -K. Draw a number line with -K and K as end points and place X in between them.
-K-------X---------------K
Y is simply the sum of distances between X to -k and X to K or in other words Y = 2K. So we need to know only the value of K to find out value of Y.
St 1: Insuff
St 2: K= 3 Suff.
Answer is B.
Also check out Ians solution in the following post. Its a different question but the concept is the same.
https://www.beatthegmat.com/absolute-val ... 19267.html
- cubicle_bound_misfit
- Master | Next Rank: 500 Posts
- Posts: 246
- Joined: Mon May 19, 2008 7:34 am
- Location: Texaco Gas Station
- Thanked: 7 times
I don't get the solution
y = |x-k| - |x+k|
the minus means it is the difference between this two distances
like say if k, x all positive and k> x
as shown by your example
-k---------------x--------------k
-------|x+k|--- --- |x-k|---
the question is saying it is the substarction between this two distances not sum, then how can be y= 2k.
and there are other cases to conside like x<0, k<0 x>k etc.
Ian,please help.
y = |x-k| - |x+k|
the minus means it is the difference between this two distances
like say if k, x all positive and k> x
as shown by your example
-k---------------x--------------k
-------|x+k|--- --- |x-k|---
the question is saying it is the substarction between this two distances not sum, then how can be y= 2k.
and there are other cases to conside like x<0, k<0 x>k etc.
Ian,please help.
Cubicle Bound Misfit
- cubicle_bound_misfit
- Master | Next Rank: 500 Posts
- Posts: 246
- Joined: Mon May 19, 2008 7:34 am
- Location: Texaco Gas Station
- Thanked: 7 times
The way I would approach
|x-k| | |x+k| | y
+ + ( -2k )
+ - ( 2x )
- + ( -2x )
- - ( 2k )
This is where I am stuck to come to a decision.
|x-k| | |x+k| | y
+ + ( -2k )
+ - ( 2x )
- + ( -2x )
- - ( 2k )
This is where I am stuck to come to a decision.
Cubicle Bound Misfit
-
- Legendary Member
- Posts: 683
- Joined: Tue Jul 22, 2008 1:58 pm
- Location: Dubai
- Thanked: 73 times
- Followed by:2 members
Shoot I copied the question incorrectly. I took addition instead of subtraction. Sorry for that.cubicle_bound_misfit wrote:The way I would approach
|x-k| | |x+k| | y
+ + ( -2k )
+ - ( 2x )
- + ( -2x )
- - ( 2k )
This is where I am stuck to come to a decision.
I tried it again and my solution looks similar to yours. I'm getting E as the final answer (maximum value could be -2x or 2k). But I have a feeling Im missing something.
-
- Legendary Member
- Posts: 2467
- Joined: Thu Aug 28, 2008 6:14 pm
- Thanked: 331 times
- Followed by:11 members
I tried it again and my solution looks similar to yours. I'm getting E as the final answer (maximum value could be -2x or 2k). But I have a feeling Im missing something
Mals,
Can u help me understand the 2x part? I feel that the y can be
-2k if x is positive and 2k if x is negative.
Since k is positive 2k will be bigger than -2k.I feel irrepective of x being positive and less than k , x>k or, x being negative and less than k "2k" will be the maximum value for y.
So we can find the maximum value irrespective of the various cases for x.
Hence B
I may be missing something also. Nice problem.
Regards,
CR
GMAT/MBA Expert
- Ian Stewart
- GMAT Instructor
- Posts: 2621
- Joined: Mon Jun 02, 2008 3:17 am
- Location: Montreal
- Thanked: 1090 times
- Followed by:355 members
- GMAT Score:780
I think mals might have thought there was a + sign, rather than a - sign, in the expression in the question (there are a few questions in official materials which are similar to the above, except with a plus sign instead of a minus between the two absolute value terms).Vemuri wrote:If k is a positive constant and y = |x - k| - |x + k|, what is the maximum value of y?
(1) x < 0
(2) k = 3
OA is B
I don't much care for the wording of the question; it doesn't really make logical sense as a DS question, even if I can tell what the intention is of the question designer. After all, what kind of information would be sufficient to find the 'maximum value of y' in general? If you saw a question that asked 'what is the maximum value of y?' and one Statement read "y > 0", would that be sufficient, or insufficient? That's unclear.
In any case, looking at the expression in the question:
y = |x - k| - |x + k|
y = |x - k| - |x - (-k)|
then y is just the difference between the distance from x to k, and the distance from x to -k. Drawing the number line:
---------(-k)-----------------k----------------
let's consider the three 'zones' in which x might lie (to the right of k, between k and -k, or less than -k).
If x is greater than k, we have:
---------(-k)-----------------k-----------x-----
So y will be negative if x is to the right of k, since then the distance from x to k is less than the distance to -k.
If x is between -k and k, we have:
---------(-k)---x-------------k----------------
Notice then that the distance from x to k is less than the distance from -k to k, so is less than 2k. So y must be less than 2k in this case.
On the other hand, if x is less than -k, we have
-x--------(-k)----------------k----------------
Then, if we subtract the distance from x to -k from the distance from x to k, we're left with the distance from -k to k, which will always be 2k no matter what the value of x. That's certain to be larger than the values of y we found in the other two cases above.
So we have the largest value of y when x < -k, and the largest value is 2k. So if k=3, y will never be larger than 6. So for that reason, I imagine the question designer intends the answer to be B, though as I said above, I don't think the format makes logical sense. I'm curious about the source.
For online GMAT math tutoring, or to buy my higher-level Quant books and problem sets, contact me at ianstewartgmat at gmail.com
ianstewartgmat.com
ianstewartgmat.com
-
- Legendary Member
- Posts: 683
- Joined: Tue Jul 22, 2008 1:58 pm
- Location: Dubai
- Thanked: 73 times
- Followed by:2 members
Thank you sooo much Ian for explaining the solution so systematically.
Cramya,
I made an error in my solution, just figured it out after looking at Ian's solution. You will not get 2x or -2x in your solution. Like you mentioned your possible solutions will be 2k and -2k and hence 2k gives you maximum value for y.
Cramya,
I made an error in my solution, just figured it out after looking at Ian's solution. You will not get 2x or -2x in your solution. Like you mentioned your possible solutions will be 2k and -2k and hence 2k gives you maximum value for y.
- Vemuri
- Legendary Member
- Posts: 682
- Joined: Fri Jan 16, 2009 2:40 am
- Thanked: 32 times
- Followed by:1 members
My source for this question is www.takegmat.com.
https://www.takegmat.com/index.php/gmat- ... iciency-5/
https://www.takegmat.com/index.php/gmat- ... iciency-5/
- cubicle_bound_misfit
- Master | Next Rank: 500 Posts
- Posts: 246
- Joined: Mon May 19, 2008 7:34 am
- Location: Texaco Gas Station
- Thanked: 7 times
Ian,
to put a modified U2 song "Clarity has a scent and it is like Ian Stewart's genius brain."
to put a modified U2 song "Clarity has a scent and it is like Ian Stewart's genius brain."
Cubicle Bound Misfit