Resources

Solve the equation ∣2x−6∣+∣x+1∣=7|2x - 6| + |x + 1| = 7 for all real values of xx by partitioning the real line into distinct intervals to eliminate the absolute value bars.

Answer and steps

Final answer

x=0x = 0 or x=4x = 4

Steps

01

Find the critical points

To solve the absolute value equation ∣2x−6∣+∣x+1∣=7|2x - 6| + |x + 1| = 7, we first identify the critical points where the expressions inside the absolute values change signs.

Set each expression inside the absolute value bars equal to zero: 2x−6=0  ⟹  x=32x - 6 = 0 \implies x = 3 x+1=0  ⟹  x=−1x + 1 = 0 \implies x = -1

These two critical points divide the real number line into three non-overlapping intervals:

  1. x<−1x < -1
  2. −1≤x<3-1 \le x < 3
  3. x≥3x \ge 3

02

Solve the equation in each interval

Case 1: x<−1x < -1

In this interval:

  • 2x−6<02x - 6 < 0, so ∣2x−6∣=−(2x−6)=−2x+6|2x - 6| = -(2x - 6) = -2x + 6
  • x+1<0x + 1 < 0, so ∣x+1∣=−(x+1)=−x−1|x + 1| = -(x + 1) = -x - 1

Substitute these into the original equation: (−2x+6)+(−x−1)=7(-2x + 6) + (-x - 1) = 7 −3x+5=7-3x + 5 = 7 −3x=2-3x = 2 x=−23x = -\frac{2}{3}

Now, check if x=−23x = -\frac{2}{3} satisfies the condition for this case (x<−1x < -1): Since −23≈−0.67>−1-\frac{2}{3} \approx -0.67 > -1, this value does not lie in the interval x<−1x < -1. Therefore, there is no solution in this interval.


Case 2: −1≤x<3-1 \le x < 3

In this interval:

  • 2x−6<02x - 6 < 0, so ∣2x−6∣=−(2x−6)=−2x+6|2x - 6| = -(2x - 6) = -2x + 6
  • x+1≥0x + 1 \ge 0, so ∣x+1∣=x+1|x + 1| = x + 1

Substitute these into the equation: (−2x+6)+(x+1)=7(-2x + 6) + (x + 1) = 7 −x+7=7-x + 7 = 7 −x=0-x = 0 x=0x = 0

Check if x=0x = 0 satisfies the condition −1≤x<3-1 \le x < 3: Since −1≤0<3-1 \le 0 < 3, this value is valid. Thus, x=0x = 0 is a solution.


Case 3: x≥3x \ge 3

In this interval:

  • 2x−6≥02x - 6 \ge 0, so ∣2x−6∣=2x−6|2x - 6| = 2x - 6
  • x+1>0x + 1 > 0, so ∣x+1∣=x+1|x + 1| = x + 1

Substitute these into the equation: (2x−6)+(x+1)=7(2x - 6) + (x + 1) = 7 3x−5=73x - 5 = 7 3x=123x = 12 x=4x = 4

Check if x=4x = 4 satisfies the condition x≥3x \ge 3: Since 4≥34 \ge 3, this value is valid. Thus, x=4x = 4 is a solution.


03

Combine all valid solutions

Collecting the valid solutions from all three cases gives: x=0orx=4x = 0 \quad \text{or} \quad x = 4

Educational illustration for this question

Typical errors

OverviewACEpath Teacher's Diagnosis

