Last visit was: 18 Nov 2025, 15:56 It is currently 18 Nov 2025, 15:56
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: 18 Nov 2025
Posts: 105,355
Own Kudos:
Given Kudos: 99,964
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,355
Kudos: 778,069
 [37]
Kudos
Add Kudos
36
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 18 Nov 2025
Posts: 105,355
Own Kudos:
778,069
 [2]
Given Kudos: 99,964
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,355
Kudos: 778,069
 [2]
1
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
General Discussion
User avatar
BrentGMATPrepNow
User avatar
Major Poster
Joined: 12 Sep 2015
Last visit: 31 Oct 2025
Posts: 6,739
Own Kudos:
35,331
 [14]
Given Kudos: 799
Location: Canada
Expert
Expert reply
Posts: 6,739
Kudos: 35,331
 [14]
3
Kudos
Add Kudos
11
Bookmarks
Bookmark this Post
User avatar
IanStewart
User avatar
GMAT Tutor
Joined: 24 Jun 2008
Last visit: 16 Nov 2025
Posts: 4,145
Own Kudos:
10,983
 [3]
Given Kudos: 99
Expert
Expert reply
Posts: 4,145
Kudos: 10,983
 [3]
1
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
Bunuel
If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of x ?

You might notice if 2x - 1 equals the absolute value of something, then 2x - 1 must be at least zero, and x must be at least 1/2, so certainly x must be positive. But on the left side, we're taking the absolute value of x^2 - x + 1, which is equal to x^2 - 2x + 1 + x = (x - 1)^2 + x. So we're taking the absolute value of a square, which must be zero or greater, plus some positive value x, and the expression inside the absolute value must be positive (there are several other ways to see that, some simpler if you use slightly more advanced math). So the absolute value isn't doing anything here, because we're taking the absolute value of something that must already be positive, and we can just ignore the absolute value and solve the equation

x^2 - x + 1 = 2x - 1
x^2 - 3x + 2 = 0
(x - 2)(x - 1) = 0

and x = 2 or x = 1, and the sum of the solutions is 3.
User avatar
TestPrepUnlimited
Joined: 17 Sep 2014
Last visit: 30 Jun 2022
Posts: 1,224
Own Kudos:
1,111
 [1]
Given Kudos: 6
Location: United States
GMAT 1: 780 Q51 V45
GRE 1: Q170 V167
Expert
Expert reply
GMAT 1: 780 Q51 V45
GRE 1: Q170 V167
Posts: 1,224
Kudos: 1,111
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Bunuel
If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of x ?

A. 0

B. 1

C. 2

D. 3

E. 4

The right side tells us \(2x - 1 > 0\) and \(x > \frac{1}{2}\).

Also note the left side must be positive no matter what real x you plug in. We can see that from the determinant \(b^2 - 4ac = 1 - 4 = -3 < 0\) or \(x^2 - x + 1 = (x - 1)^2 + x > 0\) since x > 0.

Therefore \(x^2 - x + 1\) is always positive and we yield \(x^2 - x + 1 =2x - 1\), which is \(x^2 - 3x + 2 = 0\)

\(x = 1\) or \(x = 2\), we may plug in to double-check but they both satisfy x > 0.5 so we accept both.

Ans: D
User avatar
Crytiocanalyst
Joined: 16 Jun 2021
Last visit: 27 May 2023
Posts: 950
Own Kudos:
208
 [1]
Given Kudos: 309
Posts: 950
Kudos: 208
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Bunuel
If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of x ?

A. 0

B. 1

C. 2

D. 3

E. 4
When the eqn is positive through simplification we get
=>x^2 -3x +2 =0
=> x=2 ,1

When the eqn is negative
=>x^2 +x =0
=>x=0 ,x=-1

HOwever when resubstitute and check for the answer we get
x=2,1,0

Therefore IMO D
avatar
gaiknil
Joined: 18 Aug 2014
Last visit: 24 Jul 2022
Posts: 7
Own Kudos:
Given Kudos: 39
Location: Bahrain
Concentration: International Business, General Management
GPA: 3.3
WE:Project Management (Manufacturing)
Posts: 7
Kudos: 7
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Since 2x-1 >= 0, x > 1/2 ....................inferred from the question stem itself.

1. When |x^2 - x + 1| > 0
|x^2 - x + 1| = 2x -1
Solving this we get x = 2 or x = 1 ...........Possible values, Sum = 3

2. When |x^2 - x + 1| < 0
- |x^2 - x + 1| = 2x -1
Solving this we get x = 0 or x = -1. But from our inference earlier, x > 1/2.

Hence sum of all possible values of x = 2+1 =3
IMHO Answer D
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 18 Nov 2025
Posts: 105,355
Own Kudos:
Given Kudos: 99,964
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,355
Kudos: 778,069
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of x ?

A. 0

B. 1

C. 2

D. 3

E. 4




This question is a part of Are You Up For the Challenge: 700 Level Questions collection.
User avatar
udaypratapsingh99
Joined: 12 Jan 2019
Last visit: 11 Nov 2025
Posts: 399
Own Kudos:
Given Kudos: 372
Location: India
Concentration: Strategy, Leadership
GMAT 1: 660 Q47 V34
Products:
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of x ?

