Last visit was: 27 Mar 2025, 22:17 It is currently 27 Mar 2025, 22:17
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 27 March 2025
Posts: 100,114
Own Kudos:
Given Kudos: 92,748
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 100,114
Kudos: 711,431
 [155]
16
Kudos
Add Kudos
138
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 27 March 2025
Posts: 100,114
Own Kudos:
Given Kudos: 92,748
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 100,114
Kudos: 711,431
 [52]
27
Kudos
Add Kudos
25
Bookmarks
Bookmark this Post
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 27 Mar 2025
Posts: 15,835
Own Kudos:
72,328
 [16]
Given Kudos: 461
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 15,835
Kudos: 72,328
 [16]
13
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
User avatar
BrentGMATPrepNow
User avatar
Major Poster
Joined: 12 Sep 2015
Last visit: 13 May 2024
Posts: 6,769
Own Kudos:
33,155
 [7]
Given Kudos: 799
Location: Canada
Expert
Expert reply
Posts: 6,769
Kudos: 33,155
 [7]
3
Kudos
Add Kudos
4
Bookmarks
Bookmark this Post
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14

There are 3 steps to solving equations involving ABSOLUTE VALUE:
1. Apply the rule that says: If |x| = k, then x = k and/or x = -k
2. Solve the resulting equations
3. Plug solutions into original equation to check for extraneous roots


Given: x² – 8x + 21 = |x – 4|+ 5
Subtract 5 from both sides: x² – 8x + 16 = |x – 4|
Apply above rule

We get two cases: x² – 8x + 16 = x – 4 and -(x² – 8x + 16) = x – 4

x² – 8x + 16 = x – 4
Add 4 to both sides: x² – 8x + 20 = x
Subtract x from both sides: x² – 9x + 20 = 0
Factor: (x - 5)(x - 4) = 0
So, x = 5 or x = 4

-(x² – 8x + 16) = x – 4
Simplify: -x² + 8x - 16 = x – 4
Add 4 to both sides: -x² + 8x - 12 = x
Subtract x from both sides: -x² + 7x - 12 = 0
Multiply both sides by -1 to get: x² - 7x + 12 = 0
Factor: (x - 3)(x - 4) = 0
So, x = 3 or x = 4

We have three potential solutions: x = 5, x = 4 and x = 3

Now let's test for EXTRANEOUS ROOTS

x = 5
Plug into original equation to get:
5² – 8(5) + 21 = |5 – 4|+ 5
Evaluate: 6 = 6
WORKS! So, x = 5 IS a valid solution

x = 4
Plug into original equation to get:
4² – 8(4) + 21 = |4 – 4|+ 5
Evaluate: 5 = 5
WORKS! So, x = 4 is a valid solution

x = 3
Plug into original equation to get:
3² – 8(3) + 21 = |3 – 4|+ 5
Evaluate: 6 = 6
WORKS! So, x = 3 is a valid solution

SUM of all solutions = 5 + 4 + 3 = 12

Answer:
RELATED VIDEO
General Discussion
avatar
rohitkumar1
Joined: 23 Nov 2014
Last visit: 11 Oct 2017
Posts: 48
Own Kudos:
57
 [5]
Given Kudos: 64
Location: India
GMAT 1: 730 Q49 V40
GPA: 3.14
WE:Sales (Consumer Packaged Goods)
GMAT 1: 730 Q49 V40
Posts: 48
Kudos: 57
 [5]
2
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
Two cases: modulus function is positive or modulus function is negative

Positive case:

x^2-8x+21 = (x-4)+5
=> x^2-9x+20 = 0
=> x = 4 or 5

Negative case:

x^2-8x+21 = -(x-4)+5
=> x^2-7x+12 = 0
=> x = 3 or 4

=>Unique solutions: 3, 4, 5
=>Sum = 12?
avatar
amgb
Joined: 10 Jul 2014
Last visit: 12 Oct 2016
Posts: 11
Own Kudos:
13
 [3]
Given Kudos: 6
Posts: 11
Kudos: 13
 [3]
