How to substitute a negative value in a modulus function

This topic has expert replies
Master | Next Rank: 500 Posts
Posts: 231
Joined: Thu Apr 12, 2007 2:45 am
Thanked: 5 times
Followed by:1 members
I am little confused about substituting a negative number in a modulus function..Please tell me whats wrong in my approach

|X-Z| + |X|

Now if both X and Z are negative and Z < X ...How should I substitute the negative values for the X and Y

I do the following.

|-X - (-Z) | + |-X|

= |Z-X| + |X|

= Z- X +X (Taking away the modulus as the negative sign has already been assigned to the variables)

= Z

But actually the answer should be -Z ... Please let me know the right approach

Thanks,
Sai
Source: — Problem Solving |

User avatar
Legendary Member
Posts: 582
Joined: Tue Mar 08, 2011 12:48 am
Thanked: 61 times
Followed by:6 members
GMAT Score:740

by force5 » Wed Mar 16, 2011 10:48 am
Winner you have got it all correct but the final interpretation. since you are adding 2 positive values you will always get a positive answer. hence the Z that you are getting is positive. The Z that you assumed was negative hence the answer is -Z.
which is same as saying - (-Z) = Z

hope that helps.....

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 3835
Joined: Fri Apr 02, 2010 10:00 pm
Location: Milpitas, CA
Thanked: 1854 times
Followed by:523 members
GMAT Score:770

by Anurag@Gurome » Wed Mar 16, 2011 7:49 pm
winnerhere wrote:I am little confused about substituting a negative number in a modulus function..Please tell me whats wrong in my approach

|X-Z| + |X|

Now if both X and Z are negative and Z < X ...How should I substitute the negative values for the X and Y

I do the following.

|-X - (-Z) | + |-X|

= |Z-X| + |X|

= Z- X +X (Taking away the modulus as the negative sign has already been assigned to the variables)

= Z

But actually the answer should be -Z ... Please let me know the right approach

Thanks,
Sai

Solution:
Remember that lxl = x if x >= 0
=-x if x < 0
So, if Z < X, (X - Z) > 0.
Hence lx-zl = x-z.
If x is negative, x < 0 and so lxl = -x .
So lx-zl + lxl = x-z-x = -z.
Anurag Mairal, Ph.D., MBA
GMAT Expert, Admissions and Career Guidance
Gurome, Inc.
1-800-566-4043 (USA)

Join Our Facebook Groups
GMAT with Gurome
https://www.facebook.com/groups/272466352793633/
Admissions with Gurome
https://www.facebook.com/groups/461459690536574/
Career Advising with Gurome
https://www.facebook.com/groups/360435787349781/

Master | Next Rank: 500 Posts
Posts: 231
Joined: Thu Apr 12, 2007 2:45 am
Thanked: 5 times
Followed by:1 members

by winnerhere » Thu Mar 17, 2011 10:31 am
Thanks force5 :)

Anurag - thats the perfect way to do the sum..thanks for pointing it out :)