Maximum value of y

This topic has expert replies
User avatar
Legendary Member
Posts: 682
Joined: Fri Jan 16, 2009 2:40 am
Thanked: 32 times
Followed by:1 members

Maximum value of y

by Vemuri » Sat Apr 25, 2009 4:20 am
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

Legendary Member
Posts: 683
Joined: Tue Jul 22, 2008 1:58 pm
Location: Dubai
Thanked: 73 times
Followed by:2 members

by mals24 » Sat Apr 25, 2009 5:23 am
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

User avatar
Master | Next Rank: 500 Posts
Posts: 246
Joined: Mon May 19, 2008 7:34 am
Location: Texaco Gas Station
Thanked: 7 times

by cubicle_bound_misfit » Sat Apr 25, 2009 6:26 am
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.
Cubicle Bound Misfit

User avatar
Master | Next Rank: 500 Posts
Posts: 246
Joined: Mon May 19, 2008 7:34 am
Location: Texaco Gas Station
Thanked: 7 times

by cubicle_bound_misfit » Sat Apr 25, 2009 6:35 am
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.
Cubicle Bound Misfit

Legendary Member
Posts: 683
Joined: Tue Jul 22, 2008 1:58 pm
Location: Dubai
Thanked: 73 times
Followed by:2 members

by mals24 » Sat Apr 25, 2009 7:01 am
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.
Shoot I copied the question incorrectly. I took addition instead of subtraction. Sorry for that.

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

by cramya » Sat Apr 25, 2009 7:13 am
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

User avatar
GMAT Instructor
Posts: 2621
Joined: Mon Jun 02, 2008 3:17 am
Location: Montreal
Thanked: 1090 times
Followed by:355 members
GMAT Score:780

Re: Maximum value of y

by Ian Stewart » Sat Apr 25, 2009 7:22 am
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 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).

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

Legendary Member
Posts: 683
Joined: Tue Jul 22, 2008 1:58 pm
Location: Dubai
Thanked: 73 times
Followed by:2 members

by mals24 » Sat Apr 25, 2009 7:56 am
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.

User avatar
Legendary Member
Posts: 682
Joined: Fri Jan 16, 2009 2:40 am
Thanked: 32 times
Followed by:1 members

User avatar
Master | Next Rank: 500 Posts
Posts: 246
Joined: Mon May 19, 2008 7:34 am
Location: Texaco Gas Station
Thanked: 7 times

by cubicle_bound_misfit » Sat Apr 25, 2009 9:07 am
Ian,

to put a modified U2 song "Clarity has a scent and it is like Ian Stewart's genius brain."
Cubicle Bound Misfit

Legendary Member
Posts: 876
Joined: Thu Apr 10, 2008 8:14 am
Thanked: 13 times

by ketkoag » Sat Apr 25, 2009 11:59 am
Ian could u please let us know about the authenticity of the source used here for this problem!! :? nice question though!!