2
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
|x-4|. |x-4| - |x-4|=0
|x-4|=0 then x=4
|x-4|=1
x=3,5
sum= 4+3+5=12
ans c
avatar
rajeev90
Joined: 06 Apr 2015
Last visit: 03 Jun 2015
Posts: 5
Own Kudos:
9
 [2]
Posts: 5
Kudos: 9
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
x^2 - 8x + 16 = |x-4|

RHS can be -ve or +ve

x^2 - 9x + 20 = 0
x^2 - 7x + 12 = 0

x= 5,4,3

We test all 3 values in original equation, all ok.

Thus, Sum = 5 + 4 +3 = 12

Ans (D)
avatar
noTh1ng
Joined: 07 Apr 2015
Last visit: 06 Jan 2017
Posts: 126
Own Kudos:
198
 [2]
Given Kudos: 185
Posts: 126
Kudos: 198
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
x^2 - 8x + 21 = |x-4| +5

I: Positive Case
x^2 - 8x + 21 = x - 4 + 5
x^2 - 9x + 20 = 0
(x - 4) (x - 5)

x1 = 4
x2 = 5


II: Negative Case

x^2 - 8x + 21 = - |x-4| +5
x^2 - 8x + 21 = -x + 4 + 5
x^2 - 7x + 12 = 0
(x - 3) (x - 4)
x3 = 3
x4 = 4 (cancel out as 3 is already listed as x1)

3 + 4 + 5 = 12

Answer Choice: D
User avatar
KS15
Joined: 21 May 2013
Last visit: 25 Jul 2019
Posts: 537
Own Kudos:
Given Kudos: 608
Posts: 537
Kudos: 246
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14


Kudos for a correct solution.
Now, we can have 2 situations here
Situation 1:x^2-8x+21=x-4+5
x^2-8x+21-x-5+4=x^2-9x+20
x^2-5x-4x+20
x=5 or x=4
Testing both values in the equation, both satisfy


Situation 2:x^2-8x+21=-x+4+5
x^2-7x+12=0
x^-3x-4x+12=0
x=3 or x=4
Testing both values in the equation, both satisfy
Therefor sum of all solutions=3+4+5=12
Answer D
User avatar
nishantdoshi
Joined: 23 Sep 2015
Last visit: 30 May 2017
Posts: 27
Own Kudos:
Given Kudos: 99
Posts: 27
Kudos: 3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
why do we take x-4>=0 and x-4<=0 .....and not x-4>0 and x-4<0....thanks in advance.


Bunuel
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14


Kudos for a correct solution.

MANHATTAN GMAT OFFICIAL SOLUTION:

a. Unknowns: x
Given: x2 – 8x + 21 = |x – 4| + 5.
Constraints: The question implies that there may be multiple solutions, as does the non-linear given equation.
Question: What is the sum of all possible solutions for x?

b. Break into 2 equations (i.e. non-negative and negative inside absolute value sign) → Group all variables on one side of the equation, with 0 on the other → Factorable quadratic? → Factor → Solve → Answer.
Attachment:
2015-05-11_1802.png
Sum of the different solutions: 5 + 4 + 3 = 12.

The answer is D.

Alternatively, we could focus on the left side of the equation, which looks like a manageable quadratic, isolating the absolute value on the right:

x^2 – 8x + 21 = |x – 4| + 5
x^2 – 8x + 16 = |x – 4|
(x – 4)(x – 4) = |x – 4|
(x – 4)2 = |x – 4|

“Something squared equals its absolute value. 1 squared equals 1, 0 squared equals 0…hmm, –1 squared equals 1…”

x – 4 = –1, 0, or 1
x = 3, 4, or 5

Sum of the different solutions: 5 + 4 + 3 = 12.

d. On absolute value problems, some of the solutions might be duplicates. Just cross these off at the end. Additionally, we could check to make sure the results for each solutions satisfy the initial assumptions. For example, in Scenario 1 we assumed x – 4 ≥ 0. Both solutions, 5 and 4, satisfy this inequality. Similarly, the solutions 4 and 3 satisfy Scenario 2’s assumption, that x – 4 ≤ 0. Thus all the solutions were valid. For complex absolute value equations such as this one, this need
not always be the case.
User avatar
Shruti0805
Joined: 24 Dec 2016
Last visit: 02 Sep 2021
Posts: 91
Own Kudos:
Given Kudos: 145
Location: India
Concentration: Finance, General Management
WE:Information Technology (Computer Software)
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14


