1) \(A=x^2-4x+1\)
\(A=x^2-4x+4-3\)
\(A=\left(x^2-4x+4\right)-3\)
\(A=\left(x-2\right)^2-3\)
Ta có: \(\left(x-2\right)^2\ge0\) với mọi x
\(\Rightarrow\left(x-2\right)^2-3\ge-3\) với mọi x
Vậy MIinA = -3 khi x = 2
2) \(B=-x^2+13x+2012\)
\(B=-x^2+13x-\frac{169}{4}+\frac{169}{4}+2012\)
\(B=-\left(x^2-13+\frac{169}{4}\right)+\left(\frac{169}{4}+2012\right)\)
\(B=-\left(x-\frac{13}{2}\right)^2+\frac{8217}{4}\)
Ta có: \(\left(x-\frac{13}{2}\right)^2\ge0\) với mọi x
\(-\left(x-\frac{13}{2}\right)^2\le0\) với mọi x
\(\Rightarrow-\left(x-\frac{13}{2}\right)^2+\frac{8217}{4}\le\frac{8217}{4}\)
Vây \(Max\left(B\right)=\frac{8217}{4}\) khi \(x=\frac{13}{2}\)