Algebra · real student question

What is the minimum value of |x + 1| + |x − 2|?

Question

Find the minimum value of

x+1+x2|x+1|+|x-2|

Step-by-step solution

  1. Read each absolute value as a distance. Since xa|x-a| is the distance from xx to aa on the number line, rewrite the expression as

    x(1)+x2|x-(-1)|+|x-2|

    so it is the total distance from the point xx to the two fixed points 1-1 and 22. This reframing replaces a three-case algebraic split with one geometric fact.

  2. Reason about where the total distance is smallest. If xx lies between 1-1 and 22, the two distances add up to exactly the gap between the points. If xx lies outside that interval, you must first travel back, so the total is strictly larger.

  3. Compute the gap.

    2(1)=32-(-1)=3

    so the minimum value is 33, attained for every xx in [1,2][-1,2] — not at a single point.

    3\boxed{3}

  4. Confirm with the algebraic case split. For x<1x<-1: (x+1)(x2)=12x>3-(x+1)-(x-2)=1-2x>3. For 1x2-1\le x\le 2: (x+1)(x2)=3(x+1)-(x-2)=3. For x>2x>2: (x+1)+(x2)=2x1>3(x+1)+(x-2)=2x-1>3. The three pieces confirm the value 33 and the flat middle section.

  5. Cross-check with the triangle inequality. x+1+x2=x+1+2x(x+1)+(2x)=3|x+1|+|x-2|=|x+1|+|2-x|\ge|(x+1)+(2-x)|=3, with equality exactly when x+1x+1 and 2x2-x have the same sign — i.e. when 1x2-1\le x\le 2, matching the case split. Spot values: at x=0x=0 the sum is 1+2=31+2=3; at x=5x=5 it is 6+3=96+3=9.

Answer

3 (attained for every x[1,2])3\ \text{(attained for every }x\in[-1,2])

Need to solve a different problem like this? Open the solver →