Bài 2:
a)Ta thấy: \(\left|\frac{1}{2}-x\right|\ge0\)
\(\Rightarrow A\ge0\)
Dấu "=" xảy ra khi \(x=\frac{1}{2}\)
Vậy \(Min_A=0\) khi \(x=\frac{1}{2}\)
b)Áp dụng BĐT \(\left|a\right|+\left|b\right|\ge\left|a+b\right|\) ta có:
\(B=\left|\frac{1}{2}-x\right|+\left|x+2\right|\ge\left|\frac{1}{2}-x+x+2\right|=\frac{5}{2}\)
Dấu "=" xảy ra khi x=0
Vậy \(Min_B=\frac{5}{2}\) khi x=0