\(\Leftrightarrow B=-\left(x^2-4x-1\right)\)
\(\Leftrightarrow B=-\left(x^2-4x+4-5\right)\)
\(\Leftrightarrow B=-\left(x-2\right)^2+5\)
Ta có \(\left(x-2\right)^2\ge0\)với mọi x
\(\Leftrightarrow-\left(x-2\right)^2\le0\)
\(\Leftrightarrow-\left(x-2\right)^2+5\le0+5\)
hay \(B\) \(\le5\)
Dấu "=" xảy ra khi \(\left(x-2\right)^2=0\)
. \(\Leftrightarrow x-2\)\(=0\)
\(\Leftrightarrow\)\(x\) \(=2\)
Vậy min B=5 tại x=2