Algebra: Absolute values and inequalities

This topic has expert replies
Source: — Data Sufficiency |

User avatar
Legendary Member
Posts: 2663
Joined: Wed Jan 14, 2015 8:25 am
Location: Boston, MA
Thanked: 1153 times
Followed by:128 members
GMAT Score:770

by DavidG@VeritasPrep » Wed Apr 13, 2016 3:19 am
lucas211 wrote:Hello BTG

would appreciate a little help on the following question:

If x and y are integers and y = |x+3| + |4-x|, does y equal 7?

1) x<4
2) x>-3


Thanks in advance :-)
Pick some easy numbers.

Statement 1. Case 1: x = 3. |3+3| + |4-3| equals 7 so we get a YES
Case 2: x = -10,000 No need to calculate. Clearly that won't be 7. we get a NO
Not sufficient

Statement 2: Case 1: x = 3. We already know this is a YES
Case2: x = 10,000 no need to calculate. Clearly not 7. so NO
Not Sufficient

Together. -3<x<4. Every integer in this range will give us 7 when plugged into |x+3| + |4-x|. (Maybe test '-2,' as this is the smallest possible value. Maybe test '0.') Because we can only get a YES, the statements together are sufficient, and the answer is C
Veritas Prep | GMAT Instructor

Veritas Prep Reviews
Save $100 off any live Veritas Prep GMAT Course

User avatar
GMAT Instructor
Posts: 15539
Joined: Tue May 25, 2010 12:04 pm
Location: New York, NY
Thanked: 13060 times
Followed by:1906 members
GMAT Score:790

by GMATGuruNY » Wed Apr 13, 2016 3:53 am
If y = |x+3| + |4-x|, does y=7?

1. x < 4
2. x > -3
|a-b| = the DISTANCE between a and b.
|a+b| = |a-(-b)| = the DISTANCE between a and -b.

Thus:
|x+3| = the distance between x and -3.
|4-x| = the distance between 4 and x.
y = the SUM of these two distances.

Question stem rephrased:
Is the sum of the two distances equal to 7?

The distance between -3 and 4 is 7.

Thus, if x is BETWEEN these two endpoints, then the sum of the two distances will be EQUAL TO 7:
-3 <--- |x+3| ---> x <---|4-x|---> 4.
Here, |x+3| + |4-x| = the distance between -3 and 4 = 7.

By extension, if x is BEYOND either endpoint -- if x is to the left of -3 or to the right of 4 -- then the sum of the two distances will be GREATER THAN 7.

Statement 1: x < 4
If x=2, then x is between -3 and 4.
If x=-10, then x is to the left of -3.
INSUFFICIENT.

Statement 2: x > -3
If x=2, then x is between -3 and 4.
If x=10, then x is to the right of 4.
INSUFFICIENT.

Statements combined:
-3 < x < 4.
SUFFICIENT.

The correct answer is C.
Private tutor exclusively for the GMAT and GRE, with over 20 years of experience.
Followed here and elsewhere by over 1900 test-takers.
I have worked with students based in the US, Australia, Taiwan, China, Tajikistan, Kuwait, Saudi Arabia -- a long list of countries.
My students have been admitted to HBS, CBS, Tuck, Yale, Stern, Fuqua -- a long list of top programs.

As a tutor, I don't simply teach you how I would approach problems.
I unlock the best way for YOU to solve problems.

For more information, please email me (Mitch Hunt) at [email protected].
Student Review #1
Student Review #2
Student Review #3

GMAT Instructor
Posts: 2630
Joined: Wed Sep 12, 2012 3:32 pm
Location: East Bay all the way
Thanked: 625 times
Followed by:119 members
GMAT Score:780

by Matt@VeritasPrep » Fri Apr 15, 2016 12:58 pm
We could also just do algebra here.

For any real number z, we know that

if z ≥ 0, |z| = z
if z ≤ 0, |z| = -z

So if both (x + 3) and (4 - x) are ≥ 0, we'd have

|x+3| = x + 3
|4-x| = 4 - x

Since (x + 3) + (4 - x) = 7, we'd have y = 7 if and only if (x + 3) ≥ 0 and (4 - x) ≥ 0.

With that in mind, the question becomes

"Are both (x + 3) and (4 - x) nonnegative?"

or, more simply,

"Is 4 ≥ x ≥ -3?"