Kudos for a correct solution.

MANHATTAN GMAT OFFICIAL SOLUTION:

a. Unknowns: x
Given: x2 – 8x + 21 = |x – 4| + 5.
Constraints: The question implies that there may be multiple solutions, as does the non-linear given equation.
Question: What is the sum of all possible solutions for x?

b. Break into 2 equations (i.e. non-negative and negative inside absolute value sign) → Group all variables on one side of the equation, with 0 on the other → Factorable quadratic? → Factor → Solve → Answer.
Attachment:
2015-05-11_1802.png
Sum of the different solutions: 5 + 4 + 3 = 12.

The answer is D.

Alternatively, we could focus on the left side of the equation, which looks like a manageable quadratic, isolating the absolute value on the right:

x^2 – 8x + 21 = |x – 4| + 5
x^2 – 8x + 16 = |x – 4|
(x – 4)(x – 4) = |x – 4|
(x – 4)2 = |x – 4|

“Something squared equals its absolute value. 1 squared equals 1, 0 squared equals 0…hmm, –1 squared equals 1…”

x – 4 = –1, 0, or 1
x = 3, 4, or 5

Sum of the different solutions: 5 + 4 + 3 = 12.

d. On absolute value problems, some of the solutions might be duplicates. Just cross these off at the end. Additionally, we could check to make sure the results for each solutions satisfy the initial assumptions. For example, in Scenario 1 we assumed x – 4 ≥ 0. Both solutions, 5 and 4, satisfy this inequality. Similarly, the solutions 4 and 3 satisfy Scenario 2’s assumption, that x – 4 ≤ 0. Thus all the solutions were valid. For complex absolute value equations such as this one, this need
not always be the case.


Hi Bunuel,

I have a conceptual doubt wrt such questions.
Like most people above have, I also solved for the x>0 and x<0 cases and got the roots as 4,5 for x>0 and 3,4 for x<0.
As we were considering case x<0 which doesn't get satisfied with the roots 3 and 4, I discarded those. Is that not right to do ?

Please help understand.

Thanks in advance!
Shruti.
User avatar
arvind910619
Joined: 20 Dec 2015
Last visit: 18 Oct 2024
Posts: 852
Own Kudos:
Given Kudos: 755
Status:Learning
Location: India
Concentration: Operations, Marketing
GMAT 1: 670 Q48 V36
GRE 1: Q157 V157
GPA: 3.4
WE:Engineering (Manufacturing)
Products:
GMAT 1: 670 Q48 V36
GRE 1: Q157 V157
Posts: 852
Kudos: 589
Kudos
Add Kudos
Bookmarks
Bookmark this Post
IMO D
there will be two equations taking into account the two possible value of LHS i.e positive and negative .
The solution we will have 3 different values of the solutions
3,4 and 5
Total =12


Sent from my ONE E1003 using GMAT Club Forum mobile app
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 27 Mar 2025
Posts: 15,835
Own Kudos:
72,328
 [2]
Given Kudos: 461
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 15,835
Kudos: 72,328
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Shruti0805
Bunuel
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14


Kudos for a correct solution.

MANHATTAN GMAT OFFICIAL SOLUTION:

a. Unknowns: x
Given: x2 – 8x + 21 = |x – 4| + 5.
Constraints: The question implies that there may be multiple solutions, as does the non-linear given equation.
Question: What is the sum of all possible solutions for x?

b. Break into 2 equations (i.e. non-negative and negative inside absolute value sign) → Group all variables on one side of the equation, with 0 on the other → Factorable quadratic? → Factor → Solve → Answer.
Attachment:
2015-05-11_1802.png
Sum of the different solutions: 5 + 4 + 3 = 12.

The answer is D.

Alternatively, we could focus on the left side of the equation, which looks like a manageable quadratic, isolating the absolute value on the right:

x^2 – 8x + 21 = |x – 4| + 5
x^2 – 8x + 16 = |x – 4|
(x – 4)(x – 4) = |x – 4|
(x – 4)2 = |x – 4|

