Bài 5:
a) \(A=x^2-4x+9=\left(x^2-4x+4\right)+5=\left(x-2\right)^2+5\ge5\)
\(minA=5\Leftrightarrow x=2\)
b) \(B=x^2-x+1=\left(x^2-x+\dfrac{1}{4}\right)+\dfrac{3}{4}=\left(x-\dfrac{1}{2}\right)^2+\dfrac{3}{4}\ge\dfrac{3}{4}\)
\(minB=\dfrac{3}{4}\Leftrightarrow x=\dfrac{1}{2}\)
c) \(C=2x^2-6x=2\left(x^2-3x+\dfrac{9}{4}\right)-\dfrac{9}{2}=2\left(x-\dfrac{3}{2}\right)^2-\dfrac{9}{2}\ge-\dfrac{9}{2}\)
\(minC=-\dfrac{9}{2}\Leftrightarrow x=\dfrac{3}{2}\)
Bài 4:
a) \(M=4x-x^2+3=-\left(x^2-4x+4\right)+7=-\left(x-2\right)^2+7\le7\)
\(maxM=7\Leftrightarrow x=2\)
b) \(N=x-x^2=-\left(x^2-x+\dfrac{1}{4}\right)+\dfrac{1}{4}=-\left(x-\dfrac{1}{2}\right)^2+\dfrac{1}{4}\le\dfrac{1}{4}\)
\(maxN=\dfrac{1}{4}\Leftrightarrow x=\dfrac{1}{2}\)
c) \(P=2x-2x^2-5=-2\left(x^2-x+\dfrac{1}{4}\right)-\dfrac{9}{2}=-2\left(x-\dfrac{1}{2}\right)^2-\dfrac{9}{2}\le-\dfrac{9}{2}\)
\(maxP=-\dfrac{9}{2}\Leftrightarrow x=\dfrac{1}{2}\)