Bài 1:
a) \(x^2+10x+26+y^2+2y\)
\(=\left(x^2+10x+25\right)+\left(y^2+2y+1\right)\)
\(=\left(x+5\right)^2+\left(y+1\right)^2\)
b) \(4x^2-y^2-12x+2y+8\)
\(=4x^2-12x+9-y^2+2y-1\)
\(=\left(4x^2-12x+9\right)-\left(y^2-2y+1\right)\)
\(=\left(2x-3\right)^2-\left(y-1\right)^2\)
Bài 2:
\(P=4+8x-16x^2\)
\(P=-\left(16x^2-8x+4\right)\)
\(P=-\left[\left(4x\right)^2-2.4x+1+3\right]\)
\(P=-\left(4x-1\right)^2-3\)
Vì \(-\left(4x-1\right)^2\le0\) với mọi x
\(\Rightarrow-\left(4x-1\right)^2-3\le-3\) với mọi x
\(\Rightarrow Pmax=-3\Leftrightarrow4x-1=0\)
\(\Rightarrow4x=1\)
\(\Rightarrow x=\dfrac{1}{4}\)
Vậy Pmax = -3 <=> x = 1/4