ta thấy max f(x) chỉ có thể đạt được tại x=1 hoặc x=2
đặt M = max f(x)
[tex]\Leftrightarrow \left\{\begin{matrix} M\geq f(1)=|2-m| & \\ M\geq f(2)=|4-m| & \end{matrix}\right.[/tex]
ta có:
[tex]M\geq\frac{f(1)+f(2)}{2}[/tex] [tex]=\frac{|2-m|+|4-m|}{2}[/tex]
[tex]\Leftrightarrow M\geq\frac{|(2-m)+(m-4)|}{2}=1[/tex]
đẳng thức xảy ta khi và chỉ khi
[tex]\left\{\begin{matrix} |2-m|=|4-m| & \\ (2-m)(m-4)\geq0 & \end{matrix}\right.[/tex]
[tex]\Leftrightarrow m=3[/tex]