“Something squared equals its absolute value. 1 squared equals 1, 0 squared equals 0…hmm, –1 squared equals 1…”

x – 4 = –1, 0, or 1
x = 3, 4, or 5

Sum of the different solutions: 5 + 4 + 3 = 12.

d. On absolute value problems, some of the solutions might be duplicates. Just cross these off at the end. Additionally, we could check to make sure the results for each solutions satisfy the initial assumptions. For example, in Scenario 1 we assumed x – 4 ≥ 0. Both solutions, 5 and 4, satisfy this inequality. Similarly, the solutions 4 and 3 satisfy Scenario 2’s assumption, that x – 4 ≤ 0. Thus all the solutions were valid. For complex absolute value equations such as this one, this need
not always be the case.


Hi Bunuel,

I have a conceptual doubt wrt such questions.
Like most people above have, I also solved for the x>0 and x<0 cases and got the roots as 4,5 for x>0 and 3,4 for x<0.
As we were considering case x<0 which doesn't get satisfied with the roots 3 and 4, I discarded those. Is that not right to do ?

Please help understand.

Thanks in advance!
Shruti.

Responding to a pm:

The ranges for which you are solving are not x > 0 and x < 0. They are x >= 4 and x < 4 because

we say that
|a| = a when a >= 0
|a| = -a when a < 0

So
|x - 4| = (x - 4) when (x - 4) >= 0 i.e. x >= 4
|x - 4| = -(x - 4) when (x - 4) < 0 i.e. x < 4

For more on this, check: https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2014/0 ... -the-gmat/
User avatar
ratinarace
Joined: 26 Jul 2011
Last visit: 08 Jan 2020
Posts: 65
Own Kudos:
288
 [1]
Given Kudos: 20
Location: India
WE:Marketing (Manufacturing)
Posts: 65
Kudos: 288
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
let me ask a lame question...

x^2-8x+21=|x-4|+5
x^2-8x+21-5=|x-4|
x^2-8x+16=|x-4|

(x-4)(x-4)=|x-4|

Now Scenario 1 where |x-4| is positive

(x-4)(x-4)=(x-4)
(x-4) = (x-4)/(x-4) ------> (x-4)=1-----> x = 5

Scenario 2 where |x-4| is negative
(x-4)(x-4)=-(x-4)---------> (x-4)=-(x-4)/(x-4)----------> (x-4)=-1--------> x = 3

So i have only two solutions x=5 and x=3...Why am I getting only 2 solutions ? while there are 3...

I know I am doing something very stupid with the basics. Can somebody please point out what is it ?
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 27 March 2025
Posts: 100,114
Own Kudos:
711,431
 [1]
Given Kudos: 92,748
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 100,114
Kudos: 711,431
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
ratinarace
let me ask a lame question...

x^2-8x+21=|x-4|+5
x^2-8x+21-5=|x-4|
x^2-8x+16=|x-4|

(x-4)(x-4)=|x-4|

Now Scenario 1 where |x-4| is positive

(x-4)(x-4)=(x-4)
(x-4) = (x-4)/(x-4) ------> (x-4)=1-----> x = 5

Scenario 2 where |x-4| is negative
(x-4)(x-4)=-(x-4)---------> (x-4)=-(x-4)/(x-4)----------> (x-4)=-1--------> x = 3

So i have only two solutions x=5 and x=3...Why am I getting only 2 solutions ? while there are 3...

I know I am doing something very stupid with the basics. Can somebody please point out what is it ?

You cannot reduce (x-4)(x-4)=(x-4) by x-4 because x-4 can be 0 and we cannot divide by 0. By doing so you loose a root, namely x = 4.

Never reduce equation by variable (or expression with variable), if you are not certain that variable (or expression with variable) doesn't equal to zero. We can not divide by zero.
User avatar
shashankism
Joined: 13 Mar 2017
Last visit: 23 Dec 2024
Posts: 614
Own Kudos:
Given Kudos: 88
Affiliations: IIT Dhanbad
Location: India
Concentration: General Management, Entrepreneurship
GPA: 3.8
WE:Engineering (Energy)
Posts: 614
Kudos: 644
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14


Kudos for a correct solution.