01 The student solves each piecewise linear equation correctly but fails to check whether the resulting values lie within their respective defining intervals, erroneously including an extraneous solution.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    Critical points: x=−1,x=3x = -1, x = 3

  2. Step 2

    Interval 1: x<−1  ⟹  −(2x−6)−(x+1)=7  ⟹  −3x+5=7  ⟹  −3x=2  ⟹  x=−23x < -1 \implies -(2x - 6) - (x + 1) = 7 \implies -3x + 5 = 7 \implies -3x = 2 \implies x = -\frac{2}{3}

    Correct

    For x<−1x < -1: −(2x−6)−(x+1)=7  ⟹  −3x=2  ⟹  x=−23-(2x - 6) - (x + 1) = 7 \implies -3x = 2 \implies x = -\frac{2}{3}. Since −23>−1-\frac{2}{3} > -1, this value does not lie in x<−1x < -1, so there is no solution in this interval.

    You solved the linear equation correctly, but you did not check whether x=−23x = -\frac{2}{3} satisfies the defining interval condition x<−1x < -1. Because −23>−1-\frac{2}{3} > -1, it must be rejected as extraneous.

  3. Step 3

    Interval 2: −1≤x<3  ⟹  −(2x−6)+(x+1)=7  ⟹  −x+7=7  ⟹  x=0-1 \le x < 3 \implies -(2x - 6) + (x + 1) = 7 \implies -x + 7 = 7 \implies x = 0

  4. Step 4

    Interval 3: x≥3  ⟹  (2x−6)+(x+1)=7  ⟹  3x−5=7  ⟹  3x=12  ⟹  x=4x \ge 3 \implies (2x - 6) + (x + 1) = 7 \implies 3x - 5 = 7 \implies 3x = 12 \implies x = 4

  5. Step 5

    x = -23\frac{2}{3},; x = 0,; x = 4

    Correct

    x=0x = 0 or x=4x = 4

    Because x=−23x = -\frac{2}{3} was not discarded in Interval 1, it was mistakenly carried into your final set of solutions.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly identified the boundary points where the expressions inside the absolute values equal zero.

You partitioned the real number line into the correct three intervals.

You accurately determined the sign of each expression to remove the absolute value bars in all three cases.

You executed the linear algebraic steps without any computational slips.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Extraneous Solution from Interval Domain Mismatch

none

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

You treated each piecewise linear equation as an unrestricted equation, omitting the essential step of verifying whether the candidate solution lies inside the interval that defined that piecewise case.

REASONING PATH
Your ACEpath teacher’s suggested approach
Interval Verification Check
  • Any solution derived under a piecewise condition x∈[a,b)x \in [a, b) is valid if and only if that value satisfies the condition a≤x<ba \le x < b.](streamdown:incomplete-link)

  • Immediately compare the computed xx-value against the interval inequality before moving on to the next case. If it falls outside the interval, label it as extraneous and discard it.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Check whether x=−23x = -\frac{2}{3} satisfies x<−1x < -1.

  2. Notice that −23≈−0.67-\frac{2}{3} \approx -0.67, which is strictly greater than −1-1, so x=−23x = -\frac{2}{3} lies outside Interval 1.

  3. Discard x=−23x = -\frac{2}{3} as an extraneous root, yielding no solution from Interval 1.

  4. Combine the valid solutions from Interval 2 (x=0x = 0) and Interval 3 (x=4x = 4).

Final answer

x=0x = 0 or x=4x = 4

NEXT STEPS
Final Takeaways from Your Teacher
  • Draw each candidate solution on a number line marked with your interval boundaries to visually confirm whether it lands within the active region.

  • Practice immediately writing a verification statement such as 'Check: does xx lie in the interval?' at the end of every piecewise branch.

OverviewACEpath Teacher's Diagnosis

02 The student misidentifies the sign of (2x - 6) on the middle interval -1 ≤ x < 3 as positive, leading to an incorrect equation and invalid solution.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Partially correct
  1. Step 1

    Critical points: x=−1x = -1 and x=3x = 3

  2. Step 2

    For x<−1x < -1: −(2x−6)−(x+1)=7  ⟹  −3x+5=7  ⟹  x=−23-(2x - 6) - (x + 1) = 7 \implies -3x + 5 = 7 \implies x = -\frac{2}{3} (not in x<−1x < -1, extraneous)

  3. Step 3

    For x≥3x \ge 3: (2x−6)+(x+1)=7  ⟹  3x−5=7  ⟹  x=4(2x - 6) + (x + 1) = 7 \implies 3x - 5 = 7 \implies x = 4

  4. Step 4

    For −1≤x<3-1 \le x < 3: (2x−6)+(x+1)=7  ⟹  3x−5=7  ⟹  3x=12  ⟹  x=4(2x - 6) + (x + 1) = 7 \implies 3x - 5 = 7 \implies 3x = 12 \implies x = 4 (not in [−1,3)[-1, 3), extraneous)](streamdown:incomplete-link)

    Correct

    −(2x−6)+(x+1)=7  ⟹  −x+7=7  ⟹  x=0-(2x - 6) + (x + 1) = 7 \implies -x + 7 = 7 \implies x = 0; valid since 0∈[−1,3)0 \in [-1, 3)](streamdown:incomplete-link)

    Because x<3x < 3, the expression 2x−62x - 6 is strictly negative on this interval. Removing the absolute value bars requires taking its opposite, −(2x−6)=−2x+6-(2x - 6) = -2x + 6, rather than leaving it as 2x−62x - 6.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly found the critical boundary values where the absolute value expressions change sign.