A. 0

B. 1

C. 2

D. 3

E. 4


M37-03

There are 2 possible cases:

Case 1, \(x^2-x+1\) is positive,

Equation becomes,
\(x^2-x+1=2x-1\)
=> \(x^2-3x+2=0\)
=> x = 2,1

Case 2, \(x^2-x+1\) is negative

Equation becomes
\(x^2-x+1=-(2x-1)\)
=> x=0,-1 Both doesn't satisfy the original equation

Since, only x=2 and x=1 satisfy the equation \(|x^2-x+1|=2x-1\)
Therefore, the sum of all possible values of x is 2+1 = 3

D is Correct
User avatar
Vasavan
Joined: 10 May 2023
Last visit: 18 Nov 2025
Posts: 140
Own Kudos:
Given Kudos: 29
Location: India
Schools: ISB '26 IIM
GMAT Focus 1: 715 Q88 V86 DI83
GPA: 10
WE:Programming (Technology)
Schools: ISB '26 IIM
GMAT Focus 1: 715 Q88 V86 DI83
Posts: 140
Kudos: 21
Kudos
Add Kudos
Bookmarks
Bookmark this Post
I followed this approach but did not get 1 as the answer. Can anyone tell where I am going wrong?
|x^2 - x + 1| = 2x - 1 can be rewritten as
|x^2 - x + 1 - 3| = 2x - 1 -3
|x^2 - x - 2| = 2(x-2)
|(x-2)(x+1)| = 2(x-2)
When x>2, (x-2)(x+1)=2(x-2) => x=1(but this does not fall within x>2, hence is not considered in this case)
When -1<x<2, (2-x)(x+1)=2(x-2) => x=-2(again this cannot be considered)
When x<-1, (2-x)(-x-1)=2(x-2) => x=1(cannot be considered as x<-1)
I know i am making a mistake somewhere but can anyone tell me where?

Thanks in advance.
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 18 Nov 2025
Posts: 105,355
Own Kudos:
Given Kudos: 99,964
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,355
Kudos: 778,069
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Vasavan

Bunuel
If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of x ?

A. 0
B. 1
C. 2
D. 3
E. 4

Official Solution:

If \(|x^2-x+1|=2x-1\), then what is the sum of all possible values of \(x\) ?

A. \(0\)
B. \(1\)
C. \(2\)
D. \(3\)
E. \(4\)


The right hand side of the equation (\(2x-1\)), is equal to the absolute value of some number (\(|x^2-x+1|\)), so \(2x-1\) must be non-negative: \(2x-1 \geq 0 \). This gives \(x \geq \frac{1}{2}\).

Now, work on the expression in modulus. Re-write \(x^2-x+1\) by completing the square: \(x^2-x+1=(x-1)^2+x\). Since from above \(x\) is positive, then \(x^2-x+1=(x-1)^2+x=nonnegative + positive=positive\). So, \(|x^2-x+1|=x^2-x+1\).

So, we'd have \(x^2-x+1=2x-1\);

\(x^2-3x+2=0\);

\((x - 2)(x - 1) = 0\);

\(x=2\) or \(x=1\);.

The sum of all possible values of \(x\) is therefore, \(2+1=3\).


Answer: D
I followed this approach but did not get 1 as the answer. Can anyone tell where I am going wrong?
|x^2 - x + 1| = 2x - 1 can be rewritten as
|x^2 - x + 1 - 3| = 2x - 1 -3
|x^2 - x - 2| = 2(x-2)
|(x-2)(x+1)| = 2(x-2)
When x>2, (x-2)(x+1)=2(x-2) => x=1(but this does not fall within x>2, hence is not considered in this case)
When -1<x<2, (2-x)(x+1)=2(x-2) => x=-2(again this cannot be considered)
When x<-1, (2-x)(-x-1)=2(x-2) => x=1(cannot be considered as x<-1)
I know i am making a mistake somewhere but can anyone tell me where?

Thanks in advance.

Unfortunately, nothing in that approach is correct.

You started with |x^2 - x + 1| = 2x - 1 and rewrote it as |x^2 - x + 1 - 3| = 2x - 1 - 3, which is wrong. If you subtract something from one side of the equation, you must subtract it from the other outside the absolute value. That would give |x^2 - x + 1| - 3 = 2x - 1 - 3, which doesn’t simplify anything useful. So the main error is that you incorrectly inserted -3 into the modulus.

Next, you are also solving |(x - 2)(x + 1)| = 2(x - 2) incorrectly. You should include each critical point in any of the ranges:

  • When x ≥ 2, we get (x - 2)(x + 1) = 2(x - 2), which gives x = 1 or x = 2. Since we consider x ≥ 2 range, only x = 2 is valid.
  • When -1 < x < 2, we get (2 - x)(x + 1) = 2(x - 2), which gives x = -3 or x = 2. Since we consider -1 < x < 2, none of the values is valid.
  • When x ≤ -1, we get (x - 2)(x + 1) = 2(x - 2), which gives x = 1 or x = 2. Since we consider x ≤ -1 range, none of the values is valid.

Thus, |(x - 2)(x + 1)| = 2(x - 2) has only one root: x = 2.
Moderators:
Math Expert
105355 posts
Tuck School Moderator
805 posts