1.
\(P=x^2+6y+10+y^2-x\)
\(=x^2-2\times x\times\frac{1}{2}+\left(\frac{1}{2}\right)^2-\left(\frac{1}{2}\right)^2+y^2+2\times y\times3+3^2-3^2+10\)
\(=\left(x-\frac{1}{2}\right)^2+\left(y+3\right)^2+\frac{3}{4}\)
\(\left(x-\frac{1}{2}\right)^2\ge0\)
\(\left(y+3\right)^2\ge0\)
\(\left(x-\frac{1}{2}\right)^2+\left(y+3\right)^2+\frac{3}{4}\ge\frac{3}{4}\)
Vậy Min P = \(\frac{3}{4}\) khi x = \(\frac{1}{2}\) và y = \(-3\)
2.
\(N=x-x^2\)
\(=-\left(x^2-2\times x\times\frac{1}{2}+\left(\frac{1}{2}\right)^2-\left(\frac{1}{2}\right)^2\right)\)
\(=-\left[\left(x-\frac{1}{2}\right)^2-\frac{1}{4}\right]\)
\(\left(x-\frac{1}{2}\right)^2\ge0\)
\(\left(x-\frac{1}{2}\right)^2-\frac{1}{4}\ge-\frac{1}{4}\)
\(-\left[\left(x-\frac{1}{2}\right)^2-\frac{1}{4}\right]\le\frac{1}{4}\)
Vậy Max N = \(\frac{1}{4}\) khi x = \(\frac{1}{2}\)