You set up and evaluated the sign changes properly in the two outer intervals x<−1x < -1 and x≥3x \ge 3.

You checked candidate solutions against interval boundary constraints to identify extraneous values.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Incorrect sign in piecewise absolute value removal

You treated 2x−62x - 6 as positive on −1≤x<3-1 \le x < 3, likely confusing which boundary point controls its sign.

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

Failing to test a test point or systematically check whether xx lies to the left or right of a specific critical value when evaluating piecewise signs across multiple intervals.

REASONING PATH
Your ACEpath teacher’s suggested approach
Evaluate Expression Signs with Test Values
  • For any interval (a,b)(a, b), pick a convenient test number x0x_0 inside the interval and evaluate the sign of each linear term.

  • On [−1,3)[-1, 3), pick x=0x = 0. Since 2(0)−6=−6<02(0) - 6 = -6 < 0, substitute ∣2x−6∣=−(2x−6)=−2x+6|2x - 6| = -(2x - 6) = -2x + 6.](streamdown:incomplete-link)

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. For x∈[−1,3)x \in [-1, 3), we have x+1≥0x + 1 \ge 0 and 2x−6<02x - 6 < 0.](streamdown:incomplete-link)

  2. Replace the absolute values accordingly: −(2x−6)+(x+1)=7-(2x - 6) + (x + 1) = 7.

  3. Expand and simplify: −2x+6+x+1=7  ⟹  −x+7=7-2x + 6 + x + 1 = 7 \implies -x + 7 = 7.

  4. Solve for xx: −x=0  ⟹  x=0-x = 0 \implies x = 0.

  5. Check the condition: −1≤0<3-1 \le 0 < 3 is true, so x=0x = 0 is a valid solution.

Final answer

x=0x = 0 or x=4x = 4

NEXT STEPS
Final Takeaways from Your Teacher
  • Draw a sign chart or number line with critical points labeled to track the sign of each individual factor before combining them.

  • Plug a simple number like x=0x = 0 into each term whenever working on an interval containing zero to verify signs before solving.

  • State the combined solution set explicitly after all individual case intervals have been analyzed.

OverviewACEpath Teacher's Diagnosis

