TH1: Với x < 1
\(\Leftrightarrow-\left(x-1\right)+\left[-\left(x-5\right)\right]=4\)
\(\Leftrightarrow1-x+5-x=4\)
\(\Leftrightarrow6-2x=4\)
\(\Leftrightarrow2x=2\)
\(\Leftrightarrow x=1\)(nhận)
TH2: Với \(1\le x\le5\)
\(\Leftrightarrow\left(x-1\right)+\left[-\left(x-5\right)\right]=4\)
\(\Leftrightarrow x-1+5-x=4\)
\(\Leftrightarrow4=4\) luôn đúng!
TH3: Với x > 5
\(\Leftrightarrow\left(x-1\right)+\left(x-5\right)=4\)
\(\Leftrightarrow x-1+x-5=4\)
\(\Leftrightarrow2x-6=4\)
\(\Leftrightarrow2x=10\)
\(\Leftrightarrow x=5\) (loại)
Vậy \(1\le x\le5\)