Solveeit Logo

Question

Question: $|x^2+x+1|+|2x-3|=4x$...

x2+x+1+2x3=4x|x^2+x+1|+|2x-3|=4x

Answer

{x=1, 2}

Explanation

Solution

The given equation is x2+x+1+2x3=4x|x^2+x+1|+|2x-3|=4x.

First, consider the term x2+x+1|x^2+x+1|. The quadratic expression x2+x+1x^2+x+1 has a discriminant Δ=b24ac=124(1)(1)=14=3\Delta = b^2 - 4ac = 1^2 - 4(1)(1) = 1 - 4 = -3. Since the discriminant is negative and the leading coefficient (1) is positive, the quadratic x2+x+1x^2+x+1 is always positive for all real values of xx. Therefore, x2+x+1=x2+x+1|x^2+x+1| = x^2+x+1 for all xRx \in \mathbb{R}.

The equation becomes x2+x+1+2x3=4xx^2+x+1+|2x-3|=4x.

The term 2x3|2x-3| depends on the sign of 2x32x-3. The critical point is when 2x3=02x-3=0, which means x=3/2x=3/2.

Also, note that the left side of the equation is a sum of absolute values, which must be non-negative. Thus, the right side 4x4x must be non-negative. This implies 4x04x \ge 0, so x0x \ge 0. Any solution must satisfy this condition.

We consider two cases based on the sign of 2x32x-3, keeping in mind the condition x0x \ge 0. The critical point x=3/2x=3/2 divides the domain x0x \ge 0 into two intervals: [0,3/2)[0, 3/2) and [3/2,)[3/2, \infty).

Case 1: 0x<3/20 \le x < 3/2.

In this interval, 2x3<02x-3 < 0, so 2x3=(2x3)=32x|2x-3| = -(2x-3) = 3-2x.

The equation becomes:

x2+x+1+(32x)=4xx^2+x+1+(3-2x)=4x

x2x+4=4xx^2-x+4=4x

x25x+4=0x^2-5x+4=0

Factoring the quadratic equation:

(x1)(x4)=0(x-1)(x-4)=0

This gives potential solutions x=1x=1 or x=4x=4.

We must check if these potential solutions satisfy the condition for this case, which is 0x<3/20 \le x < 3/2.

For x=1x=1: 01<3/20 \le 1 < 3/2 (True). So x=1x=1 is a valid solution in this case.

For x=4x=4: 04<3/20 \le 4 < 3/2 (False, since 43/24 \not< 3/2). So x=4x=4 is not a valid solution in this case.

Case 2: x3/2x \ge 3/2.

In this interval, 2x302x-3 \ge 0, so 2x3=2x3|2x-3| = 2x-3.

The equation becomes:

x2+x+1+(2x3)=4xx^2+x+1+(2x-3)=4x

x2+3x2=4xx^2+3x-2=4x

x2x2=0x^2-x-2=0

Factoring the quadratic equation:

(x2)(x+1)=0(x-2)(x+1)=0

This gives potential solutions x=2x=2 or x=1x=-1.

We must check if these potential solutions satisfy the condition for this case, which is x3/2x \ge 3/2.

For x=2x=2: 23/22 \ge 3/2 (True, since 2=4/22 = 4/2). So x=2x=2 is a valid solution in this case.

For x=1x=-1: 13/2-1 \ge 3/2 (False). So x=1x=-1 is not a valid solution in this case.

The potential solutions obtained from both cases are x=1x=1 and x=2x=2. Both of these solutions satisfy the overall condition x0x \ge 0 (since 101 \ge 0 and 202 \ge 0).

Finally, we verify the solutions by substituting them back into the original equation:

For x=1x=1:

12+1+1+2(1)3=3+1=3+1=4|1^2+1+1|+|2(1)-3| = |3|+|-1| = 3+1 = 4.

4x=4(1)=44x = 4(1) = 4.

LHS = RHS, so x=1x=1 is a solution.

For x=2x=2:

22+2+1+2(2)3=7+1=7+1=8|2^2+2+1|+|2(2)-3| = |7|+|1| = 7+1 = 8.

4x=4(2)=84x = 4(2) = 8.

LHS = RHS, so x=2x=2 is a solution.

Both x=1x=1 and x=2x=2 are solutions to the given equation.

Explanation of the solution:

  1. Simplify x2+x+1|x^2+x+1| to x2+x+1x^2+x+1 as x2+x+1>0x^2+x+1 > 0 for all real xx.
  2. Note that 4x04x \ge 0, so x0x \ge 0.
  3. Split the problem into cases based on the sign of 2x32x-3, considering x0x \ge 0: Case 1 (0x<3/20 \le x < 3/2) and Case 2 (x3/2x \ge 3/2).
  4. Solve the resulting algebraic equations in each case.
  5. Check if the solutions obtained in each case satisfy the condition for that case.
  6. The valid solutions are x=1x=1 (from Case 1) and x=2x=2 (from Case 2).
  7. Verify these solutions in the original equation. Both x=1x=1 and x=2x=2 satisfy the equation.