03 The student incorrectly distributes the negative sign to the binomial (2x - 6), writing -2x - 6 instead of -2x + 6.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Partially correct
  1. Step 1

    Boundary values: x=−1,x=3x = -1, x = 3

  2. Step 2

    Case 1: x<−1  ⟹  −2x−6−(x+1)=7  ⟹  −3x−7=7  ⟹  −3x=14  ⟹  x=−143x < -1 \implies -2x - 6 - (x + 1) = 7 \implies -3x - 7 = 7 \implies -3x = 14 \implies x = -\frac{14}{3}; −143<−1-\frac{14}{3} < -1, so x=−143x = -\frac{14}{3} is a solution.

    Correct

    For x<−1x < -1, ∣2x−6∣=−(2x−6)=−2x+6|2x - 6| = -(2x - 6) = -2x + 6 and ∣x+1∣=−(x+1)=−x−1|x + 1| = -(x + 1) = -x - 1, giving (−2x+6)+(−x−1)=7  ⟹  −3x+5=7  ⟹  x=−23(-2x + 6) + (-x - 1) = 7 \implies -3x + 5 = 7 \implies x = -\frac{2}{3}. Since −23≮−1-\frac{2}{3} \not< -1, there is no solution in this interval.

    When removing the absolute value bars from ∣2x−6∣|2x - 6| when 2x−6<02x - 6 < 0, you must negate the entire binomial: −(2x−6)=−2x+6-(2x - 6) = -2x + 6. Writing −2x−6-2x - 6 led to an extraneous solution.

  3. Step 3

    Case 2: −1≤x<3  ⟹  −2x−6+x+1=7  ⟹  −x−5=7  ⟹  −x=12  ⟹  x=−12-1 \le x < 3 \implies -2x - 6 + x + 1 = 7 \implies -x - 5 = 7 \implies -x = 12 \implies x = -12; −12-12 is not in [−1,3)[-1, 3), reject.](streamdown:incomplete-link)

    Correct

    For −1≤x<3-1 \le x < 3, ∣2x−6∣=−(2x−6)=−2x+6|2x - 6| = -(2x - 6) = -2x + 6 and ∣x+1∣=x+1|x + 1| = x + 1, giving (−2x+6)+(x+1)=7  ⟹  −x+7=7  ⟹  x=0(-2x + 6) + (x + 1) = 7 \implies -x + 7 = 7 \implies x = 0. Since 0∈[−1,3)0 \in [-1, 3), x=0x = 0 is a valid solution.](streamdown:incomplete-link)

    You repeated the same sign error on ∣2x−6∣|2x - 6|, writing −2x−6-2x - 6 instead of −2x+6-2x + 6. This caused you to miss the valid solution x=0x = 0.

  4. Step 4

    Case 3: x≥3  ⟹  2x−6+x+1=7  ⟹  3x−5=7  ⟹  3x=12  ⟹  x=4x \ge 3 \implies 2x - 6 + x + 1 = 7 \implies 3x - 5 = 7 \implies 3x = 12 \implies x = 4; 4≥34 \ge 3, so x=4x = 4 is a solution.

  5. Step 5

    x=−143, x=4x = -\frac{14}{3},\ x = 4

    Correct

    x=0x = 0 or x=4x = 4

    Because of the sign distribution errors in Cases 1 and 2, your final solution set included an extraneous solution and missed x=0x = 0.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly identified the critical transition points x=−1x = -1 and x=3x = 3.

You set up a sound interval partition method covering all three cases.

You solved Case 3 accurately and verified your solution against the interval condition.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Distributive Sign Error

You wrote −(2x−6)-(2x - 6) as −2x−6-2x - 6 by only negating the first term instead of distributing the negative sign across both terms.

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

Incomplete distribution of the negative sign when expanding −(a−b)-(a - b). When an expression inside absolute value bars is negative, wrapping it in parentheses before negating prevents forgetting to change the sign of the constant term.

REASONING PATH
Your ACEpath teacher’s suggested approach
Wrap in parentheses first
  • If an expression E<0E < 0, then ∣E∣=−(E)|E| = -(E). Always write parentheses around EE before simplifying.

  • Write ∣2x−6∣=−(2x−6)|2x - 6| = -(2x - 6) explicitly before expanding it into −2x+6-2x + 6.

Distribute negative signs to every term
  • −(a−b)=−a+b-(a - b) = -a + b.

  • Check that the negative sign flips the sign of every single term inside the parentheses.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. In Case 1 (x<−1x < -1): (−2x+6)+(−x−1)=7  ⟹  −3x+5=7  ⟹  x=−23(-2x + 6) + (-x - 1) = 7 \implies -3x + 5 = 7 \implies x = -\frac{2}{3}. Since −23>−1-\frac{2}{3} > -1, reject it.

  2. In Case 2 (−1≤x<3-1 \le x < 3): (−2x+6)+(x+1)=7  ⟹  −x+7=7  ⟹  x=0(-2x + 6) + (x + 1) = 7 \implies -x + 7 = 7 \implies x = 0. Since −1≤0<3-1 \le 0 < 3, accept x=0x = 0.

Final answer

x=0x = 0 or x=4x = 4

