BREAKING: Target Test Prep releases Brand New 2026 On Demand GMAT prep course

Redeem

How to substitute a negative value in a modulus function

Expert replies
by winnerhere » Wed Mar 16, 2011 9:33 am
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
Join the discussion
Source: — Problem Solving |

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.....
Join the discussion

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/
Join the discussion

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 :)
Join the discussion