a.
\(A=-\left(x^2-4x-2\right)=-\left(x^2-4x+4-6\right)\\ =-\left(x-2\right)^2+6\le6\)
GTLN của A đạt 6 khi và chỉ khi `x=2`
b.
\(B=-\left(x^2-x-2\right)=-\left(x^2-2.\dfrac{1}{2}x+\dfrac{1}{4}-\dfrac{9}{4}\right)\\ =-\left(x-\dfrac{1}{2}\right)^2+\dfrac{9}{4}\le\dfrac{9}{4}\)
GTLN của B đạt \(\dfrac{9}{4}\) khi và chỉ khi \(x=\dfrac{1}{2}\)
a) \(A=-x^2+4x+2\)
\(A=-\left(x^2-4x-2\right)\)
\(A=-\left[\left(x-2\right)^2-6\right]\)
\(A=-\left(x-2\right)^2+6\)
Mà: \(-\left(x-2\right)^2\le0\forall x\) nên
\(A=-\left(x-2\right)^2+6\le6\)
Dấu "=" xảy ra:
\(-\left(x-2\right)^2+6=6\Leftrightarrow x=2\)
Vậy: \(A_{max}=6\) khi \(x=2\)
b) \(B=x-x^2+2\)
\(B=-\left(x^2-x-2\right)\)
\(B=-\left[\left(x-\dfrac{1}{2}\right)^2-\dfrac{9}{4}\right]\)
\(B=-\left(x-\dfrac{1}{2}\right)^2+\dfrac{9}{4}\)
Mà: \(-\left(x-\dfrac{1}{2}\right)^2\le0\forall x\)
Nên: \(B=-\left(x-\dfrac{1}{2}\right)^2+\dfrac{9}{4}\le\dfrac{9}{4}\forall x\)
Dấu "=" xảy ra:
\(-\left(x-\dfrac{1}{2}\right)^2+\dfrac{9}{4}=\dfrac{9}{4}\Leftrightarrow x=\dfrac{1}{2}\)
Vậy: \(B_{max}=\dfrac{9}{4}\) khi \(x=\dfrac{1}{2}\)