Recently, I came across the following math problem:
Find the range of values of $x$ that satisfy $|x-1|+|6-2x|=|5-x|$.
To solve this problem, I considered the 3 cases:
- $x\le 1$, which gives $7-3x=5-x$, giving $x=1$
- $1\lt x\lt 3$, which gives $5-x=5-x$, suggesting that $1<x<3$ are all solutions.
- $x\ge 3$, which gives $3x-7=5-x$ or $3x-7=x-5$, giving $x=3$ or $1$ (which I am slightly confused as to why I get $x=1$ when I assumed $x\ge3$).
So my first question is, is my method above correct? Why did I arrive at the contradiction as pointed out?
Anyhow, I arrived at the solution that $1\le x \le3$ is the solution range, which is the correct answer.
Upon closer inspection, it is clear than this solution set is that to $(x-1)(6-2x)\ge0$ as well, which is all that the suggested solutions said.
This led me to think that there is some correlation between the 3 linear equations, and it is observed that $x-1+6-2x=5-x$. Further investigation suggests that for other linear equations $a,b$, where $|a|+|b|=|a+b|$, $ab\ge0$ appears to give the desired solution set. The logic here does not seem trivial to me.
My second question: Is there a theorem describing this observation? Or is it something trivial that I am missing out? Thanks.
Another question, why does my "trial-and-error" method present a contradiction? ie, when i assume x > 5 and solve the equation x-1 + 2x -6 = x-5, I get x = 1?
– QuIcKmAtHs Sep 04 '20 at 08:28