Lời giải:
\(B=-5x^2-4x+1=-5(x^2+\frac{4}{5}x-\frac{1}{5})=-5[x^2+\frac{4}{5}x+(\frac{2}{5})^2-\frac{9}{25}]\)
\(-5[(x+\frac{2}{5})^2-\frac{9}{25}]=\frac{9}{5}-5(x+\frac{2}{5})^2\)
Vì \((x+\frac{2}{5})^2\geq 0, \forall x\in\mathbb{R}\)
\(\Rightarrow B\leq \frac{9}{5}-5.0=\frac{9}{5}\)
Vậy \(B_{\max}=\frac{9}{5}\Leftrightarrow x=-\frac{2}{5}\)