NEXT STEPS
Final Takeaways from Your Teacher
  • Practice rewriting expressions of the form −(ax−b)-(ax - b) by explicitly writing out −ax−(−b)=−ax+b-ax - (-b) = -ax + b.

  • Always substitute your candidate solutions back into the original absolute value equation to catch arithmetic or sign errors.

Lock it in

Similar question

01

Solve the equation ∣x−2∣+∣x+3∣=5|x - 2| + |x + 3| = 5 by partitioning the real line into intervals.

Answer

Intervals: x<−3x < -3, −3≤x<2-3 \le x < 2, and x≥2x \ge 2.

  1. For x<−3x < -3: −(x−2)−(x+3)=5  ⟹  −2x−1=5  ⟹  x=−3-(x - 2) - (x + 3) = 5 \implies -2x - 1 = 5 \implies x = -3 (not in x<−3x < -3, no solution).
  2. For −3≤x<2-3 \le x < 2: −(x−2)+(x+3)=5  ⟹  5=5-(x - 2) + (x + 3) = 5 \implies 5 = 5, which is true for all xx in this interval, so [−3,2)[-3, 2) is a solution.
  3. For x≥2x \ge 2: (x−2)+(x+3)=5  ⟹  2x+1=5  ⟹  x=2(x - 2) + (x + 3) = 5 \implies 2x + 1 = 5 \implies x = 2 (satisfies x≥2x \ge 2). Combining valid solutions: −3≤x≤2-3 \le x \le 2 (or [−3,2][-3, 2]).](streamdown:incomplete-link)
02

Solve the equation ∣3x+6∣−∣x−1∣=5|3x + 6| - |x - 1| = 5 for all real values of xx.

Answer

Critical points: x=−2x = -2 and x=1x = 1.

  1. Case x<−2x < -2: −(3x+6)−(−(x−1))=5  ⟹  −2x−7=5  ⟹  x=−6-(3x + 6) - (-(x - 1)) = 5 \implies -2x - 7 = 5 \implies x = -6. Check: −6<−2-6 < -2 (valid).
  2. Case −2≤x<1-2 \le x < 1: (3x+6)−(−(x−1))=5  ⟹  4x+5=5  ⟹  x=0(3x + 6) - (-(x - 1)) = 5 \implies 4x + 5 = 5 \implies x = 0. Check: −2≤0<1-2 \le 0 < 1 (valid).
  3. Case x≥1x \ge 1: (3x+6)−(x−1)=5  ⟹  2x+7=5  ⟹  x=−1(3x + 6) - (x - 1) = 5 \implies 2x + 7 = 5 \implies x = -1. Check: −1≱1-1 \not\ge 1 (extraneous, discard). Final Answer: x=−6x = -6 or x=0x = 0.
03

Solve the equation ∣2x−1∣+∣x−4∣=2x+1|2x - 1| + |x - 4| = 2x + 1 for all real values of xx.

Answer

Critical points: x=12x = \frac{1}{2} and x=4x = 4.

  1. Case x<12x < \frac{1}{2}: −(2x−1)−(x−4)=2x+1  ⟹  −3x+5=2x+1  ⟹  5x=4  ⟹  x=45-(2x - 1) - (x - 4) = 2x + 1 \implies -3x + 5 = 2x + 1 \implies 5x = 4 \implies x = \frac{4}{5}. Check: 45≮12\frac{4}{5} \not< \frac{1}{2} (extraneous, discard).
  2. Case 12≤x<4\frac{1}{2} \le x < 4: (2x−1)−(x−4)=2x+1  ⟹  x+3=2x+1  ⟹  x=2(2x - 1) - (x - 4) = 2x + 1 \implies x + 3 = 2x + 1 \implies x = 2. Check: 12≤2<4\frac{1}{2} \le 2 < 4 (valid).
  3. Case x≥4x \ge 4: (2x−1)+(x−4)=2x+1  ⟹  3x−5=2x+1  ⟹  x=6(2x - 1) + (x - 4) = 2x + 1 \implies 3x - 5 = 2x + 1 \implies x = 6. Check: 6≥46 \ge 4 (valid). Final Answer: x=2x = 2 or x=6x = 6.
Loading workspace…