\(K=-x^2+13x+2012=x^2+13x-\frac{169}{4}+\frac{8217}{4}\)
\(=\left(-x^2+13x-\frac{169}{4}\right)+\frac{8217}{4}\)
Mà \(-x^2+13x-\frac{169}{4}=2x\left(-\frac{1}{2}x+\frac{13}{2}\right)-\frac{169}{4}\le0\) ( do \(2x\left(-\frac{1}{2}x+\frac{13}{2}\right)\le\frac{169}{4}\))
Do đó \(K=\left(-x^2+13x-\frac{169}{4}\right)+\frac{8217}{4}\le\frac{8217}{4}\)
Dấu "=" xảy ra \(\Leftrightarrow2x\left(-\frac{1}{2}x+\frac{13}{2}\right)=\frac{169}{4}\Leftrightarrow x=\frac{13}{2}\)
Vậy \(K_{max}=\frac{8217}{4}\Leftrightarrow x=\frac{13}{2}\)