Algebra · real student question

Solve the inequality |x + 1| + |x - 1| <= 3.

Question

Solve for xx:

x+1+x13|x+1|+|x-1|\le 3

Step-by-step solution

  1. Read the left side as a total distance. Since x+1=x(1)|x+1|=|x-(-1)|, the expression is the distance from xx to 1-1 plus the distance from xx to 11. Any point between 1-1 and 11 has total distance exactly 22 (the gap between the two anchors), and moving outside adds twice the overshoot. So the inequality asks: which points are within a total travel budget of 33?

  2. Split at the breakpoints. The two expressions inside the bars change sign at x=1x=-1 and x=1x=1, so handle three ranges: x1x\le -1, 1x1-1\le x\le 1, and x1x\ge 1.

  3. Case x1x\le -1. Both x+10x+1\le 0 and x1<0x-1<0, so both bars flip sign:

    (x+1)(x1)=2x3    x32-(x+1)-(x-1)=-2x\le 3\;\Longrightarrow\;x\ge -\frac32

    (Dividing by 2-2 reverses the inequality.) Intersecting with x1x\le -1 gives 32x1-\frac32\le x\le -1.

  4. Case 1x1-1\le x\le 1. Now x+10x+1\ge 0 but x10x-1\le 0, so

    (x+1)(x1)=23(x+1)-(x-1)=2\le 3

    The xx cancels entirely: the statement is true for every xx in this range, so the whole interval [1,1][-1,1] belongs to the solution. This is the flat bottom predicted in step 1.

  5. Case x1x\ge 1. Both expressions are non-negative:

    (x+1)+(x1)=2x3    x32(x+1)+(x-1)=2x\le 3\;\Longrightarrow\;x\le \frac32

    Intersecting with x1x\ge 1 gives 1x321\le x\le \frac32.

  6. Union the three pieces and test the boundary.

    [32,1][1,1][1,32]=[32,32]\left[-\tfrac32,-1\right]\cup[-1,1]\cup\left[1,\tfrac32\right]=\left[-\tfrac32,\tfrac32\right]

    Check: at x=32x=\frac32 the sum is 2.5+0.5=32.5+0.5=3, so the endpoint is included; at x=1.6x=1.6 it is 2.6+0.6=3.2>32.6+0.6=3.2>3, correctly excluded. Equivalently the answer is just x32|x|\le \frac32.

Answer

32x32-\frac{3}{2}\le x\le \frac{3}{2}

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