Ta có: \(B=\left|x-456\right|+\left|x-789\right|\ge\left|x-456\right|+\left|789-x\right|\)
Áp dụng bất đẳng thức \(\left|a\right|+\left|b\right|\ge\left|a+b\right|\) ta có:
\(B\ge\left|x-456\right|+\left|789-x\right|\ge\left|x-456+789-x\right|=\left|789-456\right|=333\)
Dấu " = " xảy ra khi \(x-456\ge0;789-x\ge0\)
\(\Rightarrow x\ge456;x\le789\)
Vậy \(MIN_B=333\) khi \(456\le x\le789\)