x^2 – 8x + 21 = |x – 4|+ 5

If x>=4,
x^2 – 8x + 21 = x – 4+ 5
-> x^2 – 8x + 21 = x+1
-> x^2 - 9x + 20 = 0
-> (x-4) (x-5) = 0
-> x =4,5

If x<4 ,
x^2 – 8x + 21 = 4-x +5 = 9-x
x^2 - 7x + 12 = 0
(x-4)(x-3) =0
-> x=3

Total sum = 3+4+5= 12
User avatar
Nunuboy1994
Joined: 12 Nov 2016
Last visit: 24 Apr 2019
Posts: 560
Own Kudos:
Given Kudos: 167
Location: United States
Schools: Yale '18
GMAT 1: 650 Q43 V37
GRE 1: Q157 V158
GPA: 2.66
Schools: Yale '18
GMAT 1: 650 Q43 V37
GRE 1: Q157 V158
Posts: 560
Kudos: 119
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
The sum of all solutions for x in the equation x^2 – 8x + 21 = |x – 4|+ 5 is equal to:

(A) –7
(B) 7
(C) 10
(D) 12
(E) 14


Kudos for a correct solution.

Two basic ways to write out absolute values for the GMAT

l x -4 l

x - 4 =
- l x -4 l =
avatar
GMAT0010
Joined: 17 Sep 2019
Last visit: 08 Dec 2022
Posts: 108
Own Kudos:
Given Kudos: 516
GMAT 1: 710 Q49 V38
GMAT 2: 680 Q49 V33
GMAT 2: 680 Q49 V33
Posts: 108
Kudos: 52
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Damn!
I made a silly mistake!
I added 4 twice! :D
User avatar
rsrighosh
Joined: 13 Jun 2019
Last visit: 11 Dec 2022
Posts: 191
Own Kudos:
Given Kudos: 645
GMAT 1: 490 Q42 V17
GMAT 2: 550 Q39 V27
GMAT 3: 630 Q49 V27
GMAT 3: 630 Q49 V27
Posts: 191
Kudos: 116
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel egmat VeritasKarishma GMATNinja


Quote:
x^2 – 8x + 21 = |x – 4| + 5
x^2 – 8x + 16 = |x – 4|
(x – 4)(x – 4) = |x – 4|
(x – 4)2 = |x – 4|
“Something squared equals its absolute value. 1 squared equals 1, 0 squared equals 0…hmm, –1 squared equals 1…”

x – 4 = –1, 0, or 1
x = 3, 4, or 5

I have a conceptual question here

If it says
\((x-4)^2 = |x-4|\)

Doesnt this mean that \(x-4 >= 0\) all the time? (as \((x-4)^2\) is always positive)
Why are we considering\( x-4\) can be negative?

Can anybody please explain if my understanding is wrong.
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 27 Mar 2025
Posts: 15,835
Own Kudos:
Given Kudos: 461
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 15,835
Kudos: 72,328
Kudos
Add Kudos
Bookmarks
Bookmark this Post
rsrighosh
Bunuel egmat VeritasKarishma GMATNinja


Quote:
x^2 – 8x + 21 = |x – 4| + 5
x^2 – 8x + 16 = |x – 4|
(x – 4)(x – 4) = |x – 4|
(x – 4)2 = |x – 4|
“Something squared equals its absolute value. 1 squared equals 1, 0 squared equals 0…hmm, –1 squared equals 1…”

x – 4 = –1, 0, or 1
x = 3, 4, or 5

I have a conceptual question here

If it says
\((x-4)^2 = |x-4|\)

Doesnt this mean that \(x-4 >= 0\) all the time? (as \((x-4)^2\) is always positive)
Why are we considering\( x-4\) can be negative?

Can anybody please explain if my understanding is wrong.

Because y^2 is positive does not mean y needs to be positive. Because |y| is positive, doesn't mean y needs to be positive too.
If y is -5, y^2 = 25 (positive) and |y| = 5 (positive) but y is still negative.

In above, (x - 4)^2 and |x - 4| are positive but x - 4 may not be positive. It could be positive or negative.
 1   2   
Moderators:
Math Expert
100114 posts
PS Forum Moderator
519 posts