`B = -((3x+7)^2 - 2(3x+7) + 1 + 16) = -(3x + 7 -1)^2 - 16 <= -(3x+6)^2 - 16 <= -16`.
Dấu bằng xảy ra `<=> x = -2`.
`B = -x^2 + 6x - 5 <=> -(x^2 - 6x+ 9 - 4) = -(x-3)^2 + 4 <= 0 + 4 =4`.
Dấu bằng xảy ra `<=> x = 3`
\(B=-\left[\left(3x+7\right)^2-2\left(3x+7\right)+1\right]-16=-\left(3x+7-1\right)^2-16=-\left(3x+6\right)^2-16\le-16\)
\(B_{max}=-16\) khi \(x=-2\)
\(B=-\left(x^2-6x+9\right)+4=-\left(x-3\right)^2+4\le4\)
\(B_{max}=4\) khi \(x=3\)